vn-tools / arc_unpacker

CLI tool for extracting images and sounds from visual novels.
GNU General Public License v3.0
562 stars 83 forks source link

about lzss decompress #112

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi rr-, Thank you giving us a wonderful tool! Here I want to write a simple tool for silky akb<->png conversion, after reading the code akb_image_decoder.cc, I found just compile part of arc_unpacker as sdk is not a simple way, so I found LZSS.C which written by Haruhiko Okumura to do the decompressing. But the picture I got is something wrong. a You see the bottom part of the picture is weird. So I think maybe the decompress step is something wrong ? Maybe your lzss code is a little different ? The LZSS code I used can found here: https://github.com/Neroldy/chinesize/blob/master/Jlist/LZSS.C Thanks~

ghost commented 7 years ago

@rr- Problem solved! I compile the part of libau and use its lzss, and then everything is fine. So maybe the lzss code I used before has something different. Thanks~