array out of range issue on loading of game.

Fixed
BakserBille [github] · 1 year ago

Issue description

game crashed. would seem like a potentiel save game corruption.
could be fixed by going 5 minutes back. (i will survive) :)
just thought this could be a problem for other people aswell :)

Crash log below line.


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) [0x00004]
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] :

Reproduction steps

load save game

Game version and build number

v0.7.7 b470

Operating system

Windows

Attachments

Image

BakserBille [github] · 1 year ago

Save 2025-07-20, 00-07-57.save

Files not imported: Save 2025-07-20, 00-07-57.save

BakserBille [github] · 1 year ago

could not add it as a direct save file here. so no malicious software involved :)

Captain Filip Captain Filip · 1 year ago

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

Closed as ✅ Fixed

7 Showing 1–5 of 5