• 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!

DryDock

Uh, you need the #include commented if you're running stock Euro (Good call, Inez, I'd forgotten that)--but if you're doing this on top of the build then we've already replaced Dialog.c (which in the Euro does the auto-including) and thus you /do/ need the include.

Fudge, can you turn error-logging on (engine.ini, change tracefilesoff to 0) and then tell us what's in your error.log after talking to the fellow?

CharacterRef is a global that's ref'd to the person you're talking with, in Dialog.c. (And then in Char Name_dialog.c there's a second ref, NPChar, that is in turn ref'd to CharacterRef).
 
You're right Pieter, it /is/ a chatroom tonight... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
<!--QuoteBegin-NathanKell+May 4 2005, 09:27 PM--><div class='quotetop'>QUOTE(NathanKell @ May 4 2005, 09:27 PM)</div><div class='quotemain'><!--QuoteEBegin-->if you're doing this on top of the build then we've already replaced Dialog.c (which in the Euro does the auto-including) and thus you /do/ need the include.<!--QuoteEnd--></div><!--QuoteEEnd-->
Can't I be right just once ? I think fudge said he doesn't have the build <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />

Hey and I like using this as a chatroom. Have a lemonade, you all <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Ah, sorry. Missed that part.
Of course you can and are thus right (and are quite often too. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> )

Sorry if I sounded snippy or some other thing. :\
 
