Assert Failed's

Linkman226

#anarchy
Joined
Sep 14, 2007
Messages
2,493
What exactly do these Assert Failed's mean?

Assert Failed

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

----------------------------------------------------------

Assert Failed

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


They occur right before my game crashes.

In advance, thanks for your help.
 
one of your buildings has ART_DEF_BUILDING_CHRISTIAN_HOLY_OFFICE as ArtDefineTag, but it seems to be missing from CIV4ArtDefines_Building.xml. may be just a typo or you forgot to add the art info.
 
From CIV4ArtDefines_Building:

Code:
		<BuildingArtInfo>
			<Type>ART_DEF_BUILDING_CHRISTIAN_HOLY_OFFICE</Type>
			<LSystem>LSYSTEM_3x2</LSystem>
			<bAnimated>0</bAnimated>
			<fScale>.70</fScale>
			<fInterfaceScale>0.61</fInterfaceScale>
			<NIF>Art/Structures/Buildings/Holy Office/Holy Office Dungeon.nif</NIF>
			<KFM/>
			<Button>Art/Interface/Buttons/Buildings/Christian Holy Office.dds</Button>
		</BuildingArtInfo>

And from CIV4BuildingInfos:


Code:
		<BuildingInfo>
			<BuildingClass>BUILDINGCLASS_CHRISTIAN_HOLY_OFFICE</BuildingClass>
			<Type>BUILDING_CHRISTIAN_HOLY_OFFICE</Type>
			<SpecialBuildingType>SPECIALBUILDING_HOLY_OFFICE</SpecialBuildingType>
			<Description>TXT_KEY_BUILDING_CHRISTIAN_HOLY_OFFICE</Description>
			<Civilopedia>TXT_KEY_BUILDING_CHRISTIAN_HOLY_OFFICE_PEDIA</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_CHRISTIAN_HOLY_OFFICE_STRATEGY</Strategy>
			<Advisor>ADVISOR_RELIGION</Advisor>
			<ArtDefineTag>ART_DEF_BUILDING_CHRISTIAN_HOLY_OFFICE</ArtDefineTag>
			<MovieDefineTag>NONE</MovieDefineTag>
			<HolyCity>NONE</HolyCity>

It's clearly there
 
I had merged another unit from a different mod right above this, but I accidentally merged in the final XML tag. So as far as the XML was concerned, th ArtDefines above didn't exist. Kinda stupid of me.
 
Back
Top Bottom