Possible to overwrite ArtDefs?

ITcore

Warlord
Joined
Dec 25, 2016
Messages
248
Location
127.0.0.1
I want to overwrite the existing tint for the units but creating my own color section just adds it to the pool of colors the units end up picking from.
 
Check out https://forums.civfanatics.com/thre...ering-storm-patch.642080/page-3#post-15386948
It is along similar lines to the question I asked and I believe it applies to tints as well.

I saw the thread there. It's somewhat related but no real mention of overwriting existing artdef entries. Example here is trying to update Rome's unit tint (defined in base game Units.artdef) which has 3 entries, 2 purple and 1 yellow. I create my artdef and define 2 red and 1 yellow but the game doesn't overwrite it so the units can now randomly pick from purple, red, and yellow. But thank you for posting that.
 
It's possible to overwrite artdef collections using m_ReplaceMergedCollectionElements = true, for example in raw XML:
Code:
            <Element>
                <m_Fields>
                    <m_Values/>
                </m_Fields>
                <m_ChildCollections>
                    <Element>
                        <m_CollectionName text="Colors"/>
                        <m_ReplaceMergedCollectionElements>true</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects:RGBValue">
                                        <m_r>175.000000</m_r>
                                        <m_g>15.000000</m_g>
                                        <m_b>13.000000</m_b>
                                        <m_ParamName text="Color"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="Colors001"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                </m_ChildCollections>
                <m_Name text="Greek_Hoplite"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
 
Top Bottom