[BNW] Need Help with creating a new civ

MinhazMurks

Chieftain
Joined
Mar 8, 2018
Messages
30
Hello I'm trying to create a mod that creates a civilization from the Shoshone, but I'm running into errors.

I know it has something to do with the units but i'm not sure what to do about it. Here are all the xml files and log files
 

Attachments

  • Civilization.xml
    14.6 KB · Views: 36
  • Leader.xml
    10.3 KB · Views: 177
  • Trait.xml
    8 KB · Views: 177
  • Units.xml
    13.1 KB · Views: 34

MinhazMurks

Chieftain
Joined
Mar 8, 2018
Messages
30
Here are the log files!
 

Attachments

  • Database.txt
    8.7 KB · Views: 45
  • xml.txt
    2.8 KB · Views: 38
  • Lua.txt
    20.3 KB · Views: 38

LeeS

Imperator
Joined
Jul 23, 2013
Messages
7,241
Location
Illinois, USA
As database.log is reporting, this
Code:
<UnitType>UNIT_KAIXA_CARTOGRAPHER</UnitType>
does not match to this
Code:
<Type>UNIT_KAIXAN_CARTOGRAPHER</Type>
and this
Code:
<UnitType>UNIT_KAIXA_COMANCHE_RIDERS</UnitType>
does not match to this
Code:
<Type>UNIT_KAIXAN_COMANCHE_RIDERS</Type>
And therefore these errors are reported in Database.log because no such unit exists as is being referenced in table <Civilization_UnitClassOverrides>:
Code:
[9537.906] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_KAIXA_CARTOGRAPHER" does not exist in Units
[9537.906] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_KAIXA_COMANCHE_RIDERS" does not exist in Units

Additionally, the bulk of your text from Database log is because of this:
Code:
  <Traits>
    <Row>
      <Type>TRAIT_GREAT_EXPANSE</Type>
The game already has a trait defined as TRAIT_GREAT_EXPANSE so you cannot attempt to add another trait with the same designation
 

MinhazMurks

Chieftain
Joined
Mar 8, 2018
Messages
30
As database.log is reporting, this
Code:
<UnitType>UNIT_KAIXA_CARTOGRAPHER</UnitType>
does not match to this
Code:
<Type>UNIT_KAIXAN_CARTOGRAPHER</Type>
and this
Code:
<UnitType>UNIT_KAIXA_COMANCHE_RIDERS</UnitType>
does not match to this
Code:
<Type>UNIT_KAIXAN_COMANCHE_RIDERS</Type>
And therefore these errors are reported in Database.log because no such unit exists as is being referenced in table <Civilization_UnitClassOverrides>:
Code:
[9537.906] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_KAIXA_CARTOGRAPHER" does not exist in Units
[9537.906] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_KAIXA_COMANCHE_RIDERS" does not exist in Units

Additionally, the bulk of your text from Database log is because of this:
Code:
  <Traits>
    <Row>
      <Type>TRAIT_GREAT_EXPANSE</Type>
The game already has a trait defined as TRAIT_GREAT_EXPANSE so you cannot attempt to add another trait with the same designation

Thank you so much for your reply! I did change the typo in Civilization.xml to match the Units.xml and I changed the art as well back to the shoshone art so it would at least show up in game:

<UnitArtInfo>ART_DEF_UNIT_U_SHOSHONE_PATHFINDER</UnitArtInfo>

<UnitArtInfo>ART_DEF_UNIT_U_SHOSHONE_COMANCHE_RIDERS</UnitArtInfo>

But i'm still getting the same error
 

LeeS

Imperator
Joined
Jul 23, 2013
Messages
7,241
Location
Illinois, USA
Are you using modbuddy and if so did you re-build the mod in modbuddy after fixing the typos?

Zipping the mod folder itself from the game's MODS folder and attaching to a post is better than trying to diagnose what you may be doing wrong from descriptions of the problem.
 

MinhazMurks

Chieftain
Joined
Mar 8, 2018
Messages
30
Yes I did that as well! Ok I will attach the zipped folder.

Again thank you very much for taking the time to help me on my mod problems!
 

Attachments

  • Kaixa Mod (v 1).zip
    9.4 KB · Views: 52

MinhazMurks

Chieftain
Joined
Mar 8, 2018
Messages
30
Are you using modbuddy and if so did you re-build the mod in modbuddy after fixing the typos?

Zipping the mod folder itself from the game's MODS folder and attaching to a post is better than trying to diagnose what you may be doing wrong from descriptions of the problem.

And Yeah I do build it every time!
 

LeeS

Imperator
Joined
Jul 23, 2013
Messages
7,241
Location
Illinois, USA
It took me a while to spot the obvious in your modinfo file
Code:
  <Actions>
    <OnModActivated>
      <UpdateDatabase>XML/Civilization.xml</UpdateDatabase>
      <UpdateDatabase>XML/Leader.xml</UpdateDatabase>
      <UpdateDatabase>XML/Trait.xml</UpdateDatabase>
      <UpdateUserData>XML/Units.xml</UpdateUserData>
    </OnModActivated>
  </Actions>
