1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[BNW] Need Help with creating a new civ

Discussion in 'Civ5 - Creation & Customization' started by MinhazMurks, Mar 8, 2018.

  1. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    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
     

    Attached Files:

  2. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    Here are the log files!
     

    Attached Files:

  3. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,177
    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
     
  4. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    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
     
  5. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,177
    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.
     
  6. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    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!
     

    Attached Files:

  7. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    And Yeah I do build it every time!
     
  8. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,177
    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.
     
  9. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    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?
     
  10. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,177
    Location:
    Illinois, USA
  11. MinhazMurks

    MinhazMurks Chieftain

    Joined:
    Mar 8, 2018
    Messages:
    30
    Gender:
    Male
    Alright I'll keep that in mind, thanks a lot!
     

Share This Page