Cultures.Artdef not working

SlySlySly

Warlord
Joined
Feb 8, 2017
Messages
293
Location
Denver
What's wrong with it? Why won't it work?
Code:
<AssetObjects:ArtDefSet>
    <m_Version>
        <major>4</major>
        <minor>0</minor>
        <build>255</build>
        <revision>451</revision>
    </m_Version>
    <m_TemplateName text="Cultures"/>
    <m_RootCollections>
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects:CollectionValue">
                            <m_eObjectType>INVALID</m_eObjectType>
                            <m_eValueType>ARTDEF_REF</m_eValueType>
                            <m_Values>
                                <Element class="AssetObjects:ArtDefReferenceValue">
                                    <m_ElementName text="CIVILIZATION_RAITOROZU"/>
                                    <m_RootCollectionName text="Civilization"/>
                                    <m_ArtDefPath text="Civilizations.artdef"/>
                                    <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                    <m_TemplateName text=""/>
                                    <m_ParamName text="Civilizations_1"/>
                                </Element>
                            </m_Values>
                            <m_ParamName text="Civilizations"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="EastAsian"/>
                <m_AppendMergedParameterCollections>true</m_AppendMergedParameterCollections>
            </Element>
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects:CollectionValue">
                            <m_eObjectType>INVALID</m_eObjectType>
                            <m_eValueType>ARTDEF_REF</m_eValueType>
                            <m_Values>
                                <Element class="AssetObjects:ArtDefReferenceValue">
                                    <m_ElementName text="CIVILIZATION_RAITOROZU"/>
                                    <m_RootCollectionName text="Civilization"/>
                                    <m_ArtDefPath text="Civilizations.artdef"/>
                                    <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                    <m_TemplateName text="Civilizations"/>
                                    <m_ParamName text="Civilizations006"/>
                                </Element>
                            </m_Values>
                            <m_ParamName text="Civilizations"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="ModernGlass"/>
                <m_AppendMergedParameterCollections>true</m_AppendMergedParameterCollections>
            </Element>
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects:CollectionValue">
                            <m_eObjectType>INVALID</m_eObjectType>
                            <m_eValueType>ARTDEF_REF</m_eValueType>
                            <m_Values>
                                <Element class="AssetObjects:ArtDefReferenceValue">
                                    <m_ElementName text="CIVILIZATION_RAITOROZU"/>
                                    <m_RootCollectionName text="Civilization"/>
                                    <m_ArtDefPath text="Civilizations.artdef"/>
                                    <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                    <m_TemplateName text=""/>
                                    <m_ParamName text="Civilizations004"/>
                                </Element>
                            </m_Values>
                            <m_ParamName text="Civilizations"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="AncientWood"/>
                <m_AppendMergedParameterCollections>true</m_AppendMergedParameterCollections>
            </Element>
        </Element>
        <Element>
            <m_CollectionName text="UnitCulture"/>
            <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects:CollectionValue">
                            <m_eObjectType>INVALID</m_eObjectType>
                            <m_eValueType>ARTDEF_REF</m_eValueType>
                            <m_Values>
                                <Element class="AssetObjects:ArtDefReferenceValue">
                                    <m_ElementName text="CIVILIZATION_RAITOROZU"/>
                                    <m_RootCollectionName text="Civilization"/>
                                    <m_ArtDefPath text="Civilizations.artdef"/>
                                    <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                    <m_TemplateName text="Civilizations"/>
                                    <m_ParamName text="Civilizations001"/>
                                </Element>
                            </m_Values>
                            <m_ParamName text="Civilizations"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="EastAsian"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
        </Element>
    </m_RootCollections>
</AssetObjects:ArtDefSet>
 
Not trying to necro but this post came up when I was google searching for how to work with cultures.artdef so I figure I'd pop in a simple explanation.

Easiest thing at the moment for me is to build the artdef in the asset editor and then copy someone else's .dep file who uses the same artdefs (or anyone who adds a civilization and does a cultures.artdef will work... maybe even more as most .deps I see just go through everything). Use the pantry cultures.artdef for a reference of what's available. I haven't figured out how to make the asset editor recognize custom civs though, so I just set a translation key (like using america as a stand in) and use a find/replace once it's done in another program.

The above looks fine offhand to me so what's probably missing is the .dep file. Also not 100% sure but I think for custom civs you'll also need a civilizations.artdef file (which is pretty simple to make in the asset editor).
 
Last edited:
Not trying to necro but this post came up when I was google searching for how to work with cultures.artdef so I figure I'd pop in a simple explanation.

Easiest thing at the moment for me is to build the artdef in the asset editor and then copy someone else's .dep file who uses the same artdefs (or anyone who adds a civilization and does a cultures.artdef will work... maybe even more as most .deps I see just go through everything). Use the pantry cultures.artdef for a reference of what's available. I haven't figured out how to make the asset editor recognize custom civs though, so I just set a translation key (like using america as a stand in) and use a find/replace once it's done in another program.

The above looks fine offhand to me so what's probably missing is the .dep file. Also not 100% sure but I think for custom civs you'll also need a civilizations.artdef file (which is pretty simple to make in the asset editor).
You could just use some of the automation tools I've created here to generate the Civilizations.artdef, Cultures.artdef, and the Mod.Art.xml.
 
Oh nice - I'll definitely see if I can make use of those the next time I'm trying to do a batch of alterations (I actually used your city states mod as a template for working with cultures.artdef, so shout out to you for that).

I don't really get the concept of the mod.art.xml file though, since it's not strictly required to make a working mod, right? Is it just for the mod buddy to build things with?

Edit: Also - do you by chance know how to get the medieval spain palace to show up? I gave a custom civ all of spain's cultures.artdef settings, but it looks like a typical Mediterranean palace instead of the unique U shaped palace with the double domes on top. Notice the same happens with setting scottish - you don't get the english domed palace but instead get a pretty sweet looking medieval castle/keep like palace (was a pleasant surprise since I'd never seen that model in game). Makes me think palace art can be routed elsewhere but I haven't figured out where.
 
Last edited:
Oh nice - I'll definitely see if I can make use of those the next time I'm trying to do a batch of alterations (I actually used your city states mod as a template for working with cultures.artdef, so shout out to you for that).

I don't really get the concept of the mod.art.xml file though, since it's not strictly required to make a working mod, right? Is it just for the mod buddy to build things with?

Edit: Also - do you by chance know how to get the medieval spain palace to show up? I gave a custom civ all of spain's cultures.artdef settings, but it looks like a typical Mediterranean palace instead of the unique U shaped palace with the double domes on top. Notice the same happens with setting scottish - you don't get the english domed palace but instead get a pretty sweet looking medieval castle/keep like palace (was a pleasant surprise since I'd never seen that model in game). Makes me think palace art can be routed elsewhere but I haven't figured out where.
Glad I could be of help :)

The Mod.Art file is only necessary if you are adding art assets - if you aren't adding custom art assets there's absolutely no need for it. What it does it guide the creation of the .dep file and the cooker which places the custom art assets into the relevant blp files, so that Civ6 can "knows" where the new assets are and how they're supposed to be applied.

So unique palaces are different from cultural styles. Each civilization with a unique palace has a default palace assigned which overrides whatever culture they are in. I'm out of town without access to the modding files right now, but one of the artdefs assigns the default palace.
 
Well I'm at a loss, tried loading every logical .artdef in the pantry and couldn't figure out one that made sense. Whenever you're back and if you remember, I'd love to solve the mystery :)

Edit: Think I figured it out with landmarks.artdef. For some reason I didn't think that'd be applicable given the name.
 
Last edited:
Back
Top Bottom