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

Bugs that are actually features.
sparr
Smart Inserter
Smart Inserter
Posts: 1521
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

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

Post 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.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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).
sparr
Smart Inserter
Smart Inserter
Posts: 1521
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

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

Post 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.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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")
Post Reply

Return to “Not a bug”