| View previous topic :: View next topic |
| Author |
Message |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Fri Sep 18, 2020 10:36 pm Post subject: Paramaribo |
|
|
Okay, I'm going to try to do this.
As an Army colonel once told me when I was given a huge assignment, "Eat the elephant one bite at a time." With that in mind I'll try to do this in steps. The first steps will be be change Puerto Principe to Paramaribo, then make it a Dutch city, and make it seaport. If that works I'll see if I can relocate it to south of Trinidad.
Pirate has given advice on how to do most of the first steps (shown in the next post).
Last edited by fleetp on Sat Sep 19, 2020 1:57 am; edited 1 time in total |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Fri Sep 18, 2020 10:37 pm Post subject: |
|
|
In a separate thread pirate posted the following:
a5 01 00 00 75 00 00 00 06 00 00 00 01 0c 06 00 02 00 00 00 50 00 00 00 00 00 00 00 11 01 00 00 # Antigua goods for sale
ba 01 00 00 4a 00 00 00 06 00 00 00 01 1d 0f 02 12 00 00 00 96 00 00 00 00 00 00 00 11 11 00 00 # Barbados spice price
6e 00 00 00 93 00 00 00 02 00 00 00 00 14 19 01 14 00 00 00 78 00 00 00 00 00 00 00 11 11 01 00 # Campeche sugar price
6e 01 00 00 2f 00 00 00 02 00 00 00 00 1c 19 02 0c 00 00 00 78 00 00 00 00 00 00 00 11 11 01 00 # Caracas sugar for sale
0e 01 00 00 26 00 00 00 02 00 00 00 00 32 28 04 37 00 00 00 b4 00 00 00 00 00 00 00 11 11 01 00 # Cartagena capital
4d 01 00 00 37 00 00 00 02 00 00 00 00 0d 0a 00 0a 00 00 00 5a 00 00 00 00 00 00 00 00 10 01 00 # Coro goods for sale
86 01 00 00 29 00 00 00 02 00 00 00 00 15 12 02 0a 00 00 00 55 00 00 00 00 00 00 00 11 11 01 00 # Cumana goods price
5f 01 00 00 41 00 00 00 06 00 00 00 03 16 12 02 0f 00 00 00 96 00 00 00 00 00 00 00 11 11 00 00 # Curacao spice/sugar price
0a 01 00 00 ca 00 00 00 06 00 00 00 01 06 02 00 01 00 00 00 23 00 00 00 00 00 00 00 11 11 01 00 # Eleuthera luxurie price
d2 00 00 00 c8 00 00 00 06 00 00 00 02 02 01 00 00 00 00 00 0f 00 00 00 00 00 00 00 11 11 01 00 # Florida Keys ----
42 01 00 00 21 00 00 00 02 00 00 00 00 0e 05 00 01 00 00 00 50 00 00 00 00 00 00 00 10 11 01 00 # Gibraltar lux price / food for sale
a1 00 00 00 3d 00 00 00 00 80 00 00 00 14 14 00 19 00 00 00 82 00 00 00 00 00 00 00 11 11 01 00 # Gran Granada
f2 00 00 00 dd 00 00 00 06 00 00 00 01 02 01 00 00 00 00 00 0a 00 00 00 00 00 00 00 11 11 01 00 # Grand Bahama food for sale
a5 01 00 00 6b 00 00 00 06 00 00 00 02 13 10 02 0a 00 00 00 6e 00 00 00 00 00 00 00 11 01 00 00 # Guadeloupe goods prices
c6 00 00 00 b8 00 00 00 02 00 00 00 00 41 2d 04 3c 00 00 00 c3 00 00 00 00 00 00 00 11 11 01 00 # Havana capital
2f 01 00 00 85 00 00 00 06 00 00 00 02 08 06 00 02 00 00 00 3c 00 00 00 00 00 00 00 11 00 00 00 # Leogane -----
3a 01 00 00 33 00 00 00 02 00 00 00 00 12 0c 02 0f 00 00 00 82 00 00 00 00 00 00 00 11 11 01 00 # Maracaibo lux/goods prices
8b 01 00 00 34 00 00 00 06 00 00 00 00 09 08 00 06 00 00 00 4b 00 00 00 00 00 00 00 11 11 01 00 # Margarita -----
b0 01 00 00 58 00 00 00 06 00 00 00 02 13 10 02 0a 00 00 00 6e 00 00 00 00 00 00 00 11 01 00 00 # Martinique sugar for sale
a2 01 00 00 71 00 00 00 06 00 00 00 02 0c 06 01 02 00 00 00 50 00 00 00 00 00 00 00 11 01 00 00 # Montserrat food for sale
9d 01 00 00 75 00 00 00 06 00 00 00 01 14 08 01 02 00 00 00 6e 00 00 00 00 00 00 00 11 01 00 00 # Nevis food for sale
ff 00 00 00 cc 00 00 00 06 00 00 00 01 01 01 00 00 00 00 00 0a 00 00 00 00 00 00 00 11 00 00 00 # Nassau ---------
ec 00 00 00 23 00 00 00 02 00 00 00 00 0d 0c 01 0f 00 00 00 6e 00 00 00 00 00 00 00 11 11 01 00 # Nombre de Dios Capital
e5 00 00 00 1e 00 00 00 00 80 00 00 00 3c 28 01 50 00 00 00 c8 00 00 00 00 00 00 00 11 11 01 00 # Panama Capital
2c 01 00 00 82 00 00 00 02 00 00 00 02 0d 08 00 05 00 00 00 5a 00 00 00 00 00 00 00 11 11 00 00 # Petit-Goave goods prices
34 01 00 00 93 00 00 00 02 00 00 00 02 10 09 01 08 00 00 00 6e 00 00 00 00 00 00 00 11 01 00 00 # Port-de-Paix goods prices
03 01 00 00 7f 00 00 00 02 00 00 00 01 0f 08 01 04 00 00 00 6e 00 00 00 00 00 00 00 11 00 00 00 # Port Royale fluctuates
e5 00 00 00 24 00 00 00 02 00 00 00 00 19 19 02 0f 00 00 00 78 00 00 00 00 00 00 00 11 11 01 00 # Puerto Bello Capital
62 01 00 00 2e 00 00 00 02 00 00 00 00 0a 08 01 0a 00 00 00 50 00 00 00 00 00 00 00 11 11 01 00 # Puerto Cabello ------------
f9 00 00 00 a3 00 00 00 00 80 00 00 00 1e 16 02 0a 00 00 00 82 00 00 00 00 00 00 00 11 11 01 00 # Puerto Principe lux/goods prices
2c 01 00 00 37 00 00 00 02 00 00 00 00 12 0c 01 12 00 00 00 64 00 00 00 00 00 00 00 11 11 01 00 # Rio de la Hacha sugar/spice for sale
78 01 00 00 84 00 00 00 02 00 00 00 00 18 19 03 04 00 00 00 6e 00 00 00 00 00 00 00 11 11 01 00 # San Juan goods for sale / capital
d6 00 00 00 49 00 00 00 06 00 00 00 00 06 07 01 00 00 00 00 28 00 00 00 00 00 00 00 11 00 00 00 # Santa Catalina -------
4f 01 00 00 85 00 00 00 02 00 00 00 00 1f 1c 03 08 00 00 00 78 00 00 00 00 00 00 00 11 11 01 00 # Santo Domingo lux prices
0e 01 00 00 93 00 00 00 02 00 00 00 00 28 1e 03 28 00 00 00 aa 00 00 00 00 00 00 00 11 11 01 00 # Santiago Capital
20 01 00 00 34 00 00 00 02 00 00 00 00 10 08 01 0a 00 00 00 50 00 00 00 00 00 00 00 11 11 01 00 # Santa Marta food for sale
d8 00 00 00 f5 00 00 00 02 00 00 00 00 0a 08 01 00 00 00 00 37 00 00 00 00 00 00 00 11 11 01 00 # St. Augustine ------------
9c 01 00 00 7e 00 00 00 06 00 00 00 03 0f 08 02 0c 00 00 00 a0 00 00 00 00 00 00 00 11 01 00 00 # St. Eustatius good/lux prices
9a 01 00 00 79 00 00 00 06 00 00 00 01 19 0a 02 06 00 00 00 82 00 00 00 00 00 00 00 11 01 00 00 # St. Kitts spice prices
96 01 00 00 81 00 00 00 06 00 00 00 03 0d 06 01 03 00 00 00 64 00 00 00 00 00 00 00 11 11 01 00 # St. Martin sugar for sale
2f 01 00 00 96 00 00 00 06 00 00 00 02 0d 07 01 05 00 00 00 5a 00 00 00 00 00 00 00 11 11 01 00 # Tortuga fluctuates
b0 01 00 00 2d 00 00 00 06 00 00 00 00 0a 05 00 00 00 00 00 50 00 00 00 00 00 00 00 11 11 00 00 # Trinidad --------
2b 00 00 00 97 00 00 00 02 00 00 00 00 19 1e 04 23 00 00 00 82 00 00 00 00 00 00 00 11 11 01 00 # Vera Cruz good/lux prices / Capital
58 00 00 00 85 00 00 00 02 00 00 00 00 10 0f 00 0f 00 00 00 64 00 00 00 00 00 00 00 11 11 01 00 # Villa Hermosa food for sale
Okay lets start with Antigua. open the exe with a hex editer and serch for this string.
a5 01 00 00 75 00 00 00 06 00 00 00 01 0c 06 00 02 00 00 00 50 00 00 00 00 00 00 00 11 01 00 00
The Nationality i will use BB to show location
a5 01 00 00 75 00 00 00 06 00 00 00 BB 0c 06 00 02 00 00 00 50 00 00 00 00 00 00 00 11 01 00 00
natinilty list is 00 for Spanish
01 for England
02 for Franch
03 for Dutch
04 for Pirate
You can see BB is 01 in the first string. That tells me it belongs to England. want it Ducth the change it to 03.
use that string for guidance for the other cities as the nationalities will be in the same location.
another thing in case you want to make the city open to all eras is as
also editable
a5 01 00 00 75 00 00 00 06 00 00 00 01 0c 06 00 02 00 00 00 50 00 00 00 00 00 00 00 11 01 00 00 The last part of the string here is 11 01 00 00
change the that to 11 11 01 00
this is what Antigua looks like if i change her to France and open up all eras.
a5 01 00 00 75 00 00 00 06 00 00 00 02 0c 06 00 02 00 00 00 50 00 00 00 00 00 00 00 11 11 01 00 .
Hope this helps but scream if you get lost. |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Fri Sep 18, 2020 10:45 pm Post subject: |
|
|
So I hunted for the line that began
f9 00 00 00 a3 00 00 00 00 80 00 00 00 and changed the 13th pair of character from 00 (Spanish) to 03 (Dutch). Now to see if this worked.
EDIT: When I started a previously saved game Puerto Principe was still Spanish.
When I started a new game it was Dutch. 
Last edited by fleetp on Sat Sep 19, 2020 2:00 am; edited 1 time in total |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Fri Sep 18, 2020 11:29 pm Post subject: |
|
|
Now I'll try to give Puerto Principe the 'shipyard' functions. I'll use the hex editor, find the string
f9 00 00 00 a3 00 00 00 00 80 00 00, and change the 80 to 00.
EDIT: That didn't work. 
Last edited by fleetp on Sat Sep 19, 2020 12:12 am; edited 1 time in total |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Fri Sep 18, 2020 11:48 pm Post subject: |
|
|
f9 00 00 00 a3 00 00 00 02 00 00 00 03 1e 16 02 0a 00 00 00 82 00 00 00 00 00 00 00 11 11 01 00 |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Sep 19, 2020 12:11 am Post subject: |
|
|
Thanks for the guidance, pirate!
By following his advice and changing
f9 00 00 00 a3 00 00 00 00 80
to
f9 00 00 00 a3 00 00 00 02 00
the city now has shipyard capability.
 |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Sep 19, 2020 1:15 am Post subject: |
