Long story short I am working on a new PALETTE.DAT set for XCOM1/XCOM2 using Hex editing and Photoshop.
Can anyone explain to me PALETTE.DAT in more depth. On UFOPAEDIA wiki says 768 bytes is 1 palette but I found that is actually 778 and first color is always transparent.
Also seems palettes use 3 bytes instead of 4. How do I calculate what color am I dealing with from 3 bytes to 4?
Also I noticed some things are hardcoded for ex menus in XCOM1/XCOM2 use certain colors. Where is this menu color area and is it constant between the two games?
I mean essentially I am trying to make a palette for XCOM2 based on XCOM1 . Some areas of the hardcoded palette may not corespond. What areas are hardcoded?
See below for details
If palettes are like so
XCOM1 :
1 GEO
2 BASESCAPE
3 GRAPHS
4 UFOPEDIA
5 TACTICAL
XCOM2 :
1 GEO
2 BASESCAPE/UFOPEDIA
3 GRAPHS
What I am trying to do is create an universal palette for myself that has more reds/oranges in GEO hence a bit more universal and also able to function in both XCOM1 and XCOM2 modding.
My PALETTE.DAT :
1 modified XCOM1 GEO
2 XCOM1 BASESCAPE
3 XCOM1 GRAPH
4 XCOM1 BASESCAPE (XCOM2 uses #2 above for UFOPEDIA hence the duplicate trick)
5 XCOM1 TACTICAL (unused in XCOM2)
#4 and #2 being identical makes this palette compatible in both games.