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:
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!
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!