Step to reproduce:
1) Activate mod that modifies any base recipe. (e.g. DyTech-Modules).
2) Load some game and save it with mod active. If you check blueprint you will see that is modified from mod.
3) Exit game and delete mod (Disabling mod is not enough).
4) Load game from step 2 and check blueprint. You will see that is still modified, but the message which mod done that disappeared.
I think that recipes should be reset when you load game with missing or disabled mod.
[0.10.9] Mod deletion doesn't resets recipes.
Re: [0.10.9] Mod deletion don't resets recipes.
The only time recipes are reset is when you trigger them to be reset In code: game.resetrecipes() - that's standard behavior.
If you want to get ahold of me I'm almost always on Discord.
-
- Smart Inserter
- Posts: 1847
- Joined: Sun Feb 23, 2014 3:37 pm
- Contact:
Re: [0.10.9] Mod deletion don't resets recipes.
It shouldn't be, if I turn off a mod I want it turned off, including all of its features.
Getting the game to reset recipes when it removes all other mod related stuff should be standard.
Getting the game to reset recipes when it removes all other mod related stuff should be standard.
Re: [0.10.9] Mod deletion don't resets recipes.
Just so everyone reading this is aware: resetting recipes clears what's in the assembler's crafting queue erasing the items. I personally wouldn't want that to happen every time I change mod versions/remove a mod/add a mod.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.10.9] Mod deletion don't resets recipes.
But now you have no clue that recipe was modified and you should call game.resetrecipes(). Because text that recipe was modified is missing.
Re: [0.10.9] Mod deletion doesn't resets recipes.
I just wanted to clear why is the recipe reseting problem in the game on the first place. There is a concept, that we would like to create in the game, but we just hadn't time to get to it. Imagine research that changes the recipe for the current player, something like efficient steel processing, which changes the recipe to require one less iron. But the change will just effect the current player. This is the reason, why we have the copy of recipes of current player. The reset recipes currently just takes all the default versions and re-sets them.
We talked about this, and I believe we found a solution to make it all work automatically. The resetrecipes lua method will be removed completely, and the engine will automatically rebuild the recipes when mod configuration changes on game load. The trick is, that it will remember the changes made by research (or by other effects) separatly, so they will be applied anyway, when the recipes are rebuilt. This could go even further, the game could remember which mod created each applied changes to recipe. So if you remove mod that contained research to change recipe. The applied change will go away once you remove the mod as well, but the applied changes of other mods will stay.
We talked about this, and I believe we found a solution to make it all work automatically. The resetrecipes lua method will be removed completely, and the engine will automatically rebuild the recipes when mod configuration changes on game load. The trick is, that it will remember the changes made by research (or by other effects) separatly, so they will be applied anyway, when the recipes are rebuilt. This could go even further, the game could remember which mod created each applied changes to recipe. So if you remove mod that contained research to change recipe. The applied change will go away once you remove the mod as well, but the applied changes of other mods will stay.
Re: [0.10.9] Mod deletion doesn't resets recipes.
Anyway, for 0.10.10 the change is, that the resetrecipes is called automatically whenever Factorio version or mod configuration changes (Change of mod configuration includes change of mod version).
Re: [0.10.9] Mod deletion doesn't resets recipes.
so it's no other way to reset recipes in game or with lua ?kovarex wrote:Anyway, for 0.10.10 the change is, that the resetrecipes is called automatically whenever Factorio version or mod configuration changes (Change of mod configuration includes change of mod version).
if someone make a mod, and change the recipe he need to bump alway version numbers or rename recipes to see effekt in game ?
Re: [0.10.9] Mod deletion doesn't resets recipes.
You can still call resetrecipes manually.