jinxOAO / DSPmod_MoreMegaStructures

Add more megastructures.
7 stars 2 forks source link

Error loading saves after updating to 1.5.5 #40

Closed LunasAbacus closed 3 months ago

LunasAbacus commented 3 months ago

After updating to latest version I get this error on loading saves.

`There was an issue loading data of mod Gnimaerd.DSP.plugin.MoreMegaStructure. Your save game could be corrupted! Please report this to mod author.

Message: Unable to read beyond the end of the stream., Stacktrace: at System.IO.MemoryStream.InternalReadInt32 () [0x00034] in <2fa7a6a452ca43df998f07fd1486c0df>:0 at (wrapper remoting-invoke-with-check) System.IO.MemoryStream.InternalReadInt32() at System.IO.BinaryReader.ReadInt32 () [0x00015] in <2fa7a6a452ca43df998f07fd1486c0df>:0 at MoreMegaStructure.MoreMegaStructure.Import (System.IO.BinaryReader r) [0x0000d] in :0 at crecheng.DSPModSave.DSPModSavePlugin.CallImports (crecheng.DSPModSave.LoadOrder currentState) [0x000b3] in :0 `

jinxOAO commented 3 months ago

Sorry I didn't reproduce this error by loading saves with old MMS version. First of all, this update didn't changed the Import() method. The issue happened in [0x0000d] which is the first line that it read a integer from the save file. If even the first time it "read from stream" is beyond the end of the stream, that probably means the save file is broken or something went wrong before Import() phase. Send me the full log file if possible, I'll try to find if there is something wrong tomorrow.

LunasAbacus commented 3 months ago

I didn't realize there was a DSP patch today. This may be related to Galactic Scale mod being broken. I'll try again after that gets patched.

LunasAbacus commented 3 months ago

Updating to the latest Galactic Scale version fixed the loading issue. Sorry for the trouble!