change made to a mod component count not working in a save

Place to get help with not working mods / modding interface.
Post Reply
devilwarriors
Filter Inserter
Filter Inserter
Posts: 311
Joined: Sat Jan 09, 2016 1:11 am
Contact:

change made to a mod component count not working in a save

Post by devilwarriors »

Hi,

I'm trying to up the count of component of a mod to match marathon cost and for some reason the change are not showing up in my marathon save, but if I load another save that was not using the mod at the time it will work and show the change I made.

It's like mod are cached or something.. what happening here?

anyone know?

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: change made to a mod component count not working in a save

Post by matjojo »

you need to reload the data I think there is a command for it. but the easiest is just rebooting the game.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: change made to a mod component count not working in a save

Post by Klonan »

matjojo wrote:you need to reload the data I think there is a command for it. but the easiest is just rebooting the game.

Code: Select all

/c game.local_player.force.reset_recipes()

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: change made to a mod component count not working in a save

Post by matjojo »

Klonan wrote:
matjojo wrote:you need to reload the data I think there is a command for it. but the easiest is just rebooting the game.

Code: Select all

/c game.local_player.force.reset_recipes()
Well, that certainly is easier than rebooting. Thanks!

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: change made to a mod component count not working in a save

Post by Klonan »

matjojo wrote:
Klonan wrote:
matjojo wrote:you need to reload the data I think there is a command for it. but the easiest is just rebooting the game.

Code: Select all

/c game.local_player.force.reset_recipes()
Well, that certainly is easier than rebooting. Thanks!
Oh well no, you still have to restart if you make changed to a mod,

Reset recipes works when you have a save game with a mod, then make changes to the mod.
When you load the game again, the save game will have the old recipes still, so reset_recipes() will refresh the recipes to the new ones that were loaded whne the game starts

matjojo
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: change made to a mod component count not working in a save

Post by matjojo »

Klonan wrote:*snippy snippet*

Oh well no, you still have to restart if you make changed to a mod,

Reset recipes works when you have a save game with a mod, then make changes to the mod.
When you load the game again, the save game will have the old recipes still, so reset_recipes() will refresh the recipes to the new ones that were loaded whne the game starts
ow, that changes it a bit, thanks again!

devilwarriors
Filter Inserter
Filter Inserter
Posts: 311
Joined: Sat Jan 09, 2016 1:11 am
Contact:

Re: change made to a mod component count not working in a save

Post by devilwarriors »

yeah restarting is not enought..

Thanks for the help people!!

Post Reply

Return to “Modding help”