themodelcitizen
Gunner
Posts: 862
14635 Gold -
|
Posted: Wed Feb 02, 2022 10:59 pm Post subject: |
|
|
Gotta edit the Pirates.exe in a hex editor (I use HxD).
It's talked about here but AdamMil figured out the different nations' colours are at these offsets:
Spanish 64FD6
English 64FDD
French 64FE4
Dutch 64FEB
Jesuit 64FF2
Indian 64FF7
Pirate 64FFE
I think you can shortcut straight to a specific offset with ctrl+G (you can see on the left of each line the offset for the first entry in that line).
So, at 64FEB is our RGB entry for Holland, which is 18 76 FF.
Because the way the code works ("little-endian" or something according to the smarter folks on here), you have to swap it around when reading it from the executable, so when we convert it anywhere it will be FF 76 18.
This is still in hex, so you can convert it to decimal or just go straight to converting it to the RGB number here. You can see that FF7618 gives us an R/G/B of 255/118/24 after converting each of the three RGB entries to decimal - this RGB is the Dutch orange.
So to change a nation's colour, just do the process in reverse. Find the colour you want, convert RGB to hex, reverse the order, and plug it in over top of the old entry for Holland at 64FEB (18 76 FF).
Make sense? Make sure to back up your executable so you can play around with trial and error for this stuff. |
|