[HELP] Unique Wall Building Not Replacing Properly

thinkingnut

Warlord
Joined
Sep 18, 2013
Messages
146
Hi All,

I've just done my second mod, but the unique wall replacement, Soul Armour, is not replacing the Ancient Walls properly. Not sure why.

Could someone have a look at my mod files and tell me where I've made a mistake please?

Many thanks!

Yours sincerely,
ThinkingNut
 

Attachments

  • Wall Confusion.png
    Wall Confusion.png
    6 MB · Views: 115
  • Warrenv2 of Neo Chinav2.zip
    Warrenv2 of Neo Chinav2.zip
    20.8 KB · Views: 64
Because you are not tying the building to a TraitType in table Buildings:
Code:
	<Buildings>
		<Row BuildingType="BUILDING_WARRENV2SOULARMOUR" Name="LOC_BUILDING_WARRENV2SOULARMOUR_NAME"
			 Description="LOC_BUILDING_WARRENV2SOULARMOUR_DESCRIPTION" PrereqTech="TECH_MASONRY"
			PrereqDistrict="DISTRICT_CITY_CENTER" Cost="40" AdvisorType="ADVISOR_GENERIC"
			Maintenance="1" OuterDefenseHitPoints="50" OuterDefenseStrength="2"/>
	</Buildings>
I did not look further into your mod, but you'll also need to define the trait you tie the building to, and then tie that trait to the leader or the civ.
 
Because you are not tying the building to a TraitType in table Buildings:
Code:
    <Buildings>
        <Row BuildingType="BUILDING_WARRENV2SOULARMOUR" Name="LOC_BUILDING_WARRENV2SOULARMOUR_NAME"
             Description="LOC_BUILDING_WARRENV2SOULARMOUR_DESCRIPTION" PrereqTech="TECH_MASONRY"
            PrereqDistrict="DISTRICT_CITY_CENTER" Cost="40" AdvisorType="ADVISOR_GENERIC"
            Maintenance="1" OuterDefenseHitPoints="50" OuterDefenseStrength="2"/>
    </Buildings>
I did not look further into your mod, but you'll also need to define the trait you tie the building to, and then tie that trait to the leader or the civ.

Ah, bless you, LeeS. It's working now. Thanks so much for coming to the rescue again!
 
By the way, I note that the boost for Engineering is to build "Ancient Walls" even though I'm playing with my wall replacement. Is there a way to change that so both "Ancient Walls" and "Soul Armour" are interchangeably able to boost that particular tech?
 
Back
Top Bottom