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: Editing a save file to change Hazard Rating  (Read 3290 times)

PaxMagellanic

  • Ensign
  • *
  • Posts: 2
    • View Profile
Editing a save file to change Hazard Rating
« on: January 12, 2020, 05:19:15 AM »

Hey!
I've just recently came back to Starsector from when there was no economy and just one sector.

My issues is that I've been trying to find a colonization planet with Farms on it, the only I have is rated at 175% Hazard rating. I'd like to be able to change that.

I went through the Campaign.xml file and found this at:

Code
<hazard z="789" b="0.0" m="1.75" nR="false">
<fMs z="790" s="haz_base" d="Base value" v="1.0"></fMs>
<fMs z="791" s="extreme_weather_a0eb33b5-58e8-4f4b-a4e9-c7a97f884556" d="Extreme Weather" v="0.25"></fMs>
<fMs z="792" s="hot_130c7efe-48b9-45c2-9631-a503abcbf603" d="Hot" v="0.25"></fMs>
<fMs z="793" s="habitable_bbeab87a-3d32-43f2-a585-8ef492fdbe75" d="Habitable" v="-0.25"></fMs>
<fMs z="794" s="high_gravity_42a45dd8-532b-4fbc-9779-11e3bc97ca44" d="High Gravity" v="0.5"></fMs>
</hazard>

Changing either the m="1.75" to a different number doesn't seem to do anything. Same effect happens when removing any of the hazard from the above list; or changing their values.

Is there any to modify these values as such they are reflected in the game?

The values I have modified

Code
<hazard z="789" b="0.0" m="1.25" nR="false">
<fMs z="790" s="haz_base" d="Base value" v="1.0"></fMs>
<fMs z="793" s="habitable_bbeab87a-3d32-43f2-a585-8ef492fdbe75" d="Habitable" v="-0.25"></fMs>
<fMs z="794" s="high_gravity_42a45dd8-532b-4fbc-9779-11e3bc97ca44" d="High Gravity" v="0.5"></fMs>
</hazard>
« Last Edit: January 12, 2020, 05:22:46 AM by PaxMagellanic »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4661
    • View Profile
    • GitHub profile
Re: Editing a save file to change Hazard Rating
« Reply #1 on: January 13, 2020, 03:47:37 AM »

Hazard rating is based entirely on the planet conditions present, you can't change it directly.

Console Commands mod has the AddCondition and RemoveCondition commands, so you can use that to take off hazard conditions (or just add farmland to an existing good planet).
Although hazard is really of minor importance in Starsector 0.9.1 for the most part anyway.
Logged

PaxMagellanic

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: Editing a save file to change Hazard Rating
« Reply #2 on: January 13, 2020, 09:28:09 AM »

Thank you so much for the reply! Been checking excitedly throughout the work day as well to see if someone has any ideas.

I'll grab the Console Commands mod and toy around with that. Thanks!
Logged

Rasip

  • Ensign
  • *
  • Posts: 32
    • View Profile
Re: Editing a save file to change Hazard Rating
« Reply #3 on: January 13, 2020, 10:06:08 AM »

You can change the conditions on a planet before colonizing it by editing your save file. I did so to remove Inimical Biosphere from the planet i later put my first colony on. Doing the same thing to remove extreme cold from my second planet after colonizing it had no effect.

There is a terraforming mod btw.
Logged