Save file editing to remove extensions that are save sensitive?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Save file editing to remove extensions that are save sensitive?

Post by Requiemfang » Sun, 9. Dec 18, 20:27

I clicked the option to not have my saves packed up so I am able to view them in notepad++. Unlike XR saves though there is no <patch extension in X4 save files. I'm trying to remove an extension from a save so it will load but I can't figure it out.

Chair5768
Posts: 36
Joined: Sun, 15. Jan 06, 06:43
x3

Re: Save file editing to remove extensions that are save sensitive?

Post by Chair5768 » Sun, 9. Dec 18, 20:52

xtra wrote:
Thu, 6. Dec 18, 17:42
yes, you can try to edit the save file.
Make a backup of the save file
Unpack the savexxxx.gz and open with notepad++
In the top of the file you find the block with the mods, the name of the mod is there.
Delete the block, save the file
Pack with 7zip to gz
Load

I had the same Problem with one mod. When the mod was not saverelevant, it will work.
From another thread, worked for another user, I haven't tried it myself. You can load directly from the unpacked .xml file, you don't have to repack it, but I'd recommend you delete it after you resave your game because it's fairly large unpacked. If you're using 7zip, you can also drag it back into the original zip and it will overwrite the old xml.

rjtwins
Posts: 20
Joined: Wed, 3. Nov 10, 13:50
x4

Re: Save file editing to remove extensions that are save sensitive?

Post by rjtwins » Sun, 9. Dec 18, 20:55

There is, top of the file.
If your mod does not include patches and therefore is not listed as shown below it "should" not prevent you from loading the save.
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<savegame>
<info>
<save name="#003" date="1544362374"/>
<game id="X4" version="130" build="323986" time="292280.5" code="***" original="110" start="x4ep1_gamestart_tutorial" seed="1947747062" guid="***"/>
<player name="rjtwins" location="{20004,140011}" money="34882445"/>
<patches>
<patch extension="X4-Tracer-World" name="X4-Tracer-World"/>
</patches>
</info>

Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Re: Save file editing to remove extensions that are save sensitive?

Post by Requiemfang » Sun, 9. Dec 18, 21:59

rjtwins wrote:
Sun, 9. Dec 18, 20:55
There is, top of the file.
If your mod does not include patches and therefore is not listed as shown below it "should" not prevent you from loading the save.
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<savegame>
<info>
<save name="#003" date="1544362374"/>
<game id="X4" version="130" build="323986" time="292280.5" code="***" original="110" start="x4ep1_gamestart_tutorial" seed="1947747062" guid="***"/>
<player name="rjtwins" location="{20004,140011}" money="34882445"/>
<patches>
<patch extension="X4-Tracer-World" name="X4-Tracer-World"/>
</patches>
</info>
I'm not getting that <patches> line in my save file, doesn't exist at all period.

Post Reply

Return to “X4: Foundations - Scripts and Modding”