<!--QuoteBegin-Pieter Boelen+May 4 2005, 08:36 PM--><div class='quotetop'>QUOTE(Pieter Boelen @ May 4 2005, 08:36 PM)</div><div class='quotemain'><!--QuoteEBegin-->Anyway, check a different original dialogfile and try to recreate the same code, only applied to your dialog.
<div align="right">[snapback]103948[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->

I Have

Right i have done all that AND IT STILL DOES NOT WORK!!

have dialog files got something against me or somat?


And this is what the error log says

<!--QuoteBegin-My Error Log+--><div class='quotetop'>QUOTE(My Error Log)</div><div class='quotemain'><!--QuoteEBegin-->COMPILE ERROR - file: dialogs\English\oxbay drydock_dialog.h; line: 1
Invalid array 'DLG_TEXT' initialization
COMPILE ERROR - file: dialogs\oxbay drydock_dialog.c; line: 11
invalid 1st operand<!--QuoteEnd--></div><!--QuoteEEnd-->


<!--QuoteBegin-Posted May 4rd 08:31 PM by Pieter Boelen+--><div class='quotetop'>QUOTE(Posted May 4rd 08:31 PM by Pieter Boelen)</div><div class='quotemain'><!--QuoteEBegin-->Wasn't meant to offend you in the slightest. It wasn't about you whatsoever. Should've made that a little bit more clear. Sorry for that.<!--QuoteEnd--></div><!--QuoteEEnd-->

Apology excepted


<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> something tells me i dont know ho to spell that <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
<!--QuoteBegin-fudge dragon+--><div class='quotetop'>QUOTE(fudge dragon)</div><div class='quotemain'><!--QuoteEBegin-->Apology excepted<!--QuoteEnd--></div><!--QuoteEEnd-->Thank heavens! I really, really wasn't meaning to offend you; nor anyone else for that matter.
BTW: It's spelled as "accepted". <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
That is really funny. Maybe there is some list of dialogs there are in the game, and the drydock guard dialog isn't in that list, so the game doesn't know it's there. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />

<!--QuoteBegin-Pieter Boelen+May 5 2005, 01:32 PM--><div class='quotetop'>QUOTE(Pieter Boelen @ May 5 2005, 01:32 PM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-fudge dragon+--><div class='quotetop'>QUOTE(fudge dragon)</div><div class='quotemain'><!--QuoteEBegin-->Apology excepted<!--QuoteEnd--></div><!--QuoteEEnd-->Thank heavens! I really, really wasn't meaning to offend you; nor anyone else for that matter.
BTW: It's spelled as "accepted". <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
<div align="right">[snapback]104064[/snapback]</div>
<!--QuoteEnd--></div><!--QuoteEEnd-->
The dutch teaching the english how to spell in their own language? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/diomed.gif" style="vertical-align:middle" emoid=":dio" border="0" alt="diomed.gif" /> BTW, your english is very good, Pieter! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
LOL! Thanks for the compliment. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
I've been going on holiday to England for years and years. No English teacher has ever been able to learn me anything at school; they only managed to confuse me with weird grammar rules that I don't understand, but use properly anyway. I once tried taking a test while trying to use their rules: didn't receive a very good mark. Then I did the next test again by just not thinking about it: went waaay better. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
<!--QuoteBegin-fudge dragon+May 5 2005, 06:19 AM--><div class='quotetop'>QUOTE(fudge dragon @ May 5 2005, 06:19 AM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-My Error Log+--><div class='quotetop'>QUOTE(My Error Log)</div><div class='quotemain'><!--QuoteEBegin-->COMPILE ERROR - file: dialogs\English\oxbay drydock_dialog.h; line: 1
Invalid array 'DLG_TEXT' initialization
COMPILE ERROR - file: dialogs\oxbay drydock_dialog.c; line: 11
invalid 1st operand<!--QuoteEnd--></div><!--QuoteEEnd-->
<!--QuoteEnd--></div><!--QuoteEEnd-->

thats the .h file sorted (I had put ( instead of { ) <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
 
<!--QuoteBegin-fudge dragon+May 5 2005, 09:13 AM--><div class='quotetop'>QUOTE(fudge dragon @ May 5 2005, 09:13 AM)</div><div class='quotemain'><!--QuoteEBegin-->Right Thats dialogs sorted out

now how do i make a new quest
<div align="right">[snapback]104100[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->Heh, at least ask us some HARD questions, Fudge Dragon! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />

A good way to learn what to do to make a quest is to find a quest you are very familiar with - or one that is similar (or has a certain feature similar) to what you want to do, and then FOLLOW THE COMMANDS through the dialog and quests_reaction.c - that was pretty much how I learned - granted, a little bit sideways, but it worked for me. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />

A lot of the commands that tell the game what to do are in the dialog files - in PotC\PROGRAM\DIALOGS\ -- The dialogs are in two different types, *.c and *.h -- The commands that are in *.c that will send you to quests_reaction.c are in this form:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->  case "Node_11":
     GiveItem2Character(Pchar,"Story_Gramota");
     dialog.snd = "Voice\AMBE\AMBE013";
     d.Text = DLG_TEXT[36] + Characters[GetCharacterIndex(DLG_TEXT[37])].name + DLG_TEXT[38] + Characters[GetCharacterIndex(DLG_TEXT[39])].lastname + DLG_TEXT[40];
     Link.l1 = DLG_TEXT[41];
     Link.l1.go = "node_12";
     Link.l1 = DLG_TEXT[42];
     Link.l1.go = "node_13";
     Link.l1 = DLG_TEXT[43];
     Link.l1.go = "exit";
     AddDialogExitQuest("amiel_go_away");
 break;<!--c2--></div><!--ec2-->This is from Amiel Berangere's dialog.

<span style='color:red'>AddDialogExitQuest("amiel_go_away");</span> sends you to PotC\PROGRAMS\QUESTS\quests_reaction.c - to the node "amiel_go_away". There will be commands there to tell you what's happening in the game.

This is the node in quests_reaction.c --
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->  case "amiel_go_away":
     LAi_SetActorType(characterFromID("Amiel Berangere"));
     LAi_ActorGoToLocation(characterFromID("Amiel Berangere"), "reload", "reload1", "none", "", "", "", 10.0);
     AddPartyExp(pchar, 1500);
 break;<!--c2--></div><!--ec2--> This simply sets the NPC Amiel Berangere to an ACTOR, meaning that you can now give him a command and he'll follow it - and the command is "ActorGoToLocation" - meaning that his character will relocate to somewhere else - in this case he is being dismissed from his part in the quest, and he fades away to "nowhere" ("").

I hope this helps, and that it makes sense to you! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Right I am going to need some MAJOR help here

Quests are my weakest subject so I better tell you what I'm trying to achieve:



what I have so far;

[A house behind the shipyard,]
[A man in it that moans at you for being there.]

what I want to achieve (in order of importance);

[Make this Quest

when you talk to the dry-dock guard it is to add a quest log something like this

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><b>Strange building in Oxbay</b>

I found a strange building behind the shipyard but all the guard did inside is yell at me<!--QuoteEnd--></div><!--QuoteEEnd-->

if you talked to him without going through the door first of with a rep under 50 he would say that he does not trust you and if you have been through the door it would add this
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->The shipyard owner knows something but does not trust me, there must be a way to gain his trust<!--QuoteEnd--></div><!--QuoteEEnd-->
next time you talk about this if your rep is still under 50 he says "I still don't trust you" and it is not added again

then you go talk to the shipyard owner and if your reputation is higher than 50 when you ask him about the door he tells you its a dry-dock and go see the previous owner (who he has conveniently forgotten the name of) and adds this to your quest log
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->I talked to the shipyard owner and he said to see the previous owner though he could not remember his name<!--QuoteEnd--></div><!--QuoteEEnd-->

asking about the door now disappears from his dialog

you now talk to the tavern owner and you learn his name and the fact that he is on isla muelle this is added
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Dam i just missed the owner, he just set off for Isla Muelle<!--QuoteEnd--></div><!--QuoteEEnd-->
asking about the owner now disappears from his dialog

you sail to Isla Muelle and go to the tavern there to learn he is upstairs, like with escort missions he comes down the stairs and you ask him about dry-docks, he tells you he sold it to the Redmond governor but if you take him to Redmond he might be able to buy it back for you.
he is added to your party (as non removable) and this goes in the quest log
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->A stroke of good fortune!
When i asked at the tavern he was just leaving, the only problem is he has sold it to the Redmond governor, but if i take him to Redmond with me he might be able to buy it back then sell it to me.<!--QuoteEnd--></div><!--QuoteEEnd-->
asking about the owner now disappears from his dialog


then you go to Redmond he meets you at the port and tells you to meet him at the tavern he is then removed from your party and this is added
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->great all i have to do now is meet him at the tavern to finalise the deal<!--QuoteEnd--></div><!--QuoteEEnd-->

you go to the tavern and he meets you and says you can buy the dry-dock for 1000000 you now have two options,

ask him to wait while you get the money. the man will wait in the tavern downstairs for as long as it takes to get the money and this is added
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->All That is left to do is gather 1000000 and buy it from him, 1000000! but i bet it will be worth it<!--QuoteEnd--></div><!--QuoteEEnd-->
Or
buy the drydock so you do not get yelled at when you talk to the man and actually use its services. the x-owner now disappears and this is added
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->I brought the dry-dock for 1000000. that's a lot of money but it was worth it<!--QuoteEnd--></div><!--QuoteEEnd-->

the quest is now over!!]

[reuse the scripting for other dry-docks]
[get a 3d editing program and make an actual dry-dock]

any help would be appreciated and added to the documentation
 
I added a quest log entry to the quests_texts and a line to my dialog file
but when i talk to him and it closes it says quest log entry added but there is nothing there

I Think its putting the entry under a different log

literly when i complete all the tutorial quests i can just see a question mark visible underneath
 
What are you currently using as drydock location? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Just a little house? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/huh.gif" style="vertical-align:middle" emoid=":huh" border="0" alt="huh.gif" />
 
at the moment because i have not got any 3d editing softwere

its the loansharks house

it will change eventuly

its not high on the list of priorities
 
<span style='font-size:21pt;line-height:100%'><span style='color:red'><span style='font-family:Impact'><b><u>MOD CANCELED</u></b></span></span></span>

well endefinately postponed

that was just too hard
 
Back
Top