Help Replacing Neighborhood Graphics

LostAlgorithm

Chieftain
Joined
Apr 2, 2017
Messages
16
Hey!

So I'm new to modding and I'm trying to replace graphics for Neighborhood districts with the graphics for City Centers so that I can have bunch of large areas with skyscrapers rather than the dinky green suburbs we currently have.

When I directly edit Districts.artdef using ModBuddy, I can get the graphics to swap no problem simply by changing the section mentioning Neighborhoods to mirror that of the City Center as such:

Code:
<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_CITY_CENTER"/>
                                        <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="Landmark001"/>
                            <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="CityCenter"/>
                                        <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="CityCenter"/>
                                        <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="Neighborhood_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>


However, when I go to make it into a mod that I can upload to the Steam Workshop, it completely stops working; Neighborhoods continue to use their old graphics as though my mod isn't even enabled.

My mod is currently just the Mod.Art.xml file and a folder named ArtDefs that has the modified Districts.artdef inside of it. I probably need to have more in there than that? This is all a learning exercise for me.

I'm assuming there's some very minor detail that I'm overlooking due to being new to coding, so I'm prepared to find out I'm just being dumb. Really just want to get this to work though!

Any help is much appreciated! Thanks!
 
Thought it might be that I wasn't using FrontEnd Actions to load it in, but that does nothing as well. Really at a loss for why this isn't working. =(

I could always just change my files locally to play the way I want to, but I'd like to make this an option for others who might really dislike how neighborhoods look as well.
 
Do you have a .dep file in the build mod ? is it referenced in the .modinfo ?
 
Hi, Gedemon!

I do believe that both of those are in my mod, but I'm not completely sure I did it right.

I've also run into an issue where even when I modify my personal game's Districts.ArtDef to swap the graphics, the graphics swap only works for Neighborhoods placed directly next to the true City Center. Any Neighborhood not placed directly on the City Center refuses to show any graphics, becoming completely invisible.

I've uploaded my mod to the site so that others can take a look / help if they so choose. It's at the link below:

https://forums.civfanatics.com/resources/urban-development.26511/
 
Back
Top Bottom