Character Export File Format Question

Started by redspark, Tue 26/05/2009 12:00:34

Previous topic - Next topic

redspark

I know that the Character file that is exported from AGS 3.1+ is an XML format.  The only part I'm not sure of is how the sprite image data is stored.  What format is the binary data that is between the SpriteData elements?  Is that UUEncoding of some type?  If so, what algorithm and what is the format of the original source binary data?  PNG? RAW Binary?  or something else?  Thanks.

James

Pumaman

It is just Base64-encoded raw binary data, Width x Height x Bpp.

redspark

#2
That makes sense although I haven't seen Base 64 with output looking like that before.  So the binary data is something like:
red,green,blue,alpha, red,green,blue,alpha, red,green,blue,alpha, ... width, height, bpp
?  

Thanks.

Pumaman

Well, the format of the binary data depends on the colour depth, but for a 32-bit image with alpha channel then yes it will be

RGBARGBARGBARGBA...

or maybe

BGRABGRABGRABGRA...

I can't remember exactly which way round

redspark

Thanks.  I'll give that a shot to see what happens. :)

SMF spam blocked by CleanTalk