LPlate2
Warlord
- Joined
- Dec 27, 2018
- Messages
- 299
Hi,
I've recently had to reinstall Civ and its working for the main game but I'm getting errors when I try to start my own mod.
The error message is,
"Assert Failed
File: .\.\CvGlobals.cpp
Line: 3681
Expression: strcmp(szType, "NONE")==0 || strcmp(szType, "")==0
Message: info type hÓ~H†SIîþîþîþîþîþîþîþîþîþîþîþîþÞˆ;£Ý` not found, Current XML file is: xml\Units/CIV4SpellInfos.xml"
Edit: Fixed this. Two steps back in the Call Stack, there was a reference to a new GlobalDefinesAlt entry, which had not made it back into the mod folder. There's a subsequent issue but I'll try to solve that one myself before asking for help again.
I've recently had to reinstall Civ and its working for the main game but I'm getting errors when I try to start my own mod.
The error message is,
"Assert Failed
File: .\.\CvGlobals.cpp
Line: 3681
Expression: strcmp(szType, "NONE")==0 || strcmp(szType, "")==0
Message: info type hÓ~H†SIîþîþîþîþîþîþîþîþîþîþîþîþÞˆ;£Ý` not found, Current XML file is: xml\Units/CIV4SpellInfos.xml"
Spoiler :
which traces back to
How do I find what's triggering this error and fix it?
Code:
int CvGlobals::getInfoTypeForString(const char* szType, bool hideAssert) const
{
FAssertMsg(szType, "null info type string");
InfosMap::const_iterator it = m_infosMap.find(szType);
if (it!=m_infosMap.end())
{
return it->second;
}
if(!hideAssert)
{
CvString szError;
szError.Format("info type %s not found, Current XML file is: %s", szType, GC.getCurrentXMLFile().GetCString());
FAssertMsg(strcmp(szType, "NONE")==0 || strcmp(szType, "")==0, szError.c_str());
gDLL->logMsg("xml.log", szError);
}
return -1;
}
How do I find what's triggering this error and fix it?
Edit: Fixed this. Two steps back in the Call Stack, there was a reference to a new GlobalDefinesAlt entry, which had not made it back into the mod folder. There's a subsequent issue but I'll try to solve that one myself before asking for help again.
Last edited: