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

Paramaribo
Post new topic   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Customization & Modding Goto page Previous  1, 2, 3, 4, 5, 6  Next
View previous topic :: View next topic  
Author Message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 2:12 am    Post subject: Reply with quote

Before reading your answer I deleted my stupid question and put the files in the custom folder.
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Tue Sep 22, 2020 2:23 am    Post subject: Reply with quote

Oh really, I'll play with Guayana, sorry about that - although I guess that's consistent with them being a river city. The AI seemed capable of sending out ships?

I've added a new version with Nevis replaced by Belize, it's a little southeast of where it should be but when I loaded it up, there were two English settlements on nearby islands which will help it grow

edit: I was able to sneak into Guayana by sailing close to the coast:

Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 2:38 am    Post subject: Reply with quote

The text.ini needs to go into the assets folder. Otherwise when I click on Bermuda I get a comment about 'Eleutheran merchants are often in the market for luxuries.'
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Tue Sep 22, 2020 2:53 am    Post subject: Reply with quote

Probably affects the pirate-o-pedia changes in that case too
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 3:03 am    Post subject: Reply with quote

I haven't checked that part yet.
Regarding changing Guyana to Dutch, that can be done by modifying the exe file by looking for the code line for Gibraltar
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, and changing the thirteenth pair of characters (underlined 00) from 00 to 03.
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Tue Sep 22, 2020 3:05 am    Post subject: Reply with quote

Thanks, I was looking for that. I'd like to add more Dutch presence (Aruba? Bonaire?), there are a few more spare Spanish cities not involved in the fleet's coding that could be changed
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 5:09 pm    Post subject: Reply with quote

themodelcitizen wrote:
Thanks, I was looking for that. I'd like to add more Dutch presence (Aruba? Bonaire?), there are a few more spare Spanish cities not involved in the fleet's coding that could be changed


In the existing game, where the map shows Curacao is actually Bonaire.

Oh, the revised pirate-o-pedia file works correctly when placed in the custom folder.

Have you given any thought on writing a detailed 'how to' guide on how you shifted Gibraltar to Guyana? By detailed, I mean what lines of code you changed in which files.

For example: In the cityloc.dta file I replace the line of code that said
ABCDEF123456789 with
9876543FEDCSA. These codes represent _____ (I don;t know what the changes to cityloc actually do, perhaps reset the X and Y coordinates of the new location)


Last edited by fleetp on Tue Sep 22, 2020 10:36 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Tue Sep 22, 2020 5:34 pm    Post subject: Reply with quote

Forgive me for going over obvious steps, but first I opened cityloc.dta in a hex editor. For comparison, I have citynames_enu open in a notepad file so I can quickly cross-reference and see that, for example, Antigua is the first line in the list.

https://i.imgur.com/KpZGabj.jpg

So we can see that Gibraltar is the 11th entry by checking the text file; this is the same order as in cityloc. At some point you'll want to change the name of Gibraltar in citynames_enu to Guayana.

