
I'm thinking about a mod to change data in the ship table
| View previous topic :: View next topic |
| Author |
Message |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Tue May 03, 2016 6:07 pm Post subject: I'm thinking about a mod to change data in the ship table |
|
|
I am thinking about a mod that would allow us to completely control which ships are chosen by each faction to perform the missions like raider, payroll courier, governor transport, invasion force, pirate hunter, etc. But I don't really have a clue about how to go about it.
This mod would have the benefit of allowing the use of every ship type by every faction. And expanding (or restricting) the ship types used by each faction for any mission. For example: Pirate raider War Galleons or Spanish pirate hunter Ships of the Line. I think it would really create new variety in the game.
Does anyone know how Phalzyr went about changing the ship types used by Monty, Raymondo, and the top 10 pirates with the PHtrainer? Does he "tell" Pirates.exe which ship types to use before they are created, or does PHtrainer change the ship table data after the fact?
Any help is greatly appreciated. Thanks! |
|
| Back to top |
|
 |
Mandiuscreel

Seaman 
Posts: 171 

 
3189 Gold -

|
Posted: Tue May 03, 2016 9:52 pm Post subject: |
|
|
I don't know how Phalzyr did it, but adjusting the values in the EXE directly would accomplish the same thing (for combat vessels). The mission vessels (couriers, etc.) seem to be in a different location. I haven't figured out how to adjust them.
These are the EXE memory locations for the ships used by the different nations (for version 1.02):
Beginning at offset 3272d0, there are 30 bytes representing the ships used as warships by all nations except the Jesuits. Five ships for each nation are listed, from weakest to strongest.
Spain; 10; 19; 7; 16; 25
English; 2; 20; 6; 15; 24
French; 1; 10; 11; 6; 24
Dutch; 9; 1; 2; 6; 24
Pirates; 1; 10; 11; 6; 15
Indians; 0; 0; 0; 0; 0 (changing the numbers for the Indians seems to have no effect)
The numeric designations for the ships are as follows:
War Canoe; 0
Sloop; 1
Brigantine; 2
Coastal Barque; 3
Fluyt; 4
Merchantman; 5
Frigate; 6
Fast Galleon; 7
Trade Galleon; 8
Pinnace; 9
Sloop Of War; 10
Brig; 11
Barque; 12
Large Fluyt; 13
Large Merchantman; 14
Large Frigate; 15
War Galleon; 16
Royal Galleon; 17
Mail Runner; 18
Royal Sloop; 19
Brig Of War; 20
Ocean Barque; 21
West Indiaman; 22
East Indiaman; 23
Ship Of The Line; 24
Flag Galleon; 25
Treasure Galleon; 26 |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Tue May 03, 2016 11:02 pm Post subject: |
|
|
Thanks for the reply Mandiuscreel.
Actually what I'm talking about is dynamically overriding the ship types used by the EXE to perform the missions, based on a set of user preferences. The players could set their preferences to allow a faction to potentially use any of the available 27 ship types to perform any mission.
So for instance, the Spanish could have access not only to the fighting galleons, but also the 3 frigate types. The Dutch, English, and French could likewise use the fighting galleons for some missions if that's what the player wanted to see. And the unnamed Pirates could use any ship in the game for raiders and privateers.
On the other hand, you could restrict the ships a faction uses for a mission. For instance, I'd like to be able to force the 4 main factions to use only their merchant types (merchantmen, fluyts, trade galleons) as troop transports and invasion ships.
I know this is possible to do, because the PHtrainer is doing it now for Monty and Raymondo. I've been doing the same thing using the save game editor. But obviously the problem with that is you have to save the game, then break away from gameplay to change the ship types and alter anything else you want to about the ships (crew, guns, cargo, etc) in the ship table, then repack the .pst file and reload the saved game.
Not sure if this explains it any better, but this is what I'd like to do. |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Wed May 04, 2016 4:59 pm Post subject: |
|
|
So if I'se wanted to give the French the same ships as the Spaniards all' s me needth to do is swap out those dadburn numbers or something purtnear close to dat? |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Wed May 04, 2016 7:57 pm Post subject: |
|
|
Pirate - not sure if you were asking me or Mandiuscreel.
I haven't tried what Mandiuscreel describes. But based on what he wrote I'd say if you included the 3 fighting galleons in the list of 5 warships available to the French, some of them would get used as raiders, privateers, and pirate hunters by the French. I've been playing for years and I've never seen flag galleons or SOTLs used as pirate hunters, so maybe a faction's most powerful warship won't get used as a PH by the AI.
But I'd expect the French would lose the 3 ship types you replaced with the galleons, at least for some combat missions.
Hopefully Mandiuscreel will come along and clarify or correct what I wrote above. Good luck with any changes Pirate.
What I'm talking about doing would probably have to be like a new trainer. I don't know that it could be done with a patch. Anyway, it would allow (depending on what the player prefers) any of the factions to use any or all of the 27 ships in the game, and allow them to be assigned to any mission that faction can undertake. In the case of the Indians, that's really only raids. For the pirates, that's raiding and privateers. For the 4 main factions, it would be any kind of mission.
I may be the only member on here who would be interested in something like that. If anybody else would like to see it done, please reply to the topic. And if you think it's a bad or even a stupid idea, I'd like to know that too. Thanks. |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Wed May 04, 2016 10:01 pm Post subject: |
|
|
Me was thinking that's was I to change da French to Portuguese the Spanish ships would be a better fit . |
|
| Back to top |
|
 |
