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

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Fri May 13, 2016 3:55 am Post subject: Re: I'm thinking about a mod to change data in the ship tabl |
|
|
| lurtz wrote: | | Does [PHtrainer] "tell" Pirates.exe which ship types to use before they are created, or does PHtrainer change the ship table data after the fact? | PHtrainer always changes data in memory, so it would change the ship table after it's initialized by the game. |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Fri May 13, 2016 6:46 am Post subject: Thanks for the info |
|
|
Love the idea of swapping around some ship types. |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Fri May 13, 2016 7:01 am Post subject: animations |
|
|
Correct me if I'm wrong but at this point we (HoP community) have done all the mods possible except for animation sequence's and the movie files which are just "filmed" animations. Round of applaud to all concerned. Of course with major skills code injection rewrites upgrades are possible but there are only a couple of people onboard capable of that.  |
|
| Back to top |
|
 |
Captain Teague

Rigger 
Posts: 1176 

 
12207 Gold -

|
Posted: Fri May 13, 2016 1:38 pm Post subject: Re: animations |
|
|
| parksbanyon wrote: | Correct me if I'm wrong but at this point we (HoP community) have done all the mods possible except for animation sequence's and the movie files which are just "filmed" animations. Round of applaud to all concerned. Of course with major skills code injection rewrites upgrades are possible but there are only a couple of people onboard capable of that.  |
Huh. I had not thought of that. I tip my hat to you mates! _________________ The Code is the Law. |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Fri May 20, 2016 11:53 pm Post subject: Re: I'm thinking about a mod to change data in the ship tabl |
|
|
| AdamMil wrote: | | lurtz wrote: | | Does [PHtrainer] "tell" Pirates.exe which ship types to use before they are created, or does PHtrainer change the ship table data after the fact? | PHtrainer always changes data in memory, so it would change the ship table after it's initialized by the game. |
Thanks Adam. |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Sat May 21, 2016 2:42 am Post subject: Re: Thanks for the info |
|
|
| parksbanyon wrote: | | Love the idea of swapping around some ship types. |
Mandiuscreel's change to the faction warships list in the EXE is the biggest bang for the buck that's available for now (and maybe forever). I talked over my ideas with AdamMil and the things I want to do are just beyond my reach technically for the foreseeable future.
In the meantime I've been using the save game editor (thank you jlangsdo, wherever you are) to change ship types and sometimes the disposition (mission) codes for ships the AI has created. It's a clunky method and takes a couple of minutes to do but it adds some variety.
I found a couple of things that I thought were cool. By changing the disposition code of pirate and indian raiders from 0 to 3 (raider) you can get them to act just like European raiders. They will attack enemy shipping, then bombard their target cities if they reach them. Indian war canoes fearlessly attack any European ship within range, no matter how badly outgunned they are. It's great.
I also redirected European raiders against indian villages and pirate havens, and they will capture them just like they do settlements. When a haven is captured, it's pretty seamless unless a top 10 pirate has his base there. If a village is captured, it's kind of messed up unless you also change the type field for that village to 7 and fully convert it to a settlement.
I think both of those could be good mods. I'm an empire builder at heart and it makes me mad to see the pirates and Indians striking at will, preventing my cities from becoming large and prosperous. I'd love it if the European powers would fight back and send reprisal attacks to capture the havens and villages doing all the raiding.
Parksbanyon, I think it was you who wanted to add the Nautilus to the game a few years back? One thing I verified by changing the ship table is that only Indian escort vessels can be rammed in the combat subgame. In other words, pretty much exactly what we already knew. Now, it doesn't matter how big that Indian escort vessel is, you can ram it and sink it. I rammed a war galleon (escorting a war canoe) with my mail runner and down she went.
I fooled around with disposition codes and the "escorted by" field in the ship table to see if I could ram a vessel of any other nationality. Nothing worked. It has to be an Indian vessel, escorting the ship you have actually attacked, or you can't ram it. Not surprising but still disappointing.
Another thing I tried and failed to do was turn Indians & pirates into peace loving traders, by converting their raiders to smugglers (disposition code = 4). Didn't work. When those "smugglers" reached their destination cities it still had the effect of a raid. There must be some kind of "raid aftermath" logic in the EXE that would have to be bypassed to make that work. Probably impossible to do.
Anyway, I'm afraid you are right parksbanyon. Barring an infusion of coding talent it looks like modding activity has reached a plateau for now. Who knows, maybe Phalzyr will surprise us and come by to announce PHtrainer 4.0 someday.  |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Mon May 23, 2016 6:00 pm Post subject: clarify |
|
|
Ok got the ship types down (as mandiuscreel posted in this thread) but what are the dec numbers for the mission types? There is also another thread by mandiuscreel (I think) that finally described the format for the points of sail characteristics.
As for "ramming" there are two ways to give mesh a density 1. the material, there are 5 basic universal materials glass, stone, wood, cloth, and I think metal. The second method is the use of collision boxes which all forums I have read state only Skyrim and Oblivion use collision. That being said it may be impossible to create a collision boundary in 3ds max or blender if the exporter won't support it. BUT nifskope does.
While I'm on that point I had wanted to ask mandius when I import the skeleton and mesh (separately) into blender the skeleton is zeroed (x,y,z) but the mesh is not zero on the z axis (appears the center of the mesh is 0) is that correct? Also the scaling is off. This may be because the skeleton is brought straight in to blender whereas the mesh is imported after export from 3ds max. Still can't get my head around blender.
BTW when I made the katana blade I vaguely remember it used the bones to create the different "destruction" area. I used the rapier and altered the bone layout to match both the cutlass and rapier. |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Mon May 23, 2016 6:38 pm Post subject: Re: clarify |
|
|
| parksbanyon wrote: | | what are the dec numbers for the mission types? |
From what I have seen in the save game files, the mission types (disposition codes) are:
1 = pirate hunter
2 = privateer
3 = raider (Dutch English French Spanish)
4 = smuggler
5 = ? (possibly unused)
6 = escort
0 = raider (Pirate & Indian)
0 = merchant
0 = payroll courier
0 = troop transport
0 = invasion force
0 = immigrant transport
0 = grain transport
0 = new governor mission
0 = treasure ship
0 = new warship
? = sugar cane mission
I've tried to find something in the ship table that would be another indicator of what the mission is when the disposition code = 0 but so far haven't found it. For instance, if you see a brig of war or a frigate or war galleon with a crew of 200 you know that's probably a troop transport or an invasion force respectively, but there's nothing else I've seen in the ship table that confirms it.
Edited to add all the missions I could think of and ? the ones I'm not 100% what the code value is. I think they are all mission type 0 though.
Last edited by lurtz on Tue May 24, 2016 7:53 pm; edited 5 times in total |
|
| Back to top |
|
 |
