| View previous topic :: View next topic |
| Author |
Message |
Mr. Blue

Rigger 
Posts: 1947 

 
79893 Gold -

|
Posted: Mon Feb 18, 2013 2:35 am Post subject: So how come you do business with THEM? |
|
|
It always seems a little unfair to me when the Spanish won't do business with me because I'm a heretic. They gladly do business with any ship of any hostile nation that has "smuggler" written over her.
Then again, do the smuggler ships ever leave again? I don't remember. If they mysteriously disappear - well, that's a bit sinister.[/i][/b] _________________ " ... the mistakes that we male and female mortals make when we have our own way might fairly raise some wonder that we are so fond of it. " George Eliot |
|
| Back to top |
|
 |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Mon Feb 18, 2013 12:31 pm Post subject: |
|
|
Perhaps the smuggler captains have at least 'Captain' rank with the Spanish. |
|
| Back to top |
|
 |
Roland

Helmsman 
Posts: 4190 

 
23929 Gold -

|
Posted: Tue Feb 19, 2013 7:05 am Post subject: |
|
|
Yes, it's amazing how that captain's insignia makes you look like a good Catholic! |
|
| Back to top |
|
 |
Rusty Edge

Rigger 
Posts: 1977 

 
2992 Gold -

|
Posted: Sun Feb 09, 2014 3:54 am Post subject: |
|
|
But do you have a mustache and a theatrical disguise?  |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Sun Feb 09, 2014 2:55 pm Post subject: |
|
|
I`ve been looking into this just now. Without the rank of captain in those strict ports you need favour of about 2 or 3 to trade. With a mustache it`s down to -4 (that`s a 4000 bounty) and with the theatrical disguise to about -8. The problem is you can`t get into the town anyway at this favour level without attacking it and you can`t sneak to the market. This renders these items near useless. I`m working on a mod where the disguise will help you enter more easily. Sadly it`s quite complicated and wont be universally patchable. |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Thu Mar 06, 2014 3:34 pm Post subject: |
|
|
| dogcigar wrote: | | I`m working on a mod where the disguise will help you enter more easily. | Sounds cool! Let us know when it's ready. I'll be curious to find out how it works. |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Thu Mar 13, 2014 6:10 pm Post subject: |
|
|
Well this is a little complicated. I have this mod that writes values to unused places. It runs everytime you enter a town. In this I take the disguise value multipy it by 4 and save it to the rank register for Pirates and Indians (the game doesn`t use these).
Next I found where the game checks your favour. It`s a quick check before you actually enter the city. I didn`t have enough room so I send it to a code cave I made with a call procedure. Before it checks the value it now adds the the fake value I stored in the Indian/Pirate registers and the abilty to enter the city is now affected by disguise. The moustache gives you +4 favour and the Theatrical Disguise +8. |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Thu Mar 13, 2014 7:52 pm Post subject: |
|
|
| dogcigar wrote: | | Well this is a little complicated... The moustache gives you +4 favour and the Theatrical Disguise +8. | Nice. Good work! I would use a mod like that.
| dogcigar wrote: | | I didn`t have enough room so I send it to a code cave I made with a call procedure. | Yeah, that's usually how it goes. :-P In my own mods I've been overwriting the CD check for my "code cave" because it's a fairly large region that I know for sure isn't "important". But it's possible to insert an arbitrary amount of extra space into the exe and modify the exe headers so the extra space gets placed at the right location in memory, if a really big cave is needed. (I did that for my "moddability mod".)
I guess your mod is just for the Mac version of the game, though? |
|
| Back to top |
|
 |
Roland

Helmsman 
Posts: 4190 

 
23929 Gold -

|
Posted: Thu Mar 13, 2014 8:00 pm Post subject: |
|
|
| dogcigar wrote: | | . . . the rank register for Pirates and Indians (the game doesn`t use these). |
Wouldn't it be cool to be a Pirate admiral or an Indian marquis! I suppose the only thing you could do to earn favor points would be to capture military ships, but just capturing the EVIL villains' galleons a few times should be good for three promotions. |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Sun Mar 16, 2014 1:17 pm Post subject: |
|
|
great idea Adam. I`ll be looking for the cd check space. I`m always looking for more space |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Sun Mar 16, 2014 1:31 pm Post subject: |
|
|
| dogcigar wrote: | | great idea Adam. I`ll be looking for the cd check space. I`m always looking for more space | On the PC version, there's about 1k of space there, but when implementing my relations/items mod, I ran out of space. So I modified the exe to add a couple more segments, one for mod code and another for mod data. That way I could have as much space as I wanted.
It's surely possible to do the same thing for Mac executables. I think Mac OS X is based on FreeBSD, which uses ELF executables, and ELF is fairly easy to understand. (There may even be some ELF editors out there.) But maybe Mac OS X doesn't use ELF, or maybe the game is old enough that it uses some other format(?). Might be worth looking into in any case!
But to find the CD check, you can search for a string that it outputs (like "Please enter the CD" or whatever), and then find a reference to that string. I think the Cheat Engine can do that. That's assuming the Mac version has a CD check. :-P |
|
| Back to top |
|
 |
AdamMil

Cutthroat 
Posts: 279 

 
4759 Gold -

|
Posted: Sun Mar 16, 2014 1:44 pm Post subject: |
|
|
Actually it turns out that Mac OS X uses the Mach-O (MACHO) format for its executables. I haven't found any editors specifically for those, but there's MachOView, which can parse them, and I suppose you could do the editing with a hex editor. You can find the reference for the executable format here. Might be worth looking into if you really run out of space! (I can try to help out with it, too.) |
|
| Back to top |
|
 |
|