Fine then I can no longer work on this mod because it wont allow modules.
Why now? as i said with the debug dll that was never valid that has nothing to do with recent changes. I just made a small change so that everybody could see those errors.
It's like that since a few years but nobody ever cared about it they where always just adding more and more stuff. The whole xml loading code is a mess it makes me



CvXMLLoadUtility.* and especially CvXMLLoadUtilityModTools.cpp and CvXMLLoadUtilitySetMod.cpp
However, it's not (IMO anyway) very 'obvious' code, so this comes with a 'here be dragons' warning.
If the AndDependencyTypes tag would be working as it should this problem would also not exist but it looks like whoever put that tag in did not really think about it.
So... the problem is:
that you can't set an AndDependancy on the building class info right? That should be fixable. Not sure why you can't either given that it's a CvInfoBase tag that should thus apply to any and all game object types.
Even in the schema:
It shows them as available on BuildingClassInfos.Code:<ElementType name="BuildingClassInfo" content="eltOnly"> <element type="Type"/> <!-- XMLCOPY 02/20/2008 MRGENIE --> <element type="bForceOverwrite" minOccurs="0"/> <element type="bForceDelete" minOccurs="0"/> <element type="iForceInsertLocation" minOccurs="0"/> <element type="bTypeDependency" minOccurs="0"/> <element type="AndDependencyTypes" minOccurs="0"/> <element type="OrDependencyTypes" minOccurs="0"/>
So perhaps I'm not understanding what the problem is here?
The problem is that in that case the AndDependencyTypes tag isn't working and never was. If you add a Dependency to a Building in a BuildingClass it is always failing because Buildings are loaded after BuildingClasses.