|
|
Bloody brilliant. This is using a hex editor on the exe?
Other candidates for "relocation" include Bermuda (I could adjust the navigation map to include an island, but it wouldn't show on the in-game map), Biloxi, and Belize. There may be others that don't start with B, but I can't think of any! |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Sep 19, 2020 1:55 am Post subject: |
|
|
| themodelcitizen wrote: | Bloody brilliant. This is using a hex editor on the exe?
Other candidates for "relocation" include Bermuda (I could adjust the navigation map to include an island, but it wouldn't show on the in-game map), Biloxi, and Belize. There may be others that don't start with B, but I can't think of any! |
Yes. So far I've been using a hex editor on the exe file.
Regarding Bermuda, if you sail far enough north, you will see an island on-screen, but you can't reach it.  |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Sep 19, 2020 2:31 am Post subject: |
|
|
Next is changing the city name from Puerto Principe to Paramaribo. This step does not require modding the exe file.
Find the lang0.fpk file. Copy it to a separate folder. Use one of the fpk unpacker programs (fpkpacker.exe or pakbuild.exe) to extract the citynames_enu.txt file.
Open the citynames_enu.txt file in a text editor program. Search for Puerto Principe and change it to Paramaribo. Save the citynames_enu.txt file and copy it into the Custom folder in the folder named Sid Meier's Pirates!
Next comes the really hard part, figuring out how to move the city so it will be south of Trinidad.
It's probably determined in the cityloc.dta file which unfortunately seems to be a hex file. 
Last edited by fleetp on Tue Sep 22, 2020 10:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Sat Sep 19, 2020 4:02 am Post subject: |
|
|
Probably and you will need location points wherever you move it. You would have to understand where your located out now and understand where your going. It’s math involved probably complicated be my guess but I’ve never done it. |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Sep 19, 2020 4:07 am Post subject: |
|
|
Might the East Indies mod help in terms of looking at city data to establish "coordinates" of sort?
As for the unreachable island, just having the city Bermuda floating there would be a good compromise - like with Par'bo, you just use your imagination re: scale.
I suppose Charles Town (Charleston), SC could occupy a far-north spot too, it was founded in 1670. |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Sat Sep 19, 2020 6:20 am Post subject: |
|
|
Both the mod and the Caribbean original have city location files. A hex editor would be needed to open them and you would need to be able to read or understand it. The reason I can read the cities in the executable is because Jingy taught me or otherwise I wouldn’t know but as far as moving cities it probably needs the city loc and the location file updated as there most be land to have a city. Now Fleet might could pull this off and hopefully he does but I’m saying looks hard to me but I’m kinda dumb anyway or I wouldn’t be here where I’m at if I only had a brain. |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Sat Sep 19, 2020 6:28 am Post subject: |
|
|
Adam Mill ,Jingy Boy Blue and Dog Cigar are three of the best at modding the game. Dog Cigar was a MAC guy though that’s why he didn’t contribute much for us windows folks but he was good. |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Sep 19, 2020 6:40 am Post subject: |
|
|
well your exe allowed me to play the East Indies mod, so you're much more skilled than me!
fleetp, check this jlangsdo post re: Par'bo from 2012: http://hookedonpirates.com/forums/viewtopic.php?p=87158#87158
| Quote: | But, if you want to mess around, here's what you would do using my savegame editor to repurpose Gibraltar as Paramaribo, with attributes borrowed from St. Martin, located about as far SE as I could put it:
pirates_savegame_editor.pl -unpack slot4
echo "MarchingMap_435_24 : F1 : 0c " >> slot4.pst
echo "SailingMap_435_24 : F1 : 01 " >> slot4.pst
pirates_savegame_editor.pl -splice City_10,CityInfo_10 -clone City_39,CityInfo_39 -in slot4 -out slot4
pirates_savegame_editor.pl -set Paramaribo,435,24,435,24 -splice CityName_10,City_10_0,City_10_1,CityLoc_10_0,CityLoc_10_1 -in slot4 -out slot4 |
|
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Sat Sep 19, 2020 4:25 pm Post subject: |
|
|
Parksbanyon is another highly intelligent fellow you might want to pm. I remember he wanted to team up and build a new game but he didn’t know how to build a new map but that doesn’t mean he couldn’t help with this. He probably has more experience with Jings save game editor than anybody other than the man himself. Adam Mill has a website and his Challenge Pack can be gotten from there. Probably be a good way to get his attention by leaving a message there if he doesn’t respond by PM. Fleetp might be able to do it after some trail and error unless he is super lucky from the start. He has worked on nifs before so that takes a working brain. All those guys have the smarts but I don’t know if all of them have much or if any interest in the game anymore. |
|
| Back to top |
|
 |
|