Hello!
This is my first modding attempt so I'm hoping I've missed something very simple here.
Basically what I'm trying to do is add range-attack to RIFLEMAN. I've downloaded and looked at the mods:
Sniper mod (v5)
Gun Range Units (v5)
If I understand it correctly, you have to start a new game in order to use a mod. I wanted this for my current marathon-game so I started to edit the files under:
C:\Program Files (x86)\sid meier's civilization v\Assets\Gameplay
I know it's a bad idea but I really want this and I've made back-ups. My changed RIFLEMAN looks like:
I've also added these in the same file:
Everything looks ok in game. I see the ranged strength and when I select the unit and point on an enemy I see the estimation for a ranged attack but I don't have an order button to actually perform it. What am I missing?
This is my first modding attempt so I'm hoping I've missed something very simple here.
Basically what I'm trying to do is add range-attack to RIFLEMAN. I've downloaded and looked at the mods:
Sniper mod (v5)
Gun Range Units (v5)
If I understand it correctly, you have to start a new game in order to use a mod. I wanted this for my current marathon-game so I started to edit the files under:
C:\Program Files (x86)\sid meier's civilization v\Assets\Gameplay
I know it's a bad idea but I really want this and I've made back-ups. My changed RIFLEMAN looks like:
Code:
<Row>
<Class>UNITCLASS_RIFLEMAN</Class>
<Type>UNIT_RIFLEMAN</Type>
<PrereqTech>TECH_RIFLING</PrereqTech>
<Combat>25</Combat>
<RangedCombat>20</RangedCombat>
<Cost>220</Cost>
<Moves>2</Moves>
<CombatClass>UNITCOMBAT_ARCHER</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_RANGED</DefaultUnitAI>
<Description>TXT_KEY_UNIT_RIFLEMAN</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_RIFLEMEN_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_RIFLEMAN_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_RIFLEMAN</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<ObsoleteTech>TECH_REPLACEABLE_PARTS</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_INFANTRY</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>30</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<Conscription>5</Conscription>
<UnitArtInfo>ART_DEF_UNIT_RIFLEMAN</UnitArtInfo>
<UnitFlagIconOffset>47</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>4</PortraitIndex>
</Row>
I've also added these in the same file:
Code:
<Row>
<UnitType>UNIT_RIFLEMAN</UnitType>
<UnitAIType>UNITAI_RANGED</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_RIFLEMAN</UnitType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>12</Flavor>
</Row>
Everything looks ok in game. I see the ranged strength and when I select the unit and point on an enemy I see the estimation for a ranged attack but I don't have an order button to actually perform it. What am I missing?