Loading game, can't find ART_DEF_LEADER???

blitzkrieg1980

Octobrist
Joined
Aug 29, 2006
Messages
4,899
Location
New Jersey, USA
I finally got my mini-MOD to load into the main menu screen. Of course, when starting a game as a particular leader that I've added (in this case Alfonso Henriques), the game freezes just before you get the leader screen. I get the following error message when I return to the desktop:

Assert Failed

File: CvArtFileMgr.cpp
Line: 177
Expression: false
Message: get##name##ArtInfo: ART_DEF_LEADER_ALFONSO_HENRIQUES was not found


I do not get this error or problems with the other leaders I've added.

I've checked all the files that would have the ART_DEF_LEADER_ALFONSO_HENRIQUES in them (LeaderheadInfos.xml and ArtDefinesLeaderheadInfos.xml) and they both are correctly spelled and in the right place. I just can't seem to understand why it cannot "find" ART_DEF_LEADER_ALFONSO_HENRIQUES. I checked both the My Documents\My Games\BTS\MODS\My Mod and the c:\Firaxis Games\Civ4\BTS\MODS\My Mod files and everything is in the right place and spelled correctly. What does this error mean?
 
Don't trust your eyes.
Unless you've taken ART_DEF_LEADER_ALFONSO_HENRIQUES and searched with the exact string in the other files, I'm still going to say that you misspelled it somewhere.

Sometimes it's really hard to see, don't trust your eyes.
e.g. I banged my head against a wall for a hour, until I figured out that I had two underscores __ in an entry. Impossible to see, really.
 
LoL. That's actually EXACTLY what happened to me. Double underscore. Yet, there is another error. Now, I'm able to play until meeting an arbitrary leader (doesn't happen with all leaders) but usually happens the first time meeting a new civ.

Assert Failed

File: CvTeam.cpp
Line: 3304
Expression: eIndex >= 0
Message: eIndex is expected to be non-negative (invalid Index)


This one has me stumped. I've never changed any of the team settings and I certainly haven't messed with any of the .cpp or .h files. Although, thanks to the DLL you gave me, I'm able to "ignore" this error and gameplay seems to continue. Upon meeting the next leader, I'll get the same error only this time I have to "ignore" it twice!
 
When those things pop up you need to look at the .cpp file to see what it is doing at that location.

In this case, line 3304 of CvTeam.cpp, it is in the isHasMet function. It is being called for a non-existent team (the argument is probably -1, but it must be >= 0 for this function to work correctly which is what it is telling you). So the first question you should think about it this: Did you do anything with Python that calls the CyTeam.isHasMet function? If so, that is where the problem probably is.
 
I haven't touched the python. Literally, all I've done is to change a bunch of the XML files to add a few units, wonders, a trait, a couple civs, and a bunch of leaders. It was all XML, though. I can program in C++, but I haven't delved into Python yet but haven't changed any of these files for my MOD. That's why I'm so confused. I had to keep "ignoring" this error until I finally told it to "always ignore". That seemed to take care of it.

Perhaps this is a result of my using the BUG mod files in my mod.
 
Thanks. I just did the "Ignore Always" option and my game has progressed just fine. Thanks for your help, guys.
 
Back
Top Bottom