Skip to main content

Module model

Module model 

Source
Expand description

Typed Rust structs for deobfuscated NMS save file JSON.

Only the fields NMS Copilot uses are deserialized — unknown fields are silently ignored (no deny_unknown_fields).

Structs§

BaseTypeWrapper
Wrapper for {"PersistentBaseTypes": "HomePlanetBase"}.
CommonStateData
Shared state across game contexts (name, play time).
DiscoveryData
Discovery data sub-object.
DiscoveryDataV1
Discovery data version 1 container.
DiscoveryFlags
Discovery flags sub-object.
DiscoveryManagerData
Top-level discovery manager data.
DiscoveryStore
Store containing all discovery records.
GalacticAddressObject
Galactic address in expanded object form (used in PlayerStateData).
GameContext
A game context (Base or Expedition), containing mode and player state.
GameModeWrapper
Wrapper for {"PresetGameMode": "Normal"}.
OwnershipData
Ownership data for discoveries and bases.
PackedGalacticAddress
Galactic address in packed form — hex string "0x..." or bare integer.
PersistentPlayerBase
A player-owned base from PersistentPlayerBases.
PlayerStateData
Subset of PlayerStateData fields needed by NMS Copilot.
RawDiscoveryRecord
A raw discovery record from the save file.
SaveRoot
Top-level save file structure.
UniverseAddress
Universe address wrapping a galactic address with reality (galaxy) index.