Page 1 of 1
Need help editing save file
Posted: Sat May 31, 2014 9:42 am
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.
Re: Need help editing save file
Posted: Sat May 31, 2014 10:41 am
by ssilk
Re: Need help editing save file
Posted: Sat May 31, 2014 11:46 am
by minaptix
Yeah, i've been looking there already, but I still don't know what file I need to edit.
Re: Need help editing save file
Posted: Sat May 31, 2014 12:31 pm
by ssilk
I think you don't have read the test-mode mod thoroughly.
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.

Re: Need help editing save file
Posted: Sat May 31, 2014 5:17 pm
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