einstein95 / dsdecmp

Automatically exported from code.google.com/p/dsdecmp
3 stars 0 forks source link

Problem with overlay #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version used : DSDecmp v5 alpha 2

Hi.

I have a problem with dsdecmp to decompress an overlay file.
I have a message that say there is no compression found in the overlay but I'm 
sure this file is compressed.

My command : DSDecmp overlay_0001.bin
The result : No suitable decompressor found for overlay_0001.bin.

When I debug the problem is here :
File : LZOvl.cs
Function : public override long Decompress(System.IO.Stream instream, long 
inLength, System.IO.Stream outstream)
Line : 328 - outbuffer[outbuffer.Length - 1 - currentOutSize] = next;

outbuffer.Length = 9249
currentOutSize = 9249

The result of the operation is -1

Original issue reported on code.google.com by bahabulle on 24 Apr 2012 at 8:38

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm... maybe it's just because I forgot the output name in the command line :p
No problem with : DSDecmp overlay_0001.bin ov.bin

The message is not very appropriated ;)

But there is a problem with overlay compression :)

At the end of the file you have the compressed size, the header size and the 
extra size.
But the compressed size is false. The header size must be added to this size.

Original comment by bahabulle on 27 Apr 2012 at 1:55