lurtz

Powder Monkey 
Posts: 26 


1360 Gold -

|
Posted: Mon May 23, 2016 7:06 pm Post subject: |
|
|
| Roland wrote: | | Meanwhile, if Mandiuscreel is correct, the French and the Dutch would never have large frigates. |
I think Mandiuscreel is definitely correct, because I have never seen a Spanish brig of war or a Dutch large frigate.
But I could swear I have seen French large frigates escorting merchants. Maybe the escort mission is a special case and isn't covered by the 5 warship list.
Last edited by lurtz on Tue May 24, 2016 9:13 am; edited 1 time in total |
|
| Back to top |
|
 |
Mandiuscreel

Seaman 
Posts: 171 

 
3189 Gold -

|
Posted: Mon May 23, 2016 8:47 pm Post subject: Re: clarify |
|
|
| parksbanyon wrote: | | While I'm on that point I had wanted to ask mandius when I import the skeleton and mesh (separately) into blender the skeleton is zeroed (x,y,z) but the mesh is not zero on the z axis (appears the center of the mesh is 0) is that correct? Also the scaling is off. This may be because the skeleton is brought straight in to blender whereas the mesh is imported after export from 3ds max. Still can't get my head around blender. |
The LocY is the one that's off. For some reason (maybe because of the way Blender does object origin), the LocX and LocZ are zeroed, but LocY is different (-.5 at a scale of 1/1/1). And you're right about the skeleton. It's zeroed in Location and Rotation, with a scale of 1/1/1.
I don't know about the scaling of your mesh. In my experience, an imported Nif in blender has scale 1.000 for all three axes, but that might be simply because I'm importing Nifs that have been created for the game, and they're all relative to each other, with "normal" being 1/1/1.
When I import a mesh to add to an existing mesh (the legs, for instance), I scale it to fit, and then zero it. Making it part of the mesh object automatically re-scales it to 1/1/1, matching the original object.
| parksbanyon wrote: | There is also another thread by mandiuscreel (I think) that finally described the format for the points of sail characteristics.
|
The points of sail are as follows:
(Canoes) 326238 255 2 4 5 7 8 7 6 4 6 7 8 7 5 4 2
(Sloops) 326248 255 255 3 4 6 7 7 6 5 6 7 7 6 4 3 255
(Brigantines) 326258 255 255 2 4 5 6 6 6 6 6 6 6 5 4 2 255
(Barques) 326268 255 255 2 3 4 6 6 5 5 5 6 6 4 3 2 255
(Fluyts) 326278 254 255 255 2 3 4 5 6 6 6 5 4 3 2 255 255
(Merchantmen) 326288 255 255 2 3 4 5 6 6 6 6 6 5 4 3 2 255
(Frigates) 326298 255 255 2 3 5 6 7 7 7 7 7 6 5 3 2 255
(C. Galleons) 3262a8 255 255 1 2 4 5 6 6 6 6 6 5 4 2 1 255
(M. Galleons) 3262b8 254 255 255 2 3 4 5 6 6 6 5 4 3 2 255 255
The offset for V. 1.02 is listed first, and the values are decimal, in bytes.
The points of sail describe a full circle; the first value for each ship type is running directly into the wind, with the other points of sail first on the port side up to the ninth value (before the wind) and then on the starboard side, circling around to into the wind again.
The 255 and 254 values are -1 and -2 respectively, indicating the ship is making no headway at all, and could possibly be moving backwards.
Note that there is a correction for the frigates on this list. The twelfth value under the frigate listing is corrected to 6, where the original EXE value was 7. This an apparent mistake in the data table; it is probably not even noticeable, but it would make the frigate marginally faster when the wind is off the starboard quarter as opposed to the port quarter. This is not a typical characteristic for a frigate (which has square sails), and so I have corrected it in my EXE. |
|
| Back to top |
|
 |
