• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Assassin Main Quest

<!--quoteo(post=313261:date=Apr 14 2009, 08:05 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 14 2009, 08:05 PM) <a href="index.php?act=findpost&pid=313261"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->The Xebec appears good now with the latest fixes.
Only sometimes there's a crewmember who walks into the ship's cabin, so that you see his head going through the deck above. <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

We could use the 12% smaller crew mod... the crew seem too big anyway as they are now:shrug

Which files need editing to use the new walk file?
 
Walk file goes in PROGRAM\SEA_AI\walk; then you have to edit PROGRAM\SEA_AI\shipWalk.c to be able to use the file.
Then in PROGRAM\SHIPS\ships_init.c, you have to add a refShip.walk line.

Those 12% smaller lowmen are the low-detail PotC versions though. We've been using the AoP versions for quite a while now. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
Cheers for the walk file info Pieter

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Those 12% smaller lowmen are the low-detail PotC versions though. We've been using the AoP versions for quite a while now.<!--QuoteEnd--></div><!--QuoteEEnd-->
I'll scale the AOP ones down if ya want.

damski.
 
That'd be nice! Do the smaller crew look right on all sizes of ships though?
 
<!--quoteo(post=313269:date=Apr 14 2009, 08:29 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 14 2009, 08:29 PM) <a href="index.php?act=findpost&pid=313269"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Do you happen to have any input on how frequent you would want this to happen, Bartolomeu? At different points in the quests?
I would suggest adding the <i>.dangerous</i> attribute to the port of the town and also the location where the sign is; provided that is NOT the port, of course. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
All the signs are in the port. But I can post a list of the locations later today. As I said two locations for each Spanish town and one of them would always be the port. Of course, I will successively add the locations in the quests_reaction.c ; first Santiago after the attack's warehouses and so on....


About how frequent, I let you choose the value. Anyway, we can test the mod when finished and I'll give you my opinion.
 
<!--quoteo(post=313410:date=Apr 15 2009, 10:38 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 15 2009, 10:38 AM) <a href="index.php?act=findpost&pid=313410"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That'd be nice! Do the smaller crew look right on all sizes of ships though?<!--QuoteEnd--></div><!--QuoteEEnd-->

Yes...they look a lot better.
 
<!--quoteo(post=313416:date=Apr 15 2009, 11:53 AM:name=bartolomeu o portugues)--><div class='quotetop'>QUOTE (bartolomeu o portugues @ Apr 15 2009, 11:53 AM) <a href="index.php?act=findpost&pid=313416"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->All the signs are in the port. But I can post a list of the locations later today. As I said two locations for each Spanish town and one of them would always be the port. Of course, I will successively add the locations in the quests_reaction.c ; first Santiago after the attack's warehouses and so on....<!--QuoteEnd--></div><!--QuoteEEnd-->With the code I posted, you should be able to do it yourself, right?

<!--quoteo(post=313416:date=Apr 15 2009, 11:53 AM:name=bartolomeu o portugues)--><div class='quotetop'>QUOTE (bartolomeu o portugues @ Apr 15 2009, 11:53 AM) <a href="index.php?act=findpost&pid=313416"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->About how frequent, I let you choose the value. Anyway, we can test the mod when finished and I'll give you my opinion.<!--QuoteEnd--></div><!--QuoteEEnd-->I still need to know the range of that value though. What's the highest negative value you have seen it at during the Bartolomeu quest?
Imagine that the highest negative value is -10, maybe the following would work:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// KK -->
        if (GetLocationNation(location) != PERSONAL_NATION)
        {
            // PB: For Bartolomeu -->
            if(CheckAttribute(location,"dangerous") && NationsRelations2MainCharacter[sti(GetLocationNation(location))] == RELATION_ENEMY && abs(GetNationRelation2MainCharacter(sti(GetLocationNation(location)))) > rand(sti(PChar.skill.luck)))
            {
                relation = LAI_GROUP_ENEMY;
            }
            else
            {
                relation = LAI_GROUP_NEITRAL;
            }
            // PB: For Bartolomeu <--
        }
        else
            relation = LAI_GROUP_FRIEND;
// <-- KK<!--c2--></div><!--ec2-->
If so, the higher your luck, the lower the chance of everybody turning hostile, but the more you're hated by that nation the higher the chance.
It could be that the hostility happens too frequently with this code, though, in which case we'd need to add a factor decreasing the chance.
I haven't tested this chance code, but give it a try and see what you get. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />

<!--quoteo(post=313417:date=Apr 15 2009, 11:57 AM:name=damski62)--><div class='quotetop'>QUOTE (damski62 @ Apr 15 2009, 11:57 AM) <a href="index.php?act=findpost&pid=313417"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Yes...they look a lot better.<!--QuoteEnd--></div><!--QuoteEEnd-->In that case I'll be happy to add them if you make them! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
 
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->In that case I'll be happy to add them if you make them!<!--QuoteEnd--></div><!--QuoteEEnd-->

I'm on with them now <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
<!--quoteo(post=313421:date=Apr 15 2009, 12:22 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 15 2009, 12:22 PM) <a href="index.php?act=findpost&pid=313421"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->What's the highest negative value you have seen it at during the Bartolomeu quest?<!--QuoteEnd--></div><!--QuoteEEnd-->
I don't remember. Anyway, why not use the highest value available in the game ? Is not around -90 ?

