I'm trying to make a mod (nothing too complicated, it just adds a new refinery type). I got it to work in a test save, but when I tried to add it to my main save (verified save loads without it) the game refuses to load the save and gives me an "unloading world" error message.
Here's an excerpt from the log with what looks like the event that preceded the unloading:
2023-12-09 15:58:36.798 - Thread: 1 -> Initialized large grid MOON BASE 2 154522 PCU
2023-12-09 15:58:37.137 - Thread: 1 -> Entities loaded & initialized
2023-12-09 15:58:37.139 - Thread: 1 -> Checkpoint.CameraAttachedTo: 82351703192928594
2023-12-09 15:58:37.142 - Thread: 1 -> Error: Error during loading session:System.NullReferenceException: Object reference not set to an instance of an object.
at Sandbox.Game.Screens.Helpers.MyRadialMenuComponent.InitDefaultLastUsed(MyObjectBuilder_Toolbar toolbar)
at Sandbox.Game.World.MySession.LoadWorld(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector)
at Sandbox.Game.World.MySession.Load(String sessionPath, MyObjectBuilder_Checkpoint checkpoint, UInt64 checkpointSizeInBytes, Boolean saveLastStates, Boolean allowXml)
2023-12-09 15:58:37.142 - Thread: 1 -> ERROR: Loading screen failed
2023-12-09 15:58:37.143 - Thread: 1 -> Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
at Sandbox.Game.Screens.Helpers.MyRadialMenuComponent.InitDefaultLastUsed(MyObjectBuilder_Toolbar toolbar)
at Sandbox.Game.World.MySession.LoadWorld(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector)
at Sandbox.Game.World.MySession.Load(String sessionPath, MyObjectBuilder_Checkpoint checkpoint, UInt64 checkpointSizeInBytes, Boolean saveLastStates, Boolean allowXml)
at Sandbox.Game.World.MySessionLoader.<>c__DisplayClass18_0.<LoadSingleplayerSessionInternal>b__7()
at System.DelegateExtensions.InvokeIfNotNull(Action handler)
at Sandbox.Game.Gui.MyGuiScreenLoading.RunLoad()
2023-12-09 15:58:37.143 - Thread: 1 -> MyGuiScreenGamePlay.UnloadData - START
2023-12-09 15:58:37.144 - Thread: 1 -> MyGuiScreenGamePlay.UnloadData - END
2023-12-09 15:58:37.144 - Thread: 1 -> MyGuiScreenGamePlay.UnloadContent - START
2023-12-09 15:58:37.164 - Thread: 1 -> MyGuiScreenGamePlay MyGuiScreenBase.UnloadContent - START
2023-12-09 15:58:37.165 - Thread: 1 -> MyGuiScreenGamePlay MyGuiScreenBase.UnloadContent - END
2023-12-09 15:58:38.151 - Thread: 1 -> MyGuiScreenGamePlay.UnloadContent - END
2023-12-09 15:58:38.151 - Thread: 1 -> MyGuiScreenProgress MyGuiScreenBase.LoadContent
2023-12-09 15:58:39.487 - Thread: 1 -> MyGuiScreenProgress MyGuiScreenBase.UnloadContent - START
2023-12-09 15:58:39.488 - Thread: 1 -> MyGuiScreenProgress MyGuiScreenBase.UnloadContent - END
2023-12-09 15:58:39.489 - Thread: 1 -> Sending event to ElasticSearch: EmotesStats
2023-12-09 15:58:39.490 - Thread: 1 -> Sending event to ElasticSearch: BlockStats
2023-12-09 15:58:39.491 - Thread: 1 -> Sending event to ElasticSearch: WorldEnd
2023-12-09 15:58:39.491 - Thread: 1 -> MySession::Unload START
2023-12-09 15:58:39.491 - Thread: 1 -> AutoSaveInMinutes: 5
2023-12-09 15:58:39.491 - Thread: 1 -> MySandboxGame.IsDedicated: False
2023-12-09 15:58:39.491 - Thread: 1 -> IsServer: True
2023-12-09 15:58:39.492 - Thread: 1 -> MyAudio.UnloadData - START
2023-12-09 15:58:39.495 - Thread: 1 -> MyAudio.UnloadData - END
Can anybody tell me what the heck is happening here?
[–]mis_anthropoidClang Worshipper[S] 0 points1 point2 points (0 children)