I'm working on a utility to read in some of the AGS files. I've started with the Sprite Cache. I downloaded the source code for the engine and tried to decipher the file format from that. However, I'm not sure it is correct. Would anyone be able to confirm that the follow is accurate and if not, what is wrong with it?
Code: AGS
Thanks.
<Header>
word version (6)
string SpriteFileSig (" Sprite File ")
byte Compressed (1 or 0)
long SpriteFileIDCheck
word Index of Last Sprite (Number of Sprites -1)
<Sprite Header>
word bpss (Bytes per Color)
word Sprite Width
word Sprite Height
<Compressed>
long Length
byte Array of bytes of Length in size
<Uncompressed>
byte Array of bytes of bpss * Sprite Width * Sprite Height (Could be word or long depending on Color depth)
Thanks.