damocles88
Chieftain
- Joined
- Dec 10, 2009
- Messages
- 42
So, for my first mod, I thought I'd do something dead simple to get used to the new tools. I'm going to modify the scout properties a little bit. Unfortunately this doesn't seem to work for me.
I created a new mod in modbuddy, set the description etc. Then I created a new xml file, in which I wrote:
I then added this file to the mod actions as:
OnModActivated - UpdateDatabase - XML/Units/Unit_Scout.xml
and set the Reload Unit checkbox under mod properties. Then build it.
It won't load in game though. It shows up fine in the browser, and I enable it, but in-game the scout is unchanged.
Anyone have any ideas what I'm forgetting to do or doing wrong?
Also, is there a log file somewhere that outputs errors encountered during mod loading? I checked through the logs folder under /user docs/civ5/ but couldn't see anything relevant to mod loading.
I created a new mod in modbuddy, set the description etc. Then I created a new xml file, in which I wrote:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/30/2010 10:15:12 AM -->
<GameData>
<!-- TODO: Insert table creation example here. -->
<Units>
<Row>
<Class>UNITCLASS_SCOUT</Class>
<Type>UNIT_SCOUT</Type>
<Combat>3</Combat>
<Cost>35</Cost>
<Moves>3</Moves>
<CombatClass>UNITCOMBAT_RECON</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_EXPLORE</DefaultUnitAI>
<Description>TXT_KEY_UNIT_SCOUT</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_SCOUT_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_SCOUT_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_SCOUT</Help>
<NoBadGoodies>true</NoBadGoodies>
<Pillage>true</Pillage>
<MilitarySupport>false</MilitarySupport>
<MilitaryProduction>false</MilitaryProduction>
<ObsoleteTech>TECH_SCIENTIFIC_THEORY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_ARCHER</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>10</AdvancedStartCost>
<XPValueAttack>2</XPValueAttack>
<XPValueDefense>2</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_SCOUT</UnitArtInfo>
<UnitFlagIconOffset>5</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>5</PortraitIndex>
</Row>
</Units>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_SCOUT</UnitType>
<PromotionType>PROMOTION_EXTRA_SIGHT_I</PromotionType>
</Row>
</Unit_FreePromotions>
</GameData>
<!-- Created by ModBuddy on 9/30/2010 10:15:12 AM -->
<GameData>
<!-- TODO: Insert table creation example here. -->
<Units>
<Row>
<Class>UNITCLASS_SCOUT</Class>
<Type>UNIT_SCOUT</Type>
<Combat>3</Combat>
<Cost>35</Cost>
<Moves>3</Moves>
<CombatClass>UNITCOMBAT_RECON</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_EXPLORE</DefaultUnitAI>
<Description>TXT_KEY_UNIT_SCOUT</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_SCOUT_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_SCOUT_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_SCOUT</Help>
<NoBadGoodies>true</NoBadGoodies>
<Pillage>true</Pillage>
<MilitarySupport>false</MilitarySupport>
<MilitaryProduction>false</MilitaryProduction>
<ObsoleteTech>TECH_SCIENTIFIC_THEORY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_ARCHER</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>10</AdvancedStartCost>
<XPValueAttack>2</XPValueAttack>
<XPValueDefense>2</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_SCOUT</UnitArtInfo>
<UnitFlagIconOffset>5</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>5</PortraitIndex>
</Row>
</Units>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_SCOUT</UnitType>
<PromotionType>PROMOTION_EXTRA_SIGHT_I</PromotionType>
</Row>
</Unit_FreePromotions>
</GameData>
I then added this file to the mod actions as:
OnModActivated - UpdateDatabase - XML/Units/Unit_Scout.xml
and set the Reload Unit checkbox under mod properties. Then build it.
It won't load in game though. It shows up fine in the browser, and I enable it, but in-game the scout is unchanged.
Anyone have any ideas what I'm forgetting to do or doing wrong?
Also, is there a log file somewhere that outputs errors encountered during mod loading? I checked through the logs folder under /user docs/civ5/ but couldn't see anything relevant to mod loading.