parksbanyon

Gunner 
Posts: 564 

 
13127 Gold -

|
Posted: Tue May 24, 2016 8:16 pm Post subject: thanks |
|
|
Thanks for the info. Considering the info gained on this post maybe I should go back and reconfigure my ships (non humanoid objects are easy to export) still have the Chinese junk, Disney nautilus, fulton nautilus, and pacific proa. |
|
| Back to top |
|
 |
ronnraymore

Seaman 
Posts: 125 


4823 Gold -

|
Posted: Mon Jun 27, 2016 2:59 pm Post subject: sailing characteristics |
|
|
Frigates were the most formidable adversary of the day. When the sails are rigged fore and aft it catches the wind off the beam and provides more force than sailing with a following wind since in that case the sails in alignment create wind-shadow which makes them unable to catch the wind. These ships sailed in a zig-zag pattern with a following wind to get all the sails involved in catching wind. The famous Clipper ships were based on this Frigate design and set speed records for long distance sailing.
When considering characteristics you must remember that the only propulsion was wind which was caught in the sails and provided the force to the hull through the mast. Crews and sailing masters knew how to best rig the ship for all conditions.
The barques should have much better sailing than the Land-Lubbing Morons of Atari who configured this based on Ignorance.
Barque Lateen sails give it ability to sail into the wind at higher speed than wind speed, if properly handled sails by a knowledgeable crew.
lateen sail [Credit: Encyclopędia Britannica, Inc.]triangular sail that was of decisive importance to medieval navigation. The ancient square sail permitted sailing only before the wind; the lateen was the earliest fore-and-aft sail. The triangular sail was affixed to a long yard or crossbar, mounted at its middle to the top of the mast and angled to extend aft far above the mast and forward down nearly to the deck. The sail, its free corner secured near the stern, was capable of taking the wind on either side, and, by enabling the vessel to tack into the wind, the lateen immensely increased the potential of the sailing ship.
The lateen is believed to have been used in the eastern Mediterranean as early as the 2nd century ce, possibly imported from Egypt or the Persian Gulf. Its effective use by the Arabs caused its rapid spread throughout the Mediterranean, contributing significantly to the resurgence of medieval commerce. Combined with the square sail, it produced the ocean-conquering full-rigged ship. The Sunfish class of one-design sailboats is lateen-rigged.
Pirates (Barbary Coast) used these exclusively and were so effective the US Fleet was sent, along with the Brits, to put them out of business....Shores of Tripoli.
The Portuguese Caravel was a lateen sail vessel which was used to sail all over the world, and was the vessel of choice for the best sailing characteristics, durability, maneuvering in restricted waters and attacking much larger and heavily armed military vessels.
The other really stupid, ignorant blunder is the sailing characteristics of the sloops, which do not stop while tacking or jibbing into the wind. When properly rigged the sloops sail into the wind with the speed of a Caravel or Barque.
The most revealing stupidity is the inability of the Brig series to sail into the wind even though the read-me listing indicates it is the only ship that can sail directly into the wind. Those two huge square sails when rigged fore and aft act as four lateen sails in catching the wind and providing force to the ship.
Also...the most insulting action ...most revealing characteristic of just how much effort Atari coders put into researching this subject is that all ships big and small have the ability to "twist" or spin about their central axis...this is impossible in sailing ships and I curse Atari Idiot Coders every time I approach a ship with my high speed Pinnace type only to have the vessel spin about suddenly and present a broadside volley to my ship!
Another disgusting stupidity is when a vessel shot is passing 50 yards or more (by scale) from my vessel and the shot explodes as if hitting my ship! This needs to be fixed.
Disgustingly, insultingly, moronic ...I just don't have enough words to properly describe people who put this trash programming into a famous pirates game just to make money, with no regard for the customer (gamer) who is paying for this trash (garbage).
If anyone out there has the knowledge, talent, and integrity to want to set to right these blunders I would appreciate directions on how to go about it.
Last edited by ronnraymore on Mon Jun 27, 2016 3:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Mon Jun 27, 2016 3:09 pm Post subject: |
|
|
|
|
| Back to top |
|
 |
