Automate force_technology_reset() on mod updates?

Place to get help with not working mods / modding interface.
Post Reply
evopwr
Fast Inserter
Fast Inserter
Posts: 172
Joined: Fri Apr 28, 2017 1:45 am
Contact:

Automate force_technology_reset() on mod updates?

Post by evopwr »

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,

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

Re: Automate force_technology_reset() on mod updates?

Post by Rseding91 »

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.

evopwr
Fast Inserter
Fast Inserter
Posts: 172
Joined: Fri Apr 28, 2017 1:45 am
Contact:

Re: Automate force_technology_reset() on mod updates?

Post by evopwr »

All good, I knew there would be a reason, just thought i'd ask.
Thanks for taking the time to reply :)

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Automate force_technology_reset() on mod updates?

Post by darkfrei »

Rseding91 wrote:
Sat Feb 23, 2019 12:54 am
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.
Which new problems it can makes?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7351
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Automate force_technology_reset() on mod updates?

Post by bobingabout »

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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Automate force_technology_reset() on mod updates?

Post by darkfrei »

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.

Post Reply

Return to “Modding help”