1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    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:
    22
    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