Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); In-development patch notes for Starsector 0.98a (2/8/25)

Pages: 1 [2]

Author Topic: Help with save editing  (Read 29901 times)

MagicalTrevor

  • Ensign
  • *
  • Posts: 21
    • View Profile
Re: Help with save editing
« Reply #15 on: February 19, 2012, 07:20:40 AM »

I downloaded notepad, btw thanks for the nice free program link, and i realized i was using the bak file, not xml D:
i tried it again and now it works!
Woot thanks :)
Logged

Bobyochen

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: Help with save editing
« Reply #16 on: February 19, 2012, 11:16:01 AM »


Make extra sure you're editing the right value, because there's a -lot- of credit values in the xml.
Also, it's worth editing the xml with something like Notepad++: http://notepad-plus-plus.org/, since standard notepad doesn't do anything to the layout.

Also also, the OP had an error loading the save he had edited. I got this when editing using notepad, so he should try Notepad++ as well.

Actually i did use Notepad++ the first time i edited it and got the error

and i just looked at the file now and i found about 10-15 lines of code that are exactly like this:

<credits>
                    <value>0.0</value>
                  </credits>
                  <unlimitedStacks>false</unlimitedStacks>
                  <maxCapacity>X.0</maxCapacity>
                  <spaceUsed>X.0</spaceUsed>
                  <maxFuel>X.0</maxFuel>
                  <maxPersonnel>X.0</maxPersonnel>

(using X as place holders)

so idk which one to change to edit my credits
« Last Edit: February 19, 2012, 11:22:06 AM by Bobyochen »
Logged

Liberthas

  • Ensign
  • *
  • Posts: 17
    • View Profile
Re: Help with save editing
« Reply #17 on: February 19, 2012, 11:26:29 AM »



so idk which one to change to edit my credits

Load up the save, check how many credits you have there, and search for that value.
Logged

Kahabut

  • Lieutenant
  • **
  • Posts: 62
    • View Profile
Re: Help with save editing
« Reply #18 on: February 19, 2012, 12:59:00 PM »

I think it's important to note a few minor details real fast here. 

There are at least 2 "credits".  1 being the money you start with when you press new game.  2 being the money you have in the campaign mode. 

If you are trying to boost the starting credits, that's one thing.  If you have a save file and you want to change the amount of credits you have saved, that is something else entirely. 

To change your SAVED CREDITS, you need to create a new game (assuming you haven't), and then save it.  When you save it, note how many credits you have (EXACTLY).  Save and exit.  Open notepad and find your "saves" folder in the starfarer directory.  Open the XML that matches your character name, and press CTRL-F and type in the exact number of credits you had.  Scan through until you find this number.  Add a couple extra zeros, and save the file. Exit and load up starfarer.  You should be good to go.  Once you have done it successfully, you can go back and change the number to anything you like, whenever you like.
Logged

Patchumz

  • Ensign
  • *
  • Posts: 15
    • View Profile
Re: Help with save editing
« Reply #19 on: February 19, 2012, 01:44:55 PM »

I think it's important to note a few minor details real fast here. 

There are at least 2 "credits".  1 being the money you start with when you press new game.  2 being the money you have in the campaign mode. 

If you are trying to boost the starting credits, that's one thing.  If you have a save file and you want to change the amount of credits you have saved, that is something else entirely. 

To change your SAVED CREDITS, you need to create a new game (assuming you haven't), and then save it.  When you save it, note how many credits you have (EXACTLY).  Save and exit.  Open notepad and find your "saves" folder in the starfarer directory.  Open the XML that matches your character name, and press CTRL-F and type in the exact number of credits you had.  Scan through until you find this number.  Add a couple extra zeros, and save the file. Exit and load up starfarer.  You should be good to go.  Once you have done it successfully, you can go back and change the number to anything you like, whenever you like.
You don't have to save and exit, just save, refresh the file, edit the file, save the file, quickload your save, and it should be changed.
Logged

liq3

  • Ensign
  • *
  • Posts: 37
    • View Profile
Re: Help with save editing
« Reply #20 on: February 19, 2012, 03:03:36 PM »

It's just the first "credits" entry. I just search for it. Appears to be the only credits one that's non-zero too (guess the AI doesn't need money? ;p).

Looks like this.
<credits>
    <value>1357200.0</value>
</credits>
Logged
Pages: 1 [2]