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

New at Modding CIV 5 - Trouble with Custom CIV

Discussion in 'Civ5 - Creation & Customization' started by 3ysa, May 13, 2020.

  1. 3ysa

    3ysa Chieftain

    Joined:
    May 13, 2020
    Messages:
    1
    This is my first mod and I am altering Venice for a test mod. I used the pictish warrior as a basis for the unique unit as well.
    I am having trouble with getting a custom civ to start up. It is displayed in the leader list but it crashes my CIV 5 when I hit start. It used to work without the unique warrior unit, which also took the option to use a warrior in game but worked. I tweaked the XML files for the unique unit and now it crashes. I enabled logging but I don't know how to interpret the code. I logged with and without mods before when the game was mostly working. After tweaking the XML and it crashing the logs look different with and without mods. From the guide on this website it should have a version number after it but it never has and I don't know if it should or if I should try to add one.
    Thanks for the help.
     

    Attached Files:

  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    6,756
    Location:
    Illinois, USA
    There's no such thing as UNITCLASS_JASOOS and you've never defined anything called UNIT_IJ_NIZARI_GALLEASS that I can see.
    Code:
      <Civilization_UnitClassOverrides>
        <Row>
          <CivilizationType>CIVILIZATION_IJ_NIZARI</CivilizationType>
          <UnitClassType>UNITCLASS_JASOOS</UnitClassType>
          <UnitType>UNIT_IJ_NIZARI_JASOOS</UnitType>
        </Row>
        <Row>
          <CivilizationType>CIVILIZATION_IJ_NIZARI</CivilizationType>
          <UnitClassType>UNITCLASS_GALLEASS</UnitClassType>
          <UnitType>UNIT_IJ_NIZARI_GALLEASS</UnitType>
        </Row>
      </Civilization_UnitClassOverrides>
    Nor is anything called UNITAI_JASOOS.


    There's no such thing as UNITCLASS_RECON nor UNITCOMBAT_SCOUT. These are being attempted in the definition of UNIT_FEDAI. The game is attempting to implement this unit into the database even though you aren't using it for anything. Dashes at the start of an XML line of code are ignored -- they do not make the line into a comment.

    The name of your Civilization file is probably not helping matters
    Code:
    XML/Civilization.2.xml
    The game does not know how to handle a file with an extension of
    Code:
    .2.xml
    Your Leader is referencing a non-existant Trait
    Code:
      <Leader_Traits>
        <Row>
          <LeaderType>LEADER_IJ_RASHID_ADDIN_SINAN</LeaderType>
          <TraitType>TRAIT_IJ_SUPER_CITY_STATE</TraitType>
        </Row>
      </Leader_Traits>
    In your Traits.xml file you have
    Code:
    <GameData>
      <Traits>
        <Row>
          <Type>TRAIT_SUPER_CITY_STATE</Type>
    TRAIT_SUPER_CITY_STATE is already a part of the game and so an attempt to re-add it to the database is not allowed, causing the entire file to be rejected by the game. So anything else within the Trait file has no effect whatever on the game.

    BUILDING_IJ_QELA in the Building file all appears at first look to be valid and correct, but you are not using it anywhere.

    Other errata:
    Code:
    	-<Unit_FreePromotions>
    		-<Row>
    			<UnitType>UNIT_SCOUT</UnitType>
    			<PromotionType>PROMOTION_IGNORE_TERRAIN_COST</PromotionType>
    		</Row>
    	</Unit_FreePromotions>
    
    
    	-<Traits>
    		-<Row>
    			<Type>TRAIT_CL_UC_REVOLUTION</Type>
    			<Description>TXT_KEY_TRAIT_CL_UC_REVOLUTION</Description>
    			<ShortDescription>TXT_KEY_TRAIT_CL_UC_REVOLUTION_SHORT</ShortDescription>
    		</Row>
    	</Traits>
    And again the game already has all this so if you fix the topmost problem in the Trait file you will still get complete file rejection because of the repeats in the Language_en_US table:
    Code:
      <Trait_NoTrain>
        <Row>
          <TraitType>TRAIT_SUPER_CITY_STATE</TraitType>
          <UnitClassType>UNITCLASS_SETTLER</UnitClassType>
        </Row>
      </Trait_NoTrain>
    
      <Language_en_US>
        <Row Tag="TXT_KEY_TRAIT_SUPER_CITY_STATE">
          <Text>Cannot gain settlers nor annex cities. Double the normal number of trade routes available..</Text>
        </Row>
        <Row Tag="TXT_KEY_TRAIT_SUPER_CITY_STATE_SHORT">
          <Text>Old Man on the Mountain</Text>
        </Row>
      </Language_en_US>
    You have likely made other errors but these are the stand-outs after a quick look at the mod. Also, follow this tutorial for the proper procedure to attach your mod to a post -- the parts about which folder to zip are important: whoward69's zip your mods and attach tutorial
     

Share This Page