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

Guide how modbuddy generate automatically .dep file for texture

Discussion in 'Civ6 - Modding Tutorials & Reference' started by Pusperk, Apr 17, 2017.

  1. Pusperk

    Pusperk Chieftain

    Joined:
    Dec 24, 2015
    Messages:
    24
    Precondition
    Create dds and tex file in textures folder with asset editor.
    Create xlp file in XLPs folder with asset editor (ReligiousSlot.xlp)

    1) Create file UserInterface.artdef and import it to your project into folder ArtDefs.
    Into file write name your xlp file and blp file
    Code:
    <AssetObjects::ArtDefSet>
        <m_Version>
            <major>3</major>
            <minor>0</minor>
            <build>215</build>
            <revision>207</revision>
        </m_Version>
        <m_TemplateName text="UserInterfaceBLPs"/>
        <m_RootCollections/>
        <m_BLPReferences>
            <Element>
                <xlpFile text="ReligiousSlot.xlp"/>  
                <blpPackage text="ReligiousSlot.blp"/>
                <xlpClass text="UITexture"/>
            </Element>
        </m_BLPReferences>
    </AssetObjects::ArtDefSet>
    2) Right click on UserInterface.artdef file choose Properies and in right corner modbuddy set BuildAction on ArtDef
    3) Into Mod.Art.xml write
    Code:
    <Element>
       <consumerName text="UI"/>
           <relativeArtDefPaths>
                 <Element text="UserInterface.artdef"/>
            </relativeArtDefPaths>
           <libraryDependencies>
                  <Element text="UITexture"/>
           </libraryDependencies>
           <loadsLibraries>true</loadsLibraries>
     </Element>
    and this
    Code:
    <Element>
      <libraryName text="UITexture"/>
       <relativePackagePaths>
          <Element text="ReligiousSlot.blp"/>
       </relativePackagePaths>
     </Element>
    4) Right click on name your mod choose Properties. Choose In-Game Actions then AddAction. For type choose UpdateArt then go into Files choose Add and choose file (Mod Art Dependency File)
    5) Choose Build - BuildSolution .dep file is generated automatically.
     
    Infixo likes this.
  2. AmekiKyou

    AmekiKyou Chieftain

    Joined:
    Apr 28, 2017
    Messages:
    11
    Location:
    Japan
    I want to know how you create BLP files. I only have created XLP files.
     
  3. KoubaK

    KoubaK Chieftain

    Joined:
    May 8, 2017
    Messages:
    94
    Gender:
    Male
    Location:
    DMV
    Follow those instructions, then once you Build your Mod, go to its directory and you should see a "Platforms" folder, in there you will find the .blp files for the corresponding platform (Windows and MacOS).
     

Share This Page