Map Editor crash

Crash Maps & Map Editor Saves & Loading
Gadg8eer [github] · 1 year ago

Issue description

I'm not sure what happened but the game just ate my custom map file.

The game failed to initialize. Please file a bug report if this issue persists.

System.NullReferenceException: Object reference not set to an instance of an object
  at Mafi.Base.Terrain.FeatureGenerators.PolygonSurfaceFeatureGenerator.get_Name () [0x00010]  
  at Mafi.Base.Terrain.FeatureGenerators.PolygonSurfaceFeatureGenerator.tryInitialize (Mafi.IResolver resolver) [0x0001d]  
  at Mafi.Base.Terrain.FeatureGenerators.PolygonSurfaceFeatureGenerator.Initialize (Mafi.Core.Terrain.Generation.Chunk64Area generatedArea, Mafi.RelTile2i terrainSize, System.Int32 initialMapCreationSaveVersion, Mafi.IResolver resolver, Mafi.Core.Terrain.Generation.ITerrainExtraDataRegistrator extraDataReg) [0x00017]  
  at Mafi.Core.Terrain.Generation.TerrainGeneratorV2+<GenerateTerrainFeaturesTimeSliced>d__33.MoveNext () [0x00245]  
  at Mafi.Core.Terrain.Generation.TerrainGeneratorV2+<GenerateTerrainTimeSliced>d__19.MoveNext () [0x0011b]  
  at Mafi.Core.Terrain.TerrainManager+<generateTerrainV2>d__242.MoveNext () [0x00710]  
  at Mafi.Core.GameLoop.GameLoopEvents+<InvokeNewGameCreated>d__63.MoveNext () [0x0009f]  
  at Mafi.Core.GameLoop.GameRunner+<Initialize>d__112.MoveNext () [0x00118]  
  at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00127]  
  at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x0040a]  
  at Mafi.Unity.MapEditor.MapEditorScene+<loadMap>d__15.MoveNext () [0x00399]  
  at Mafi.Unity.MapEditor.MapEditorScene+<Initialize>d__12.MoveNext () [0x000cb]  
  at Mafi.Unity.Main+<unloadAndStartNewScene>d__89.MoveNext () [0x000fc]  
  at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

Reproduction steps

No clue how to reproduce it. I was using the editor, that's it. Something weird happened where all of the map polygon markers disappeared, and then I tried to save and load but the file is unloadable.

Game version and build number

v0.7.6a b466

Operating system

Windows

Captain Filip Captain Filip · 1 year ago

Would you still have the unloadable file for us to inspect?

Gadg8eer [github] · 1 year ago

Would you still have the unloadable file for us to inspect?

Sadly, no. The save was corrupted so I just deleted it and then posted the bug report, not realizing it could have been useful. Apologies.

Gadg8eer [github] · 1 year ago

Sadly, no. Since the file was corrupted, I ragequit and rage-deleted the file. I only realized it could be useful when you mentioned it.

Aug 18, 2025, 6:25 p.m. by @.***:

MaFi-Games> left a comment > (MaFi-Games/Captain-of-Industry-issues#2099) Map Editor crash

Would you still have the unloadable file for us to inspect?

—
Reply to this email directly, > view it on GitHub Map Editor crash> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/APLWURHEUA6TDPPUYVIDWJT3OJVILAVCNFSM6AAAAACA3MYK3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJYHAYDMMBVHA> .
You are receiving this because you authored the thread.> Message ID: > <MaFi-Games/Captain-of-Industry-issues/issues/2099/3198806058> @> github> .> com>

18 Showing 1–4 of 4