11 March 2016 - Forum Rules
Started by Joshua, February 03, 2014, 08:44:09 PM
Quote from: CUE on February 04, 2014, 03:11:24 AMThat seems like a simple LZSS compression starting @ offset 9
Quote from: esperknight on February 06, 2014, 09:46:34 PMI'll tell you right now this is not a simple LZSS compression Falcom are the devils! Overall, yes it is LZSS but they do some tricky stuff depending on certain flags and such. I actually have a working recompressor that'll I'll gladly share : http://www.mediafire.com/view/iboe6if362ik1gi/falcom_compress.cpp This is geared towards Xanadu 2 for PCE but they haven't changed there compression scheme at all since then (I can verify this by using my decompressor I wrote on a certain PSP game that came out not to long ago by them This is the decompressor here : http://www.mediafire.com/view/v0xkd9jhb6yzaxx/x2_data_uncomp.cpp This works as well on all of them too (this has been tested on multiple Falcom games for PC and the one PSP although geared towards Xanadu 2 PCE as well. Be warned my uncomp code sucks as I wrote it a LONG time ago when I was still learning so yeah.... my compression code is more recent so much better (although still messy of course... too lazy to clean it up )The only real difference between Xanadu 2 if I call right was that it started with a leading 0 or some such but otherwise the compression is the same overall.Can I ask what game you are looking at? I've looked at few on PC, Dinosaur Resurrection and some others (I forget...) so I may be able to help.Edit : Thinking more on it, I think Dinosaur Ressurection used a normal LZSS scheme for decompression while the others did not... I recall just hacking out the header from it and feeding it into the original lzss decompressor (http://dev.gameres.com/Program/Other/LZSS.C) and it looking good. The others on the other hand used the custom one they wrote. I could be wrong as my memory is hazy for the PC ones I looked at as it's been quite a while.Edit: Eiyū Densetsu III is the one I looked at a while ago that used it and the PSP game as well (not Trails in the Sky )
Quote from: Joshua on February 07, 2014, 11:35:26 PMEdit: Sooo... I decided to take a look in IDA again and I was scrolling down the list of functions and came across a function named "decomp_". I'm not sure what else that could be, other than the decompression routine. I'm gonna say I was tired and that's my excuse for not seeing it the last time that I looked. lol
Page created in 0.084 seconds with 20 queries.