TarinMaere TarinMaere

[1.08][B, hotfix] Bows 100% miss rate

[1.08][B, hotfix] Bows 100% miss rate

I might be missing something, but since the 1.08 hotfix, all my heroes keep getting a "miss" with a long bow during a battle. Haven't tested it with short bows, but given Attack rating higher than a melee hero I'd expect them to hit something at least once in a while.

16,440 views 40 replies
Reply #26 Top

WrenXIII, it looks like the damage system doesn't actually subtract health, but instead only does addition.  Therefore to do damage, and take away an opponents health, you have to add a negative value.  So the -1 to -0.1 adds that negative value to the targets current health, taking damage away.

If you changed the max and min to both be positive, I would expect that you'd make a weapon which adds to the targets health for every attack. :)  For a really strange device you could put max at -1, and min at 1, and have something which damages half the time, and heals the other half!

Reply #27 Top

OK, that makes sense. it seemed like it was calculating hit % instead of damage variation.

Reply #28 Top

@wren - The values are calucated as negatives for damage and added to your currrent HP total to cause HP loss. The xml is trying to say your bow will "hit" for 0-6 points of damage (0 being a miss). The problem appears to be the code reading the min value and seeing zero and then saying that misses automatically. Need to be reading against MaxValue or Value. Not MinValue.

I also wonder if the armour numbers are being taken into account correctly now as well. It will be nice to see the pyton code to all this in order for modders to adjust as they see fit for the style of combat. I'm personally not a big fan of linked miss/hit/damage. I would like a more refined hit or miss by skill, then damage vs protection (armour, spell, terrain even). From there other items like critical hits, sweeping attacks, volley fire, etc could be accounted for.

My 2 cents. B)

Reply #29 Top

@wren, when I was testing my fix I had tried a positive number ,BUT the bow did not work AND I had a divide by zero error happen, but with the neg numbers no error, which is why I suggested the negative number.

and a bit of old info, the 1.0 version of the file used TroopNumber in place of the negative.

harpo

 

Reply #30 Top

They're getting ready to stage a fix for this along with some other issues that cropped up.

Reply #31 Top

Quoting Frogboy, reply 30
They're getting ready to stage a fix for this along with some other issues that cropped up.
End of Frogboy's quote
thanks frogboy, but it wil be this evening (my time) before I can download and test.

harpo

 

Reply #32 Top

For the bow the bug fix mod apparently works.  Check the mod forums.

Reply #33 Top

Frogboy, I've got fixes for 4 other special abilities that I've tested out: Deadly bite, Flame strike, Rain of stone, and Crushing blow.  Attached is the xml code used for the fix.  If possible can those be included?

