[R&F] Simple goal, complex work: need help with using existing building asset

JNR13

Prince
Joined
Oct 23, 2016
Messages
501
I found various advice on this topic but have trouble piecing it all together. For example, just by looking at another mod I cannot reverse engineer the steps done in the AssetEditor. Game files itself are overwhelming and I struggle to see which code is necessary and which is not.

My overall goal is to create an alternative to the Factory building. I got all the xmls in order and the building works fine ingame. Just the graphics are missing. For now, I just want to use the existing Factory model. I'm almost at a point where I say "fudge it, I'll modify the model in blender just because for following that route there is actually a tutorial." but really it should be easier to use an existing one, right? And I want to slowly ease into it, a few days ago I couldn't even do simple stuff like Requirements and now it's become fairly effortless, so I want to take the next steps.

What I got done is the buildings.artdef file, using game code as reference (see below). I'd appreciate if someone could quickly glance over it and tell me if that's more or less what it needs to contain.

First, I thought that is all I need, which is obviously not the case, so my main issue right now is the Mod Art file, and as far as I understand I also need some landmark file for the 3d models? Apparently artdef is just for the 2D map?

I'm just a bit lost where to even start looking for those, what parts I should copy, what parts I should generate, etc. and highly appreciate any assistance.

P.S.: I read that everyone's basically moved to Discord now? Is that just some secret circle for high-quality creators or is there a public server as well for more inexperienced people to join?

buildings.artdef code so far:

Code:
<AssetObjects..ArtDefSet>
    <m_TemplateName text="Buildings"/>
    <m_RootCollections>
        <Element>
            <m_CollectionName text="Building"/>
            <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>false</m_bValue>
                            <m_ParamName text="IsWonderBuilding"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>false</m_bValue>
                            <m_ParamName text="UsesDistrictState"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>true</m_bValue>
                            <m_ParamName text="AffectsDistrictBuildingSet"/>
                        </Element>
                        <Element class="AssetObjects..StringValue">
                            <m_Value text="AVERAGE"/>
                            <m_ParamName text="TerrainFollowMode"/>
                        </Element>
                        <Element class="AssetObjects..StringValue">
                            <m_Value text="NONE"/>
                            <m_ParamName text="ProceduralPlacementMode"/>
                        </Element>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>false</m_bValue>
                            <m_ParamName text="UsesDecalMaterialOverrides"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections>
                    <Element>
                        <m_CollectionName text="Audio"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                    </Element>
                    <Element>
                        <m_CollectionName text="StrategicView"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="Factory"/>
                                        <m_RootCollectionName text="Buildings"/>
                                        <m_ArtDefPath text="StrategicView.artdef"/>
                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>
                                        <m_TemplateName text="StrategicView"/>
                                        <m_ParamName text="XrefName"/>
                                    </Element>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="Completed"/>
                                        <m_RootCollectionName text="BuildStates"/>
                                        <m_ArtDefPath text="Buildings.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Buildings"/>
                                        <m_ParamName text="State"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="StrategicView001"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="Factory_Pillaged"/>
                                        <m_RootCollectionName text="Buildings"/>
                                        <m_ArtDefPath text="StrategicView.artdef"/>
                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>
                                        <m_TemplateName text="StrategicView"/>
                                        <m_ParamName text="XrefName"/>
                                    </Element>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="Pillaged"/>
                                        <m_RootCollectionName text="BuildStates"/>
                                        <m_ArtDefPath text="Buildings.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Buildings"/>
                                        <m_ParamName text="State"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="StrategicView002"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="Factory_UnderConstruction"/>
                                        <m_RootCollectionName text="Buildings"/>
                                        <m_ArtDefPath text="StrategicView.artdef"/>
                                        <m_CollectionIsLocked>false</m_CollectionIsLocked>
                                        <m_TemplateName text="StrategicView"/>
                                        <m_ParamName text="XrefName"/>
                                    </Element>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="UnderConstruction"/>
                                        <m_RootCollectionName text="BuildStates"/>
                                        <m_ArtDefPath text="Buildings.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Buildings"/>
                                        <m_ParamName text="State"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="StrategicView003"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                </m_ChildCollections>
                <m_Name text="BUILDING_JNR_HW_REFINERY"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
        </Element>
        <Element>
            <m_CollectionName text="BuildStates"/>
            <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
            <Element>
                <m_Fields>
                    <m_Values/>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="Completed"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
            <Element>
                <m_Fields>
                    <m_Values/>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="Pillaged"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
            <Element>
                <m_Fields>
                    <m_Values/>
                </m_Fields>
                <m_ChildCollections/>
                <m_Name text="UnderConstruction"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
        </Element>
        <Element>
            <m_CollectionName text="BuildingChains"/>
            <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
            <Element>
                <m_Fields>
                    <m_Values/>
                </m_Fields>
                <m_ChildCollections>
                    <Element>
                        <m_CollectionName text="Districts"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                    </Element>
                    <Element>
                        <m_CollectionName text="Buildings (Level 1)"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                    </Element>
                    <Element>
                        <m_CollectionName text="Buildings (Level 2)"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="BUILDING_JNR_HW_REFINERY"/>
                                        <m_RootCollectionName text="Building"/>
                                        <m_ArtDefPath text="Buildings.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Buildings"/>
                                        <m_ParamName text="Building"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="1Factory"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                    <Element>
                        <m_CollectionName text="Buildings (Level 3)"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                    </Element>
                </m_ChildCollections>
                <m_Name text="ProductionBuildings"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
        </Element>
    </m_RootCollections>
</AssetObjects..ArtDefSet>
 
Last edited:
Back
Top Bottom