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

Just plain crazy bug

Pieter Boelen

Navigation Officer
Administrator
Storm Modder
Hearts of Oak Donator
I am working on a new modpack update and for all I know, all the code should be working properly enough for the game to run. However, I am now getting this error message that prevents the game from being run:
<i>COMPILE ERROR - file: weather\WhrUtils.c; line: 6
Duplicate variable name: arRef</i>
Now I KNOW that file hasn't been changed since Build 12. It isn't even IN the Post Build 12 mods! So why, for CRYING OUT LOUD is it causing a crash????? <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" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
 
I found the bug! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/william.gif" style="vertical-align:middle" emoid=":will" border="0" alt="william.gif" />
It was because of this code:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->      if (CheckQuestRecord("Kill_Ogario")) {
            AddQuestRecord("Kill_Ogario", "2");
        CloseQuestHeader("Kill_Ogario");
      }<!--c2--></div><!--ec2-->It was already reported that this caused trouble, so I tried fixing it by commenting out the first line. However, that was not a very good idea, because that fully crashed the game and it took me half a day to figure out why is wasn't working. Especially since the error.log file didn't exactly point in the right direction either! I now commented out the whole block of code, until Pirate_KK sends me his upcoming fix.
 
I thought that in the postscriptum to my post from Jan 31 of Build Bugs thread I advised to comment out lines 2678 to 2681, which meant whole if() block, not only the first line...

Anyway, it's sad that my changes are making such mess. I'll have to borrow a fine scrapper pistol from Nathaniel and shoot my head off.

pirate_kk
 
It's not YOUR work that caused the bug. It was my mistake. I commented out just that one line, while I should've known that wouldn't work. Not your fault. Please don't pull that trigger! If you do, the bug will never get fixed. <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" />
 
Back
Top