OwendB1 / SE-Ship_Class_System

Blue's SE Ship Class Mod
2 stars 1 forks source link

crash when starting a new scenario that was used with previous versions of the mod #20

Closed skiittz closed 1 week ago

skiittz commented 1 week ago

create new world, empty system scenario, with this mod added. Level will not load, crashes due to config file mismatch.

I am running into a similar issue with one of my mods, i believe keen snuck this in recently....the config file is getting cached in the scenario storage folder during initial startup, instead of the specific save folder.

config located at \steamapps\common\SpaceEngineers\Content\CustomWorlds\\Storage\3193738565.sbm_ShipClassSystem

Deleting the config file in the scenario folder fixes the issue.

Error: Error during loading session:System.Exception: Config version is outdated, crashing now! at ShipClassSystem.ModSessionManager.LoadData() at Sandbox.Game.World.MySession.LoadComponent(MySessionComponentBase component) at Sandbox.Game.World.MySession.LoadDataComponents() at Sandbox.Game.World.MySession.PrepareBaseSession(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector) at Sandbox.Game.World.MySession.Load(String sessionPath, MyObjectBuilder_Checkpoint checkpoint, UInt64 checkpointSizeInBytes, Boolean saveLastStates, Boolean allowXml) 2024-07-05 22:39:04.786 - Thread: 1 -> ERROR: Loading screen failed 2024-07-05 22:39:04.786 - Thread: 1 -> Exception occurred: System.Exception: Config version is outdated, crashing now! at ShipClassSystem.ModSessionManager.LoadData() at Sandbox.Game.World.MySession.LoadComponent(MySessionComponentBase component) at Sandbox.Game.World.MySession.LoadDataComponents() at Sandbox.Game.World.MySession.PrepareBaseSession(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector) at Sandbox.Game.World.MySession.Load(String sessionPath, MyObjectBuilder_Checkpoint checkpoint, UInt64 checkpointSizeInBytes, Boolean saveLastStates, Boolean allowXml) at Sandbox.Game.World.MySessionLoader.<>c__DisplayClass18_0.b__7() at System.DelegateExtensions.InvokeIfNotNull(Action handler) at Sandbox.Game.Gui.MyGuiScreenLoading.RunLoad()

Blues-Hailfire commented 1 week ago

This cache also exist in the local client currently making all players unable to log into servers! 🚨RED ALERT 🚨

Blues-Hailfire commented 1 week ago

Resolved