thecrazyscot
Spiffy
- Joined
- Dec 27, 2012
- Messages
- 2,460
Has anyone had any luck adding in a new building which uses existing artdefs?
For example, if I wanted to add in a new Mint building as an alternative to the Bank but have it's map model be the same, what would I do?
I've tried playing around with Buildings.artdef without any luck. I copied the Bank entries and just replaced BUILDING_BANK with BUILDING_MINT.
I tried playing around with Landmarks.artdef but there are so many different entries for Bank in there that I'm not really sure what to do. My edits just end up turning the entire map black.
It seems to me that you need to define the new building in Buildings.artdef and then add in new building sets in Landmarks.artdef (example below) as well as a new HeroBuildingTag.
If I'm simply wanting to duplicate a building's artdefs, are all those necessary?
Any help would be appreciated.
For example, if I wanted to add in a new Mint building as an alternative to the Bank but have it's map model be the same, what would I do?
I've tried playing around with Buildings.artdef without any luck. I copied the Bank entries and just replaced BUILDING_BANK with BUILDING_MINT.
I tried playing around with Landmarks.artdef but there are so many different entries for Bank in there that I'm not really sure what to do. My edits just end up turning the entire map black.
It seems to me that you need to define the new building in Buildings.artdef and then add in new building sets in Landmarks.artdef (example below) as well as a new HeroBuildingTag.
Code:
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects::CollectionValue">
<m_eObjectType>INVALID</m_eObjectType>
<m_eValueType>ARTDEF_REF</m_eValueType>
<m_Values>
<Element class="AssetObjects::ArtDefReferenceValue">
<m_ElementName text="BUILDING_MARKET"/>
<m_RootCollectionName text="HeroBuildingTags"/>
<m_ArtDefPath text="Landmarks.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="Set"/>
</Element>
<Element class="AssetObjects::ArtDefReferenceValue">
<m_ElementName text="BUILDING_BANK"/>
<m_RootCollectionName text="HeroBuildingTags"/>
<m_ArtDefPath text="Landmarks.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="Set_1"/>
</Element>
<Element class="AssetObjects::ArtDefReferenceValue">
<m_ElementName text="BUILDING_STOCK_EXCHANGE"/>
<m_RootCollectionName text="HeroBuildingTags"/>
<m_ArtDefPath text="Landmarks.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="Set_2"/>
</Element>
</m_Values>
<m_ParamName text="Set"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="MARKET, BANK, STOCK_EXCHANGE"/>
</Element>
Any help would be appreciated.