ITE Media .cgf and .pal

Textures, recreate headers, conversions, algorithms and parsing of image files
JungleJockey
Posts: 3
Joined: Thu Jun 08, 2017 11:22 am

ITE Media .cgf and .pal

Post by JungleJockey »

This is an old graphics format developed by ITE Media, used in almost all Hugo series games from the 90s and ealry 00s.
What I know so far is that the .cgf file (file magic CGFF) contains images ("sprites") without palette information. The external .pal file (file magic CPAL254X3STD or CPAL256X3STD or other) needs to be used for the correct display of the images.

The most of the information that I found about the format is to be found here. The answer of this question looks like the definitive solution to the extraction of the images, but I've tried to apply the script myself, I've been debugging it, and it starts good if I look at the detected frame size for example, it does make sense, but it always results in an exception at some point, some numbers don't match up. The guy that answered the question provides a "rough" python script, and some quite detailed description of the format.

I don't have any knowledge in QuickBMS, that's why I'm asking you to help me with this one. I'm leaving you in attachments two example files that should be enough for a successful extraction.

If I can help you with any further details, please ask anything you need.

Thank you very much in advance!
JungleJockey
Posts: 3
Joined: Thu Jun 08, 2017 11:22 am

Re: ITE Media .cgf and .pal

Post by JungleJockey »

Anyone could help please? : )