Hi, I have been trying to read the in-game icon images from FFXIV, but I cannot seem to find out how to read the pixels correctly, all my attempts this far have resulted in weird colored images, but the shape is right.
Leading bytes of a typical file:
Code: Select all
#0000-0010: 47 54 45 58-01 01 18 04-02 00 00 80-00 80 00 01 GTEX.... ........
#0000-0020: 00 00 00 18-00 00 00 40-00 00 00 00-00 00 20 00 .......@ ........
#0000-0030: 00 00 20 00-00 00 08 00-00 00 28 00-00 00 02 00 ........ ..(.....
#0000-0040: 00 00 2a 00-00 00 00 80-00 00 00 00-00 00 00 00 ..*..... ........
#0000-0050: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-0060: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-0070: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-0080: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-0090: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-00a0: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-00b0: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-00c0: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-00d0: 00 00 ff ff-ff ff ff ff-00 00 ff ff-ff ff ff ff ........ ........
#0000-00e0 to end in submitted file.
http://pastebin.com/KBzwvNtU <-- full file in hex.
Since I more or less suck at this kind of thing but tries anyway, I boldly ignored the header section, but I do think the following is more or less true:
int32@0x001E is widht
int32@0x0022 is height
int32@0x0026 is bytes per pixel, but I'm prob wrong here.
This is my work this far: RGBA is not listed, but tried and failed
http://roze.ridorana.se:8800/list2.html
(Work down atm)
Any help towards rendering with correct colors is appreciated.
//Regards