Code: xml
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <Spells>
  3.  <DataChecksum NoParse="1">
  4.   <Ignore>DisplayName,Description,IconFG,IconBG,IconColor,SoundFX,ParticleEffect,EffectScale</Ignore>
  5.   <Translate>DisplayName,Description</Translate>
  6.  </DataChecksum>
  7.   <SpellDef InternalName="FlameStrike">
  8.     <DisplayName>Flame Strike</DisplayName>
  9.     <Description>Target enemy is lashed with fierce flames and takes your attack strength in damage.</Description>
  10.     <Image>WaterCrystal_Medallion.png</Image>
  11.     <IconFG>Flame_Strike.png</IconFG>
  12.     <IconColor>32,45,243</IconColor>
  13.     <Range>-1</Range>
  14.     <SoundFX>Spell_FireBolt_01</SoundFX>
  15.     <ManaCost>3.0</ManaCost>
  16.     <SpellLevel>1</SpellLevel>
  17.     <SpellType>Tactical</SpellType>
  18.     <SpellClass>Offensive</SpellClass>
  19.     <SpellTargetType>EnemyUnit</SpellTargetType>
  20.     <IsSpecialAbility>1</IsSpecialAbility>
  21.     <GameModifier InternalName="FlameStrikeModifier">
  22.       <ModType>Unit</ModType>
  23.       <Attribute>DefendableDamage</Attribute>
  24.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  25.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  26.       </Calculate>
  27.       <Calculate InternalName="MaxValue">
  28.         <Expression><![CDATA[[AttackerAttack] * -1]]></Expression>
  29.       </Calculate>
  30.       <Calculate InternalName="MinValue">
  31.         <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
  32.       </Calculate>
  33.     </GameModifier>
  34.     <SpellDefEffect>
  35.       <EffectName>Fire_Bolt</EffectName>
  36.       <LocalPosition>0,0,0</LocalPosition>
  37.       <EffectScale>1.5</EffectScale>
  38.       <EffectDelay>0.25</EffectDelay>
  39.       <SnapToTerrain>1</SnapToTerrain>
  40.     </SpellDefEffect>
  41.   </SpellDef>
  42.  
  43.   <SpellDef InternalName="DeadlyBite">
  44.     <DisplayName>Deadly Bite</DisplayName>
  45.     <Description>A devastating bite that deals twice your attack strength in damage.</Description>
  46.     <Image>WaterCrystal_Medallion.png</Image>
  47.     <IconFG>Deadly_Bite.png</IconFG>
  48.     <IconColor>32,45,243</IconColor>
  49.     <Range>1</Range>
  50.     <SoundFX>LargeSpider_Hit1</SoundFX>
  51.     <ManaCost>3.0</ManaCost>
  52.     <SpellLevel>1</SpellLevel>
  53.     <SpellType>Tactical</SpellType>
  54.     <SpellClass>Offensive</SpellClass>
  55.     <SpellTargetType>EnemyUnit</SpellTargetType>
  56.     <IsSpecialAbility>1</IsSpecialAbility>
  57.     <GameModifier InternalName="DeadlyBiteModifier">
  58.       <ModType>Unit</ModType>
  59.       <Attribute>DefendableDamage</Attribute>
  60.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  61.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  62.       </Calculate>
  63.       <Calculate InternalName="MaxValue">
  64.         <Expression><![CDATA[[AttackerAttack] * -2]]></Expression>
  65.       </Calculate>
  66.       <Calculate InternalName="MinValue">
  67.         <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
  68.       </Calculate>
  69.     </GameModifier>
  70.     <SpellDefEffect>
  71.       <EffectName>Deadly_Bite</EffectName>
  72.       <LocalPosition>0,0,0</LocalPosition>
  73.       <EffectScale>1.0</EffectScale>
  74.       <EffectDelay>0.0</EffectDelay>
  75.       <SnapToTerrain>1</SnapToTerrain>
  76.     </SpellDefEffect>
  77.   </SpellDef>
  78.   <SpellDef InternalName="CrushingBlow">
  79.     <DisplayName>Crushing Blow</DisplayName>
  80.     <Description>Target is struck with a powerful blow that cannot miss and deals the attacker's full attack damage.</Description>
  81.     <Image>WaterCrystal_Medallion.png</Image>
  82.     <IconFG>Crushing_Blow.png</IconFG>
  83.     <IconColor>32,45,243</IconColor>
  84.     <Range>1</Range>
  85.     <SoundFX>Hit_Hammer1</SoundFX>
  86.     <ManaCost>3.0</ManaCost>
  87.     <SpellLevel>1</SpellLevel>
  88.     <SpellType>Tactical</SpellType>
  89.     <SpellClass>Offensive</SpellClass>
  90.     <SpellTargetType>EnemyUnit</SpellTargetType>
  91.     <IsSpecialAbility>1</IsSpecialAbility>
  92.     <GameModifier InternalName="CrushingBlowModifier">
  93.       <ModType>Unit</ModType>
  94.       <Attribute>CurHealth</Attribute>
  95.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  96.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  97.       </Calculate>
  98.       <Calculate InternalName="Value">
  99.         <Expression><![CDATA[[AttackerAttack] * -1.0]]></Expression>
  100.       </Calculate>
  101.     </GameModifier>
  102.     <SpellDefEffect>
  103.       <EffectName>Crushing_Blow</EffectName>
  104.       <LocalPosition>0,0,0</LocalPosition>
  105.       <EffectScale>1.5</EffectScale>
  106.       <EffectDelay>0.25</EffectDelay>
  107.       <SnapToTerrain>1</SnapToTerrain>
  108.     </SpellDefEffect>
  109.   </SpellDef>
  110.   <SpellDef InternalName="RainOfStone">
  111.     <DisplayName>Rain of Stone</DisplayName>
  112.     <Description>Stones rain down on target tile. Enemy units take 2X your attack strength in damage.</Description>
  113.     <Image>FireCrystal_Medallion.png</Image>
  114.     <IconFG>Rain_of_Stone.png</IconFG>
  115.     <IconBG>fire1_BG.png</IconBG>
  116.     <IconColor>243,45,32</IconColor>
  117.     <Range>-1</Range>
  118.     <Radius>1</Radius>
  119.     <SoundFX>Spell_EnchantLand_02</SoundFX>
  120.     <ManaCost>3.0</ManaCost>
  121.     <SpellLevel>3</SpellLevel>
  122.     <SpellType>Tactical</SpellType>
  123.     <SpellClass>Offensive</SpellClass>
  124.     <SpellTargetType>EnemyUnit</SpellTargetType>
  125.     <IsSpecialAbility>1</IsSpecialAbility>
  126.     <GameModifier InternalName="RainOfStoneModifier">
  127.       <ModType>Unit</ModType>
  128.       <Attribute>DefendableDamage</Attribute>
  129.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  130.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  131.       </Calculate>
  132.       <Calculate InternalName="MaxValue">
  133.         <Expression><![CDATA[[AttackerAttack] * -2]]></Expression>
  134.       </Calculate>
  135.       <Calculate InternalName="MinValue">
  136.         <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
  137.       </Calculate>
  138.     </GameModifier>
  139.     <SpellDefEffect>
  140.       <EffectName>Rain_of_Stone</EffectName>
  141.       <LocalPosition>0,0,0</LocalPosition>
  142.       <EffectScale>1.6</EffectScale>
  143.       <EffectDelay>0.0</EffectDelay>
  144.       <SnapToTerrain>1</SnapToTerrain>
  145.     </SpellDefEffect>
  146.   </SpellDef>
  147. </Spells>
  148.  
  149.  

Reply #35 Top

There is now an hotfix available (v1.08.037) that will fix these issues, along with:

+ CTD with some unit abilities
+ cur-mana values not being correct post battle

Note that previous saved games will still have the 'always-miss' bow issue, but the ability crashes will be gone. Also, if you have the private MP build, you will have to uninstall and reinstall to see the newest build. We will have a new MP build up on Monday with these changes.

Reply #37 Top

My 'rain of stone' is still missing 100% of the time.  Have not tested other spells yet.

 

Edit:

My bows are still missing 100% as well.  And every other spell I have tried.

 

Edit again:

 

Seems to only be with my custom sovereign,  I will try making a new one.

 

 

Reply #38 Top

Was this after the lastest hotfix from a little while ago?  Do you have any XML files in you /Mods directory?

Reply #39 Top

shark: New game, or saved game?  Saved games would still have the old data embedded in them.  Also, if you've updated to the beta MP build, you'll have to turn off pre-release versions and reinstall to get this update (we'll be releasing the MP hotfix on Monday).

Reply #40 Top

New game, old custom sovereign.  Seems to work great with Relias.  I will keep testing.

 

Edit:  Working with new custom sovereign