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

Major CTD Problems

TDLdark

Landlubber
running Build 14 Alpha 10

Sorry to be a pain due to the multiple problems I've been reporting, but where as I usually keep most of the bugs I encounter to myself, I'm currently have some major CTD problems with my game that prevent me from playing.

I think Davy Jones bit me. Is this because I sunk his bloody ship in the Elizabeth Shaw quest? I said I was sorry man....


I can't land on islands because the game crashes during the loading. I've tried going to the islands by direct sail, but no avail.
From what I can isolate from the error and compile logs, something is wrong with the AI groups that are generated (just a shot in the dark.)

The compile log errors for the various islands are the same and basically are as follows:

All slots in AIGroups are used, need to resize array!!!
All slots in AIGroups are used, need to resize array!!!
Group_FindOrCreateGroup sGroupID = CrCayman3, can't create group
All slots in AIGroups are used, need to resize array!!!
Group_FindOrCreateGroup sGroupID = CrCayman3, can't create group
All slots in AIGroups are used, need to resize array!!!
Group_FindOrCreateGroup sGroupID = CrCayman3, can't create group

The only difference is the sGroupID, which is different for each island (but it is usually Cr____island name_____3)


The error log screams

RUNTIME ERROR - file: sea_ai\AIGroup.c; line: 122
Missed array index
RUNTIME ERROR - file: sea_ai\AIGroup.c; line: 122
Missed array index
RUNTIME ERROR - file: sea_ai\AIGroup.c; line: 122
Missed array index


My AIgroup.c file's 122nd line is (at least, it's the 122nd according to notepad)

AIGroups[iGroupIndex].Task.Lock = false;



Uh...can anyone help out, or at least tell me the 122nd line of the AIgroup.c file...because this is preventing me from playing....

Thanks in advance,

Attached logs
 

Attachments

  • compile.log
    2.5 KB · Views: 78
  • error.log
    412 bytes · Views: 88
  • system.log
    2.2 KB · Views: 86
After searching through AIgroups.c, I finally found something useful, and I'm pretty sure the following tidbit of code explains my problem, as I keep getting this trace in the compile log when I crash.
Can someone explain to me what this code means?
Or at least upload a version of their AIgroups.c?


Thanks



From AIgroups.c Starts around line 70.


// create a new AI group for ships, return -1 if can't create
int Group_CreateGroup(string sGroupID)
{
for (int i=0;i<MAX_SHIP_GROUPS;i++)
{
if (!CheckAttribute(&AIGroups,"id"))
{
//Trace("Group_CreateGroup create = " + sGroupID);
AIGroups.id = sGroupID;
Group_SetTaskNone(sGroupID);
Group_SetType(sGroupID, "war");
AIGroups.MainCharacter = "";
return i;
}
}
Trace("All slots in AIGroups are used, need to resize array!!!");
return -1;
}
 
That function is used to put the Flying Dutchman at Cayman.
It shouldn't really be causing any crashes.
It seems that in this case the game tries to create an existing group,
but I haven't got a clue why that might happen at all. :wacko:
 
He sunk the Dutchman so that may be the reason... I will add a immortal bit of code for it when I release the updated fix (once my internet speeds up again)
 
Actually, this is becoming somewhat of a pandemic, as I have been playing from a previous save prior to even starting the Elizabeth Shaw quest, yet this still occurs for select islands....
(though I still sunk the bloody Dutchman in my heart.)

However, this doesn't occur on Cayman anymore, it occurs mostly for Cuba and Guadeloupe. When I enter Guadeloupe from world map, the AIgroup that presents the problem is CrGuadeloupe5
For Cuba....it depends on what quests I have completed (my game hates me greatly.)

If I have completed either the Elizabeth Shaw quest or Helping the Turk Pirates or Saving Bartholomeu's crew, then the AI group is ONLY CrCuba3.
Do not know about other sidequests.

If I go to a previous save, then the AI groups that crash the game are CrCuba1, CrCuba3, and CrCuba5. And not always all three either, sometimes only one or two of the AIgroups are recorded as causing the error in the compile.log


Have reinstalled the game twice, so unless my CDs are bugged, I don't think it's a problem with my installation.


Also, on the sinkable Dutchman sidenote, if I go to the scary soul stealing ship seller (SSSSS) on Isla De Muerte, the Dutchman on sale there only has around 5000 hp.
 
:wacko:

I don't think we ever gave the Dutchman a high amount of HP... :?
 
Hello everybody,

after a long time I found my Pirats again and started to play throughout the night but now looks like I have the same problem.

the compile.log says

SEA: sealogin loading island Redmond
SEA: added pchar to sea
All slots in AIGroups are used, need to resize array!!!
All slots in AIGroups are used, need to resize array!!!
Group_FindOrCreateGroup sGroupID = CrRedmond5, can't create group
All slots in AIGroups are used, need to resize array!!!
Group_FindOrCreateGroup sGroupID = CrRedmond5, can't create group
All slots in AIGroups are used, need to resize array!!!
Group_FindOrCreateGroup sGroupID = CrRedmond5, can't create group

and the error.log

RUNTIME ERROR - file: characters\characterUtilite.c; line: 2393
invalid index -1 [size:2050]
RUNTIME ERROR - file: characters\characterUtilite.c; line: 2393
function 'DoDailyCrewPay' stack error
RUNTIME ERROR - file: sea_ai\AIGroup.c; line: 122
Missed array index
RUNTIME ERROR - file: sea_ai\AIGroup.c; line: 122
Missed array index
RUNTIME ERROR - file: sea_ai\AIGroup.c; line: 122
Missed array index

I think I sank the Dutchman too.
Has anybody found a solution already or do I have to restart the Game?
Thanks
 
No solution yet. When I come back home next week,
I'll try if I convince some of our coders to return to the forums and continue fixing the Build again.
It appears progress has come to a bit of a halt during these two months I'm at sea. :facepalm
 
Back
Top