[0.10.3] local variable limit killed my save game
[0.10.3] local variable limit killed my save game
I have Wagons mod installed, and that mod store information in local variables.
After setting over 200 wagons I can't load a game because of that error:
Deleting mod only cause game crash.
Link to mod section where I reported bug and get answer from mod creator
https://forums.factorio.com/forum/vie ... 107#p38107
Save: https://dl.dropboxusercontent.com/u/167 ... Gra001.zip
Game worked fine with that amount of wagons. Only savegame can't be load.
After setting over 200 wagons I can't load a game because of that error:
Deleting mod only cause game crash.
Link to mod section where I reported bug and get answer from mod creator
https://forums.factorio.com/forum/vie ... 107#p38107
Save: https://dl.dropboxusercontent.com/u/167 ... Gra001.zip
Game worked fine with that amount of wagons. Only savegame can't be load.
Re: [0.10.3] local variable limit killed my save game
Limit was reached by the script that was generated by engine and embedded into save file, engine reacts weirdly to a lot of
But everything is fine when nesting entities in a table
Crash with mod removed could be caused by entirely unrelated bug.
Code: Select all
glob.entities[#glob.entities+1] = entity
Code: Select all
glob.entities[#glob.entities+1] = {entity = entity}
Re: [0.10.3] local variable limit killed my save game
We are using serpent library (https://github.com/pkulchenko/serpent) for serialization. This seems to be related to how that one works. Actually script.dat files are readable files that contain lua code interpreted when the game is loaded.
Re: [0.10.3] local variable limit killed my save game
Is there any way to fix that save? I would like to not lose over 200h of gameplay.
- SuperSandro2000
- Filter Inserter
- Posts: 742
- Joined: Sun Jan 12, 2014 3:54 am
- Contact:
Re: [0.10.3] local variable limit killed my save game
Have you no autosaves from before that point?
Please call me simply Sandro.
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
Re: [0.10.3] local variable limit killed my save game
Have you simply tried deleting (or better renaming) the script.dat file? Actually I tried to load your save without any mods and it crashes and breaches couple of internal asserts (that are not present in the release build). There will be some work from our side needed to fix this.Neotix wrote:Is there any way to fix that save? I would like to not lose over 200h of gameplay.
Re: [0.10.3] local variable limit killed my save game
Whaaaa IT"S WORKING. Now I'm crying from happiness like a baby.
Deleting script.dat helps.
Deleting script.dat helps.
Re: [0.10.3] local variable limit killed my save game
Be aware that you'll probably need to rebuild/replace manually a lot of modded buildings since script.dat contained information accumulated and needed by mods to work correctly.Neotix wrote:Whaaaa IT"S WORKING. Now I'm crying from happiness like a baby.
Deleting script.dat helps.
Re: [0.10.3] local variable limit killed my save game
So far I noticed only that I lost items in Compressed chests (few thousands of resource) but it's not a big problem.
Re: [0.10.3] local variable limit killed my save game
I'll be making a spawn-able tool that lets you set the amount a chest has stored for events like this.Neotix wrote:So far I noticed only that I lost items in Compressed chests (few thousands of resource) but it's not a big problem.
EDIT: also, you didn't lose "a few thousands" you lost exactly 1,770,333 iron ore, 191,083 coal, and 771,687 stone.
If you want to get ahold of me I'm almost always on Discord.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: [0.10.3] local variable limit killed my save game
Glad this is working. Felt so bad not being able to help. I'm stuck on 3g at the moment so my internet access is very limited.Neotix wrote:Whaaaa IT"S WORKING. Now I'm crying from happiness like a baby.
Deleting script.dat helps.