Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Saving System: Difference between revisions

From New Stars Wiki
No edit summary
No edit summary
Line 1: Line 1:
Save files are [https://yaml.org/ YAML-based] and are backed-up with Steam cloud. They also work cross-platform on Windows and Linux. Save files typically take up around 1-2MB in space.
Save files are [https://yaml.org/ YAML-based] and are backed-up with Steam cloud. They also work cross-platform on Windows and Linux. Save files typically take up around 1-2MB in space.


=== Save Locations ===
== Save Locations ==


==== Windows ====
==== Windows ====
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>


=== Save File ===
== Save File ==
 
Here is what part of an example save file looks like:<syntaxhighlight lang="yaml">
Here is what part of an example save file looks like:<syntaxhighlight lang="yaml">
GameManager:
GameManager:
Line 59: Line 60:
     ...
     ...
</syntaxhighlight>
</syntaxhighlight>
== Identifiers 101 ==
Some fields in save files implicitly contain integer values, such as [[Saving System#Planet Type|planet type]]. This does not mean that all numerical fields are, as some are floating points and represent are decimal numbers (e.g. '''HyperlaneDensity''').
== Technology Identifiers ==
(unimplemented)
=== Planet Identifiers ===
==== Planet Type ====
The type of a planet.
{| class="wikitable"
|+
!ID
!Type
|-
|0
|Barren
|-
|1
|Asteroid
|-
|2
|Giant
|-
|3
|World
|-
|4
|Broken
|}
==== Types of Climate ====
Note that only valid planet and climate combinations, defined on the [[planet]] page, will work.
{| class="wikitable"
|+
!ID
!Type
|-
|0
|'''Stormy'''
|-
|1
|'''Calm'''
|-
|2
|'''Ice'''
|-
|3
|'''Ocean'''
|-
|4
|'''Arid'''
|-
|5
|'''Toxic'''
|-
|6
|'''Molten'''
|-
|7
|'''Rocky'''
|-
|8
|Terrestrial
|-
|9
|'''Pristine'''
|-
|10
|'''Void'''
|}

Revision as of 16:40, 16 July 2024

Save files are YAML-based and are backed-up with Steam cloud. They also work cross-platform on Windows and Linux. Save files typically take up around 1-2MB in space.

Save Locations

Windows

C:\Users\[username]\AppData\LocalLow\NewStars\NewStars\[steam_user_id]\Saves

Linux (Ubuntu)

~/.config/unity3d/NewStars/NewStars/[steam_user_id]/Saves

Save File

Here is what part of an example save file looks like:

GameManager:
  PlayerPreset:
    EmpireName: Crusaders of Ales
    Origin: Stellar_Nomarchs
    Ethics:
    - Cooperative
    - Cooperative
    Species:
      Name: Ales
      ShipIndex: 0
      Type: Synthetic
      Preference: Arid
      _avatarName: Portrait_03_nbg
    _iconName: hades-symbol
    _primaryColor:
      r: 0.8941177
      g: 0.6078432
      b: 0.05882353
      a: 1
    _secondaryColor:
      r: 0
      g: 0
      b: 0
      a: 0
  MapSettings:
    AIClanCount: 6
    AIPlayerCount: 12
    Difficulty: Hard_Renegade
    Duration: Comet
    Size: Tiny
    EnabledVictories:
    - Time
    - Survival
    - Conquest
    - Ascension
    - Defeat
    HyperlaneDensity: 1
    WormholeDensity: 1
    Seed: -240221925
    GalaxyName: Milky Way
    MeetAllPlayers: false
    RevealAll: false
    ...

Identifiers 101

Some fields in save files implicitly contain integer values, such as planet type. This does not mean that all numerical fields are, as some are floating points and represent are decimal numbers (e.g. HyperlaneDensity).

Technology Identifiers

(unimplemented)

Planet Identifiers

Planet Type

The type of a planet.

ID Type
0 Barren
1 Asteroid
2 Giant
3 World
4 Broken

Types of Climate

Note that only valid planet and climate combinations, defined on the planet page, will work.

ID Type
0 Stormy
1 Calm
2 Ice
3 Ocean
4 Arid
5 Toxic
6 Molten
7 Rocky
8 Terrestrial
9 Pristine
10 Void