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

.modinfo help

Discussion in 'Civ6 - Creation & Customization' started by gelodgreat, Nov 14, 2017.

  1. gelodgreat

    gelodgreat Chieftain

    Joined:
    Oct 23, 2015
    Messages:
    441
    Gender:
    Male
    Location:
    Manila, Philippines
    Can anyone help me fix my modinfo? When I try to add something in civilizationtraits it doesnt work. Please help my mod is GDG [Personal] The Chosen Unique

    <?xml version="1.0" encoding="utf-8"?>
    <Mod id="4ead703c-3d6c-4cb4-b0da-8d0ff20ac919" version="2.4.4">

    <Properties>
    <Name>GDG's The Chosen Unique</Name>
    <Stability>Alpha</Stability>
    <Teaser>Gives Civilization a type of uniques.</Teaser>
    <Description>Gives Civilization a type of uniques from other civs.</Description>
    <Authors>GeloDGreat</Authors>
    <SpecialThanks>chiphead for the fix of exclamation mark. Deliverator for MOAR Units</SpecialThanks>
    </Properties>

    <Dependencies>
    <Mod id="bd141853-920e-41d8-9b41-c73b1b15fb48" minversion="0" maxversion="999" title="Even Moar Units! Australia"/>
    <Mod id="bf65efa2-7cef-4519-a22f-f693e07d92f9" minversion="0" maxversion="999" title="Even Moar Units! The Aztecs"/>
    <Mod id="c5b55307-24bf-4952-ad64-5708fd67faec" minversion="0" maxversion="999" title="Even Moar Units! Poland"/>
    <Mod id="8342b98d-80c7-4002-87bb-419646bd9b54" minversion="0" maxversion="999" title="Moar Units" />
    <Mod id="E3F53C61-371C-440B-96CE-077D318B36C0" title="DLC: Australia Civilization Pack" />
    <Mod id="02A8BDDE-67EA-4D38-9540-26E685E3156E" title="DLC: Aztec Civilization Pack" />
    <Mod id="3809975F-263F-40A2-A747-8BFB171D821A" title="DLC: Poland Civilization Pack" />
    <Mod id="E2749E9A-8056-45CD-901B-C368C8E83DEB" title="DLC: Persia and Macedon Civilization Pack" />
    </Dependencies>


    <InGameActions>
    <UpdateDatabase id="GDG_TheChosenUniqueDatabase">
    <Properties>
    <LoadOrder>-1</LoadOrder>
    </Properties>
    <Items>
    <File>Modifieable_GDG_Chosen_Civ_Component.sql</File>
    <File>GDG_TheChosenUniqueTraits.sql</File>
    <File>GDG_TheChosenUniqueSuzerainBonuses.sql</File>
    <File>GDG_TheChosenColors.sql</File>
    <File>GDG_TheChosenUniqueTraits_AirBomber_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_AirFighter_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_Anti-Cavalry_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_HeavyCavalry_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_LightCavalry_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_MeleeUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_NavalMelee_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_NavalRanged_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_NavalRaider_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_RangedUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_SiegeUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_SupportUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_ExtraUnits_AfterProduction.sql</File>
    <File>GDG_TheChosenUniqueTraits_Building_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_City_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_Trade_Yields.sql</File>
    <File>GDG_TheChosenUniqueTraits_PurchaseUsing_Faith.sql</File>
    <File>GDG_TheChosenUniqueTraits_MO_IP_RSD_RSS.sql</File>
    <File>GDG_Culture_Bomb_Improvements.sql</File>
    <File>testingtae.xml</File>
    </Items>
    </UpdateDatabase>
    <LocalizedText id="GDG_PersonalUnique_Text">
    <Items>
    <File>GDG_TheChosenUniqueTraitsText.sql</File>
    </Items>
    </LocalizedText>
    </InGameActions>
    <Files>
    <File>GDG_TheChosenUniqueTraits.sql</File>
    <File>GDG_TheChosenUniqueTraitsText.sql</File>
    <File>GDG_TheChosenUniqueSuzerainBonuses.sql</File>
    <File>GDG_TheChosenColors.sql</File>
    <File>GDG_TheChosenUniqueTraits_AirBomber_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_AirFighter_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_Anti-Cavalry_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_HeavyCavalry_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_LightCavalry_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_MeleeUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_NavalMelee_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_NavalRanged_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_NavalRaider_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_RangedUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_SiegeUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_SupportUnit_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_ExtraUnits_AfterProduction.sql</File>
    <File>GDG_TheChosenUniqueTraits_Building_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_City_Production.sql</File>
    <File>GDG_TheChosenUniqueTraits_Trade_Yields.sql</File>
    <File>GDG_TheChosenUniqueTraits_PurchaseUsing_Faith.sql</File>
    <File>GDG_TheChosenUniqueTraits_MO_IP_RSD_RSS.sql</File>
    <File>GDG_Culture_Bomb_Improvements.sql</File>
    <File>Modifieable_GDG_Chosen_Civ_Component.sql</File>
    <File>testingtae.xml</File>
    </Files>

    </Mod>
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,735
    Location:
    Illinois, USA
    You are using a mix and mash of methods in the modinfo file from before the SDK was released and from after the SDK was released.

    This is the format of a modinfo file when using <inGameActions> instead of <Components>:
    Spoiler :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Mod id="46f68baa-7457-4c80-b88d-53da67a4b38d" version="5">
      <Properties>
        <Name>LeeS' Buildings Are Fun</Name>
        <Description>LeeS' Buildings Are Fun</Description>
        <Teaser>LeeS' Buildings Are Fun</Teaser>
        <Authors>Lee</Authors>
      </Properties>
      <Dependencies>
        <Mod id="88ccd553-d804-48ff-a83c-55a43ab2b323" title="LeeS' Dummy Buildings Systems" />
      </Dependencies>
      <References>
        <Mod id="ffc32d00-b546-4b1c-8be8-6c5d51ef1544" title="Wondrous Wonders" />
        <Mod id="f9f26542-96b9-4476-827b-501a593fb03d" title="Wondrous Wonders (World Wonders Only)" />
      </References>
      <InGameActions>
        <UpdateIcons id="IconDefinitions">
          <File>XML/Buildng_Icons.xml</File>
        </UpdateIcons>
        <UpdateText id="InGameText">
          <File>XML/BuildingInGame_Text.xml</File>
        </UpdateText>
        <ImportFiles id="ART">
          <File>ART/EraBuildings_032.dds</File>
          <File>ART/EraBuildings_038.dds</File>
          <File>ART/EraBuildings_050.dds</File>
          <File>ART/EraBuildings_080.dds</File>
          <File>ART/EraBuildings_128.dds</File>
          <File>ART/EraBuildings_256.dds</File>
          <File>ART/BuildingsAreFunAtlas01_032.dds</File>
          <File>ART/BuildingsAreFunAtlas01_038.dds</File>
          <File>ART/BuildingsAreFunAtlas01_050.dds</File>
          <File>ART/BuildingsAreFunAtlas01_128.dds</File>
          <File>ART/BuildingsAreFunAtlas01_256.dds</File>
          <File>ART/BuildingsAreFunAtlas01_080.dds</File>
        </ImportFiles>
        <AddGameplayScripts id="LUA_Gameplay_EraUnlockers">
          <File>LUA/Era-LinkedBuildings/EraLockerBuildings.lua</File>
        </AddGameplayScripts>
        <UpdateDatabase id="XML_Actions">
          <Properties>
            <LoadOrder>100</LoadOrder>
          </Properties>
          <File>XML/Era_Buildings/Dummy_Era_LOCKERS.xml</File>
          <File>XML/Era_Buildings/Amenity_Buildings.xml</File>
          <File>XML/Era_Buildings/CoastalCityBuildings.xml</File>
          <File>XML/Era_Buildings/CulturalBuildings.xml</File>
          <File>XML/Era_Buildings/FoodBuildings.xml</File>
        </UpdateDatabase>
      </InGameActions>
      <Files>
        <File>ART/BuildingsAreFunAtlas01_032.dds</File>
        <File>ART/BuildingsAreFunAtlas01_038.dds</File>
        <File>ART/BuildingsAreFunAtlas01_050.dds</File>
        <File>ART/BuildingsAreFunAtlas01_080.dds</File>
        <File>ART/BuildingsAreFunAtlas01_128.dds</File>
        <File>ART/BuildingsAreFunAtlas01_256.dds</File>
        <File>ART/EraBuildings_032.dds</File>
        <File>ART/EraBuildings_038.dds</File>
        <File>ART/EraBuildings_050.dds</File>
        <File>ART/EraBuildings_080.dds</File>
        <File>ART/EraBuildings_128.dds</File>
        <File>ART/EraBuildings_256.dds</File>
        <File>LUA/Era-LinkedBuildings/EraLockerBuildings.lua</File>
        <File>XML/BuildingInGame_Text.xml</File>
        <File>XML/Buildng_Icons.xml</File>
        <File>XML/Era_Buildings/Dummy_Era_LOCKERS.xml</File>
        <File>XML/Era_Buildings/Amenity_Buildings.xml</File>
        <File>XML/Era_Buildings/CoastalCityBuildings.xml</File>
        <File>XML/Era_Buildings/CulturalBuildings.xml</File>
        <File>XML/Era_Buildings/FoodBuildings.xml</File>
      </Files>
    </Mod>


    ----------------------------------------------

    Also you have two different threads asking for help on what looks to me to be the same issue. You should probably report one of the threads to the forum moderators and ask for it to be merged into the other or closed.
     
  3. gelodgreat

    gelodgreat Chieftain

    Joined:
    Oct 23, 2015
    Messages:
    441
    Gender:
    Male
    Location:
    Manila, Philippines
    actually it's two different problems. Can u help me fix my .modinfo it seems that is it so outdated
     
  4. gelodgreat

    gelodgreat Chieftain

    Joined:
    Oct 23, 2015
    Messages:
    441
    Gender:
    Male
    Location:
    Manila, Philippines
    This is the logs. hope you can help me
     

    Attached Files:

  5. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,735
    Location:
    Illinois, USA
    1. Study the differences in the modinfo file you posted and the one I posted. Here's one hint: you'll never see <Items> used within <inGameActions> in the modinfo sample I posted.
    2. You have far too many mods running for me to even attempt to make sense of the mess this is creating in your log files.
    3. shut off every single mod that is not 100% required for your mod to run.
      • This means mods such as CQUI and NQEUI and Production Qeue neeed to be diabled as well, no matter how essential you feel they are to playing the game.
      • You are not currently playing the game, you are debugging a mis-behaving mod so you need to simplify this process and eliminate everything that is not required in order for your mod to execute.
     
  6. gelodgreat

    gelodgreat Chieftain

    Joined:
    Oct 23, 2015
    Messages:
    441
    Gender:
    Male
    Location:
    Manila, Philippines
    Ok already fix the .modinfo. Now I have this error on
    [3301001.945] [Gameplay] ERROR: UNIQUE constraint failed: CivilizationTraits.CivilizationType, CivilizationTraits.TraitType
    [3301001.945] [Gameplay] ERROR: UNIQUE constraint failed: CivilizationTraits.CivilizationType, CivilizationTraits.TraitType

    Whenever I'm Inserting like this

    INSERT INTO CivilizationTraits
    (CivilizationType,TraitType)
    VALUES
    ('CIVILIZATION_JAPAN', 'TRAIT_CIVILIZATION_ADJACENT_DISTRICTS'),
    ('CIVILIZATION_JAPAN','TRAIT_CIVILIZATION_ALL_ROADS_TO_ROME'),
    ('CIVILIZATION_JAPAN','TRAIT_CIVILIZATION_MOTHER_RUSSIA');

    It seems that it wast red. Please guide me
     
  7. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,735
    Location:
    Illinois, USA
    Code:
    <Row CivilizationType="CIVILIZATION_JAPAN" TraitType="TRAIT_CIVILIZATION_ADJACENT_DISTRICTS"/>
    Already exists within the base game code. Therefore you cannot repeat the combination. Every new combination of (CivilizationType,TraitType) added to table CivilizationTraits must have a unique combination to all other rows already present within the table. This is what is meant by a unique constraint.
     
  8. gelodgreat

    gelodgreat Chieftain

    Joined:
    Oct 23, 2015
    Messages:
    441
    Gender:
    Male
    Location:
    Manila, Philippines
    Thanks already fixed the mod
     

Share This Page