Need help editing save file

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
minaptix
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat May 31, 2014 9:39 am
Contact:

Need help editing save file

Post by minaptix »

So I found the save file locations (in %appdata%\roaming if you're interested) and now want to edit my save file to try something new, sadly I don't know what file specifies my inventory. If anyone could help me, that would be appreciated.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Need help editing save file

Post by ssilk »

Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

minaptix
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat May 31, 2014 9:39 am
Contact:

Re: Need help editing save file

Post by minaptix »

Yeah, i've been looking there already, but I still don't know what file I need to edit.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Need help editing save file

Post by ssilk »

I think you don't have read the test-mode mod thoroughly. :roll:
https://forums.factorio.com/forum/vie ... =46&t=2842


I know, that you just need to open the console in game and you can add some items. But don't ask me for the right command. It's somewhere here https://forums.factorio.com/wiki/inde ... ua_objects

I guess it is this https://forums.factorio.com/wiki/inde ... ity#insert

There are some, who knows that better. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Need help editing save file

Post by FreeER »

If you just want to add items to your inventory you can use the console (~) command game.player.insert{name="item_code_name", count=x}, where item_code_name is the name that Facotorio knows from the data prototypes and x is the amount you want, a much easier way is to install the test mode mod and it has a search feature so you can use the same names that are shown in-game (rather than the code names). Both of these are better and easier than editing the save file, since the save is not easily editable, you'd need to understand hex editing, inventory seems to start around 35e in the level-init.dat file, and be able to find the ids for the items and those, I believe, can change with mods, starting locations and other info may shift during Factorio updates etc etc

Post Reply

Return to “Gameplay Help”