[SOLVED - SDK] dll size and Assertion failure

flitz

Warlord
Joined
Sep 16, 2009
Messages
245
Hi,

two issues here.

Firstly, I got the "Rise of Mankind: A new Dawn" sources from the corresponding svn repo.
I used the existing Makefile project from it in MSVS 2010 and set up the appropriate paths for the MS C++ 2003 Toolkit and the Windows SDK 7.0a and also set up the environment to point to the correct installation directory, the mod directory boost libs and so on.

  1. The compile succeeded but the resulting CvGameCoreDLL.dll is about 18MB in size whereas the one that came with the mod is around 7. (and is supposedly built from the same sources, because the beta build of the mod is from the same revision of the same svn repository).
    Scratch that, I was using the build target with debugging information ...
    .
  2. Upon loading the game I get the following assertion failure:
    Assert Failed

    File: CvGlobals.cpp
    Line: 4628
    Expression: strcmp(szType, "NONE")==0 || strcmp(szType, "")==0
    Message: info type UNITCOMBAT_HERO not found, Current XML file is: xml\GameInfo/CIV4EspionageMissionInfo.xml
    I can simply select 'ignore always' and the game will continue to load and succeeds with that, but it is still odd.
    I grep'ed around the mentioned xml file and even the full XML directory but no references to the UNITCOMBAT_HERO thingy, it's only mentioned in the sources.

Anyone can help with that, please ? :)

thanks, f.

EDIT: Interesting! The second error even went away too once I was using the release version of the dll instead of the debugging version. Can anybody tell me why this is ?
 
Just the amount of debuging information will increase the file size, that's it, nothing else ;).

For the error: Likely caused by one of the Python files, nothing to worry.
you can see that on the error message: The CIV4EspionageMissionInfo is AFAIK the file, which is loaded last, and every error which comes afterwards (e.g. in the Python files) is attributed to that XML file.
If I should guess, then I'd say take a look at Python\CvAdvisorUtils.py. That file controls the popups, which you get when you build the first time a unit ("You have built your first archery unit, etc."), and the different unit combats are hardcoded in there.
 
Back
Top Bottom