• 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 bug x2

colmaniac

Sailor
Hi when doing the main stock game quest with the uptodate mod there are 2 bug`s I have found. the 1st one is a major bug, starting a new game I try and capture the heavy war ship at the start "french battle ship" on boarding I kill all the troops till I get to the captains cabin, when all enemies are dead it would not continue to the transfer screen as it was telling me there was someone still there. When I do a side step out side the ship "ghost walk through walls" there is an enemy officer at the water line below the deck and there is no way to kill him.

Bug 2 is minor on the capture ship/transfer "items" screen when I choose to add an officer to the captured ship it tells me my rank is not hi enough to add to fleet but gives me the option to, how ever there is no yes or no button to click on.
 
Which game version was this? Sounds like it might be one of the B14 Alpha's. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
The problem with the missing boarder below the ship is in LAi_boarding.c

Look for the lines:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->case "Boarding_Cabin1":            // Tutorial cabin
limit = 8;      // LDH change this from 10 to 8 - 08Mar09
break;<!--c2--></div><!--ec2-->

And that will fix the problem. If we're getting this error on any other boarding, that will be your problem. Compare the new code to code from Build 13 to see if the limit has been raised. The numbers in Build 13 were chosen based on the locators on those decks and should not be raised. The ones I know about are now correct.

I don't know about the rank not high enough, but turning off the realistic ship command options should get rid of the problem.

Hook
 
Fix included for the next version. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
Hi, found another bug sorry <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> when I have captured a class 3 ship and enter the transfer screen under the enemy sip it shows as a small craft and under the name it says error, crew,guns,goods list all show as 0, when exiting the screen I get CTD every time I have a log here :-

RUNTIME ERROR - file: nations\nations.c; line: 288
invalid index 2147336192 [size:7]
RUNTIME ERROR - file: nations\nations.c; line: 288
invalid array index
RUNTIME ERROR - file: nations\nations.c; line: 288
function 'GetNationNameByType' stack error
RUNTIME ERROR - file: dialog_func.c; line: 239
function 'TranslateString' stack error
RUNTIME ERROR - file: dialog_func.c; line: 239
function 'TranslateString' stack error
RUNTIME ERROR - file: battle_interface\loginterface.c; line: 187
CreateMessage: Invalid Data
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 882
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 882
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 882
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 883
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 883
Using reference variable without initializing
RUNTIME ERROR - file: dialog_func.c; line: 239
function 'TranslateString' stack error
RUNTIME ERROR - file: dialog_func.c; line: 239
function 'TranslateString' stack error
RUNTIME ERROR - file: battle_interface\loginterface.c; line: 187
CreateMessage: Invalid Data
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 882
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 882
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 882
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 883
Using reference variable without initializing
RUNTIME ERROR - file: storyline\standard\dialogs\Cabinfight_dialog.c; line: 883
Using reference variable without initializing
RUNTIME ERROR - file: dialog_func.c; line: 239
function 'TranslateString' stack error
RUNTIME ERROR - file: dialog_func.c; line: 239
function 'TranslateString' stack error
RUNTIME ERROR - file: battle_interface\loginterface.c; line: 187
CreateMessage: Invalid Data
RUNTIME ERROR - file: interface\ransack_main.c; line: 238
missed attribute: name
RUNTIME ERROR - file: interface\ransack_main.c; line: 238
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
missed attribute: name
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
missed attribute: sp
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
missed attribute: crew
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
null ap
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
missed attribute: name
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
missed attribute: sp
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
missed attribute: crew
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
null ap
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
no rAP data
RUNTIME ERROR - file: interface\transfer_crew.c; line: 136
missed attribute: name
RUNTIME ERROR - file: interface\transfer_crew.c; line: 136
no rAP data
RUNTIME ERROR - file: interface\transfer_crew.c; line: 329
missed attribute: sp
RUNTIME ERROR - file: interface\transfer_crew.c; line: 329
no rAP data
RUNTIME ERROR - file: interface\transfer_crew.c; line: 329
missed attribute: sp
RUNTIME ERROR - file: interface\transfer_crew.c; line: 329
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 238
missed attribute: name
RUNTIME ERROR - file: interface\ransack_main.c; line: 238
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
missed attribute: name
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
missed attribute: sp
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
missed attribute: crew
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
null ap
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
missed attribute: name
RUNTIME ERROR - file: interface\ransack_main.c; line: 589
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
missed attribute: sp
RUNTIME ERROR - file: interface\ransack_main.c; line: 592
no rAP data
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
missed attribute: crew
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
null ap
RUNTIME ERROR - file: interface\ransack_main.c; line: 593
no rAP data
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2403
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2403
null ap
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2403
no rAP data
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2404
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2404
null ap
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2404
no rAP data
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2405
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2405
null ap
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2405
no rAP data
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2494
missed attribute: name
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2494
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
missed attribute: ang
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
missed attribute: ang
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
missed attribute: ang
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
missed attribute: ang
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
missed attribute: ang
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 72
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 78
no rAP data
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
missed attribute: pos
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
null ap
RUNTIME ERROR - file: sea_ai\AISeaGoods.c; line: 79
no rAP data
 
<!--quoteo(post=305220:date=Mar 8 2009, 08:20 AM:name=Hook)--><div class='quotetop'>QUOTE (Hook @ Mar 8 2009, 08:20 AM) <a href="index.php?act=findpost&pid=305220"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->The problem with the missing boarder below the ship is in LAi_boarding.c

Look for the lines:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->case "Boarding_Cabin1":            // Tutorial cabin
limit = 8;      // LDH change this from 10 to 8 - 08Mar09
break;<!--c2--></div><!--ec2-->

And that will fix the problem. If we're getting this error on any other boarding, that will be your problem. Compare the new code to code from Build 13 to see if the limit has been raised. The numbers in Build 13 were chosen based on the locators on those decks and should not be raised. The ones I know about are now correct.

I don't know about the rank not high enough, but turning off the realistic ship command options should get rid of the problem.

Hook<!--QuoteEnd--></div><!--QuoteEEnd-->

Ok I have changed it from 10 to 8 il try that <img src="style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />
 
at line :-

RUNTIME ERROR - file: nations\nations.c; line: 288
function 'GetNationNameByType' stack error

this is the line in the ini file :-

string GetNationNameByType(int iNationType)
{
if (iNationType >= 0 && iNationType < NATIONS_QUANTITY) // LDH fix for iNationType < 0
{
return Nations[iNationType].Name;
}

// added by KAM -->
if (iNationType == NEUTRAL_NATION) { return "no nation"; }
if (iNationType == UNKNOWN_NATION) { return "unknown nation"; }
// <-- added by KAM
if (iNationType == PERSONAL_NATION) { return "personal"; } // KK

return "unknown"; // NK
}
 
That shouldn't be a stack error. It should be an array index error, if anything.

The only thing I can think of is that the Name is either not initialized and contains garbage or has become corrupted so that it's so big that it can't be pushed on the stack as a return value.

I think we need to know what that nation might have been. Which storyline were you playing at the time?

Hook
 
<!--quoteo(post=305616:date=Mar 9 2009, 12:25 PM:name=Hook)--><div class='quotetop'>QUOTE (Hook @ Mar 9 2009, 12:25 PM) <a href="index.php?act=findpost&pid=305616"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That shouldn't be a stack error. It should be an array index error, if anything.

The only thing I can think of is that the Name is either not initialized and contains garbage or has become corrupted so that it's so big that it can't be pushed on the stack as a return value.

I think we need to know what that nation might have been. Which storyline were you playing at the time?

Hook<!--QuoteEnd--></div><!--QuoteEEnd-->

Hi, I am playing as nethaniel hawk as portugal with version b14_alpha8-5_patch1.1.

I think you are right while looking at an old error file I had a look at a cirtian ini file, sorry cant remeber which one <img src="style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> about half way down the page I had wierd characters in the file, so mostlikly corrupted files.

I am trying to redownload the mods, I just need 13final and 14 at the moment modsdb has corrupted files, I already posted on this forums about it. And at the moment this web page download servers are offline so I cant redownload.

Il do a fresh reinstall and see what happens.
Regards Maniac
 
The ini files shouldn't ever have garbage in them. The options file gets garbage a lot, but I've got a fix for that one. If the ini file that has the nation names in it is corrupt, I think it could cause that kind of error.

Hook
 
<!--quoteo(post=305643:date=Mar 9 2009, 01:29 PM:name=Hook)--><div class='quotetop'>QUOTE (Hook @ Mar 9 2009, 01:29 PM) <a href="index.php?act=findpost&pid=305643"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->The ini files shouldn't ever have garbage in them. The options file gets garbage a lot, but I've got a fix for that one. If the ini file that has the nation names in it is corrupt, I think it could cause that kind of error.

Hook<!--QuoteEnd--></div><!--QuoteEEnd-->


Ok cheer`s I check those files later when im not tired <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> lol.
 
