modding base - how to make it be save compatible?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
gonzalez6913
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 22, 2014 1:32 am
Contact:

modding base - how to make it be save compatible?

Post by gonzalez6913 »

I've modded the base folder (saved a backup) but when i go in game and load my game, nothing changed, but when i start a new game, the changes can be seen though, so how do i make what i changed save-compatible?
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: modding base - how to make it be save compatible?

Post by cube »

If you changed something in the file control.lua, you have to copy it into the save manually.
If you changed recipes, use `game.player.force.resetrecipes()` in console, if you changed technologies, you need `game.player.force.resettechnologies()`.

Also, changing stuff in the base mod is generally not a good idea. When an update comes, it will fail and you will have to reinstall the game (or do some black magic and fix the installation).
For changing small stuff in the game it is best to create a small mod. A bare bones example mod is here: https://github.com/bluecube/factorio-example-mod .
I have no idea what I'm talking about.
gonzalez6913
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 22, 2014 1:32 am
Contact:

Re: modding base - how to make it be save compatible?

Post by gonzalez6913 »

oh... thank you very much!!!
well i did backed it up already. Btw, are there a list of console commands?
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: modding base - how to make it be save compatible?

Post by ssilk »

https://forums.factorio.com/wiki/inde ... le=Modding

But I become now an Euro from you for that, because that could be found by Internet search.

http://bit.ly/1mPN9v1

:lol:
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
gonzalez6913
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 22, 2014 1:32 am
Contact:

Re: modding base - how to make it be save compatible?

Post by gonzalez6913 »

awww thanks! ill try googling harder next time
Post Reply

Return to “Gameplay Help”