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

Altering Hex Codes?
Post new topic   Reply to topic     Forum Index -> Customization & Modding Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sat Oct 10, 2020 11:51 pm    Post subject: Altering Hex Codes? Reply with quote

I ran across this thread and it has the information I want...but I can't get anything out of it.

http://www.hookedonpirates.com/forwarder.html?http://www.hookedonpirates.com/forums/viewtopic.php?t=6128

Could someone please translate it to grug-speak? I can't figure it out. All the numbers are weird and mismatched and I can't find them when I Ctrl+F in my hex editor. The tables don't help at all.

https://imgur.com/b6vvNrG

I'm not getting what the value numbers are or where these numbers and letters are coming from, I just can't make any sense of it. Someone please help. I've been at this for hours and I'm about to go mad. I just want to change a couple of values, it shouldn't be this difficult.
Back to top
View user's profile Send private message
Pirate
Helmsman
Posts: 5927



117641 Gold -

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

they should be located in the offsets provided. the offsets are to the far left in the editor. its possible they are not if you have steam it has a slightly different executable
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

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

Pirate wrote:
they should be located in the offsets provided. the offsets are to the far left in the editor. its possible they are not if you have steam it has a slightly different executable


Oh that's right, my mistake.

And yes, I do have the game through Steam. Would the GOG version have the original executable to which these tables would apply?
Back to top
View user's profile Send private message
fleetp
Helmsman
Posts: 4598



26019 Gold -

PostPosted: Sun Oct 11, 2020 1:39 am    Post subject: Reply with quote

I have the CD version of the game, here's the lines I found for what I believe is the flag galleon
64 00 00 00 80 00 00 00 F4 01 00 00 40 06 00 00 AC 08 00 00 00 00 00 00 06 00 00 00 1C 03 00 00 64 00 00 00 64 00 00 00 64 00 00 00 64 00 00 00


The offset is 003261C0
Back to top
View user's profile Send private message Send e-mail
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sun Oct 11, 2020 2:07 am    Post subject: Reply with quote

fleetp wrote:
I have the CD version of the game, here's the lines I found for what I believe is the flag galleon
64 00 00 00 80 00 00 00 F4 01 00 00 40 06 00 00 AC 08 00 00 00 00 00 00 06 00 00 00 1C 03 00 00 64 00 00 00 64 00 00 00 64 00 00 00 64 00 00 00


The offset is 003261C0


There is no such offset in the Steam one. And searching for those numbers in the Crtl+F function only yields a "Cannot Find".

I think I may need to purchase the GOG version.
Back to top
View user's profile Send private message
Pirate
Helmsman
Posts: 5927



117641 Gold -

PostPosted: Sun Oct 11, 2020 2:35 am    Post subject: Reply with quote

Download Adam Mills Challenge pack. Don’t select any mods unless you want them and spit out a new executable that is universal for steam and the CD version. Probably find the offset exactly as shown or the one Fleetp gave you and it will save you from buying another game of the same thing.
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sun Oct 11, 2020 3:06 am    Post subject: Reply with quote

AdamMil - The Challenge Pack Mod
http://www.hookedonpirates.com/forums/viewtopic.php?t=7902

The Sid Meier's Pirates! Challenge Pack
http://www.adammil.net/blog/v121_The_Sid_Meier_s_Pirates_Challenge_Pack.html

Quote:

As a bonus, if you don't select any mods, you'll get a clean, unencrypted executable that's suitable for creating mods and applying other people's mods. (The Steam version supports no exe mods. The retail version supports exe data mods but not code mods. This version supports both code and data mods.)
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sun Oct 11, 2020 3:33 am    Post subject: Reply with quote

corsair91 wrote:
AdamMil - The Challenge Pack Mod
http://www.hookedonpirates.com/forums/viewtopic.php?t=7902

The Sid Meier's Pirates! Challenge Pack
http://www.adammil.net/blog/v121_The_Sid_Meier_s_Pirates_Challenge_Pack.html

Quote:

As a bonus, if you don't select any mods, you'll get a clean, unencrypted executable that's suitable for creating mods and applying other people's mods. (The Steam version supports no exe mods. The retail version supports exe data mods but not code mods. This version supports both code and data mods.)


This looks amazing, thank you so much! I just have to ask, will the trainer work with it? And when I find the lines I want, what values do I change and how do I change them? All this hexadecimal stuff is very alien to me so I'm not sure how to work the numbers and letters.

And not all of the offsets match up. The War Canoe is supposedly on 00325B08, but there is no 00325B08, and I can't find the values that match it nearby. And that's not the only example. Many of these offsets in the charts simply don't exist when I look for them. Either people are getting this wrong or something has changed? I'm still completely lost as to what to do with these values.

I'm also wondering what exactly people are saying when they refer to value 1, value 2, etc., because they don't match up to the charts either.

I need serious help with this.


Last edited by Captain of the Wylfen on Sun Oct 11, 2020 4:10 am; edited 3 times in total
Back to top
View user's profile Send private message
corsair91
Sailing Master
Posts: 10370



296901 Gold -

more...
PostPosted: Sun Oct 11, 2020 3:38 am    Post subject: Reply with quote

The Trainer works with both Steam and retail CD/DVD Game versions.

I would expect the Trainer to work with the Challenge Pack Mod
executable, have no info that it doesn't.