Ah, had a quick look found this file as :- LAi_location, in it :-

//Çàïðåòèòü ñðàæàòüñÿ ïåðñîíàæàì â çàäàííîé ëîêàöèè
void LAi_LocationFightDisable(ref location, bool isDisable)
{
if(isDisable)
{
location.noFight = "1";
}else{
DeleteAttribute(location, "noFight");
}
}

//Ðàçðåøèòü èëè çàïðåòèòü ãåíåðàöèè ìîíñòðîâ
void LAi_LocationMonstersGen(ref location, bool isEnable)
{
if(isEnable)
{
location.monsters = "1";
}else{
DeleteAttribute(location, "monsters");
}
}

//Óñòàíîâèòü âðåìÿ ãåíåðàöèè ìîíñòðîâ
void LAi_LocationSetMonstersTime(ref location, float start, float end)
{
//!!!
return;

if(!CheckAttribute(location, "monsters"))
{
location.monsters = "0";
}
location.monsters.stime = start;
location.monsters.etime = end;
}

bool LAi_LocationIsMonstersGen(ref location)
{
//Ïðîâåðèì ðàçðåøåíèå íà ãåíåðàöèþ ìîíñòðîâ
if(CheckAttribute(location, "monsters") == false) return false;
if(sti(location.monsters) == 0) return false;
//Ïðîâåðèì âðåìÿ ëîãèíà
if(CheckAttribute(location, "monsters.stime"))
{
if(CheckAttribute(location, "monsters.etime"))
{
float start = stf(location.monsters.stime);
float end = stf(location.monsters.etime);
if(!LAi_login_CheckTime(start, end)) return false;
}
}
return true;
}

