Tiberian Sun and Red Alert 2 map PreviewPacks | djshotglass | 01:14 18-03-2007 | | |
I've asked about this before but never did figure it out
( ?a=26;mid=14501 )
I have been trying to extract the PreviewPack from Tiberian Sun and Red Alert 2 maps and dump it to a PNG.
So far I have extracted the PreviewPack, decoded it (base64 decde) and haven't been able to figure out what format of image it is, or what decoding I need to do next. Ideas?
I've read over pretty much everything on http://xhp.xwis.net/documents/, nothings jumping out at me there. Olaf: you said it was raw rgb image data (24bit) what did you mean, btye 1 of the file is how much red first pixel is, second byte is how much green first pixel is, third is how much blue, girth is the read of second pixel etc? How do you calculate the images X and Y? I have also been reading your code in the trunk and can't seem to find what I need to do this, your XCC Mixter shows a preivew of the map I belive, as PNG to! Please advise.