Saved game and older saves of the same custom map fail to load

Fixed
kandlbindermanbert [github] · 1 year ago

Issue description

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) [0x0006c]
at Mafi.Unity.Terrain.TerrainRenderer+TerrainRendererChunk.InitializeData () [0x00125]
at Mafi.Unity.Terrain.TerrainRenderer.initState () [0x00573]
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__118.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__25.MoveNext () [0x00297]
at Mafi.Unity.GamePlayScene+<Initialize>d__22.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__89.MoveNext () [0x0011b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

Expand.save

Reproduction steps

I just saved the game as normal.
Wanted to continue today and am slapped with above error messages in a window for every save game i tried to load.
Vanilla map saves still work though.
I still hope there is a solution to this and you won't just not look at it at all just because the map was a mod.

Game version and build number

v0.7.8 b481

Operating system

Windows

Files not imported: Expand.save

Captain Filip Captain Filip · 1 year ago

It seems that map is relying on materials from mods that are not present. Is that possible?

kandlbindermanbert [github] · 1 year ago

Hello,
thanks for contacting me. No, actually the only thing i ever added to the
game was a customized map. The All-in-One Update 3.
The only thing i could imagine is that something was changed with a patch.
Otherwise there were no changes whatsoever to the
game files.

Anyway, i hope you can get something out of it to avoid future problems.
Would still be nice to continue that save file.

Thanks for your time.

Am So., 17. Aug. 2025 um 13:04 Uhr schrieb Captain of Industry <
@.***>:

MaFi-Games left a comment (MaFi-Games/Captain-of-Industry-issues#2174)
Saved game and older saves of the same custom map fail to load

It seems that map is relying on materials from mods that are not present.
Is that possible?

—
Reply to this email directly, view it on GitHub
Saved game and older saves of the same custom map fail to load,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BV2ZG373E5DM3PRJ3MYVFTL3OBOTRAVCNFSM6AAAAACDSMG67CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJUGMYTANRSHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Captain Filip Captain Filip · 1 year ago

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

Closed as ✅ Fixed

8 Showing 1–4 of 4