Lord Tahattus
Supreme Emperor
posted 06-22-07 10:44 AM
EDT (US)
6 / 18
Hum, copy-and-paste won't work there. You need to test something different:
Let's say the problem is somewhere in this text, it's an example:<ProtoAction>
<Name>DefendRangedAttack</Name>
<DamageBonus type ='AbstractVillager'>0.500000</DamageBonus>
<Damage>22.000000</Damage>
<DamageType>Ranged</DamageType>
<MaxRange>12.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type ='AbstractHeavyCavalry'>3.000000</DamageBonus>
<DamageBonus type ='AbstractArtillery>2.000000</DamageBonus>
<DamageBonus type ='xpCoyoteMan'>2.750000</DamageBonus>
</ProtoAction>
Replace half of the code with a pure, untouched one. The blue code is untouched, it's an original text. The black text is from the unit you modded:
<ProtoAction>
<Name>DefendRangedAttack</Name>
<DamageBonus type ='AbstractVillager'>0.500000</DamageBonus>
<Damage>22.000000</Damage>
<DamageType>Ranged</DamageType>
<MaxRange>12.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type ='AbstractHeavyCavalry'>3.000000</DamageBonus>
<DamageBonus type ='AbstractArtillery>2.000000</DamageBonus>
<DamageBonus type ='xpCoyoteMan'>2.750000</DamageBonus>
</ProtoAction>
And it DIDN'T work. So, the problem is in the bottom half.
<ProtoAction>
<Name>DefendRangedAttack</Name>
<DamageBonus type ='AbstractVillager'>0.500000</DamageBonus>
<Damage>22.000000</Damage>
<DamageType>Ranged</DamageType>
<MaxRange>12.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type ='AbstractHeavyCavalry'>3.000000</DamageBonus>
<DamageBonus type ='AbstractArtillery'>2.000000</DamageBonus>
<DamageBonus type ='xpCoyoteMan'>2.750000</DamageBonus>
</ProtoAction>
And it WORKED! So, the problem is in the bottom half. Let's take a look, carefully:
<ProtoAction>
<Name>DefendRangedAttack</Name>
<DamageBonus type ='AbstractVillager'>0.500000</DamageBonus>
<Damage>22.000000</Damage>
<DamageType>Ranged</DamageType>
<MaxRange>12.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type ='AbstractHeavyCavalry'>3.000000</DamageBonus>
<DamageBonus type ='AbstractArtillery'>2.000000</DamageBonus> <----- GOTCHA!
<DamageBonus type ='xpCoyoteMan'>2.750000</DamageBonus>
</