• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Guide how modbuddy generate automatically .dep file for texture

Pusperk

Chieftain
Joined
Dec 24, 2015
Messages
30
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.
 
Back
Top Bottom