1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Custom district invisible. HELP

Discussion in 'Mod Creation Help' started by Falk Bruskeland, Dec 15, 2018.

  1. Falk Bruskeland

    Falk Bruskeland Chieftain

    Joined:
    Oct 8, 2017
    Messages:
    53
    Gender:
    Male
    So I've made a replacement district, and everything works fine, but it is invisible!

    I guess I have to reference some of the models to the district, but how do I add for example the commercial hub model to my district, and is there any way I can make my own?

    Thanks.
     
  2. raen

    raen Coat of Arms

    Joined:
    May 12, 2003
    Messages:
    2,301
    Location:
    Portugal
    You have to copy it from districts.artdef and make your own artdef file. Dont forget modart.xml, it has to have districts config to art to be available.

    Your own graphics? Its rather advanced assets design.
     
  3. Falk Bruskeland

    Falk Bruskeland Chieftain

    Joined:
    Oct 8, 2017
    Messages:
    53
    Gender:
    Male
    Thanks for the help!

    I figured out eventually that you had to make your own artdef file, but I'm not quite sure how to do it. Could you send me a template or an example?

    Thank you very much anyways!
     
  4. raen

    raen Coat of Arms

    Joined:
    May 12, 2003
    Messages:
    2,301
    Location:
    Portugal
  5. Falk Bruskeland

    Falk Bruskeland Chieftain

    Joined:
    Oct 8, 2017
    Messages:
    53
    Gender:
    Male
    Thanks for the response.

    The example you gave me seems to only work for units, and I'm not quite sure what you meant with the Mod.art.xml thing.

    I looked at some mods and tried to use find a solution by experimenting with the code, but even when I copy-paste the whole code and replace their district with mine, it still does not work!

    Anyways, this is the code I'm using right now:
    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <AssetObjects..ArtDefSet>
        <m_Version>
            <major>4</major>
            <minor>0</minor>
            <build>315</build>
            <revision>805</revision>
        </m_Version>
        <m_TemplateName text="Districts"/>
        <m_RootCollections>
            <Element>
                <m_Fields>
                    <m_Values>
                        <Element class="AssetObjects..BoolValue">
                            <m_bValue>false</m_bValue>
                            <m_ParamName text="CanAffectBuildings"/>
                        </Element>
                    </m_Values>
                </m_Fields>
                <m_ChildCollections>
                    <Element>
                        <m_CollectionName text="Landmark"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="DISTRICT_FEB_BAZAAR"/>
                                        <m_RootCollectionName text="Districts"/>
                                        <m_ArtDefPath text="Landmarks.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Landmarks"/>
                                        <m_ParamName text="Xref"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="Landmark1"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                    <Element>
                        <m_CollectionName text="StrategicView"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..ArtDefReferenceValue">
                                        <m_ElementName text="CommercialHub"/>
                                        <m_RootCollectionName text="Districts"/>
                                        <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="Districts.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Districts"/>
                                        <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="CommercialHub_Pillaged"/>
                                        <m_RootCollectionName text="Districts"/>
                                        <m_ArtDefPath text="StrategicView.artdef"/>
                                        <m_CollectionIsLocked>true</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="Districts.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Districts"/>
                                        <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="CommercialHub_UnderConstruction"/>
                                        <m_RootCollectionName text="Districts"/>
                                        <m_ArtDefPath text="StrategicView.artdef"/>
                                        <m_CollectionIsLocked>true</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="Districts.artdef"/>
                                        <m_CollectionIsLocked>true</m_CollectionIsLocked>
                                        <m_TemplateName text="Districts"/>
                                        <m_ParamName text="State"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="StrategicView003"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                    <Element>
                        <m_CollectionName text="Audio"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..StringValue">
                                        <m_Value text="Build_District_CommercialHub"/>
                                        <m_ParamName text="XrefName"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="Build_District_CommercialHub"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                    <Element>
                        <m_CollectionName text="AmbPlay"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..StringValue">
                                        <m_Value text="PLAY_AMBIENCE_DISTRICT_COMMERCIALHUB"/>
                                        <m_ParamName text="XrefName"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="PLAY_AMBIENCE_DISTRICT_COMMERCIALHUB"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                    <Element>
                        <m_CollectionName text="AmbStop"/>
                        <m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
                        <Element>
                            <m_Fields>
                                <m_Values>
                                    <Element class="AssetObjects..StringValue">
                                        <m_Value text="STOP_AMBIENCE_DISTRICT_COMMERCIALHUB"/>
                                        <m_ParamName text="XrefName"/>
                                    </Element>
                                </m_Values>
                            </m_Fields>
                            <m_ChildCollections/>
                            <m_Name text="STOP_AMBIENCE_DISTRICT_COMMERCIALHUB"/>
                            <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
                        </Element>
                    </Element>
                </m_ChildCollections>
                <m_Name text="DISTRICT_FEB_BAZAAR"/>
                <m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
            </Element>
        </m_RootCollections>
    </AssetObjects..ArtDefSet>
     
  6. raen

    raen Coat of Arms

    Joined:
    May 12, 2003
    Messages:
    2,301
    Location:
    Portugal

Share This Page