Oodle bindings for java?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Bleech Studios
Posts: 11
Joined: Tue May 19, 2020 10:15 am

Oodle bindings for java?

Post by Bleech Studios »

Ive had to convert a bms script into java, does anyone have the oodle bindings or ones that work? Whenever I try to decompress with oodle I just get no bytes returned and a size of 0 instead of the decompressed size

Code: Select all

//zsize=compressed, size=uncompressed
Oodle.oodleLib.OodleLZ_Decompress(
                     uint(sourcePointer), (long)zsize, uint(resultPointer),
                     (long)size, 0, 0,
                     0, null, 0,
                     null,null,null,
                     0, 3);


(Java does not have pointers, but I have the uint() makes it a pointer which comes from the oodle binding im current using which does not work)
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Oodle bindings for java?

Post by Ekey »

Bleech Studios
Posts: 11
Joined: Tue May 19, 2020 10:15 am

Re: Oodle bindings for java?

Post by Bleech Studios »

Sorry, forgot to say that I was using that library, I keep getting it saying
'Oodle decompression failed: 0'
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Oodle bindings for java?

Post by aluigi »

Be 100% sure if the compressed and decompressed size are exact or oodle will return errors.
Remember that the oodle data usually starts with 0x8c so double check if you are poiting to the compressed data.