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
- Start the game wait for home screen
- Click to continue saved game (or load any of the saved games)
- Wait for loading to complete
- 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