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 -
Which parts do you consider to be weird?PS The entries in the error log look a bit strange though.![]()
Fixed it is then!
Which parts do you consider to be weird?
The error.log ones are errors I've been seeing ever since the unmodded game.
As far as I have ever been able to tell, they happen almost all the time, but do no harm.
void ClearLocationsSaveData()
{
aref loc = GetEventData();
SendMessage(loc, "l", MSG_LOCATION_CLRCHRPOSITIONS);
}
void OnSave()
{
Set_inDialog_Attributes();//MAXIMUS: VERY strange, but it's needed
seadogs_saveFrom = "";
if (IsEntity(&worldMap)) {
seadogs_saveFrom = "world map"; //Was "seadogs_sav From" ccc mar20
return;
}
if (bSeaActive) {
seadogs_saveFrom = "sea";
SaveAtSea();
return;
}
int ldLoc = FindLoadedLocation();
if (ldLoc < 0 || ldLoc >= nLocationsNum) {
trace("OnSave() -> unknown character location");
return;
}
seadogs_saveFrom = "location";
SendMessage(&Locations[ldLoc], "l", MSG_LOCATION_SETCHRPOSITIONS);
LAi_group_SaveInfo();
PostEvent("SeaDogs_ClearSaveData", 200, "a", &Locations[ldLoc]);
}
void ClearLocationsSaveData()
{
aref loc = GetEventData();
if (!IsEntity(loc)) return;
SendMessage(loc, "l", MSG_LOCATION_CLRCHRPOSITIONS);
}
SendMessage(&Locations[ldLoc], "l", MSG_LOCATION_SETCHRPOSITIONS);
LAi_group_SaveInfo();
We can give it a quick try and see what happens.Seeing it didn't do any harm in the past too I don't see why we should add a dump attribute here.
void ClearLocationsSaveData()
{
aref loc = GetEventData();
if (!IsEntity(loc))
{
// PB: To gain some understanding of what happens -->
TraceAndLog("ClearLocationsSaveData ERROR: Please post your compile.log file at piratesahoy.net!");
DumpAttributes(loc);
// PB: To gain some understanding of what happens <--
return; // Levis
}
else
{
// PB: To gain some understanding of what happens -->
TraceAndLog("ClearLocationsSaveData SUCCESS:");
DumpAttributes(loc);
// PB: To gain some understanding of what happens <--
}
SendMessage(loc, "l", MSG_LOCATION_CLRCHRPOSITIONS);
}
ClearLocationsSaveData ERROR: Please post your compile.log file at piratesahoy.net!
id = Douwesen_port
label = #stown_name# port.
index = 187
ClearLocationsSaveData ERROR: Please post your compile.log file at piratesahoy.net!
id = Douwesen_port
label = #stown_name# port.
index = 187
RUNTIME ERROR - file: seadogs.c; line: 725
Ghost A reference
RUNTIME ERROR - file: seadogs.c; line: 725
Ghost A reference
aref loc = &Locations[ldLoc];
if (IsEntity(loc)) SendMessage(loc, "l", MSG_LOCATION_SETCHRPOSITIONS);
LAi_group_SaveInfo();
if (IsEntity(loc)) PostEvent("SeaDogs_ClearSaveData", 200, "a", loc);
void OnSave()
{
Set_inDialog_Attributes();//MAXIMUS: VERY strange, but it's needed
seadogs_saveFrom = "";
if (IsEntity(&worldMap)) {
seadogs_saveFrom = "world map"; //Was "seadogs_sav From" ccc mar20
return;
}
if (bSeaActive) {
seadogs_saveFrom = "sea";
SaveAtSea();
return;
}
int ldLoc = FindLoadedLocation();
if (ldLoc < 0 || ldLoc >= nLocationsNum) {
trace("OnSave() -> unknown character location");
return;
}
seadogs_saveFrom = "location";
aref loc = &Locations[ldLoc];
if (IsEntity(loc))
{
SendMessage(loc, "l", MSG_LOCATION_SETCHRPOSITIONS);
LAi_group_SaveInfo();
PostEvent("SeaDogs_ClearSaveData", 200, "a", loc);
}
}