Crashes beyond certain point in save

Fixed
DaemonEleuel [github] · 1 year ago

Issue description

Issue happended twice on the same session.
Saves started crashing -> rolled back to most recent save that would load -> saved again -> new save started crashing again
Full history of saves for the session can be provided (around 610 mb).
Error reported when loading the save:

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) [0x001cc]  
  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__88.MoveNext () [0x000fc]  
  at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]  

Hardware is intel, changes reported in https://steamcommunity.com/app/1594320/discussions/0/4362376451753243478/ are applied.
Issue is reproducible with session, map in use is https://hub.coigame.com/Map/Detail/53 (possible map complexity issue?).
No mods.

Reproduction steps

Load the attached save.
The game crashes

Game version and build number

v0.7.5c b455 Update 3

Operating system

Windows

Attachments

Save 2025-06-21, 17-58-48.save

Files not imported: Save 2025-06-21, 17-58-48.save

Captain Filip Captain Filip · 1 year ago

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

Closed as ✅ Fixed

6 Showing 1–2 of 2