Otherwise , just for information, here's my list of locations :
Santiago : Santiago_port, Santiago_Town_01
Havana : Cuba_port, Havana_Town_03
Santo Domingo : Santo_Domingo_Port, Santo_Domingo_town
San Juan : Muelle_port, Muelle_Town_04

In the future, I will add 2 locations for Eleuthera after finishing the fort's attack quest.

BTW : I fixed many errors in Havana
 
Hi,
Smaller deck crew,(Lo_men), are uploaded to FTP in my "for Pieter" folder.

You can have your thread back now Bartolomeu <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />

<img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
damski.
 
Thanks Bartolomeu and Damski! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
For Eleuthera, best wait with adding anything until Philippe and Screwface have it finished. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
The code doesn't work. Could you check my file Pieter to confirm I didn't make any mistake.

Btw: When a nation is hostile towards you the minimum is -60. So your -10 is far from the right number <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
Which code exactly doesn't work? I didn't test the code in yesterday's post, but the code I posted <a href="http://forum.piratesahoy.net//index.php?s=&showtopic=12786&view=findpost&p=312986" target="_blank">here</a> should definitly work.
I'll check your code when I get home; I can't open RAR files here. Unless you upload a ZIP version soon; then I might be able to check it earlier.
The <a href="http://forum.piratesahoy.net//index.php?s=&showtopic=12786&view=findpost&p=313266" target="_blank">camouflage code</a> also works.

Good point about the -90; so that's the minimum, right? Does anyone know the maximum for hostile? Or at least a "high" value?
I'll make some changes to that code soon and upload my own file for you. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
<!--quoteo(post=313635:date=Apr 16 2009, 01:55 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 16 2009, 01:55 AM) <a href="index.php?act=findpost&pid=313635"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Good point about the -90; so that's the minimum, right? Does anyone know the maximum for hostile? Or at least a "high" value?<!--QuoteEnd--></div><!--QuoteEEnd-->

#define REL_MIN -119.0

Hook
 
Brillaint! Thanks Hook! <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
I think I didn't make any mistake Pieter, but to be sure, I would like you check my file. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
I'm home now, so I'll get right to it. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
Wooooow; why is your file SO different from mine? Is that the Build 13 file or something? <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
Anyway, your addition of my code looks good. Remove:
<i>&& abs(GetNationRelation2MainCharacter(sti(GetLocationNation(location)))) > rand(sti(PChar.skill.luck))</i>
from the if-statement, then check if it does work right. In the weekend I'll see about fixing up the chance part. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
No i think the file is from alpha 9 <img src="style_emoticons/<#EMO_DIR#>/huh.gif" style="vertical-align:middle" emoid=":huh" border="0" alt="huh.gif" /> I need to check that again. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

Ok, i will remove a part of the code.

Btw : is it possible to sink a ship if the player is for instance in a port location ? I tried to sink a ship putting is HP value = 0 but nothing happens.

If not possible, I will have to make a small video showing the ship sinking.
 
Are you using Patch 2? I think Hook made some adjustments to the LAi_monsters.c file in one of the patches, which you might have missed.
Anyway, it looks to me like you did add the code properly, which means that probably my chance addition doesn't work.
I'll check that in the weekend. This does work; I checked:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(CheckAttribute(location,"dangerous") && NationsRelations2MainCharacter[sti(GetLocationNation(location))] == RELATION_ENEMY)<!--c2--></div><!--ec2-->
As for your request about sinking a ship, I'm not sure. I recall Petros wanted to have a ship sunk through code, but that was in 3D sailing mode.
KillCharacter didn't work for that, but setting HP = 0 did. <a href="http://forum.piratesahoy.net//index.php?s=&showtopic=12630&view=findpost&p=304893" target="_blank">This</a> is what I posted then, which worked for Petros.
If that doesn't work for you, we'll need to find something else. What happens if you set HP = -1? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />

While you're at it, could you possibly test making the ship sail away while you're in port?
I *think* that can be done; I once tested <a href="http://forum.piratesahoy.net//index.php?s=&showtopic=11126&view=findpost&p=264509" target="_blank">this code</a> that a simple virtual sailor posted.
I'm hoping that the following will indeed make a ship sail away while you're in the port:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Characters[GetCharacterIndex("YOUR CHARACTER")].Ship.stopped = false;
Characters[GetCharacterIndex("YOUR CHARACTER")].Ship.Speed.z = 1.5;<!--c2--></div><!--ec2-->
It will do you no good in this particular case, but I'd like to know if that works and maybe it can be used somewhere else at some point.
I'm thinking the "Barbossa Maroons Jack Sparrow" scene, for instance. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />

<b>Edit:</b> Actually, maybe that WILL help you. If you can set a Speed.z value for longitudinal movement,
maybe a Speed.x or Speed.y value would give you <i>vertical</i> movement! <img src="style_emoticons/<#EMO_DIR#>/24.gif" style="vertical-align:middle" emoid=":rofl" border="0" alt="24.gif" />
 
Back
Top