Afforess
The White Wizard
Just finished searching. 0 hits. So it has to be that python.
Where is that Python? What function is it in? It seems you should just remove it entirely.
. You should definitely not modify CvEventManager, ever.
Weird. All of the modcomps I merged with BUG used CvCustomEventManager. Then again, most of those came from Ruff's mod taken from HOF mod, and that used CvCEM. It's been around forever. Perhaps it's time for some good old fashioned evangelism.![]()
Assert Failed
File: CvGlobals.cpp
Line: 4059
Expression: iExisting==-1 || iExisting==idx || strcmp(szType, "ERROR")==0
Message: xml info type entry RELIGION_HELLENISM already exists
Are there maybe 2 religions called hellenism?
Give us some context. I have no idea what that line looks like nor the code surrounding it. That will be a big clue as to what the problem is.
/*************************************************************************************************/
/** SORT_ALPHABET 11/19/07 MRGENIE */
/** */
/** Rearranging the infos map */
/*************************************************************************************************/
/*
void CvGlobals::setInfoTypeFromString(const char* szType, int idx)
{
FAssertMsg(szType, "null info type string");
#ifdef _DEBUG
InfosMap::const_iterator it = m_infosMap.find(szType);
int iExisting = (it!=m_infosMap.end()) ? it->second : -1;
FAssertMsg(iExisting==-1 || iExisting==idx || strcmp(szType, "ERROR")==0, CvString::format("xml info type entry %s already exists", szType).c_str());
#endif
m_infosMap[szType] = idx;
}
*/
[COLOR="Red"]void CvGlobals::setInfoTypeFromString(const char* szType, int idx, bool hideAssert)
{
FAssertMsg(szType, "null info type string");
#ifdef _DEBUG
if(!hideAssert)
{
InfosMap::const_iterator it = m_infosMap.find(szType);
int iExisting = (it!=m_infosMap.end()) ? it->second : -1;
FAssertMsg(iExisting==-1 || iExisting==idx || strcmp(szType, "ERROR")==0, CvString::format("xml info type entry %s already exists", szType).c_str());
}
#endif
m_infosMap[szType] = idx;
}[/COLOR]
void CvGlobals::logInfoTypeMap(const char* tagMsg)
{
CvString szDebugBuffer;
szDebugBuffer.Format(" === Info Type Map Dump BEGIN: %s ===", tagMsg);
gDLL->logMsg("CvGlobals_logInfoTypeMap.log", szDebugBuffer.c_str());
int iCnt = 0;
std::vector<std::string> vInfoMapKeys;
for (InfosMap::const_iterator it = m_infosMap.begin(); it != m_infosMap.end(); it++)
{
std::string sKey = it->first;
vInfoMapKeys.push_back(sKey);
}
std::sort(vInfoMapKeys.begin(), vInfoMapKeys.end());
for (std::vector<std::string>::const_iterator it = vInfoMapKeys.begin(); it != vInfoMapKeys.end(); it++)
{
std::string sKey = *it;
int iVal = m_infosMap[sKey];
szDebugBuffer.Format(" * %i -- %s: %i", iCnt, sKey.c_str(), iVal);
gDLL->logMsg("CvGlobals_logInfoTypeMap.log", szDebugBuffer.c_str());
iCnt++;
}
szDebugBuffer.Format("Entries in total: %i", iCnt);
gDLL->logMsg("CvGlobals_logInfoTypeMap.log", szDebugBuffer.c_str());
szDebugBuffer.Format(" === Info Type Map Dump END: %s ===", tagMsg);
gDLL->logMsg("CvGlobals_logInfoTypeMap.log", szDebugBuffer.c_str());
}
/*************************************************************************************************/
/** SORT_ALPHABET END */
/*************************************************************************************************/
This happens when a new object is being defined from an XML file, and it looks very much like RELIGION_HELLENISTIC is being defined again. Make sure it doesn't appear in any modules you have installed.
void CvGlobals::setInfoTypeFromString(const char* szType, int idx)
{
FAssertMsg(szType, "null info type string");
#ifdef _DEBUG
InfosMap::const_iterator it = m_infosMap.find(szType);
int iExisting = (it!=m_infosMap.end()) ? it->second : -1;
[B]CvString szError;
szError.Format("info type %s already exists, Current XML file is: %s", szType, GC.getCurrentXMLFile().GetCString());[/B]
FAssertMsg(iExisting==-1 || iExisting==idx || strcmp(szType, "ERROR")==0, [B]szError[/B].c_str());
#endif
m_infosMap[szType] = idx;
}
Assert Failed
File: CvGlobals.cpp
Line: 4027
Expression: strcmp(szType, "NONE")==0 || strcmp(szType, "")==0
Message: info type RELIGION_HELLENISM not found, Current XML file is: xml\Units/CIV4PromotionInfos.xml
You could have saved me some time and warned me to update the header file.
Update what header file? My last code modified an existing function, so no header file should have changed.
I haven't checked about the <TEXT> objects, and I'd hope they were stored elsewhere