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

Altering Ships
Post new topic   Reply to topic     Forum Index -> Customization & Modding
View previous topic :: View next topic  
Author Message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sat Oct 10, 2020 9:50 am    Post subject: Altering Ships Reply with quote

Played this game for several years but never had an account here before. Good to see this place is active. And thank goodness for the trainer. My absolute favourite feature of it is the happy crew toggle. That alone made the game 10x better for me, everything else is just a bonus.

On to the question of modding; has anyone figured out how to delve into the arcana of the game files and change specific things about ships?

For instance; altering the speed, tonnage, and number of guns of a particular ship type to suit the player? I'd like to make a Flag Galleon faster and able to carry more cargo and guns, because it's my favourite type of ship, and I'd like it to be a bit better than a Ship of the Line.

If it's possible I'd love to know how. If not, oh well. Never hurts to ask.
Back to top
View user's profile Send private message
Pirate
Helmsman
Posts: 5589



109759 Gold -

PostPosted: Sat Oct 10, 2020 5:40 pm    Post subject: Reply with quote

The game Sea Dogs its easy to change all that but this game it probably could be done. There was a mod that changed the war gallons to frigates and I would say you could use the hex strings from that mod without changing the nifs and texts since you wanted to keep them gallons but basically those hex strings make the galleons perform at the level of frigates meaning the flag gallon would be the same as a ship of the line. If anybody knows where that mod can be found please speak up.
Back to top
View user's profile Send private message
fleetp
Boatswain
Posts: 3728



36087 Gold -

PostPosted: Sat Oct 10, 2020 5:51 pm    Post subject: Reply with quote

Welcome to hooked on pirates. Smile
The PHtrainer has an option for using phantom cannons in battle, I've never used it, so I can't say what it specifically does. In the fleet status section of the trainer there's a section to set minimum ship speed. Again, I've never used it, but it might allow you to set the minimum speed very high.

I looked at a saved game file using the perl save game editor. You can increase the number of cannon on your ship, but I didn;t see anyplace wher you could increase the cargo or ship speed.

I suspect (not sure) that the characteristics of a ship (maximum cargo tonnage, speed, crew capacity, max number of cannon) are hard coded in the pirates!.exe file. If they are , they can be changed using a hex editor. Remember to ALWAYS back up your exe file before making any changes.

One easier possibility of doing what you want is to use the PHtrainer to change your ship into a ship of the line, and then use one of the fpk unpacker tools to extract the nkf and dds files for the ship of the line and the flag galleon nif and dds file. Then rename the ship of the line nif and dds files using the flag galleon equivalent.
Back to top
View user's profile Send private message Send e-mail
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sat Oct 10, 2020 8:57 pm    Post subject: Reply with quote

fleetp wrote:
Welcome to hooked on pirates. Smile
The PHtrainer has an option for using phantom cannons in battle, I've never used it, so I can't say what it specifically does. In the fleet status section of the trainer there's a section to set minimum ship speed. Again, I've never used it, but it might allow you to set the minimum speed very high.

I looked at a saved game file using the perl save game editor. You can increase the number of cannon on your ship, but I didn;t see anyplace wher you could increase the cargo or ship speed.

I suspect (not sure) that the characteristics of a ship (maximum cargo tonnage, speed, crew capacity, max number of cannon) are hard coded in the pirates!.exe file. If they are , they can be changed using a hex editor. Remember to ALWAYS back up your exe file before making any changes.

One easier possibility of doing what you want is to use the PHtrainer to change your ship into a ship of the line, and then use one of the fpk unpacker tools to extract the nkf and dds files for the ship of the line and the flag galleon nif and dds file. Then rename the ship of the line nif and dds files using the flag galleon equivalent.



Thanks matey! Smile

The phantom cannon option just makes it so you don't need actual cannons in your inventory (or at least not the exact number for your flagship) and when in combat you'll have the max number of guns your ship can carry. For example if you only have 10 cannons but your ship has a capacity for 24, any time you attack another ship you'll have 24 cannons.

