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

Boarding Question

Doober

Buccaneer
Storm Modder
Hey everyone! I haven't been around in awhile, but it is awesome to see everything going strong here. Got a question for you on Build 13 Final. I just reinstalled it and went out pirating. The first ship I attacked surrendered to me. When I got on the deck, I went to talk to the captain who was standing on the deck. He said that he can't load the cabinfight_dialog.c file. Here is what the error.log file says.

COMPILE ERROR - file: dialogs\Cabinfight_dialog.c; line: 735
function Log_SetStringToLog(args:1) doesnt accept 3 arguments
COMPILE ERROR - file: dialogs\Cabinfight_dialog.c; line: 735
function Log_SetStringToLog(args:1) doesnt accept 3 arguments
COMPILE ERROR - file: dialogs\Cabinfight_dialog.c; line: 735
function Log_SetStringToLog(args:1) doesnt accept 3 arguments


Anyone have any ideas on what I need to do to fix this? I talked to lots of other NPCs and none of them had any issues. Thanks a bunch!
 
Weird. This line is supposed to be this one : <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Log_SetStringToLog(LanguageConvertString(tmpLangFileID,"CaptainMoney1")+" "+MakeMoneyShow(sti(NPChar.wealth),"",MONEY_DELIVER)+" "+LanguageConvertString(tmpLangFileID,"CaptainMoney2"));<!--c2--></div><!--ec2-->And I don't see what could be wrong with it.

Check if your dialogs\Cabinfight_dialog.c line 735 is the same than mine. Then try some other boardings, to see if this bug happen again. If it does, you could just outcomment this line and that should solve it.
 
Yes, that is the same line that I have, and I don't see how it would affect dialog. Does anyone know where the surrendered captain is supposed to get the dialog from? It looks like it should be dialog text 119 and I don't see that anywhere.
 
Does that ALWAYS happen or just that once?
If that were a true Build 13 Final bug, we would've heard of it by now.
Sounds to me something somehow went wrong. <img src="style_emoticons/<#EMO_DIR#>/wacko.gif" style="vertical-align:middle" emoid=":wacko:" border="0" alt="wacko.gif" />
 
Did you try to outcomment it as I've suggested? (adding '//' in front of this line) Just to be sure...

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Yes, that is the same line that I have, and I don't see how it would affect dialog.<!--QuoteEnd--></div><!--QuoteEEnd-->What the error.log says is that it couldn't load this dialog file because of one script error somewhere. Even some lines about screen messages can cause the dialog to fail if it is written in the dialog file.

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Does anyone know where the surrendered captain is supposed to get the dialog from? It looks like it should be dialog text 119 and I don't see that anywhere.<!--QuoteEnd--></div><!--QuoteEEnd-->A missing line in the .h file wouldn't cause this kind of trouble. Beside, line 119 isn't called anywhere - what do you mean with that?
A dialog file works generally this way : two files are used, a .c one in PROGRAM/DIALOGS, which contain all the code, and a .h which contains all dialog lines. Thoses lines are called by the .c files with this : DLG_TEXT[(line number)]. DLG_TEXT[0] means line 1 for example. In the .h file, 'string DLG_TEXT[119]' means there are 119 line in this file, the last one being line 118 for the .c file.
 
Thanks everyone, i did a reinstall and it works fine now. I've tried it again several times w/ no problems. I love this game, no matter how many times I play it, it never gets old. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Back
Top