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); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Modifying saved games  (Read 2894 times)

sogriffin

  • Ensign
  • *
  • Posts: 22
    • View Profile
Modifying saved games
« on: February 18, 2020, 04:11:25 PM »

Just curious, is it possible to modifying your saved games?  Was formerly a JAVA programmer and it's a little exciting to see that is wonderful game has been written in JAVA.
Logged

Hiruma Kai

  • Admiral
  • *****
  • Posts: 878
    • View Profile
Re: Modifying saved games
« Reply #1 on: February 19, 2020, 05:02:45 PM »

The answer is yes.  The saves are just human readable text files, and I believe more specifically JSON files.  I've modified them by hand on occasion for testing.  Its quite possible to break them, so I suggest making a backup before starting.

More automated scripts might exist or could be written presumably for larger scale modifications or data mining.
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2846
  • Your Friendly Forum Friend
    • View Profile
Re: Modifying saved games
« Reply #2 on: February 19, 2020, 05:08:44 PM »

Are you talking about adding mods to the game mid save or just editing the save? And if you are editing the save, what for?
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

sogriffin

  • Ensign
  • *
  • Posts: 22
    • View Profile
Re: Modifying saved games
« Reply #3 on: February 19, 2020, 06:56:38 PM »

I was talking about the actual saved game file and I really don't have a reason except that I was curious. ::)
Logged

DDwarrirofire

  • Lieutenant
  • **
  • Posts: 68
    • View Profile
Re: Modifying saved games
« Reply #4 on: February 20, 2020, 07:50:57 AM »

Modified planets in my save before.  Nearly broke the file when I realized I made a back up folder without actually making a back up file.
Logged

Serenitis

  • Admiral
  • *****
  • Posts: 1458
    • View Profile
Re: Modifying saved games
« Reply #5 on: February 21, 2020, 07:57:17 AM »

Saves are just XML, and are formated fairly sensibly so it's not too hard to find things. Especially if you're using an editor that knows how to highlight markups. (Like n++)

I edit saves semi-regularly to give my ships names that otherwise wouldn't fit in the box.

Logged

sogriffin

  • Ensign
  • *
  • Posts: 22
    • View Profile
Re: Modifying saved games
« Reply #6 on: February 21, 2020, 08:36:43 AM »

Oh wow they're XML, then they are most assuredly editable.  Thanks everyone for your responses.
Logged

TimeDiver

  • Captain
  • ****
  • Posts: 345
    • View Profile
Re: Modifying saved games
« Reply #7 on: February 21, 2020, 11:05:18 AM »

Oh wow they're XML, then they are most assuredly editable.  Thanks everyone for your responses.
I would recommend firstobject XML Editor, despite being old as dirt.

I initially used Notepad++ to edit my saves, but as my campaign.xml fils(s) exceeded 30+ MB, it became nigh-unusable.
Logged

Brasidas

  • Ensign
  • *
  • Posts: 6
    • View Profile
Re: Modifying saved games
« Reply #8 on: February 23, 2020, 07:45:17 AM »

Can I respec my character by editing my save? I was unaware that the level cap was 50 and would've focused differently if I knew that...
Logged

DDwarrirofire

  • Lieutenant
  • **
  • Posts: 68
    • View Profile
Re: Modifying saved games
« Reply #9 on: February 23, 2020, 09:42:10 AM »

Can I respec my character by editing my save? I was unaware that the level cap was 50 and would've focused differently if I knew that...

May be easier to just raise the lvl cap

"C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\data\config"

Open the Settings file and change "playerMaxLevel":50,


The needed experience after this gets pretty crazy so you would also want to change "xpGainMult":#,  to whatever you find necessary



The skilled up mod, does this also but in a much smoother way and you don't have to figure out the balance yourself. 
https://fractalsoftworks.com/forum/index.php?topic=14293.0
Otherwise, I think the command console mod has respec command if you're the type who enjoys forcing limits on a character
https://fractalsoftworks.com/forum/index.php?topic=4106.0

Note: always make a copy of any file you edit, same for save game.
« Last Edit: February 23, 2020, 09:49:26 AM by DDwarrirofire »
Logged

Brasidas

  • Ensign
  • *
  • Posts: 6
    • View Profile
Re: Modifying saved games
« Reply #10 on: February 23, 2020, 12:45:06 PM »

Very helpful, thanks :)
Logged

intrinsic_parity

  • Admiral
  • *****
  • Posts: 3071
    • View Profile
Re: Modifying saved games
« Reply #11 on: February 23, 2020, 01:07:46 PM »

I'm pretty sure the console command mod adds the ability to respec skills with the console.

edit: just saw DDwarrirofire already mentioned that, my bad
« Last Edit: February 23, 2020, 05:11:04 PM by intrinsic_parity »
Logged