Saved data won't load

Fixed
Chirp-21 [github] · 1 year ago

Issue description

Using Linux mint with Steam Proton 9.0-4 when trying to start a saved game it crashes when the loading bar is full and dumps an error note:
The game failed to initialize. Please file a bug report if this issue persists.

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Mafi.Unity.Terrain.TerrainRenderer.encodeSplatsData (Mafi.Collections.Pair`2[Mafi.Core.Products.TerrainMaterialSlimId,Mafi.Fix32][] data, System.Int32 count) [0x001b2]
at Mafi.Unity.Terrain.TerrainRenderer+TerrainRendererChunk.InitializeData () [0x00125]
at Mafi.Unity.Terrain.TerrainRenderer.initState () [0x00462]
at Mafi.Core.GameLoop.IGameLoopEventsExtensions+<makeEnumerator>d__3.MoveNext () [0x00013]
at Mafi.Core.GameLoop.GameLoopEvents+<InvokeRendererInitializeState>d__69.MoveNext () [0x0008a]
at Mafi.Core.GameLoop.GameRunner+<Initialize>d__112.MoveNext () [0x0038d]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00127]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__3.MoveNext () [0x00390]
at Mafi.Unity.GamePlayScene+<loadGame>d__23.MoveNext () [0x00297]
at Mafi.Unity.GamePlayScene+<Initialize>d__20.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__89.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

Any attempt to use any previous time stamped saved file in the folder will net the same result. However starting a fresh game works fine

25-03-09_02-53-autosave.save, 25-03-09_03-08-autosave.save, 25-03-09_03-23-autosave.save, 25-03-14_04-53-autosave.save, 25-03-14_05-08-autosave.save, 25-03-14_05-23-autosave.save, Save 2025-03-09, 00-48-50.save

Reproduction steps

  1. Start the game wait for home screen
  2. Click to continue saved game (or load any of the saved games)
  3. Wait for loading to complete
  4. Error - crashes back to Home screen displaying error message

Game version and build number

v.0.7.6a (466)

Operating system

Linux

Files not imported: 25-03-09_02-53-autosave.save, 25-03-09_03-08-autosave.save, 25-03-09_03-23-autosave.save, 25-03-14_04-53-autosave.save, 25-03-14_05-08-autosave.save, 25-03-14_05-23-autosave.save, Save 2025-03-09, 00-48-50.save

ReconJack85 [github] · 1 year ago

Same / similar issue on windows for me since the latest update. If I change the game to windowed mode from fullscreen in the options it doesn't happen as often. Also, I have to restart the computer and reopen the game on the first try to get the save file to load properly. Even then I still get random black screens.

Captain Filip Captain Filip · 1 year ago

This was fixed as part of v0.7.9. Thank you!

Closed as ✅ Fixed

6 Showing 1–3 of 3