Check my mod for error

DevilMassacre

Chieftain
Joined
Jul 31, 2014
Messages
2
I'm just a newbie at modding and I want to add a new civilization to Civilization 5

I've hit a bump and I can't seem to find out whats the problem with my XML scripts.
The problem is that the new Civilization won't appear in the game,
Can you check my script for errors and point it out for me?Much thanks :)

Mod Buddy Project

I took Arabia as my reference civilization and I want to change the name and images to Fuuka Yamagishi

Moderator Action: Moved to Creation & Customization
 
Your basic problems stem from re-using existing names of buildings, units, and traits. You can make your civ use ones that are already in the game, but you can't create a new trait, unit, or building and give it the same XML-name as one that already exists.
You also can't create TXT_KEY tags that are repeats of what already exists within the game.

These are all no-good when adding a new unit, building, or trait to use with your civ:
Code:
   <Buildings>
    <Row>
     <Type>BUILDING_BAZAAR</Type>
      <Description>TXT_KEY_BUILDING_BAZAAR_DESC</Description>
      <Civilopedia>TXT_KEY_CIV5_BUILDINGS_BAZAAR_TEXT</Civilopedia>
      <Strategy>TXT_KEY_BUILDING_BAZAAR_STRATEGY</Strategy>
      <Help>TXT_KEY_BUILDING_BAZAAR_HELP</Help>

  <Units>
    <Row>
      <Type>UNIT_ARABIAN_CAMELARCHER</Type>

  <Traits>
    <Row>
      <Type>TRAIT_LAND_TRADE_GOLD</Type>
      <Description>TXT_KEY_TRAIT_LAND_TRADE_GOLD</Description>
      <ShortDescription>TXT_KEY_TRAIT_LAND_TRADE_GOLD_SHORT</ShortDescription>

But these lines are OK if you actually want to re-use what already exists in the game. You would just need to not activate the files for the Building, Unit, or leader trait within Modbuddy.:
Code:
  <Leader_Traits>
    <Row>
      <LeaderType>LEADER_FUUKA_YAMAGISHI</LeaderType>
      <TraitType>TRAIT_LAND_TRADE_GOLD</TraitType>
    </Row>
  </Leader_Traits>

  <Civilization_BuildingClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_FUUKA</CivilizationType>
      <BuildingClassType>BUILDINGCLASS_MARKET</BuildingClassType>
      <BuildingType>BUILDING_BAZAAR</BuildingType>
    </Row>
  </Civilization_BuildingClassOverrides>

  <Civilization_UnitClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_FUUKA</CivilizationType>
      <UnitClassType>UNITCLASS_KNIGHT</UnitClassType>
      <UnitType>UNIT_ARABIAN_CAMELARCHER</UnitType>
    </Row>
  </Civilization_UnitClassOverrides>

...............................................................................................................................................

You also do not have your art files 'registered' correctly in ModBuddy. See whoward69's what setting for what file types tutorial for more complete info, but you haven't set your dds art files as Import Into VFS=true.
 
Your basic problems stem from re-using existing names of buildings, units, and traits. You can make your civ use ones that are already in the game, but you can't create a new trait, unit, or building and give it the same XML-name as one that already exists.
You also can't create TXT_KEY tags that are repeats of what already exists within the game.

These are all no-good when adding a new unit, building, or trait to use with your civ:
Code:
   <Buildings>
    <Row>
     <Type>BUILDING_BAZAAR</Type>
      <Description>TXT_KEY_BUILDING_BAZAAR_DESC</Description>
      <Civilopedia>TXT_KEY_CIV5_BUILDINGS_BAZAAR_TEXT</Civilopedia>
      <Strategy>TXT_KEY_BUILDING_BAZAAR_STRATEGY</Strategy>
      <Help>TXT_KEY_BUILDING_BAZAAR_HELP</Help>

  <Units>
    <Row>
      <Type>UNIT_ARABIAN_CAMELARCHER</Type>

  <Traits>
    <Row>
      <Type>TRAIT_LAND_TRADE_GOLD</Type>
      <Description>TXT_KEY_TRAIT_LAND_TRADE_GOLD</Description>
      <ShortDescription>TXT_KEY_TRAIT_LAND_TRADE_GOLD_SHORT</ShortDescription>

But these lines are OK if you actually want to re-use what already exists in the game. You would just need to not activate the files for the Building, Unit, or leader trait within Modbuddy.:
Code:
  <Leader_Traits>
    <Row>
      <LeaderType>LEADER_FUUKA_YAMAGISHI</LeaderType>
      <TraitType>TRAIT_LAND_TRADE_GOLD</TraitType>
    </Row>
  </Leader_Traits>

  <Civilization_BuildingClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_FUUKA</CivilizationType>
      <BuildingClassType>BUILDINGCLASS_MARKET</BuildingClassType>
      <BuildingType>BUILDING_BAZAAR</BuildingType>
    </Row>
  </Civilization_BuildingClassOverrides>

  <Civilization_UnitClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_FUUKA</CivilizationType>
      <UnitClassType>UNITCLASS_KNIGHT</UnitClassType>
      <UnitType>UNIT_ARABIAN_CAMELARCHER</UnitType>
    </Row>
  </Civilization_UnitClassOverrides>

...............................................................................................................................................

You also do not have your art files 'registered' correctly in ModBuddy. See whoward69's what setting for what file types tutorial for more complete info, but you haven't set your dds art files as Import Into VFS=true.


Thanks for your time on identifying my errors on my script,you have my utmost gratitude. :)
 
Top Bottom