[STEAM] [0.12.24] Can't play with older mods at all

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Linkeron
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Mar 01, 2016 4:38 pm
Contact:

[STEAM] [0.12.24] Can't play with older mods at all

Post by Linkeron »

I understand that most issues with mods needs to be taken to the mod author, but due to my own attempts to fix the issue I've determined it's unlikely the mods are at fault. I could be wrong

Game loads all mods just fine, but when I try to generate a new game I get back an error that prevents world creation.

"mod name control.lua" attempt to index global 'game' (a nil value)

I've tried removing the first few mods I had installed that generated the issue but it just makes a new issue with another mod with the same error.

From what I can tell the game is interpreting any and all instances of the word 'game' as something that requires a value, and as most mods have instructions within control.lua to explain what certain functions do and how to edit the file for the users preference there's a lot of mentionings of the word 'game' without a value

Mods like Autofill, TreeCollision, YARM, DayNightExtender, and such other older mods are all coming back with this error
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [STEAM] [0.12.24] Can't play with older mods at all

Post by daniel34 »

This is due to a change that happened with Version 0.12.11
FactorioBot wrote:Warning: Most of the mods will be broken by this release, most of the problems can be solved by find and replace of "game.on_" to "script.on_" in the mod script files.
Check if your mods are all at their current version. From my personal experience I can tell you that Autofill and YARM work perfectly fine on 0.12.24.
quick links: log file | graphical issues | wiki
Linkeron
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Mar 01, 2016 4:38 pm
Contact:

Re: [STEAM] [0.12.24] Can't play with older mods at all

Post by Linkeron »

Ah, that must be it. The mods it's coming up with an error haven't had a new release in a while since they change things that devs haven't messed around with in a while, or their support was dropped entirely but the mods still function.

I haven't played since like .09, so I missed that this would be an issue.

I'll doctor up the files with the fix you quoted, and if everything works I'll take the thread down if able.
Linkeron
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Mar 01, 2016 4:38 pm
Contact:

Re: [STEAM] [0.12.24] Can't play with older mods at all

Post by Linkeron »

Confirmed, world generated.

Issue resolved
Post Reply

Return to “Technical Help”