I founded out why zone failed to boot up I was starting the zone wrong. I was doing ./zone compID . 7790 compID when I needed to do ./zone . comID 7790 compID. With that said I still have problems with spells_us.txt. It does read the file and get the max spell id, but then something goes wrong. This program goes all the way to my cout << SPDAT_RECORDS; and then prints out the error message. This code is in net.cpp, function void LoadSPDat, and at line 746.
This is the zone output.
[Status] Loading npc faction lists
(This is the call to load)[Status] libEMuShareMem.so loaded
[Status] Loading loot tables
[Status] Loading doors
(This is the call to load)[Status] libEMuShareMem.so loaded
(This is the secound try to load)(Function getting max spellid)(File is opened)8402(Max found)(NEXT)(This is the call to load)[Status] libEMuShareMem.so loaded
8403(I am here trying a second time adding timer)Error: EMuShareMem: DLLLoadSPDat: !SpellsMMF.IsLoaded() (timeout)
[Error] Starting Log: logs/eqemu_error_zone.log
[Error] LoadSPDat() EMuShareMemDLL.Spells.DLLLoadSPDat() returned false
(Am I an this error)[Status] Loading guilds
[Status] Loading guild list
(This is the call to load)[Status] libEMuShareMem.so loaded
[Status] Loading factions
and this is the code.
sint32 MaxSpellID = GetMaxSpellID();
cout << MaxSpellID; //ME
if (MaxSpellID == -1)
{
LogFile->write(EQEMuLog:
ebug, "LoadSPDat() MaxSpellID == -1, %s missing?", SPELLS_FILE);
return;
}
cout << "(Max found)"; //ME
#ifdef SHAREMEM
cout << "(NEXT)"; //ME
if (!EMuShareMemDLL.Load())
{
cout << "(In the if statmant)"; //ME
return;
}
SPDAT_RECORDS = MaxSpellID+1;
cout << SPDAT_RECORDS; //ME
if (EMuShareMemDLL.Spells.DLLLoadSPDat((const CALLBACK_FileLoadSPDat)&extFileLoadSPDat, (const void**) &spells, &SPDAT_RECORDS, sizeof(SPDat_Spell_Struct)))
{
spells_loaded = true;
}
else
{
SPDAT_RECORDS = -1;
LogFile->write(EQEMuLog::Error, "LoadSPDat() EMuShareMemDLL.Spells.DLLLoadSPDat() returned false");
cout << "(Am I an this error)"; //ME
return;
}
If anyone has any ideas please share. I realy don't understand why this error is happening.