[0.15.2] Research progress is being lost on the game loading

Bugs that are actually features.
Post Reply
apriori
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

[0.15.2] Research progress is being lost on the game loading

Post by apriori »

Subject itself.
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13249
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by Rseding91 »

Can you give me a save file and steps to reproduce it?
If you want to get ahold of me I'm almost always on Discord.

apriori
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by apriori »

Rseding91 wrote:Can you give me a save file and steps to reproduce it?
Yep. https://yadi.sk/d/r2yBUfV13HP86R

• Load the savegame.
• Start researching "Architecture" (Factorissimo2 first tech).
• Save the game.
• Exit the game.
• Start the game and load the savegame.
• Ooops, my sci-packs and progress get lost. :)
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13249
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by Rseding91 »

You've got a broken mod. Remove "Simple Packing" and it will fix it.

If you used that mod in MP it would desync as soon as the first player joined.
If you want to get ahold of me I'm almost always on Discord.

apriori
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by apriori »

Rseding91 wrote:You've got a broken mod. Remove "Simple Packing" and it will fix it.

If you used that mod in MP it would desync as soon as the first player joined.
1. Why is this mod seeming broken to you? Because of resetting algorithm in controls.lua? Or local variable outside all functions? I should know it to avoid bugs in my mods.
2. Removed the mod. Still getting the same issue. Updated archive: https://yadi.sk/d/r2yBUfV13HP86R
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13249
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by Rseding91 »

apriori wrote:
1. Why is this mod seeming broken to you? Because of resetting algorithm in controls.lua? Or local variable outside all functions? I should know it to avoid bugs in my mods.
Yes, it's running code on load which means every time you load a save it will re-run. When someone joins in MP they load the save and it will re-run. Except, it only runs for the person joining because the server and all players connected don't load the map when someone joins.
If you want to get ahold of me I'm almost always on Discord.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13249
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by Rseding91 »

It's still broken because the Loaders mod is also broken. Every time you load a save file with it - it will also reset all technologies/recipes. And again, if you used that mod in MP it would immediately desync upon anyone joining the game.

Resetting technologies/recipes should be done through migration scripts: http://lua-api.factorio.com/latest/Migrations.html

Delete the control.lua from that mod and it will fix it.
If you want to get ahold of me I'm almost always on Discord.

apriori
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

Re: [0.15.2] Research progress is being lost on the game loading

Post by apriori »

Ok. Resetting technologies is the key. Thanks!
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

Post Reply

Return to “Not a bug”