Roland

Helmsman 
Posts: 4190 

 
23929 Gold -

|
Posted: Thu May 05, 2016 4:38 am Post subject: |
|
|
Has anyone ever seen pirates sailing a large frigate? I haven't.
Meanwhile, if Mandiuscreel is correct, the French and the Dutch would never have large frigates. |
|
| Back to top |
|
 |
Mandiuscreel

Seaman 
Posts: 171 

 
3189 Gold -

|
Posted: Thu May 05, 2016 2:06 pm Post subject: |
|
|
| lurtz wrote: | Pirate - not sure if you were asking me or Mandiuscreel.
I haven't tried what Mandiuscreel describes. But based on what he wrote I'd say if you included the 3 fighting galleons in the list of 5 warships available to the French, some of them would get used as raiders, privateers, and pirate hunters by the French. I've been playing for years and I've never seen flag galleons or SOTLs used as pirate hunters, so maybe a faction's most powerful warship won't get used as a PH by the AI.
But I'd expect the French would lose the 3 ship types you replaced with the galleons, at least for some combat missions.
Hopefully Mandiuscreel will come along and clarify or correct what I wrote above. Good luck with any changes Pirate.
What I'm talking about doing would probably have to be like a new trainer. I don't know that it could be done with a patch. Anyway, it would allow (depending on what the player prefers) any of the factions to use any or all of the 27 ships in the game, and allow them to be assigned to any mission that faction can undertake. In the case of the Indians, that's really only raids. For the pirates, that's raiding and privateers. For the 4 main factions, it would be any kind of mission.
I may be the only member on here who would be interested in something like that. If anybody else would like to see it done, please reply to the topic. And if you think it's a bad or even a stupid idea, I'd like to know that too. Thanks. |
You are correct; replacing the numbers replaces the available ships, at least for pirate hunters. I use the following numbers in my own game:
Spain; 12; 21; 7; 16; 25
English; 2; 20; 6; 15; 24
French; 1; 10; 11; 6; 24
Dutch; 10; 19; 2; 6; 24
Pirates; 3; 12; 21; 6; 15
Indians; 0; 0; 0; 0; 0
IMG, Spain has Barques and Ocean Barques as pirate hunters, which sounds kind of pathetic, but since I've given the barques a higher speed and better sailing characteristics, as well as the ability to carry more guns, they're very formidable.
And the Dutch have Sloops of War and Royal Sloops instead of Pinnaces and Sloops, which makes them less wimpy.
But giving the pirates Coastal Barques, Barques and Ocean Barques hasn't seemed to make a difference; I think the (non Top 10) pirates that we see sailing to and fro are mission ships, which use a different subroutine.
I think most of the larger combat ships we see are also mission ships; I haven't bothered to make changes to them, because it seems to make no difference. |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Thu May 05, 2016 3:25 pm Post subject: |
|
|
| Roland wrote: | | Has anyone ever seen pirates sailing a large frigate? I haven't. |
Other than Henry Morgan, no. |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Thu May 05, 2016 6:47 pm Post subject: |
|
|
So was I to get crazy if not already so and changed the nations pirate hunters to let's say all ship of the lines I would do it buy using only 24 ,24,24,24,24 |
|
| Back to top |
|
 |