How would one use a hex editor (where do I get a hex editor?) and where could the ships and such be found within the .exe? Forgive me, I'm a wee baby noob when it comes to modding, the most I've done is put in a new flag, and that was just dropping a .dds file into the custom folder.

Wouldn't that change all Ships of the Line into Flag Galleons? That isn't what I'm after. I just want the Flag Galleon to be a bit better in certain ways, starting with more cannons since it is an objectively bigger ship, I think it would take 50 or 60.
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sat Oct 10, 2020 9:28 pm    Post subject: Hex Editor Reply with quote

So I found a hex editor and opened pirates!.exe in it. It's all a bunch of gibberish, I can't make heads or tails of it.

https://imgur.com/qqBpk1d

https://imgur.com/3Tb0zHI

If anyone could help, I'd appreciate it. Maybe I'm doing something completely wrong.
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 8201



206645 Gold -

PostPosted: Sat Oct 10, 2020 10:52 pm    Post subject: Reply with quote

The Spanish frigates mod was done by Parksbanyon



Parksbanyon Mods Info
http://www.hookedonpirates.com/forums/viewtopic.php?t=7905


Parksbanyon
Current Dropbox Mods collection
https://www.dropbox.com/sh/byelhcafi0chrnr/AAChuiBjrfVxkRDHwTTd0oMPa?dl=0


Spanish frigates mod
http://www.hookedonpirates.com/forums/viewtopic.php?t=6688

Spanish use the frigate class instead of war galleons



The Hex Editor usually recommended here is

HxD - Freeware Hex Editor

https://mh-nexus.de/en/hxd/
https://en.wikipedia.org/wiki/HxD

forum
https://forum.mh-nexus.de/

Support
Help on how to use HxD.
https://forum.mh-nexus.de/viewforum.php?f=7&sid=904ed0dfddcf964cc5ef9a486eaa9a71




Try a google seach on say
HxD tutorial
or for whatever hex editor you have


This is a tutorial for Flex HEXEditor
http://www.flexhex.com/docs/howtos/hex-editing.phtml


Haven't watched this through but may help

Using a Hex Editor
https://www.youtube.com/watch?v=L3BwXbRDQM4


EDIT:

Hexadecimal
https://en.wikipedia.org/wiki/Hexadecimal

hexadecimal (also base 16 or hex) numeral system

Hexadecimal numerals are widely used by computer system designers and programmers because they provide a human-friendly representation of binary-coded values.


2nd EDIT:

Parksbanyon Threads

Anybody still out there? Interceptor wanted
http://www.hookedonpirates.com/forums/viewtopic.php?t=6731

hexedit Info to change mailrunner into an Interceptor class
(more Cannnons)


mail runner redo
http://www.hookedonpirates.com/forums/viewtopic.php?t=6613

interceptor - upgunned mail runner concept


Last edited by corsair91 on Tue Jan 26, 2021 11:32 am; edited 7 times in total
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sat Oct 10, 2020 10:59 pm    Post subject: Reply with quote

corsair91 wrote:
The Spanish frigates mod was done by Parksbanyon



Parksbanyon Mods Info
http://www.hookedonpirates.com/forums/viewtopic.php?t=7905


Parksbanyon
Current Dropbox Mods collection
https://www.dropbox.com/sh/byelhcafi0chrnr/AAChuiBjrfVxkRDHwTTd0oMPa?dl=0


Spanish frigates mod
http://www.hookedonpirates.com/forums/viewtopic.php?t=6688

Spanish use the frigate class instead of war galleons


Thw Hez Editor usually recommended here is

HxD - Freeware Hex Editor

https://mh-nexus.de/en/hxd/
https://en.wikipedia.org/wiki/HxD


Try a google seach on say
HxD tutorial
or whatevver hex editor you have


This is a tutorial for Flex HEXEditor
http://www.flexhex.com/docs/howtos/hex-editing.phtml

Haven't watched this through but may help

Using a Hex Editor
https://www.youtube.com/watch?v=L3BwXbRDQM4



