Planet Picker


Pick your individual starting planet.

Tweaks
2 hours ago
2.0
3.91K
Planets Environment

b [Resolved] server crash on multiplayer disconnect

6 months ago
(updated 6 months ago)

hello, I have experienced a hard crash on a dedicated server with this mod.

I believe it is related to interactions with the mod Blueprint Sandboxes by nothingtohide. I do not have any other mods in use which alter surfaces or player locations.

A player had left their Sandbox (which is a Surface in the game) and then disconnected from the server, and a moment later the game crashed and pointed towards Planet Picker:

2025-09-16T12:50:28.951495479Z 768884.734 Info AppManager.cpp:304: Saving finished
2025-09-16T12:50:58.461915151Z 768914.244 Script @__blueprint-sandboxes__/scripts/sandbox.lua:565: O2theC exiting last known Sandbox 1 to new Surface: vulcanus
2025-09-16T12:50:58.462061753Z 768914.245 Script @__blueprint-sandboxes__/scripts/sandbox.lua:447: Restoring Player Permissions: O2theC -> Default
2025-09-16T12:50:58.462129949Z 768914.245 Script @__blueprint-sandboxes__/scripts/research.lua:82: Locking hidden Recipes for: player
2025-09-16T12:51:10.541092850Z 768926.324 Script @__blueprint-sandboxes__/scripts/sandbox.lua:548: O2theC entered a Sandbox: bpsb-lab-p-O2theC
2025-09-16T12:51:10.541125783Z 768926.324 Script @__blueprint-sandboxes__/scripts/research.lua:58: Unlocking hidden Recipes for: player
2025-09-16T12:55:57.421972671Z 769213.205 Script @__blueprint-sandboxes__/scripts/sandbox.lua:565: O2theC exiting last known Sandbox 1 to new Surface: vulcanus
2025-09-16T12:55:57.422016536Z 769213.205 Script @__blueprint-sandboxes__/scripts/sandbox.lua:447: Restoring Player Permissions: O2theC -> Default
2025-09-16T12:55:57.422292406Z 769213.205 Script @__blueprint-sandboxes__/scripts/research.lua:82: Locking hidden Recipes for: player

2025-09-16T13:00:27.834651623Z 769483.617 Info AppManager.cpp:303: Saving to _autosave18 (non-blocking).
2025-09-16T13:00:27.933084934Z 769483.716 Info AsyncScenarioSaver.cpp:177: Saving process PID: 190555
2025-09-16T13:00:34.153653575Z 769489.936 Info ChildProcessAgent.cpp:61: Child 190555 exited with return value 0
2025-09-16T13:00:34.153720488Z 769489.936 Info AppManager.cpp:304: Saving finished

2025-09-16T13:03:45.611461543Z 769681.394 Info ServerMultiplayerManager.cpp:1086: Disconnect notification for peer (119)
2025-09-16T13:03:45.611501546Z 769681.394 Info ServerMultiplayerManager.cpp:978: updateTick(23987794) received stateChanged peerID(119) oldState(InGame) newState(DisconnectScheduled)
2025-09-16T13:03:45.611512909Z 2025-09-16 05:03:45 [LEAVE] O2theC left the game
2025-09-16T13:03:45.611698435Z 769681.394 Info ServerSynchronizer.cpp:613: nextHeartbeatSequenceNumber(46161362) removing peer(119).

2025-09-16T13:04:46.622681568Z 769742.405 Error MainLoop.cpp:1511: Exception at tick 23991454: The mod Planet picker (0.4.3) caused a non-recoverable error.
2025-09-16T13:04:46.622706832Z Please report this error to the mod author.
2025-09-16T13:04:46.622716832Z Error while running event planet-picker::on_player_changed_surface (ID 58)
2025-09-16T13:04:46.622721250Z __planet-picker__/script/planet-select.lua:187: bad argument #3 of 3 to '__index' (string expected, got nil)
2025-09-16T13:04:46.622725927Z stack traceback:
2025-09-16T13:04:46.622730391Z  [C]: in function '__index'
2025-09-16T13:04:46.622735031Z  __planet-picker__/script/planet-select.lua:187: in function <__planet-picker__/script/planet-select.lua:184>
2025-09-16T13:04:46.622739428Z 769742.405 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod Planet picker (0.4.3) caused a non-recoverable error.
2025-09-16T13:04:46.622743986Z Please report this error to the mod author.
2025-09-16T13:04:46.622765811Z Error while running event planet-picker::on_player_changed_surface (ID 58)
2025-09-16T13:04:46.622769103Z __planet-picker__/script/planet-select.lua:187: bad argument #3 of 3 to '__index' (string expected, got nil)
2025-09-16T13:04:46.622772418Z stack traceback:
2025-09-16T13:04:46.622775541Z  [C]: in function '__index'
2025-09-16T13:04:46.622778681Z  __planet-picker__/script/planet-select.lua:187: in function <__planet-picker__/script/planet-select.lua:184>"

2025-09-16T13:04:46.622782098Z 769742.405 Info ServerMultiplayerManager.cpp:808: updateTick(23991454) changing state from(InGame) to(Failed)
2025-09-16T13:04:46.627848927Z 769742.410 Quitting: multiplayer error.
a day ago

I've done some testing with just BPSB and PP with multiple people and setups to attempt to reproduce this but have been unsuccessful. Made a few changes that should prevent it from happening either way, but it's possible that an update Blueprint Sandboxes has already resolved this incompatibility.

Thanks for the log, the code this touched should be slightly less brittle now. If it happens again I'll keep digging but for now this looks resolved.

New response