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!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
RUNTIME ERROR - file: sea_ai\AIShip.c; line: 2332
function 'Ship_GetDistance2D' stack error
Those will appear if you are hit by lightning, which sets your ship on fire.As soon as I hit a stom I'm flooded with firedrill messages etc....
if (fTotalFireTime > 0.0) // KK
{
PostEvent(SHIP_FIRE_DAMAGE, iTime, "lllf", iOurCharacterIndex, iBallCharacterIndex, iFirePlaceIndex, fTotalFireTime);
if(!bAbordageStarted)
{
if (sti(GetAttribute(rOurCharacter, "Index")) == GetMainCharacterIndex() && CheckAttribute(rOurCharacter, "Ship.Sink") == false && FIREDAMAGE > 1) { // KK
Log_SetStringToLog(TranslateString("","Fire still burning! Execute firedrill procedure immediately!"));
} //ccc firedrill MAR18 // KK
if (needstopall) CreateParticleSystem("ball_impact", fX, fY, fZ, 0.0, 0.0, 0.0, 0); // ccc some smoke if fireparticle was deleted above, NK do only if needed
}
}
if (fTotalFireTime > 0.0) // KK
{
PostEvent(SHIP_FIRE_DAMAGE, iTime, "lllf", iOurCharacterIndex, iBallCharacterIndex, iFirePlaceIndex, fTotalFireTime);
if(!bAbordageStarted && LogsToggle > LOG_LACONIC) // PB
{
if (sti(GetAttribute(rOurCharacter, "Index")) == GetMainCharacterIndex() && CheckAttribute(rOurCharacter, "Ship.Sink") == false && FIREDAMAGE > 1) { // KK
Log_SetStringToLog(TranslateString("","Fire still burning! Execute firedrill procedure immediately!"));
} //ccc firedrill MAR18 // KK
if (needstopall) CreateParticleSystem("ball_impact", fX, fY, fZ, 0.0, 0.0, 0.0, 0); // ccc some smoke if fireparticle was deleted above, NK do only if needed
}
}
if (fTotalFireTime > 0.0) // KK
{
PostEvent(SHIP_FIRE_DAMAGE, iTime, "lllf", iOurCharacterIndex, iBallCharacterIndex, iFirePlaceIndex, fTotalFireTime);
if(!bAbordageStarted && GetDifficulty() < DIFFICULTY_ADVENTURER) // PB
{
if (sti(GetAttribute(rOurCharacter, "Index")) == GetMainCharacterIndex() && CheckAttribute(rOurCharacter, "Ship.Sink") == false && FIREDAMAGE > 1) { // KK
Log_SetStringToLog(TranslateString("","Fire still burning! Execute firedrill procedure immediately!"));
} //ccc firedrill MAR18 // KK
if (needstopall) CreateParticleSystem("ball_impact", fX, fY, fZ, 0.0, 0.0, 0.0, 0); // ccc some smoke if fireparticle was deleted above, NK do only if needed
}
}
Doing a quick test with the regular Beta 3.3 version of AIShip.c, I have been unable to replicate those error logs.Yeah fixed those already, but there where more right?
void Ship_ActivateFirePlace()
{
if(LAi_IsBoardingProcess() || ownDeckStarted()) return; // NK bugfix for boarding
aref arShipObject = GetEventData();
aref arCharacter = GetEventData();
if(GetCharacterShipType(&arCharacter)==SHIP_BOAT || GetCharacterShipType(&arCharacter)==SHIP_NOTUSED) return;//MAXIMUS
int iFirePlaceIndex = GetEventData();
string sSoundName = GetEventData();
float fFireTime = GetEventData();
aref arPos; makearef(arPos, arCharacter.Ship.Pos);
// LDH iSoundID will almost always be zero, probably because it's too far away to hear if on another ship - 25Mar09
int iSoundID = Play3DSoundComplex(sSoundName, stf(arPos.x), 0.0, stf(arPos.z), true, false);
string tmpstr = iFirePlaceIndex; arCharacter.fireplaces.(tmpstr) = iSoundID; // NK 05-04-19
SendMessage(arShipObject, "llsslf", MSG_SHIP_ACTIVATE_FIRE_PLACE, iFirePlaceIndex, "ship_smoke", "ship_fire", iSoundID, fFireTime);
// ccc firedrill
if(IsMainCharacter(arCharacter) && !CheckAttribute(arCharacter, "Ship.Sink")) { // so this runs only for the player // KK
DeleteAttribute(arCharacter,"firedrill"); // deletes the markerattribute that starts firedrill
if (FIREDAMAGE > 1) {
AddPerkToActiveList("FireOnShip"); // KK
Log_SetStringToLog(TranslateString("","Fire! Execute firedrill procedure!")); // infomessage MAR18 // KK
PlaySound("interface\notebook.wav"); // soundeffect MAR18
}
}
// ccc firedrill end
}
if (fTotalFireTime > 0.0) // KK
{
PostEvent(SHIP_FIRE_DAMAGE, iTime, "lllf", iOurCharacterIndex, iBallCharacterIndex, iFirePlaceIndex, fTotalFireTime);
if(!bAbordageStarted && LogsToggle > LOG_NORMAL)
{
if (sti(GetAttribute(rOurCharacter, "Index")) == GetMainCharacterIndex() && CheckAttribute(rOurCharacter, "Ship.Sink") == false && FIREDAMAGE > 1) { // KK
Log_SetStringToLog(TranslateString("","Fire still burning! Execute firedrill procedure immediately!"));
} //ccc firedrill MAR18 // KK
if (needstopall) CreateParticleSystem("ball_impact", fX, fY, fZ, 0.0, 0.0, 0.0, 0); // ccc some smoke if fireparticle was deleted above, NK do only if needed
}
}