Zoids Tactics .rwi to .png request
Posted: Wed Aug 24, 2016 3:32 pm
I was looking through the PS2 game Zoids Tactics and found that all the images are stored as .rwi files, which seems to be a very rare extension. I couldn't find any useful information through Google, so I had a look at the files in a hex editor and I now have a pretty solid idea of how they work...
The first 0x28 bytes are the header, made up of 10 little-endian ints. The second int is the number of bytes in the file minus 0x0C, the seventh and tenth ints are the image's width in pixels, and the eighth int is its height. I'm not sure what the other six ints represent, but they were the same in every image I checked.
The last 0x400 bytes are the palette, made up of 256 big-endian RGBA values (or little-endian ABGR values, if you prefer). Between the header and the palette, every byte represents a pixel, running in the normal left-to-right top-to-bottom order and pointing to a location on the palette. All simple enough for a novice like me to figure out
Problem is, I don't have the programming knowledge to be able to convert the files into something usable (preferably .png). If somebody could create a converter for me, or point me to any that already exist, it would be much appreciated.
The first 0x28 bytes are the header, made up of 10 little-endian ints. The second int is the number of bytes in the file minus 0x0C, the seventh and tenth ints are the image's width in pixels, and the eighth int is its height. I'm not sure what the other six ints represent, but they were the same in every image I checked.
The last 0x400 bytes are the palette, made up of 256 big-endian RGBA values (or little-endian ABGR values, if you prefer). Between the header and the palette, every byte represents a pixel, running in the normal left-to-right top-to-bottom order and pointing to a location on the palette. All simple enough for a novice like me to figure out
Problem is, I don't have the programming knowledge to be able to convert the files into something usable (preferably .png). If somebody could create a converter for me, or point me to any that already exist, it would be much appreciated.