Thunderbrd
C2C War Dog
Good luck!
Assert Failed
File: CvGlobals.cpp
Line: 3089
SVN-Rev: 9247
Expression: eBuildingClassNum > -1
Message:
----------------------------------------------------------
Assert Failed
File: CvInfos.cpp
Line: 14088
SVN-Rev: 9247
Expression: i > -1
Message: Index out of bounds
----------------------------------------------------------
Misspelling FLAVOR may have something to do with that.FLAVOUR_RESEARCH
Whoops, sorry, that isn't actually misspelled in the XML. I just defaulted to my normal spelling when recording the error.Misspelling FLAVOR may have something to do with that.
My XML code is below:With the asserts you showed, DH is right. You'd have to have a missing BuildingClass definition or something along those lines.
<Civ4BuildingClassInfos xmlns="x-schema:C2C_CIV4BuildingsSchema.xml">
<BuildingClassInfos>
<BuildingClassInfo>
<Type>BUILDINGCLASS_MOVILE</Type>
<Description>TXT_KEY_BUILDING_MOVILE</Description>
<iMaxGlobalInstances>1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<DefaultBuilding>BUILDING_MOVILE</DefaultBuilding>
<VictoryThresholds/>
</BuildingClassInfo>
</BuildingClassInfos>
</Civ4BuildingClassInfos>
<Civ4BuildingInfos xmlns="x-schema:C2C_CIV4BuildingsSchema.xml">
<BuildingInfos>
<BuildingInfo>
<!-- Movile Cave -->
<BuildingClass>BUILDINGCLASS_MOVILE</BuildingClass>
<Type>BUILDING_MOVILE</Type>
<Description>TXT_KEY_BUILDING_MOVILE</Description>
<Civilopedia>TXT_KEY_BUILDING_MOVILE_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_MOVILE_STRATEGY</Strategy>
<Advisor>ADVISOR_SCIENCE</Advisor>
<!-- Graphical and interface -->
<ArtDefineTag>ART_DEF_BUILDING_MOVILE</ArtDefineTag>
<MovieDefineTag>ART_DEF_MOVIE_MOVILE</MovieDefineTag>
<ConstructSound>AS2D_BUILD_LABORATORY</ConstructSound>
<iMinAreaSize>-1</iMinAreaSize>
<fVisibilityPriority>1</fVisibilityPriority>
<!-- Prerequisites -->
<PrereqTech>TECH_EXTREME_SPORTS</PrereqTech>
<TechTypes>
<PrereqTech>TECH_ECOLOGY</PrereqTech>
</TechTypes>
<PrereqOrFeature>
<PrereqFeature>
<FeatureType>FEATURE_CAVE</FeatureType>
<bPrereqFeature>1</bPrereqFeature>
</PrereqFeature>
</PrereqOrFeature>
<PrereqOrBuildingClasses>
<PrereqOrBuildingClass>
<BuildingClassType>BUILDINGCLASS_BIOLOGY_LAB</BuildingClassType>
<bPrereqBuildingClass>1</bPrereqBuildingClass>
</PrereqOrBuildingClass>
<PrereqOrBuildingClass>
<BuildingClassType>BUILDINGCLASS_MICROBIOLOGY_LAB</BuildingClassType>
<bPrereqBuildingClass>1</bPrereqBuildingClass>
</PrereqOrBuildingClass>
</PrereqOrBuildingClasses>
<!-- Construction cost -->
<iCost>8800</iCost>
<!-- Specialist effects -->
<SpecialistCounts>
<SpecialistCount>
<SpecialistType>SPECIALIST_SCIENTIST</SpecialistType>
<iSpecialistCount>1</iSpecialistCount>
</SpecialistCount>
</SpecialistCounts>
<!-- Special Yield and Commerce modifiers -->
<CommerceChanges>
<iCommerce>0</iCommerce>
<iCommerce>5</iCommerce>
<iCommerce>1</iCommerce>
<iCommerce>0</iCommerce>
</CommerceChanges>
<!-- <ObsoleteSafeCommerceChanges>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>1</iCommerce>
<iCommerce>0</iCommerce>
</ObsoleteSafeCommerceChanges> -->
<!-- <CommerceChangeDoubleTimes>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>1000</iCommerce>
<iCommerce>0</iCommerce>
</CommerceChangeDoubleTimes>
<CommerceChangeOriginalOwners>
<bCommerceChangeOriginalOwner>0</bCommerceChangeOriginalOwner>
<bCommerceChangeOriginalOwner>0</bCommerceChangeOriginalOwner>
<bCommerceChangeOriginalOwner>1</bCommerceChangeOriginalOwner>
<bCommerceChangeOriginalOwner>0</bCommerceChangeOriginalOwner>
</CommerceChangeOriginalOwners> -->
<TechCommerceChanges>
<TechCommerceChange>
<PrereqTech>TECH_SEISMOLOGY</PrereqTech>
<TechCommerce>
<iCommerce>0</iCommerce>
<iCommerce>5</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
</TechCommerce>
</TechCommerceChange>
<TechCommerceChange>
<PrereqTech>TECH_GENCYCLOPEDIA</PrereqTech>
<TechCommerce>
<iCommerce>0</iCommerce>
<iCommerce>5</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
</TechCommerce>
</TechCommerceChange>
<TechCommerceChange>
<PrereqTech>TECH_MOLECULAR_SCANNING</PrereqTech>
<TechCommerce>
<iCommerce>0</iCommerce>
<iCommerce>5</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
</TechCommerce>
</TechCommerceChange>
<TechCommerceChange>
<PrereqTech>TECH_SUBTERRANEAN_EXPLORATION</PrereqTech>
<TechCommerce>
<iCommerce>0</iCommerce>
<iCommerce>5</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
</TechCommerce>
</TechCommerceChange>
<TechCommerceChange>
<PrereqTech>TECH_GAIA_ECOLOGY</PrereqTech>
<TechCommerce>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>4</iCommerce>
<iCommerce>0</iCommerce>
</TechCommerce>
</TechCommerceChange>
</TechCommerceChanges>
<TechYieldChanges>
<TechYieldChange>
<PrereqTech>TECH_ABYSS_COLONIZATION</PrereqTech>
<TechYield>
<iYield>0</iYield>
<iYield>3</iYield>
<iYield>0</iYield>
</TechYield>
</TechYieldChange>
<TechYieldChange>
<PrereqTech>TECH_NANOMINING</PrereqTech>
<TechYield>
<iYield>0</iYield>
<iYield>3</iYield>
<iYield>0</iYield>
</TechYield>
</TechYieldChange>
<TechYieldChange>
<PrereqTech>TECH_DESIGNER_MICROBIOLOGY</PrereqTech>
<TechYield>
<iYield>0</iYield>
<iYield>3</iYield>
<iYield>0</iYield>
</TechYield>
</TechYieldChange>
<TechYieldChange>
<PrereqTech>TECH_BACTERIUM_ENGINEERING</PrereqTech>
<TechYield>
<iYield>0</iYield>
<iYield>3</iYield>
<iYield>0</iYield>
</TechYield>
</TechYieldChange>
<TechYieldChange>
<PrereqTech>TECH_GAIA_ECOLOGY</PrereqTech>
<TechYield>
<iYield>0</iYield>
<iYield>0</iYield>
<iYield>4</iYield>
</TechYield>
</TechYieldChange>
</TechYieldChanges>
<!-- Misc effects -->
<GlobalBuildingExtraCommerces>
<BuildingExtraCommerce>
<BuildingClass>BUILDINGCLASS_SPELUNKING_CAVE</BuildingClass>
<CommerceType>COMMERCE_RESEARCH</CommerceType>
<iExtraCommerce>3</iExtraCommerce>
</BuildingExtraCommerce>
</GlobalBuildingExtraCommerces>
<GlobalBuildingClassProductionModifiers>
<BuildingClassProductionModifier>
<BuildingClassType>BUILDINGCLASS_SPELUNKING_CAVE</BuildingClassType>
<iProductionModifier>100</iProductionModifier>
</BuildingClassProductionModifier>
</GlobalBuildingClassProductionModifiers>
<!-- Great People effects -->
<GreatPeopleUnitClass>UNITCLASS_SCIENTIST</GreatPeopleUnitClass>
<iGreatPeopleRateChange>4</iGreatPeopleRateChange>
<!-- Special properties -->
<iAsset>4</iAsset>
<!-- <Flavors>
<Flavor>
<FlavorType>FLAVOR_RESEARCH</FlavorType>
<iFlavor>5</iFlavor>
</Flavor>
</Flavors> -->
<iConquestProb>100</iConquestProb>
<iHurryCostModifier>100</iHurryCostModifier>
<bTeamShare>1</bTeamShare>
<bNukeImmune>1</bNukeImmune>
<iAdvancedStartCost>-1</iAdvancedStartCost>
<!-- Properties diffusion -->
<PropertyManipulators>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_WATER_POLLUTION</PropertyType>
<iAmountPerTurn>10</iAmountPerTurn>
</PropertySource>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_WATER_POLLUTION</PropertyType>
<iAmountPerTurn>-5</iAmountPerTurn>
<Active>
<Has>
<GOMType>GOM_TECH</GOMType>
<ID>TECH_DESIGNER_MICROBIOLOGY</ID>
</Has>
</Active>
</PropertySource>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_WATER_POLLUTION</PropertyType>
<iAmountPerTurn>-5</iAmountPerTurn>
<Active>
<Has>
<GOMType>GOM_TECH</GOMType>
<ID>TECH_BACTERIUM_ENGINEERING</ID>
</Has>
</Active>
</PropertySource>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_TOURISM</PropertyType>
<iAmountPerTurn>4</iAmountPerTurn>
<Active>
<Has>
<GOMType>GOM_TECH</GOMType>
<ID>TECH_GAIA_ECOLOGY</ID>
</Has>
</Active>
</PropertySource>
</PropertyManipulators>
</BuildingInfo>
</BuildingInfos>
</Civ4BuildingInfos>
Whoops, sorry, that isn't actually misspelled in the XML. I just defaulted to my normal spelling when recording the error.
<Civ4ArtDefines xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Schema\Caveman2Cosmos.xsd">
<BuildingArtInfos>
<BuildingArtInfo>
<Type>ART_DEF_BUILDING_MOVILE</Type>
<LSystem>LSYSTEM_1x1</LSystem>
<bAnimated>0</bAnimated>
<fScale>0</fScale>
<fInterfaceScale>0</fInterfaceScale>
<NIF>Art/Empty.nif</NIF>
<KFM/>
<Button>Modules\My_Mods\Squidmods\Art\Movile.dds</Button>
</BuildingArtInfo>
</BuildingArtInfos>
</Civ4ArtDefines>
The second format failed to locate the button (which I have verified to be 64x64 pixels).Try changing
<Button>Modules\My_Mods\Squidmods\Art\Movile.dds</Button>
to
<Button>Art\Movile.dds</Button>
I created a folder under My_Mods called Squidimp and a folder under that called Art. I then copied the C2C building schema into the base folder and renamed it. Then I put your building class and building info XML into files. Copied your Art defines files. Then copied a button from elsewhere and renamed it Movile.dds. I then changed the Art defines path for the button. It all works for me.The second format failed to locate the button (which I have verified to be 64x64 pixels).
My most recent tests turned up a failure to load even without my wonders XML file in the My_Mods folder! Given that you cannot recreate the problem, it seems possible that it isn't an XML issue at all, unless some other part of my mod is somehow causing the problem. Could this be the result of folder structure? Adding movies to the remember-movies file?
I am tempted to try a re-adding the mod bit-by-bit to a clean install. The problem has already followed me through multiple C2C installs, however.