The first 4 entries for each line in cityloc.dta (for Antigua, it's 11 6b 06 00) represent the city's location on the horizontal x axis:

https://i.imgur.com/k0qPJfB.jpg

The next 4 entries are for the y axis.

I think someone established that the next 4 after that are for port orientation, and I believe the last 4 are for the fort. So if you're creating an east-facing port, you can copy that part from an existing east-facing city.

For my new Guayana, I knew I wanted it on the same part of the x axis as (i.e. directly north or south from) the new Barbados:

https://imgur.com/fz3nyKR

So I took the first four lines from Barbados' entry in cityloc (44 A1 06 00) and changed Guayana's first four lines to that.

For the y axis, I could have used, say, Panama, and the new city would show up on the same east-west line:

https://i.imgur.com/iQAR584.jpg

But I think I ended up taking the y location data from one of the cities on the East Indies' mod.

That's it. Like I said before, there's a way to plot the location on a 462x293 grid, multiply each by 1000, and convert to a 4-byte entry in hex, but I'm not sure how - until then, I can just steal the x and y data from existing cities.

Does that make sense?


Last edited by themodelcitizen on Tue Sep 22, 2020 8:52 pm; edited 3 times in total
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 7:24 pm    Post subject: Reply with quote

From reading your description I understand the process.
What I'll try to do is create a mod from scratch (will be later today as I have errands to run).

Oh, I sent you a private message.

Very respectfully,
fleetp
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Tue Sep 22, 2020 8:49 pm    Post subject: Reply with quote

With your Par'bo method we can move settlements around? Maybe we could add in places like Bonaire, Roatan, etc to feed our new cities. Not sure if the game has a finite amount of settlements or if it would throw off the economy elsewhere. If only Aberdonian's "upgraded settlements" was still available...

fleetp wrote:
I was unable to enter Guyana by landing nearby and marching into it, but I was able to sail into the harbor.
I sailed to Bermuda and successfully entered it by land and sea.


This is now fixed.
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 9:34 pm    Post subject: Reply with quote

themodelcitizen wrote:
With your Par'bo method we can move settlements around? Maybe we could add in places like Bonaire, Roatan, etc to feed our new cities. Not sure if the game has a finite amount of settlements or if it would throw off the economy elsewhere. If only Aberdonian's "upgraded settlements" was still available...


The game places settlements on land, but does so somewhat randomly. They are always accessible by sea. You should also be able to approach by land. Sometimes I'll see as many as two settlements on the coast of South America south of Trinidad; sometimes there will be just one, or none.

EDIT: I've seen each nation's settlement in that area, including Indian villages and missions.

Once you save a game, the location of the settlement is in the saved game file (once again in code). I suppose if you can determine how to decode the locations from the saved game file, the codes can be replaced with new location codes in the saved game file.

The location_names_enu.txt file contains the names of the settlements, Indian villages, and missions. For the sake of simplification I'll refer to all of these types as villages.
The Spanish, English, French, pirate, Indian and mission 'villages' each have 20 names, while the Dutch have only 19 (not sure why).
I don't know if you can add more names to the list. 99 European village names should be plenty. I've never checked to see if any one play-through of the game uses all 139 location names.
Back to top
View user's profile Send private message Send e-mail
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Tue Sep 22, 2020 9:47 pm    Post subject: Reply with quote

I think that's how Aberdonian did it. Isn't it true that settlements can change nationality mid-game in order to respond to the needs of the area, likely if you've changed a bunch of cities' nationality by conquest?
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Tue Sep 22, 2020 9:58 pm    Post subject: Reply with quote

themodelcitizen wrote:
I think that's how Aberdonian did it. Isn't it true that settlements can change nationality mid-game in order to respond to the needs of the area, likely if you've changed a bunch of cities' nationality by conquest?


I've not seen settlements change nationality mid-game. That doesn't mean it doesn't happen; it just means I haven't seen it.
Back to top
View user's profile Send private message Send e-mail
fleetp
Helmsman
Posts: 4600



26028 Gold -

PostPosted: Fri Oct 02, 2020 12:40 am    Post subject: Reply with quote

Settlements can be relocated (swapped with landmarks) using the Perl saved game editor. I posted this in another thread.



I used the save game editor to swap the settlement of Noveau Gascony with a 'landmark' rock. The settlement was on the island of Hispaniola, and I moved it north of Vera Cruz. I used the perl pirates_savegame_editor to unpack the savedgame file to a text based file (pst). I had to change the XY coordinates for the settlement in two places, make adjustment to the locations in the FeatureMap section and SailingMap section of the saved game pst file. Then I used the saved game editor to pack the pst file (convert it back to a pirtes savegame file). The landmark rock showed on Hispaniola, but it was partially obscured by a hill, since the rock was not 'exactly' on the beach.

Any play though using the saved game as a starting point will have all of the other settlements in the same position as they are in this particular saved game. The player level is apprentice, and he has no rank in any of the nations. His ship is a sloop. The era I used is 1660, so any saved game will keep that era. I suspect that the location of Monty's hideout and the lost cities would also be unchanged (not verified).
Back to top
View user's profile Send private message Send e-mail
Pirate
Helmsman
Posts: 5927



117641 Gold -

PostPosted: Fri Oct 02, 2020 7:11 pm    Post subject: Reply with quote

Could the land be moved around until you have like a fictional map?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Customization & Modding All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
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