Have no feedback info either way regarding the GOG game version.


There is a specific setting for the Steam game version:
change the game type from 1.20 to the Bigpond and TryMedia


Last edited by corsair91 on Sun Oct 11, 2020 3:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sun Oct 11, 2020 3:46 am    Post subject: Reply with quote

corsair91 wrote:
The Trainer works with both Steam and retail CD/DVD Game versions.

I would expect the Trainer to work with the Challenge Pack Mod
executable, have no info that it doesn't.

Have no feedback info regarding the GOG game version.


There is a specific setting for the Steam game version:
change the game type from 1.20 to the Bigpond and TryMedia


Thank you. I made an edit to my above post. I really need help figuring out these stupid letters and numbers and where they're supposed to be. Info isn't matching up from the charts people provide.
Back to top
View user's profile Send private message
Pirate
Helmsman
Posts: 5927



117641 Gold -

PostPosted: Sun Oct 11, 2020 4:19 am    Post subject: Reply with quote

Might not match up unless you make a new executable that’s why I mentioned it. These people who modded this stuff and discovered it are sharp people and they know what is what.
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sun Oct 11, 2020 4:28 am    Post subject: Reply with quote

Pirate wrote:
Might not match up unless you make a new executable that’s why I mentioned it. These people who modded this stuff and discovered it are sharp people and they know what is what.


I DID make a new executable and things still aren't matching. And I can't see enough of all the hex code to get all the necessary numbers, how do I extend it?

I keep finding more and more questions that I can't get answers to and it's honestly souring me to this game in general, I'm so sick of this garbage. Absolutely nothing has any right being this difficult for such a simple change.

I need live real-time help or something because I just can't figure this shit out. Like I need to be voice-chatting to someone on Discord while showing screenshots or something. I'm actually ready to throw my laptop at this point.
Back to top
View user's profile Send private message
Pirate
Helmsman
Posts: 5927



117641 Gold -

PostPosted: Sun Oct 11, 2020 5:25 am    Post subject: Reply with quote

Well try searching for the hex string Fleetp gave you. There is a search function in my editor that allows you to search for strings or text. In your case make sure you search for the hex values instead of text or it will say can’t find it. I make that mistake all the time.
Back to top
View user's profile Send private message
Captain of the Wylfen
Powder Monkey
Posts: 17



502 Gold -

PostPosted: Sun Oct 11, 2020 5:40 am    Post subject: Reply with quote

Pirate wrote:
Well try searching for the hex string Fleetp gave you. There is a search function in my editor that allows you to search for strings or text. In your case make sure you search for the hex values instead of text or it will say can’t find it. I make that mistake all the time.


I did that, but now I don't know what values to change. The format isn't like what's on the chart. Again, things aren't matching up and I just can't figure them out.

From the chart:

Address - Ship Name - V1 Min Crew - V2 Rotation - V3 Ship Type - V4 Max Crew - V5 Max Cannons - V6 Max Cargo - V7 EOS? - V8 Width? - V9 Length? - V10 Height? - V11 EOS? - V12 ???? - V13 Hit Points?

Fast Galleon - 8 - 7 - 1 - 160 - 24 - 80 - 128 - 500 - 1550 - 1896 - 0 - 6 - 796

War Galleon - 8 - 7 - 1 - 200 - 32 - 90 - 128 - 500 - 1600 - 2220 - 0 - 6 - 796

Flag Galleon - 8 - 8 - 1 - 250 - 40 - 100 - 128 - 500 - 1600 - 2220 - 0 - 6 - 796

Now this line of code:

64 00 00 00 80 00 00 00 F4 01 00 00 40 06 00 00 AC 08 00 00 00 00 00 00 06 00 00 00 1C 03 00 00 64 00 00 00 64 00 00 00 64 00 00 00 64 00 00 00

Is 80 supposed to be the minimum crew? Where's the rotation thing? What's F4? What's AC? None of these make any sense.

But for comparison, here's some code which is for one of the frigates, I think.

64 00 00 00 64 00 00 00 08 00 00 00 07 00 00 00 01 00 00 00 C8 00 00 00

08 must be 8, the minimum crew. 07 is the rotation. 01 is the ship type. Not sure what C8 is. That at least seems to fit. The one supposedly for the Flag Galleon doesn't fit.

This is arcane garbage and I've had it up to my eyeballs. Someone please explain what this is and what I'm supposed to do with it. Would someone be willing to VC on Discord and walk me through it in grug-brain terms?
Back to top
View user's profile Send private message
themodelcitizen
Gunner
Posts: 903



15615 Gold -

PostPosted: Sun Oct 11, 2020 7:13 am    Post subject: Reply with quote

You're going into the game code and changing things, obviously it's not going to be a simple fix.

From that thread you posted, it looks like the "80" would be price and/or minimum crew? difficult to read. That "chart" looks like it corresponds to a specific entry for each ship.

The F4/AC stuff you can convert using a hex converter, just google that and I think it's the first result. You can convert a decimal entry like "50" (fifty) to its corresponding hex equivalent, which is how the game actually reads it.

It's confusing as hell, but it makes sense after a while, I went from knowing nothing about it with no math background to figuring it out with the help of fleetp and pirate pretty quickly
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
Goto page 1, 2  Next
Page 1 of 2

 
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