Your units file is not <UpdateDatabase>. Also the game did not seem to like your civilization def, so I changed it to
Code:
  <Civilizations>
    <Row>
      <Type>CIVILIZATION_KAIXA</Type>
      <Description>TXT_KEY_CIV_KAIXA_DESC</Description>
      <Civilopedia></Civilopedia>
      <CivilopediaTag>TXT_KEY_CIV5_KAIXA</CivilopediaTag>
      <Strategy></Strategy>
      <Playable>1</Playable>
      <AIPlayable>1</AIPlayable>
      <ShortDescription>TXT_KEY_CIV_KAIXA_SHORT_DESC</ShortDescription>
      <Adjective>TXT_KEY_CIV_KAIXA_ADJECTIVE</Adjective>
      <DefaultPlayerColor>PLAYERCOLOR_KAIXA</DefaultPlayerColor>
      <ArtDefineTag>ART_DEF_CIVILIZATION_SHOSHONE</ArtDefineTag>
      <ArtStyleType>ARTSTYLE_SOUTH_AMERICA</ArtStyleType>
      <ArtStyleSuffix>_AMER</ArtStyleSuffix>
      <ArtStylePrefix>AMERICAN</ArtStylePrefix>
      <DerivativeCiv></DerivativeCiv>
      <PortraitIndex>6</PortraitIndex>
      <IconAtlas>EXPANSION2_CIV_COLOR_ATLAS</IconAtlas>
      <AlphaIconAtlas>EXPANSION2_CIV_ALPHA_ATLAS</AlphaIconAtlas>
      <MapImage>MapShoshone360x410.dds</MapImage>
      <DawnOfManQuote>TXT_KEY_CIV5_DAWN_KAIXA_TEXT</DawnOfManQuote>
      <DawnOfManImage>DOM_Pocatello.dds</DawnOfManImage>
      <DawnOfManAudio></DawnOfManAudio>
      <SoundtrackTag></SoundtrackTag>
    </Row>
  </Civilizations>
I also changed everywhere you had TRAIT_GREAT_EXPANSE to TRAIT_GREAT_EXPANSE2 so the game does not complain about a repeat attempt to define a trait called TRAIT_GREAT_EXPANSE.
 

MinhazMurks

Chieftain
Joined
Mar 8, 2018
Messages
30
It took me a while to spot the obvious in your modinfo file
Code:
  <Actions>
    <OnModActivated>
      <UpdateDatabase>XML/Civilization.xml</UpdateDatabase>
      <UpdateDatabase>XML/Leader.xml</UpdateDatabase>
      <UpdateDatabase>XML/Trait.xml</UpdateDatabase>
      <UpdateUserData>XML/Units.xml</UpdateUserData>
    </OnModActivated>
  </Actions>
Your units file is not <UpdateDatabase>. Also the game did not seem to like your civilization def, so I changed it to
Code:
  <Civilizations>
    <Row>
      <Type>CIVILIZATION_KAIXA</Type>
      <Description>TXT_KEY_CIV_KAIXA_DESC</Description>
      <Civilopedia></Civilopedia>
      <CivilopediaTag>TXT_KEY_CIV5_KAIXA</CivilopediaTag>
      <Strategy></Strategy>
      <Playable>1</Playable>
      <AIPlayable>1</AIPlayable>
      <ShortDescription>TXT_KEY_CIV_KAIXA_SHORT_DESC</ShortDescription>
      <Adjective>TXT_KEY_CIV_KAIXA_ADJECTIVE</Adjective>
      <DefaultPlayerColor>PLAYERCOLOR_KAIXA</DefaultPlayerColor>
      <ArtDefineTag>ART_DEF_CIVILIZATION_SHOSHONE</ArtDefineTag>
      <ArtStyleType>ARTSTYLE_SOUTH_AMERICA</ArtStyleType>
      <ArtStyleSuffix>_AMER</ArtStyleSuffix>
      <ArtStylePrefix>AMERICAN</ArtStylePrefix>
      <DerivativeCiv></DerivativeCiv>
      <PortraitIndex>6</PortraitIndex>
      <IconAtlas>EXPANSION2_CIV_COLOR_ATLAS</IconAtlas>
      <AlphaIconAtlas>EXPANSION2_CIV_ALPHA_ATLAS</AlphaIconAtlas>
      <MapImage>MapShoshone360x410.dds</MapImage>
      <DawnOfManQuote>TXT_KEY_CIV5_DAWN_KAIXA_TEXT</DawnOfManQuote>
      <DawnOfManImage>DOM_Pocatello.dds</DawnOfManImage>
      <DawnOfManAudio></DawnOfManAudio>
      <SoundtrackTag></SoundtrackTag>
    </Row>
  </Civilizations>
I also changed everywhere you had TRAIT_GREAT_EXPANSE to TRAIT_GREAT_EXPANSE2 so the game does not complain about a repeat attempt to define a trait called TRAIT_GREAT_EXPANSE.

OMG I'M SO DUMB lol thank you so much! If i have questions in the future should i make a thread like this again or would it be ok for me to private message you?
 

LeeS

Imperator
Joined
Jul 23, 2013
Messages
7,241
Location
Illinois, USA
Top Bottom