Mandiuscreel

Seaman 
Posts: 171 

 
3189 Gold -

|
Posted: Thu May 05, 2016 7:11 pm Post subject: |
|
|
| Pirate wrote: | | So was I to get crazy if not already so and changed the nations pirate hunters to let's say all ship of the lines I would do it buy using only 24 ,24,24,24,24 |
That would definitely make pirating a dangerous profession... |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Mon May 09, 2016 5:41 pm Post subject: |
|
|
Spain; 10; 19; 7; 16; 25
English; 2; 20; 6; 15; 24
French; 1; 10; 11; 6; 24
Dutch; 9; 1; 2; 6; 24
Pirates; 1; 10; 11; 6; 15
Indians; 0; 0; 0; 0; 0 (changing the numbers for the Indians seems to have no effect)
These numbers seem to be different in my exe. I am assuming that your saying that these are the default settings before making any changes. |
|
| Back to top |
|
 |
Roland

Helmsman 
Posts: 4190 

 
23929 Gold -

|
Posted: Mon May 09, 2016 7:03 pm Post subject: |
|
|
| Pirate wrote: | Spain; 10; 19; 7; 16; 25
English; 2; 20; 6; 15; 24
French; 1; 10; 11; 6; 24
Dutch; 9; 1; 2; 6; 24
Pirates; 1; 10; 11; 6; 15
Indians; 0; 0; 0; 0; 0 (changing the numbers for the Indians seems to have no effect)
These numbers seem to be different in my exe. I am assuming that your saying that these are the default settings before making any changes. |
What numbers appear in your exe, Pirate? |
|
| Back to top |
|
 |
Pirate

Helmsman 
Posts: 5927 

 
117641 Gold -

|
Posted: Mon May 09, 2016 7:11 pm Post subject: |
|
|
I do remember seeing 10, 19 but after that it was different. |
|
| Back to top |
|
 |
Mandiuscreel

Seaman 
Posts: 171 

 
3189 Gold -

|
Posted: Mon May 09, 2016 10:23 pm Post subject: |
|
|
| Pirate wrote: | Spain; 10; 19; 7; 16; 25
English; 2; 20; 6; 15; 24
French; 1; 10; 11; 6; 24
Dutch; 9; 1; 2; 6; 24
Pirates; 1; 10; 11; 6; 15
Indians; 0; 0; 0; 0; 0 (changing the numbers for the Indians seems to have no effect)
These numbers seem to be different in my exe. I am assuming that your saying that these are the default settings before making any changes. |
These are the numbers in the v, 1.02 EXE before modding.
10, 19, 7, 16, and 25, for example, are Sloop of War, Royal Sloop, Fast Galleon, War Galleon and Flag Galleon, the five warships of the Spanish.
While they might be at different addresses in the EXEs of other versions, I don't think the values would be different.
Keep in mind that these are bytes, not words or d-words. And the values I listed are decimal, not hex. |
|
| Back to top |
|
 |
|
|
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
|
|