//Ðàçðåøèòü èëè çàïðåòèòü ãåíåðàöèè ôàíòîìîâ ïðè óáèéñòâå â äàííîé ëîêàöèè
void LAi_LocationFantomsGen(ref location, bool isEnable)
{
if(isEnable)
{
location.fantoms = "1";
}else{
DeleteAttribute(location, "fantoms");
}
}

bool LAi_LocationIsFantomsGen(ref location)
{
if(CheckAttribute(location, "fantoms") == false) return false;
if(sti(location.fantoms) != true) return false;
return true;
}



some of the ini files have this in them :- Óñòàíîâèòü âðåìÿ ãåíåðàöèè ìîíñòðîâ in the Loc-ai folder
 
It's the original Russian comments. A few characters here and there aren't a problem in any case. It's when you get 200K of crap in what's supposed to be a short string.

Hook
 
<!--quoteo(post=305636:date=Mar 9 2009, 10:07 PM:name=colmaniac)--><div class='quotetop'>QUOTE (colmaniac @ Mar 9 2009, 10:07 PM) <a href="index.php?act=findpost&pid=305636"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I am trying to redownload the mods, I just need 13final and 14 at the moment modsdb has corrupted files, I already posted on this forums about it. And at the moment this web page download servers are offline so I cant redownload.<!--QuoteEnd--></div><!--QuoteEEnd-->Can anybody confirm that?
In the meantime, the downloads on this site should be working again. The Download Manager itself is offline, but you can find the downloads <a href="http://www.piratesahoy.net/build/" target="_blank">here</a> still.

Oh! And you shouldn't install Patch 1.1! You need Patch 1 instead; Patch 1.1 is a patch for the original Patch 1, but I already replaced that file with the fixed one. Things seem to be getting pretty darn confusing with the dozens of different files to install. It'll be good when Alpha 9 Full is done this weekend! <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
 
<!--quoteo(post=305743:date=Mar 10 2009, 12:09 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 10 2009, 12:09 AM) <a href="index.php?act=findpost&pid=305743"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--quoteo(post=305636:date=Mar 9 2009, 10:07 PM:name=colmaniac)--><div class='quotetop'>QUOTE (colmaniac @ Mar 9 2009, 10:07 PM) <a href="index.php?act=findpost&pid=305636"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I am trying to redownload the mods, I just need 13final and 14 at the moment modsdb has corrupted files, I already posted on this forums about it. And at the moment this web page download servers are offline so I cant redownload.<!--QuoteEnd--></div><!--QuoteEEnd-->Can anybody confirm that?
In the meantime, the downloads on this site should be working again. The Download Manager itself is offline, but you can find the downloads <a href="http://www.piratesahoy.net/build/" target="_blank">here</a> still.

Oh! And you shouldn't install Patch 1.1! You need Patch 1 instead; Patch 1.1 is a patch for the original Patch 1, but I already replaced that file with the fixed one. Things seem to be getting pretty darn confusing with the dozens of different files to install. It'll be good when Alpha 9 Full is done this weekend! <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->


Hi Pieter, ok il reinstall the game and NOT add patch 1.1 but install patch 1 <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
No need to reinstall the whole game. Just add Patch 1 on top and start a new game and any problems caused by that should've been solved. Provided that was the only thing that went wrong, of course. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
<!--quoteo(post=305818:date=Mar 10 2009, 06:14 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 10 2009, 06:14 AM) <a href="index.php?act=findpost&pid=305818"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->No need to reinstall the whole game. Just add Patch 1 on top and start a new game and any problems caused by that should've been solved. Provided that was the only thing that went wrong, of course. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

Ok thanks for tip, if I still get a problem il do a full reinstall <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Back
Top