Stunts Forum

Stunts - the Game => Stunts Reverse Engineering => Topic started by: KyLiE on April 21, 2021, 02:24:38 PM

Title: CGA and EGA Dashboard Palettes
Post by: KyLiE on April 21, 2021, 02:24:38 PM
Can anyone explain how the alternative CGA and EGA palettes in the dashboard files work?  I'm referring to the !cg0 and !eg0 resources in the STDA*.PVS and STDB*.PVS files.  The Stunts Wiki briefly mentions them (http://wiki.stunts.hu/index.php?title=Car_files#Dashboard_static_parts_.28stda.2A.pvs.29), however it doesn't provide any detailed information.

I'm currently working on a custom car and while hardly anyone will be using these graphic modes these days, I would still like to configure them correctly.  Any help on this would be greatly appreciated.  Thanks! :)
Title: Re: CGA and EGA Dashboard Palettes
Post by: Cas on April 21, 2021, 09:56:42 PM
I *think* that these two sections contain a list of 128 or 256 bytes that serve as a translation table. For each material (or colour), a CGA or EGA colour is given (0 to 4 for CGA and 0 to 15 for EGA). This is a hypothesis and I have not tested it. If somebody knows better, please add what you know!