sonicretro / SonLVL

SonLVL
http://info.sonicretro.org/SonLVL
55 stars 27 forks source link

SonLVL refuses to open up an edited level. #159

Open RepetitiveThinking opened 10 months ago

RepetitiveThinking commented 10 months ago

Program: SonLVL Build Date: 03/22/2023 18:17:11 OS Version: Microsoft Windows NT 6.2.9200.0 Log: Operating system: Microsoft Windows NT 6.2.9200.0 Opening INI file "C:\Users\newman\Desktop\s2disasm-master\SonLVL INI Files\SonLVL.ini"... Game type is S2. Opening INI file "C:\Users\newman\Desktop\s2disasm-master\SonLVL INI Files\SonLVL.ini"... Game type is S2. Loading Emerald Hill Zone Act 1... Loading 16x16 blocks from file "../mappings/16x16/EHZ.kos", using compression Kosinski... Loading 8x8 tiles from file "../art/kosinski/EHZ_HTZ.kos", using compression Kosinski... Loading 128x128 chunks from file "../mappings/128x128/EHZ_HTZ.kos", using compression Kosinski... Unable to read file "../collision/EHZ and HTZ primary 16x16 collision index.kos" with compression Kosinski: Loading layout from file "../level/layout/EHZ_1.kos", using compression Kosinski... Unable to read file "../level/layout/EHZ_1.kos" with compression Kosinski: Loading palette file "../art/palettes/SonicAndTails.bin"... Source: 0 Destination: 0 Length: 16 Loading palette file "../art/palettes/EHZ.bin"... Source: 0 Destination: 16 Length: 48 System.AggregateException: One or more errors occurred. ---> System.IO.IOException: An attempt was made to move the position before the beginning of the stream. at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc) at SonicRetro.KensSharp.Kosinski.DecodeInternal(Stream source, Stream destination, Int64& decompressedBytes) at SonicRetro.KensSharp.Kosinski.Decompress(Stream input, Stream output) at SonicRetro.KensSharp.Kosinski.Decompress(String sourceFilePath) at SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) in C:\Programs\SonLVL\SonLVLAPI\Compression.cs:line 51 at SonicRetro.SonLVL.API.LayoutFormatCombined.ReadLayout(String filename, CompressionType compression, LayoutData layout) in C:\Programs\SonLVL\SonLVLAPI\LayoutFormat.cs:line 52 at SonicRetro.SonLVL.API.LayoutFormatCombined.TryReadLayout(String filename, CompressionType compression, LayoutData layout) in C:\Programs\SonLVL\SonLVLAPI\LayoutFormat.cs:line 60 at SonicRetro.SonLVL.API.LevelData.LoadLevelLayout(String levelname) in C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:line 629 at SonicRetro.SonLVL.API.LevelData.<>cDisplayClass70_0.b__0() in C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:line 184 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout) at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions) at System.Threading.Tasks.Parallel.Invoke(Action[] actions) at SonicRetro.SonLVL.API.LevelData.LoadLevel(String levelname, Boolean loadGraphics) in C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:line 184 at SonicRetro.SonLVL.GUI.MainForm.backgroundLevelLoader_DoWork(Object sender, DoWorkEventArgs e) in C:\Programs\SonLVL\SonLVL\MainForm.cs:line 574 ---> (Inner Exception #0) System.IO.IOException: An attempt was made to move the position before the beginning of the stream. at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc) at SonicRetro.KensSharp.Kosinski.DecodeInternal(Stream source, Stream destination, Int64& decompressedBytes) at SonicRetro.KensSharp.Kosinski.Decompress(Stream input, Stream output) at SonicRetro.KensSharp.Kosinski.Decompress(String sourceFilePath) at SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) in C:\Programs\SonLVL\SonLVLAPI\Compression.cs:line 51 at SonicRetro.SonLVL.API.LayoutFormatCombined.ReadLayout(String filename, CompressionType compression, LayoutData layout) in C:\Programs\SonLVL\SonLVLAPI\LayoutFormat.cs:line 52 at SonicRetro.SonLVL.API.LayoutFormatCombined.TryReadLayout(String filename, CompressionType compression, LayoutData layout) in C:\Programs\SonLVL\SonLVLAPI\LayoutFormat.cs:line 60 at SonicRetro.SonLVL.API.LevelData.LoadLevelLayout(String levelname) in C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:line 629 at SonicRetro.SonLVL.API.LevelData.<>cDisplayClass70_0.b__0() in C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:line 184 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---

---> (Inner Exception #1) System.IO.IOException: An attempt was made to move the position before the beginning of the stream. at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc) at SonicRetro.KensSharp.Kosinski.DecodeInternal(Stream source, Stream destination, Int64& decompressedBytes) at SonicRetro.KensSharp.Kosinski.Decompress(Stream input, Stream output) at SonicRetro.KensSharp.Kosinski.Decompress(String sourceFilePath) at SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) in C:\Programs\SonLVL\SonLVLAPI\Compression.cs:line 51 at SonicRetro.SonLVL.API.LevelData.LoadLevelColInds() in C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:line 721 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---