Illuana's mod "Fighters prioritize fighters" mod

On my starting GC4 this mod is throwing the following error message .. 

 

C:\Users\ops20\OneDrive\Documents\My Games\GalCiv4\Mods\Illauna-TargetPriorities\Data\Gameplay\IllaunaBattleBehaviorDefs.xml(4,19): error: 

no declaration found for element 'BattleBehavior'

 

C:\Users\ops20\OneDrive\Documents\My Games\GalCiv4\Mods\Illauna-TargetPriorities\Data\Gameplay\IllaunaBattleBehaviorDefs.xml(20,18): error: 

element 'BattleBehavior' is not allowed for content model '(AdvisorDisplayDef*,AdvisorRecommendationDef*,AgendaVictoryConditionDef*,AIFleetGovernorDef*,AIStarbaseGovernorDef*,AIStrategyDef*,AITechGovernorDef*,AlertDef*,AnomalyArtDef*,AnomalyDef*,AnomalyGroupDef*,ArtifactArtDef*,ArtifactDef*,ArtifactPowerDef*,AsteroidArtDef*,AsteroidDef*,BattleActionDef*,BattleBehaviorDef*,BattlefieldDef*,BattleTacticDef*,BattleTitleDef*,BlackHoleArtDef*,BlackHoleDef*,BorderArtDef*,GameModeDef*,TurnTimeLimitDef*,PresetGameSettingsDef*,ScenarioObjectiveDef*,ScenarioDef*,CampaignDef*,CinematicCameraDef*,CitizenRaceDef*,ComponentClassDef*,PlanetTraitDef*,ContinentDef*,RelativePowerDisplayDef*,DiplomaticModifierDef*,FlavorTextDef*,DiplomacyMoodDisplayDef*,ConversationResponseDef*,ConversationTopicDef*,CreditsSequenceDef*,CultureTraitDef*,CultureTierDef*,CulturePyramidDef*,CustomConversationFilterDef*,CutsceneDef*,DiplomacyDisplayDef*,EncounterDef*,EnvironmentDef*,EventTriggerListDef*,ExecutiveOrderDef*,FactionCommanderShipSetDef*,FactionDef*,FactionMapColorsDef*,FactionMoviesBGDef*,FactionMoviesFGDef*,FactionMusicDef*,FactionOverrideDef*,FactionShipStyleSetDef*,FormationDef*,KeyValueDictionaryType*,FXDataCurve*,FXElementConfig*,FXOverrideConfig*,GalacticNewsDef*,GalaxyDef*,UISFXDef*,ColonyControlActionModifierDef*,GalCivGlobalDef*,AIUnitRequirementDef*,GalCivAIDef*,ShipComponentDef*,GalCivGraphicsDef*,ChoiceDef*,GameEventDef*,GameSetupDef*,GCAppearanceDef*,GCMaterialDef*,GCSurfaceDef*,GCTextureSetDef*,GovernmentDef*,GovernmentTierDef*,GovernorDef*,HypergateDef*,HyperlaneDef*,IdeologyFocusDef*,ImprovementDef*,ImprovementTypesDisplayDef*,InvasionTacticDef*,LeaderActionDef*,LeaseDef*,MainGameMusicDef*,MapMarkerDef*,MapSetupDef*,StarClusterSizeDef*,MaxSectorCountDef*,MapSizeDef*,MarketPlaceEntryDef*,MarketPlaceDef*,MegaEventDef*,MercenaryDef*,MercenaryTierDef*,MiningBaseArtDef*,ModifierTargetTypeDisplayDef*,NebulaDef*,NebulaGroupDef*,NotificationArtDef*,ObjectAbilityDef*,PacingGroupDef*,EmitterDef*,AffectorDef*,ParticleScriptDef*,PathLin

 

This occurs with my Steam client in either 'online' or 'offline' mode.

3,900 views 1 replies
Reply #1 Top

I looked into it and there is a problem. In the file they forgot to add "Def" to the end of the of the "BattleBehavior" tag when using ModifyDataList. If you can edit the file change <BattleBehavior> and </BattleBehavior> to <BattleBehaviorDef> and <BattleBehaviorDef>

so instead of...

<ModifyDataList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="../../../../Data/Schema/Generated/ModifyDataDef.xsd">
  <BattleBehavior>
    <InternalName>Interceptor</InternalName>
    <DisplayName>BattleBehavior_Fighter_Name</DisplayName>
    <Description>Tooltip_Interceptor</Description>
    <StartingPos>1200</StartingPos>
    <RadialStartingPos>1000</RadialStartingPos>
    <ManeuverType>Attacker</ManeuverType>
    <AttackTarget>Interceptor</AttackTarget>
    <AttackTarget>Bomber</AttackTarget>
    <AttackTarget>Capital</AttackTarget>
    <AttackTarget>Assault</AttackTarget>
    <AttackTarget>Escort</AttackTarget>
    <AttackTarget>Support</AttackTarget>
    <AttackTarget>Starbase</AttackTarget>
    <AttackTarget>Upgrading</AttackTarget>
  </BattleBehavior>
</ModifyDataList>

It should be...

<ModifyDataList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="../../../../Data/Schema/Generated/ModifyDataDef.xsd">
  <BattleBehaviorDef>
    <InternalName>Interceptor</InternalName>
    <DisplayName>BattleBehavior_Fighter_Name</DisplayName>
    <Description>Tooltip_Interceptor</Description>
    <StartingPos>1200</StartingPos>
    <RadialStartingPos>1000</RadialStartingPos>
    <ManeuverType>Attacker</ManeuverType>
    <AttackTarget>Interceptor</AttackTarget>
    <AttackTarget>Bomber</AttackTarget>
    <AttackTarget>Capital</AttackTarget>
    <AttackTarget>Assault</AttackTarget>
    <AttackTarget>Escort</AttackTarget>
    <AttackTarget>Support</AttackTarget>
    <AttackTarget>Starbase</AttackTarget>
    <AttackTarget>Upgrading</AttackTarget>
  </BattleBehaviorDef>
</ModifyDataList>

If you can't edit the file I'll upload a copy to the modding section of the discord with the changes made. Just replace the file with it