Newbie needs help making sense of Ogre Battle LZSS tool

Started by rdrouyn, March 27, 2023, 06:46:27 AM

Previous topic - Next topic

rdrouyn

Hello,

I'm interested in extracting and modifying some of the assets in the Ogre Battle rom for my hack. I figured that the LZSS utility would be perfect for my task since it allows to decompress the assets for editing and recompress them afterwards and replace them.

The issue I've run into is that I'm not sure how to properly format the compressed data. The decompression algorithm expects a .lz file containing the compressed data for the asset. I have the mapping of the tarot card assets, so I assumed I was supposed to go into the rom using a hex editor, look up the data at the correct offset and paste it into notepad and save it as a .lz file. Afterwards I run the decompression tool to generate the uncompressed .bin file. Is that the correct way of using this tool? Is there a way to test or confirm the validity of the .lz file?

The next issue is once I have the .bin file, how would I go about previewing or editing this asset? Is there another tool than can interpret .bin files as graphical assets? How would it distinguish between graphical and audio assets extracted with the compression tool?

This might be too complicated for my skill level, but I figured I ask before giving up. It might be something very simple for an experienced person.