Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Where to find the money value in the save file?  (Read 719 times)

Euphytose

  • Captain
  • ****
  • Posts: 478
    • View Profile
Where to find the money value in the save file?
« on: May 05, 2023, 10:13:57 PM »

Hey,

I normally don't like cheating but I had a pretty good save prior to the patch dropping.

In the update thread I said I wouldn't install the update right now but who was I kidding, of course I will.

So my question is this:

Where do I find the value used for money in a save file? I'd like to start the run with say... 10m, just to quickly get back to where I was. Although, getting that Paragon won't be that easy I bet.

I know about the console command mod, but knowing myself, if I can spawn anything anytime I want, I will abuse it. So I'd rather not install anything.

I know the money is stored as a value somewhere within that massive save file, I just need some help finding it.

Thank you for your replies!

Edit: Alright. If I search for the exact value of money I have in my current save, I do find it. But... There's kind of an issue. Look at this:
Spoiler
[close]

There are two different values. Above my current credits is something else.

Also my current money value is somewhere else within that file, alone this time. Is it the one used? Or is it the one in the screenshot?

Also if I search for my supplies value, things get even weirder. I have tons of instances for that one.

I hope finding the correct credit value is easier.

Thanks again! :D
« Last Edit: May 05, 2023, 10:22:27 PM by Euphytose »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4682
    • View Profile
    • GitHub profile
Re: Where to find the money value in the save file?
« Reply #1 on: May 05, 2023, 10:23:04 PM »

Save game -> open campaign.xml -> search for the number of your current credits

It should start with <value> be in the middle of some cargo-related entries. Example from my current file (amount is 24028.0):
Code: xml
<CIStack z="15573" rS="true" s="1.0" mS="1000000.0" cSPU="2.0" t="WEAPONS">
<d cl="st">railgun</d>
<c ref="15555"></c>
</CIStack>
<CIStack z="15574" rS="true" s="1.0" mS="1000000.0" cSPU="2.0" t="WEAPONS">
<d cl="st">sabot</d>
<c ref="15555"></c>
</CIStack>
<CIStack z="15575" rS="true" s="1.0" mS="1000000.0" cSPU="1.0" t="FIGHTER_CHIP">
<d cl="st">broadsword_wing</d>
<c ref="15555"></c>
</CIStack>
<CIStack z="15576" rS="true" s="1.0" mS="1000000.0" cSPU="1.0" t="FIGHTER_CHIP">
<d cl="st">piranha_wing</d>
<c ref="15555"></c>
</CIStack>
<CIStack ref="6458"></CIStack>
<CIStack z="15577" rS="true" s="1.0" mS="1000000.0" cSPU="1.0" t="SPECIAL">
<d cl="SpID" z="15578" i="modspec" d="augmentedengines"></d>
<c ref="15555"></c>
</CIStack>
<CIStack ref="6458"></CIStack>
</s>
<c z="15579">
<value>24028.0</value>
</c>
<cF ref="15423"></cF>
<partials z="15580">
<e>
<st>RESOURCESheavy_machinery</st>
<fp>0.25</fp>
</e>
<e>
<st>RESOURCESsupplies</st>
<fp>-0.83201724</fp>
</e>
<e>
<st>RESOURCESfuel</st>
<fp>-0.56346905</fp>
</e>
</partials>
</cargo>
<c ref="15444"></c>
<f ref="15401"></f>
</fD>
<mD z="15581">-3881.9792|-1603.1963</mD>
Logged

Euphytose

  • Captain
  • ****
  • Posts: 478
    • View Profile
Re: Where to find the money value in the save file?
« Reply #2 on: May 05, 2023, 10:31:34 PM »

Alright, thank you. So that's the one that's alone. I will try it.

Thanks again.

Edit: Worked perfectly. :D

Spoiler
[close]
« Last Edit: May 05, 2023, 11:03:55 PM by Euphytose »
Logged