Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonLVL refuses to open up an edited level. #159

Open
RepetitiveThinking opened this issue Oct 26, 2023 · 0 comments
Open

SonLVL refuses to open up an edited level. #159

RepetitiveThinking opened this issue Oct 26, 2023 · 0 comments

Comments

@RepetitiveThinking
Copy link

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.<>c__DisplayClass70_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.<>c__DisplayClass70_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()<---

@RepetitiveThinking RepetitiveThinking changed the title SonLVL refuses to open up an edited file. SonLVL refuses to open up an edited level. Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant