Hello, i need some help with formations

SFH

Chieftain
Joined
Aug 19, 2019
Messages
7
I'm pretty new at modding and stuff, so i need some help, im trying to make a mods like R.E.D for new unit/faction mods. But i don't know how to change theirs Formation
https://imgur.com/jmD6J8N This is how it looks, of course i will make less of them so they could fit into the hexagon, but i need to learn how to change those damn formations
 
You mean use one of the R.E.D. formation for a new unit mod, modify one of the existing formation (that would replace it for all units using it, or add a whole new formation ?

to set a formation type of an unit, it would be in your unit's Artdef, near the top of the entry for that unit:
Code:
                        <Element class="AssetObjects..ArtDefReferenceValue">
                            <m_ElementName text="Warrior"/>
                            <m_RootCollectionName text="UnitFormationTypes"/>
                            <m_ArtDefPath text="Units.artdef"/>
                            <m_CollectionIsLocked>false</m_CollectionIsLocked>
                            <m_TemplateName text=""/>
                            <m_ParamName text="Formation"/>
                        </Element>

to add or change (use the same name as the one used in the game's original artdef then) it's further away in the artdef file, the UnitFormationTypes element, with sections like this one:
Code:
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>9.000000</m_fValue>
                            <m_ParamName text="SpacingX"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>7.000000</m_fValue>
                            <m_ParamName text="SpacingY"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>1.000000</m_fValue>
                            <m_ParamName text="SpacingMultiplier"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>0</m_nValue>
                            <m_ParamName text="PerRowIncrement"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>10.000000</m_fValue>
                            <m_ParamName text="YOffsetIncrement"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>false</m_bValue>
                            <m_ParamName text="YOffsetIsCurved"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>3</m_nValue>
                            <m_ParamName text="StaggerIncrement"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>0.000000</m_fValue>
                            <m_ParamName text="MemberRandomness"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>0.000000</m_fValue>
                            <m_ParamName text="BlockRandomness"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>1</m_nValue>
                            <m_ParamName text="FirstRowWidth"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>0</m_nValue>
                            <m_ParamName text="XBlockSize"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>0</m_nValue>
                            <m_ParamName text="XBlockSpacingCount"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>0</m_nValue>
                            <m_ParamName text="YBlockSize"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>0</m_nValue>
                            <m_ParamName text="YBlockSpacingCount"/>
                        </Element>
                        <Element class="AssetObjects..IntValue">
                            <m_nValue>0</m_nValue>
                            <m_ParamName text="CenterBlockWidth"/>
                        </Element>
                        <Element class="AssetObjects..ArtDefReferenceValue">
                            <m_ElementName text="Block"/>
                            <m_RootCollectionName text="UnitFormationLayoutTypes"/>
                            <m_ArtDefPath text="Units.artdef"/>
                            <m_CollectionIsLocked>true</m_CollectionIsLocked>
                            <m_TemplateName text=""/>
                            <m_ParamName text="Type"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>0.000000</m_fValue>
                            <m_ParamName text="MinimumRadius"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>0.000000</m_fValue>
                            <m_ParamName text="FacingBlend"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>false</m_bValue>
                            <m_ParamName text="MinimizeRows"/>
                        </Element>
                        <Element class="AssetObjects..FloatValue">
                            <m_fValue>0.000000</m_fValue>
                            <m_ParamName text="ArcSize"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>true</m_bValue>
                            <m_ParamName text="CanMirrorFrontToBack"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>true</m_bValue>
                            <m_ParamName text="CanFlipLeftToRight"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="Warrior"/>
            </Element>
 
Back
Top Bottom