View previous topic :: View next topic |
Author |
Message |
themodelcitizen
Gunner
Posts: 863
14640 Gold -
|
Posted: Thu Oct 14, 2021 5:22 am Post subject: |
|
|
Yeah I've thought about making Bantam and Batavia exist in different eras, and moving one of Samarang/Malang completely (Bali? Bengal?). The default game has city names pointing in different directions though, so its doable |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Thu Oct 14, 2021 5:29 am Post subject: |
|
|
Maybe in the City Data or something. Look at cities in the original game with different angles and maybe use data from that. |
|
Back to top |
|
|
themodelcitizen
Gunner
Posts: 863
14640 Gold -
|
Posted: Thu Oct 14, 2021 8:52 am Post subject: |
|
|
It's in maplabel.dta I think. I get lost trying to decipher it |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Thu Oct 14, 2021 2:24 pm Post subject: |
|
|
Sounds right. Must be something like that. Does any of the cities have different angles if you use the original in the East Indies? |
|
Back to top |
|
|
themodelcitizen
Gunner
Posts: 863
14640 Gold -
|
Posted: Thu Oct 14, 2021 4:56 pm Post subject: |
|
|
Ioilo is on the left, and Tidore as well, couldn't find any unique entries in their cityloc data though |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Fri Oct 15, 2021 12:11 am Post subject: |
|
|
I’d say map label. City loc is location of cities themselves not the text display on the map Has to be something like that. |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Fri Oct 15, 2021 12:22 am Post subject: |
|
|
I’d say map label. City loc is location of cities themselves not the text display on the map Has to be something like that. |
|
Back to top |
|
|
themodelcitizen
Gunner
Posts: 863
14640 Gold -
|
Posted: Fri Oct 15, 2021 1:44 am Post subject: |
|
|
Can you tell which entries in maplabel correspond to individual cities? |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Fri Oct 15, 2021 3:15 am Post subject: |
|
|
I haven’t taken a look at it. I’ve been working hard on my project and business as well . Is it laid out similar to the city loc but with different codes? If it is maybe you can look at the different angles on the of map take a note of which cities ha e different angles. Then note the kind of angles then use that data when creating the East Indies. One can be turned so it doesn’t collide with the other city name. If you can find a pattern then the first one is likely Antigua and you can move down the list but finding the pattern might not be easy. I wish you luck. |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Fri Oct 15, 2021 3:54 am Post subject: |
|
|
Might be some information buried deep here about dta. Files Jinglangsdo an that dude who created the trainer knew a lot about the game. |
|
Back to top |
|
|
corsair91
Sailing Master
Posts: 8185
206015 Gold -
|
Posted: Fri Oct 15, 2021 1:48 pm Post subject: |
|
|
Phalzyr did the PH-trainer |
|
Back to top |
|
|
themodelcitizen
Gunner
Posts: 863
14640 Gold -
|
Posted: Tue Oct 19, 2021 8:22 am Post subject: |
|
|
From here:
Quote: | maplabel.dta determines how the city labels are drawn onto the world map. 4264 bytes are organized as 1066 double words (4 byte signed integers with least significant byte first).
Text label section:
Header: 4 dw
Red, Green, Blue for the color of an unselected city label
Font selection (0,1,2)
Data section: 44 x 3 x 4 dw.
Data is listed per city in the usual ordering from Antigua to Villa Hermosa. First there are 44 dw for the zoomed out map, then the medium map, then the zoomed in map. The batches are x-offset, y-offset, font size, orientation
Gold/Hearts/Cannons icons section:
Header: 6 dw
The 5th dw has to be 0 or the flags disappear.
Data section: 44 x 3 x 4 dw
Then data is the same 44 x 3 x 4 dw giving the x-offset, y-offset, magnification, and orientation of the icons |
I'm trying to figure it out now but think I'm too tired, will have another look later |
|
Back to top |
|
|
themodelcitizen
Gunner
Posts: 863
14640 Gold -
|
Posted: Wed Oct 20, 2021 2:10 am Post subject: |
|
|
Pirate, remember which entries in the exe for each city were for wealth?
So for Antigua, it's:
A5 01 00 00 (x coordinate, although overridden by cityloc)
75 00 00 00 (y coordinate)
06 00 00 00 (not sure, 02 or 06 might be port but that's also affected by cityloc)
01 (country) 0C (??) 06 (??) 00 (city size)
02 00 00 00 (not sure)
50 00 00 00 (not sure)
00 00 00 00 (not sure)
11 01 00 00 (starting eras)
So for country, 00 is Spanish, 01 is English, etc. For city size, the biggest like Havana and Cartagena are 04. (Barbados is 02, which I think you've used before?)
What affects merchant wealth? Something in there affects supplies but I'm not sure if we can get to specific ones like goods, spices, etc. |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Wed Oct 20, 2021 2:41 am Post subject: |
|
|
Best I could tell it’s all in the middle after nationality. Population everything in it. Those numbers change a good bit. Best way to study that is use the the trainer then make a city rich double population etc then save the game. Open the saved game and search the first 8 bytes of the city string you saved they never change then compare to original. The part near the end before you get to eras does something I think but not sure what. All those numbers change in game except the first and last the eras. I haven’t cracked the code yet but I could make some mean cities. |
|
Back to top |
|
|
Pirate
Helmsman
Posts: 5589
109759 Gold -
|
Posted: Wed Oct 20, 2021 2:46 am Post subject: |
|
|
If the city has no port there will be a 80 in it and no 02 or 06. What those means I don’t know but I’ve seen them change to 07 in a saved game. Mostly the Spanish has that 02 but some French cities have as well. Dutch English are all 06. |
|
Back to top |
|
|
|