Shop  •   Avatar  •   FAQ  •   Search  •   Memberlist  •   Usergroups  •   Profile  •   Log in to check private messages  •   Log in  •  Register 

Changing nations port colors
Post new topic   Reply to topic     Forum Index -> Customization & Modding
View previous topic :: View next topic  
Author Message
JPKenney
Powder Monkey
Posts: 11


392 Gold -

PostPosted: Wed Feb 02, 2022 7:53 pm    Post subject: Changing nations port colors Reply with quote

I'm trying to figure out how to change the colors of the Dutch Nation to a different color, specifically the orange port colors. How do I go about changing it/where are the necessary files located?
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 862



14635 Gold -

PostPosted: Wed Feb 02, 2022 10:59 pm    Post subject: Reply with quote

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? Laughing Make sure to back up your executable so you can play around with trial and error for this stuff.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Customization & Modding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group