[CTD 1.08 with hotfix] Sion Power Attack causing CTD during Tactical Battles

Two consecutive games have ended upon the first time a Sion has attempted a power attack on one of my units (assumed - their normal attacks are OK)

Has anyone else seen this?

 

31,665 views 9 replies
Reply #1 Top

now three from three CTD on Sion attack

Reply #2 Top

Just happened to me I have a save game. I loaded it and repeated the crash three times in a row.

 

Steps:

Load Save.

End Turn.

Attack Town with Sions in south west corner.

Tactical Battle.

Use sion's special attack.

Crash.

Profit??

 

Sion Crash

 

I have vista and an ATI card.

 

 

Reply #4 Top

I was able to duplicate this while doing the testing/fixing for some other special unit abilities.

I'll reply back here with the XML fix if/when I figure it out.

Reply #5 Top

Found the issue with this.  Apparently there is a bug in the value calculator that can't handle the same MaxValue and MinValue.  Going back to the older Value attribute solves the problem if the value to be calculated is set, and not a randomized one.

XML to fix the Sion ability is below:

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="SavageStrike">
  8.     <DisplayName>Savage Strike</DisplayName>
  9.     <Description>Target enemy is dealt a heavy blow and takes 3X your attack strength in damage.</Description>
  10.     <Image>WaterCrystal_Medallion.png</Image>
  11.     <IconFG>Savage_Strike.png</IconFG>
  12.     <IconColor>32,45,243</IconColor>
  13.     <Range>1</Range>
  14.     <SoundFX>Hit_Hammer1</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="SavageStrikeModifier">
  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="Value">
  28.         <Expression><![CDATA[[AttackerAttack] * -3.0]]></Expression>
  29.       </Calculate>
  30.     </GameModifier>
  31.     <SpellDefEffect>
  32.       <EffectName>Savage_Strike</EffectName>
  33.       <LocalPosition>0,0,0</LocalPosition>
  34.       <EffectScale>1.5</EffectScale>
  35.       <EffectDelay>0.25</EffectDelay>
  36.       <SnapToTerrain>1</SnapToTerrain>
  37.     </SpellDefEffect>
  38.   </SpellDef>
  39. </Spells>

+1 Loading…
Reply #6 Top

Great work 

 

wonder if the same approach will fix the Air Elemental and other reported Tactical Battle CTDs?

Reply #7 Top

The answer is yes.  Look for my other post in this forum that fixes the other special abilities that were crashing.

Reply #8 Top

Yeah, looks like some bad/premature XML merging was to blame...

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

+ always-missing bows
+ 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 #9 Top

Thanks for the work around Velmaric, thanks for the quick  hotfix Devs.