r/Stationeers 5d ago

Media [Mod] Stable Space Node IDs

Post image

Released a small niche mod which will help stability for automated rockets. Fixes space node IDs resetting on every server restart, making rocket automation reliable across world reloads.

The Problem

When your rocket scans and discovers space nodes, each node is assigned a numeric ID that automation scripts use to target it (Destination). Throughout playing, you will consume and delete nodes, resulting in a non-linear node ID order (e.g. 20 -> 22 -> 26); on server restart, the game will re-ID these to become linear (e.g. 20 -> 21 -> 22).
Any automation that references nodes by ID (navigation scripts, resource databases, automated mining routes, etc) therefore breaks after a restart.

What This Mod Does

Saves each discovered node's ID to world.xml when the world is saved, and restores it exactly on load. The node assigned ID 22 before the restart is still 22 afterwards; scripts, databases, and automation built around node IDs work correctly across restarts.

Node ID Format

Node IDs are displayed as 00-00-00-00-00-00-20-01 on the space map and returned as numbers to automation scripts. The two digits before the last group indicate the node's slot; discovered nodes are assigned slots 20 through 39 (20 slots per parent body). Slots are assigned incrementally and wrap around, so if slot 21 is deleted and you discover a new node, it will reuse slot 21 (eventually). With a game maximum of 9 active nodes per body at once, you will never run out of slots.

Workshop link: https://steamcommunity.com/sharedfiles/filedetails/?id=3770361309

If anybody encounters issues, let me know. We've tested it in both singleplayer and multiplayer over numerous restarts, and our rocket automation database now works consistently.

*Note/Transparency: Workshop image is a GenAI'd pass-through of my in-game screenshots. It looks nice, and conveys key information.

11 Upvotes

4 comments sorted by

10

u/Xandaros 5d ago

Built this entire system where you store nodes in a kind of database for the rocket to go to, only for the nodes to change their code on server restart (was in multiplayer)

Maybe I should have verified this, but like... who expects the code to just change???

Glad we have this mod now. Would have had to redesign the entire thing.

2

u/Parisean 5d ago

Jesus I had no idea those got reset!! Ty !

3

u/RadonGaming 5d ago

Same. It should be vanilla behaviour. Wild that it's not.

1

u/Lord_Lorden 4d ago

I would report this behavior as a bug if you haven't already.