• 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

dialog .c

is now

//nclude "DIALOGS\oxbay drydock_dialog.h"
void ProcessDialogEvent()
{
ref NPChar;
aref Link, NextDiag;

DeleteAttribute(&Dialog,"Links");

makeref(NPChar,CharacterRef);
makearef(Link, Dialog.Links);
makearef(NextDiag, NPChar.Dialog);

ref PChar;
PChar = GetMainCharacter();


switch(Dialog.CurrentNode)
{
// -----------------------------------Äèàëîã ïåðâûé - ïåðâàÿ âñòðå÷à
case "First time":
Dialog.defAni = "dialog_stay1";
Dialog.defCam = "1";
Dialog.defSnd = "dialogs\0\017";
Dialog.defLinkAni = "dialog_1";
Dialog.defLinkCam = "1";
Dialog.defLinkSnd = "dialogs\woman\024";
Dialog.ani = "dialog_stay2";
Dialog.cam = "1";
Dialog.snd = "dialogs\0\009";

Dialog.Text = DLG_TEXT[0];
link.l1 = DLG_TEXT[1];
link.l1.go = "Get out";
link.l2 = DLG_TEXT[2];
link.l2.go = "Exit";

NextDiag.TempNode = "First time";
break;

case "Exit":
NextDiag.CurrentNode = NextDiag.TempNode;
DialogExit();
break;

case "Get out":
Dialog.Text = DLG_TEXT[3];
link.l1 = DLG_TEXT[4];
link.l1.go = "Exit";
break;

}
}


Still does not work <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/type_1.gif" style="vertical-align:middle" emoid=":nk" border="0" alt="type_1.gif" />
 
Does changing //nclude "DIALOGS\oxbay drydock_dialog.h" into //<b>i</b>nclude "DIALOGS\oxbay drydock_dialog.h" work?
 
Dont Think it would its like that in all the gamefiles plus its a comment it has // in front of it. is it not just a note to modders that if they put one in thay need the other

i will cheak anyway <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/type_1.gif" style="vertical-align:middle" emoid=":nk" border="0" alt="type_1.gif" />

Opens ConTEXT and makes changes....>

Running pirates....>

Skips tutorial and travels to drydock....>

Talks to Man....>

AHHHHHHHHHHHHHHHhh....>

nope!
 
Stupid. Of course it doesn't make any difference. It's commented out with the "//" characters. But now there's no *.h file that is included, so there is no dialog to actually display. You have an "oxbay drydock_dialog.h" file, right? Then remove the outcommenting "//" in front of the line. That might solve it. And, of course, do fit the missing I typo or it still won't work. Hope this helps. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
<!--QuoteBegin-Pieter Boelen+May 4 2005, 08:12 PM--><div class='quotetop'>QUOTE(Pieter Boelen @ May 4 2005, 08:12 PM)</div><div class='quotemain'><!--QuoteEBegin-->Stupid. Of course it doesn't make any difference. It's commented out with the "//" characters. But now there's no *.h file that is included, so there is no dialog to actually display. You have an "oxbay drydock_dialog.h" file, right? Then remove the outcommenting "//" in front of the line. That might solve it. And, of course, do fit the missing I typo or it still won't work. Hope this helps. <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]103919[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->

Who you callin stupid

anyway it still doesent work
 
<!--QuoteBegin-fudge dragon+May 4 2005, 02:36 AM--><div class='quotetop'>QUOTE(fudge dragon @ May 4 2005, 02:36 AM)</div><div class='quotemain'><!--QuoteEBegin-->So Far my dialog files look like this

string DLG_TEXT[4] = (
"Get lost, if the governer finds you here he'll have your guts for garters!",
"Why what is this pla....",
"JUST GET LOST!!!!",
"OK Im going.",
);

_________________________________________________

//nclude "DIALOGS\oxbay drydock_guard.h"
<snip>
But It Does not wamt to load it

thy guy says something like

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->I Can't load [oxbay drydock_guard.c] assigned to me<!--QuoteEnd--></div><!--QuoteEEnd-->

and im completely stuck with quests
<div align="right">[snapback]103835[/snapback]</div>
<!--QuoteEnd--></div><!--QuoteEEnd-->
That's your problem right there: //nclude should be #include
 
now reads

#include "DIALOGS\oxbay drydock_dialog.h"
void ProcessDialogEvent()
{
ref NPChar;
aref Link, NextDiag;

DeleteAttribute(&Dialog,"Links");

makeref(NPChar,CharacterRef);
makearef(Link, Dialog.Links);
makearef(NextDiag, NPChar.Dialog);

ref PChar;
PChar = GetMainCharacter();


switch(Dialog.CurrentNode)
{
// -----------------------------------Äèàëîã ïåðâûé - ïåðâàÿ âñòðå÷à
case "First time":
Dialog.defAni = "dialog_stay1";
Dialog.defCam = "1";
Dialog.defSnd = "dialogs\0\017";
Dialog.defLinkAni = "dialog_1";
Dialog.defLinkCam = "1";
Dialog.defLinkSnd = "dialogs\woman\024";
Dialog.ani = "dialog_stay2";
Dialog.cam = "1";
Dialog.snd = "dialogs\0\009";

Dialog.Text = DLG_TEXT[0];
link.l1 = DLG_TEXT[1];
link.l1.go = "Get out";
link.l2 = DLG_TEXT[2];
link.l2.go = "Exit";

NextDiag.TempNode = "First time";
break;

case "Exit":
NextDiag.CurrentNode = NextDiag.TempNode;
DialogExit();
break;

case "Get out":
Dialog.Text = DLG_TEXT[3];
link.l1 = DLG_TEXT[4];
link.l1.go = "Exit";
break;

}
}

and still does not work <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> <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 4 2005, 09:15 PM--><div class='quotetop'>QUOTE(fudge dragon @ May 4 2005, 09:15 PM)</div><div class='quotemain'><!--QuoteEBegin-->Who you callin stupid
<div align="right">[snapback]103923[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
I think he was calling the bug stupid, not you, Fudge Dragon. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> <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 hope you solve this, the mod sounds wonderful. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
oh this is annoying i think i will take the night off

and try again at 6:00am


ao just leave some ideas for me to try out
 
<!--QuoteBegin-fudge dragon+--><div class='quotetop'>QUOTE(fudge dragon)</div><div class='quotemain'><!--QuoteEBegin-->Who you callin stupid<!--QuoteEnd--></div><!--QuoteEEnd-->I was actually calling <i>myself</i> stupid for not noticing that it was outcommented. That <i>was</i> rather stupid, wasn't it? 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. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/blush.gif" style="vertical-align:middle" emoid=":eek:ops" border="0" alt="blush.gif" />

I just checked out my old Euro-dialog files. What the HECK! It actually does read "<i>//nclude "DIALOGS\Toff Oremans_dialog.h"</i>"!
[Insert major surprise here]
 
<!--QuoteBegin-Inez Dias+May 4 2005, 08:29 PM--><div class='quotetop'>QUOTE(Inez Dias @ May 4 2005, 08:29 PM)</div><div class='quotemain'><!--QuoteEBegin-->What is "CharacterRef"?
<div align="right">[snapback]103937[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->

dunno potc wiki said it had to go in
 
Maybe you have to put a space after the <b>//</b> to make the outcommenting to work. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
PotC wiki is probably counting on you using Build 12. Maybe, in the stock PotC version, it doesn't need to go in? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />
 
Anyway, check a different original dialogfile and try to recreate the same code, only applied to your dialog.
 
Back
Top