-
Notifications
You must be signed in to change notification settings - Fork 15
Description
tl;dr
I think something changed when Hades 2 went into full release a couple days ago because going through the process as outlined in the readme doesn't work. Details below...
Details
I started by extracting with this command:
deppth.exe ex .\Hecate.pkgI made no changes to the images as I wanted to see if I could just go through the process. I tried packaging up with this:
deppth.exe pk -s Hecate -t Hecate_new.pkgIt fails with this error:
OSError: cannot write more than 33554432 bytes at onceWhen it fails with that error, I noticed the buffer it's trying to write is almost exactly 64 MB (instead of the 32 MB requirement from the error message). Just for fun I tried commenting out the check:
# deppth/sggpio.py:467
if len(b) > CHUNK_SIZE:
raise OSError(f'cannot write more than {CHUNK_SIZE} bytes at once')And it finished, but the resulting file was double the size of the original. It doesn't work with the game and deppth can't decompress it. It reports this error:
File "C:\path\deppth\deppth\compression.py", line 181, in decompress
return lz4.block.decompress(chunk, uncompressed_size=chunk_size).ljust(chunk_size, b'\x00')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 5161997At this point I'm not sure what else to do. I stepped through the code as much as I could, but I'm not an expert in this area and I'm not sure where things are going wrong. Nothing stood out as wrong, and I can only guess something changed with the Hades 2 release. With that said, I don't know where to go to see what changes they would have made that would play a part here. Any ideas on what I could try next?