Regarding thread viewtopic.php?f=219&p=399458#p399458
Is it possible for the game to do a "force_technology_reset()" when mods are updated?
This would ensure strange behaviour doesnt happen if a technology/recipe changes between mod versions, and ensure your game is always "in sync".
I assume there must be a reason, just curious,
Cheers,
Automate force_technology_reset() on mod updates?
Re: Automate force_technology_reset() on mod updates?
Technology modifiers can be changed runtime unrelated to research. Just erasing and resetting them every time a mod changes is going to cause more problems than it might fix.
If you want to get ahold of me I'm almost always on Discord.
Re: Automate force_technology_reset() on mod updates?
All good, I knew there would be a reason, just thought i'd ask.
Thanks for taking the time to reply
Thanks for taking the time to reply
Re: Automate force_technology_reset() on mod updates?
Which new problems it can makes?
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Automate force_technology_reset() on mod updates?
I break everyone's mods then, because I added it to on_configuration_changed on one (or more) of my mods.
I basically did it because I make so many changes to unlocks between versions that it was just way easier to call it than painstakingly go through every possible change and unlock them all on mod install.
I basically did it because I make so many changes to unlocks between versions that it was just way easier to call it than painstakingly go through every possible change and unlock them all on mod install.
Re: Automate force_technology_reset() on mod updates?
Here must be some force.technology_reset({safe_mode = true}), that enables all recipes that must be enabled and doesn't touch any recipe that was enabled earlier.