ronnraymore

Seaman 
Posts: 125 


4823 Gold -

|
Posted: Mon Jun 27, 2016 3:34 pm Post subject: Ahhha! Curses on Firaxis |
|
|
Atari should be a lot more careful about what programming they associate with their Branding.
So, the former employees of Microsoft that wrote the wonderful Win95 and the follow-up attempts to correct the glaring errors, were fired and formed their own programming company Firaxis.
I have contacted them in an attempt to get information on how to salvage this game...no one there will admit to having been involved in this corruption.
I still blame Atari for accepting this garbage, not providing proper QA, and returning this garbage to Firaxis until the program was in specification.
Anyone have a contact at Firaxis I can reach for help with this? |
|
| Back to top |
|
 |
Roland

Helmsman 
Posts: 4190 

 
23929 Gold -

|
Posted: Tue Jun 28, 2016 5:28 pm Post subject: |
|
|
A lot of these things you perceive as problems are just the inevitable result of having to mediate between very different time and distance scales. Storms seem to sneak up suddenly because when sailing on the large map a whole day passes in a few seconds. Long-distance sailing abstracts from the minute-to-minute details of adjusting sails and tacking. In order to incorporate the level of detail you appear to be demanding, the game would have to slow way down and the map would have to drill down to much finer detail. It might take 30 minutes to sail to Vera Cruz, and you would not see any land on your screen during most of that time. Perhaps you would enjoy that level of detail and that sort of immersion in simulated sailing, but I suspect most players would not. |
|
| 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
|
|