I don't want the Spanish to use frigates. I want to alter the Flag Galleon so it's comparable to a Ship of the Line, just more guns and tonnage. I don't want to replace or change any models, I want to alter the stats/values for the Flag Galleon.
Back to top
View user's profile Send private message
Pirate
Helmsman
Posts: 5589



109759 Gold -

PostPosted: Sat Oct 10, 2020 11:32 pm    Post subject: Reply with quote

I'm not stupid I heard what you wanted. I didn't ask you to make the galleons into frigates but the hex strings wont change the galleons in to frigates its only if you install the whole mod. It would make them sail like the frigates. It wouldn't be better for cargo .
Back to top
View user's profile Send private message
fleetp
Boatswain
Posts: 3728



36087 Gold -

PostPosted: Sat Oct 10, 2020 11:50 pm    Post subject: Reply with quote

You asked "Wouldn't that change all Ships of the Line into Flag Galleons? That isn't what I'm after. I just want the Flag Galleon to be a bit better in certain ways, starting with more cannons since it is an objectively bigger ship, I think it would take 50 or 60."

Good question. but it's not something you need to worry about. Ships of the Line are extremely rare in the game. Some people have finished several games without seeing ONE, let alone capturing one.

For additional information on how to make the game generate a ship of the line, there are several threads in the "Life at Sea"section
http://www.hookedonpirates.com/forums/viewforum.php?f=15

You also said "I don't want to replace or change any models, I want to alter the stats/values for the Flag Galleon."

Finding the correct nif file (model) and dds file (texture) for the ship of the line in the fpk files will not be an easy task.

IF (and it's a big if) altering the stats for a flag galleon can be done, it would involve using a hex editor on the exe file. I have no idea where in the exe file specific ship information is, or what you would need to change.
Our member Pirate has done some work in exploring the exe file. He might be willing to assist.
Back to top
View user's profile Send private message Send e-mail
Pirate
Helmsman
Posts: 5589



109759 Gold -

PostPosted: Sun Oct 11, 2020 12:04 am    Post subject: Reply with quote

the Spanish frigate mod works like this it replaces both the ship nifs or in other words it changes the galleons into frigates. You don't want that so don't replace that part. Every ship in the executable has hex values. The frigate mod has the strings to make the galleons sail like the frigates. Yo might want that part.
Back to top
View user's profile Send private message
themodelcitizen
Gunner
Posts: 864



14646 Gold -

PostPosted: Tue Jan 26, 2021 9:00 am    Post subject: Reply with quote

One thing the game always seemed to be lacking is an escort/follow feature. It seems like it's in the code anyway, as ships can have their own AI escort, so theoretically you should be able to just right click or something and follow certain ships from a respectful distance without having to lower/raise your sails to keep the speed down.

I realize governors/mayors etc will stay with you if you're close enough, allowing you to try and whip them around and avoid enemies, always fun
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 8201



206645 Gold -

PostPosted: Tue Jan 26, 2021 11:27 am    Post subject: Reply with quote

Added some Parksbanyon Threads links to my prevous post in this Thread


modifying the mailrunner into an Interceptor class info
(more cannons)


Last edited by corsair91 on Mon Aug 30, 2021 4:46 am; edited 2 times in total
Back to top
View user's profile Send private message
parksbanyon
Gunner
Posts: 565



13127 Gold -

PostPosted: Sat Feb 06, 2021 4:58 pm    Post subject: interceptor Reply with quote

Find out when I made the interceptor. during that same time jlangsdo and dogcigar where combing thru the exe data figuring out what does what. also during the time AdamMilt was onboard.
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 8201



206645 Gold -

PostPosted: Tue Feb 09, 2021 3:54 pm    Post subject: Reply with quote

Mandiuscreel contributed to these threads

I'm thinking about a mod to change data in the ship table
http://www.hookedonpirates.com/forums/viewtopic.php?t=7098

posted Game version 1.02 EXE memory locations for Ships

see thread link



Editing the EXE
http://www.hookedonpirates.com/forums/viewtopic.php?t=6128

Modifying EXE Ship Values Info

see thread link
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Customization & Modding All times are GMT
Page 1 of 1

 
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