[svn 3272] 'caster npc's attacks broken.

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

[svn 3272] 'caster npc's attacks broken.

#1 Post by Freddybear »

NPC Spellcasting in svn 3272 is broken. While my archmage character can cast spells as usual, enemy spellcaster npc's can't.
The "so-and-so casts Manathrust" (or whatever spell) message appears in the log, but no effects happen on the screen, and no damage is done to my character. npc physical attacks work OK, although I have seen a few Lua errors when an npc approaches to attack.

This is easy to replicate, just summon a 'caster npc like a skeleton mage in cheat mode.

complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

Re: [svn 3272] 'caster npc's attacks broken.

#2 Post by complexityQuantifier »

I noticed that svn 3274 is hoping to fix casters. The generic "crimson crystal", etc., in the Scintillating Caverns now attack me correctly, but the Spellblaze Crystal never does anything except Phase Door.

Looking at the AI log, it doesn't seem to realize that it can hit me most of the time?
============================== TACTICAL AI Spellblaze Crystal
Spellblaze Crystal 4479 tactical ai talents testing Mana Pool T_MANA_POOL
Spellblaze Crystal 4479 tactical ai talents testing Attack T_ATTACK
Spellblaze Crystal 4479 tactical ai talents testing Flame T_FLAME
Spellblaze Crystal 4479 tactical ai talents can use Flame T_FLAME attack weight 2.5019591430438
Spellblaze Crystal 4479 tactical ai talents testing Phase Door T_PHASE_DOOR
Spellblaze Crystal 4479 tactical ai talents testing Soul Rot T_SOUL_ROT
Spellblaze Crystal 4479 tactical ai talents can use Soul Rot T_SOUL_ROT attack weight 2.7695061391983
Spellblaze Crystal 4479 tactical ai talents testing Vim Pool T_VIM_POOL
Spellblaze Crystal 4479 tactical ai talents testing Elemental bolt T_ELEMENTAL_BOLT
Spellblaze Crystal 4479 tactical ai talents can use Elemental bolt T_ELEMENTAL_BOLT attack weight 2.8074587258389
Spellblaze Crystal 4479 tactical ai talents testing Rune: Manasurge T_RUNE:_MANASURGE_1
Spellblaze Crystal 4479 tactical ai talents testing Ice Shards T_ICE_SHARDS
[DEBUG] hit self!
Tactical ai report for Spellblaze Crystal
* escape 32.207016747351 (mult) 3
And then later in the log, it seems to have figured that out, but to be massively weighting the escape probabilities.
AI took for target 4479 Spellblaze Crystal :: 27 Rose 40 < 400
============================== TACTICAL AI Spellblaze Crystal
Spellblaze Crystal 4479 tactical ai talents testing Mana Pool T_MANA_POOL
Spellblaze Crystal 4479 tactical ai talents testing Attack T_ATTACK
Spellblaze Crystal 4479 tactical ai talents testing Flame T_FLAME
[DEBUG] hit a foe!
Spellblaze Crystal 4479 tactical ai talents can use Flame T_FLAME attack weight 2.4053010808775
Spellblaze Crystal 4479 tactical ai talents testing Phase Door T_PHASE_DOOR
Spellblaze Crystal 4479 tactical ai talents testing Soul Rot T_SOUL_ROT
[DEBUG] hit a foe!
Spellblaze Crystal 4479 tactical ai talents can use Soul Rot T_SOUL_ROT attack weight 2.5361492315413
Spellblaze Crystal 4479 tactical ai talents testing Vim Pool T_VIM_POOL
Spellblaze Crystal 4479 tactical ai talents testing Elemental bolt T_ELEMENTAL_BOLT
[DEBUG] hit a foe!
Spellblaze Crystal 4479 tactical ai talents can use Elemental bolt T_ELEMENTAL_BOLT attack weight 2.6571508925872
Spellblaze Crystal 4479 tactical ai talents testing Rune: Manasurge T_RUNE:_MANASURGE_1
Spellblaze Crystal 4479 tactical ai talents can use Rune: Manasurge T_RUNE:_MANASURGE_1 mana weight 1.3384758726188
Spellblaze Crystal 4479 tactical ai talents testing Ice Shards T_ICE_SHARDS
[DEBUG] hit a foe!
Spellblaze Crystal 4479 tactical ai talents can use Ice Shards T_ICE_SHARDS attackarea weight 1.7908689781239
Spellblaze Crystal 4479 tactical ai talents can use Ice Shards T_ICE_SHARDS attack weight 1.7471767428309
Tactical ai report for Spellblaze Crystal
* escape 24.014395526675 (mult) 3
* mana 1.5028137011206 (mult) nil
* attackarea 4.1139940362526 (mult) nil
* attack 2.7193982313312 (mult) nil
It's at 24% hp, I don't know that it should be weighting escape that much more highly than everything else.

Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

Re: [svn 3272] 'caster npc's attacks broken.

#3 Post by Freddybear »

I just did the scin-caves on svn 3274 and the Spellblaze Crystal behaved correctly. He fired off several spells at me before I killed him.

Post Reply