Page 1 of 1

[0.15.5] Error when mod zip file replaced between save loads

Posted: Tue May 02, 2017 7:03 am
by sparr
Start the game
Load a save
Delete and replace the zip file for an installed mod
Exit back to the main menu in the game
Load a save
Error:

Code: Select all

Opening file __name-of-the-mod__/control.lua failed -- error code -102

This is related to my attempts to modify control.lua during mod development without having to restart the game over and over.

Re: [0.15.5] Error when mod zip file replaced between save loads

Posted: Tue May 02, 2017 7:09 am
by posila
Hi, thanks for the report.
Mod zip files should be locked by Factorio and you shouldn't be able to delete/overwrite them while Factorio is running. At least that used to be the case before 0.14.
If you want to modify control.lua, just don't zip the mod (put it as folder to mods directory).

Re: [0.15.5] Error when mod zip file replaced between save loads

Posted: Tue May 02, 2017 7:10 am
by sparr
posila wrote:Hi, thanks for the report.
Mod zip files should be locked by Factorio and you shouldn't be able to delete/overwrite them while Factorio is running. At least that used to be the case before 0.14.
If you want to modify control.lua, just don't zip the mod (put it as folder to mods directory).
What should the folder in the mods directory be named? I'm trying to make this work and it won't load my folder mods at all.

Re: [0.15.5] Error when mod zip file replaced between save loads

Posted: Tue May 02, 2017 7:37 am
by posila
Insted of

Code: Select all

mods
|- foo_0.1.5.zip
   |- foo_0.1.5
      |- info.json (Must set name to "foo" and version to "0.1.5")
make it

Code: Select all

mods
|- foo_0.1.5
   |- info.json (Must set name to "foo" and version to "0.1.5")