Trouble in adding specialist to pre-existing buildings

Kannloar

Chieftain
Joined
Jul 19, 2012
Messages
6
Hi everybody,

I'm new in modding, and i'm trying to add some specialist in pre-existing buildings. It's seems quite easy but it doesn't work at all...

I'm using Modbuddy (game update in G&K), following instructions from Kael modder's guide.

I've made a xml file to update barracks.

<GameData>
<Buildings>
<update>
<Set SpecialistType="SPECIALIST_ENGINEER"/>
<Set SpecialistCount="1"/>
<Where BuildingClass="BUILDINGCLASS_BARRACKS"/>
</update>
</Buildings>
</GameData>

I've tried this one too
<GameData>
<Buildings>
<update>
<Set SpecialistType="SPECIALIST_ENGINEER" SpecialistCount="1"/>
<Where BuildingClass="BUILDINGCLASS_BARRACKS"/>
</update>
</Buildings>
</GameData>

The other xml files are ok. So i don't understand, why this one is failing. :confused:

Thank you

Kannloar
 
You want the second one (as you can only have one <Set> tag and not two), but XML is case sensitive, so it's <Update> not <update>
 
Erf, thank you !

I'm a total newby with this xml stuff... I'm reading all the words i wrote at least three time, juste to be sure...

This was so simple..

I'll not make this mistake again !
 
Back
Top Bottom