Sesostris
Chieftain
- Joined
- Sep 8, 2013
- Messages
- 34
Hi all.
I'm trying to create my first-ever mod to make the samurai a straight-up replacement of the swordsman, but I simply cannot get the changes to appear in the game. I've looked at a few similar mods like Unit Rebalance but without luck and I'm getting too frustrated to keep looking, so I'd greatly appreciate help on this.
From 'Samurai replaces swordsman.modinfo'
From 'Samurai replaces swordsman.xml' in the same folder:
I'm trying to create my first-ever mod to make the samurai a straight-up replacement of the swordsman, but I simply cannot get the changes to appear in the game. I've looked at a few similar mods like Unit Rebalance but without luck and I'm getting too frustrated to keep looking, so I'd greatly appreciate help on this.
From 'Samurai replaces swordsman.modinfo'
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="a69ded18-c696-4916-a6ab-2669de8838ad" version="1">
<Properties>
<Name>Samurai replaces swordsman</Name>
<Teaser>The samurai becomes a straight-up replacement of the swordsman, such that warriors upgrade to swordmens and the unt is available with Iron working.</Teaser>
<Description>The samurai normally becomes available so late that you don't get much use out of him before the musketman becomes available, and you have to build swordsmen from scratch instead of upgrading your experienced warriors.
This mod addresses that by making the samurai a straight-up replacement of the swordsman and makes the unit available with Iron Working.
</Description>
<Authors>Sesostris</Authors>
<ShowInBrowser>Show</ShowInBrowser>
<EnabledByDefault>1</EnabledByDefault>
<EnabledAtStartup>1</EnabledAtStartup>
</Properties>
<Files>
<File>Samurai replaces swordsman.xml</File>
</Files>
<Components>
<UpdateDatabase id="SamuraiReplacesSwordsman">
<Items>
<File>Samurai replaces swordsman.xml</File>
</Items>
</UpdateDatabase>
</Components>
</Mod>
From 'Samurai replaces swordsman.xml' in the same folder:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<UnitReplaces>
<Where CivUniqueUnitType="UNIT_JAPANESE_SAMURAI" />
<Set ReplacesUnitType="UNIT_SWORDSMAN" />
</UnitReplaces>
<Units>
<Update>
<Where UnitType="UNIT_JAPANESE_SAMURAI" />
<Set PrereqTech="TECH_IRON_WORKING" MandatoryObsoleteTech="TECH_REPLACEABLE_PARTS" />
</Update>
</Units>
</GameInfo>