With some
help I was able to write a quickbms script that can extract the ar2 archives of Crimson Gem Saga. After some fiddling around with the extracted files I was able to convert them into a standard format. Id like to share with you how the images of the game are assembled in case somebody wants to get some cool sprites
After extracting an nr2 archive (kind of a sprites only archive) with the following script:
Code: Select all
# *.nr2 (iron archive) quickbms script
idstring "iron"
endian little
get FSNOHEADER long
getdstring FILENAME 0x40
set FILENAME unicode FILENAME
goto 0x358
for i = 1 to 9999
get ZSIZE long
SavePos OFFSET
clog i OFFSET ZSIZE 999999
math OFFSET + ZSIZE
goto OFFSET
next i
You get at least two files. The first file is some information for the game I guess, so that it knows how to animate the sprites and other info. All other files are images (sprites) with the following specifications: 8bit per pixel, littleendian, indexed color. The palette is NOT stored in one of the extracted files, its still in the nr2 archive starting at offset 0x58 with a size of 0x300 bytes. The palette is also littleendian and in BGR colour order with 3 bytes per colour.
Unfortunately I was not able to get information about the height/width of the images from the files I saw so far. Maybe its in the ELF or in another game archive. If anyone has a clue about this it would be nice to know.
To view and save the images I used
TileGGD. Its easy with it to change the size of the image till it shows a good result like this:
