Charging Crossbowmen

Discussion in 'The Temple of Elemental Evil' started by Gaear, Nov 12, 2009.

Remove all ads!
  1. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Please share your experiences with these in 5.6.x - where you encountered them, what they were (skeletons, bandits, etc.), and any other potentially useful information. And did they all behave the same way, or did some crossbowmen not charge?

    Also, has anyone seen normally sound-minded enemies switch to daggers as a preferred weapon in 5.6.x? I was testing something with 5.6.1 in Lareth's chambers, and most all of his guys suddenly switched to daggers (except the lieutenant and one longarm guy, from memory).

    This is pretty much the last bug holding up the next release.


    LOCATIONS

    • Moathouse courtyard - brigands - fixed by removing melee weapons for 3 crossbowmen
    • Moathouse first floor - brigand - fixed by removing melee weapon for 1 crossbowman
    • Moathouse dungeon - Lareth's guardsmen - fixed by removing melee weapons for 5 crossbowmen and 2 sergeants
    • Emridy Meadows - skeletons - fixed by Sitra's AI tweak
    • Earth Temple hall of bones - skeletons

    NEEDS TO BE TESTED

    • Earth Temple - Romag's human guards (some)
    • Broken Tower - guardsmen and witches
     
    Last edited: Nov 24, 2009
  2. Ranth

    Ranth Established Member

    Joined:
    Jan 26, 2008
    Messages:
    829
    Likes Received:
    1
  3. GuardianAngel82

    GuardianAngel82 Senior Member

    Joined:
    Oct 3, 2007
    Messages:
    3,481
    Likes Received:
    5
    Hobgoblins aren't arming with their swords after throwing their javelins.

    I've seen 3 crossbowman behaviors recently:
    -Charging
    -Firing from where they are, but not 5 foot stepping when they would be AoO'd
    -Firing, WITH the 5 foot step

    Not all crossbowman with issues are skeletal. The xbowman at the moathouse, for example, charge now.

    I'll pay closer attention to the COMBINATIONS of xbow behavior in a single fight, and post again.
     
  4. maalri

    maalri Immortal

    Joined:
    Nov 22, 2005
    Messages:
    1,129
    Likes Received:
    2
    Gaear,

    I have seen this only once or twice, I am in the third level of the Temple, on this run through. I believe they were with a skeleton and MAYBE a human in the moathouse. But most Moathouse personnel, if not all, behaved normally.

    I have NEVER encountered the Dagger issue, so maybe I got lucky, or maybe, since I don't "monkey around" with anything but the basic download (except swapping Portraits out) I haven't caused any of those things to happen.

    I think it might need to be asked if all who have encountered this problem a lot do any kind of regular file changing or doctoring, or modding before playing...
     
  5. Necroticpus

    Necroticpus Cthulhu Ftaghn!

    Joined:
    Jul 2, 2009
    Messages:
    1,379
    Likes Received:
    0
    Charging crossbowmen would make the bolt shoot harder with all their mass behind it, right? Add a couple of d6 to weapon damage.
     
  6. maalri

    maalri Immortal

    Joined:
    Nov 22, 2005
    Messages:
    1,129
    Likes Received:
    2
    LOL, NOOO!!! But Charging Crossbowmen SHOULD have to make a Dex check or TRIP, possibly shooting themselves or a random nearby person for damage.
     
  7. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Ok, I can confirm that the Moathouse Xbow men tend to charge.


    • Suspected cause: lack of proper strategy.tab entry, and accordingly, proper target acquisition.
    • Using my t.py script (dsb(500, ec = 's')), I've detected the mobs' strategy. (attached t.py for anyone who wants to use it)
    • Except for the lieutenant, whose strategy was 175 (sniper), everyone had strategy 0 (the default strategy).
    • The default strategy has a broken command word ("attack closest", there is no such command) and is generally rather borked.
    • Note that what they actually do is approach, not charge, and they were probably trying to approach someone still in the corridor, whom they could not attack due to being blocked off by the wall.
    • I've changed the default strategy to:
    • Code:
      Default    clear target            target closest            sniper            use potion            attack            approach            attack            
    • After changing this, xbowmen no longer 'charge', rather they target the closest conscious party member and fire their weapons.
    • I've also added 'clear target' to the beginning of the sniper strategy used by the lieutenant, because otherwise sometimes he just freezes without firing his weapon.


      • Moathouse Guardsmen fight (near Lareth)
      • Moathouse courtyard bandits
      • Guardsmen spawned via console
    Edit -
    Summary of my following posts & findings

    1. Have encountered dagger switching in the following circumstances:
      • Moathouse Guardsmen fight (near Lareth)
      • Moathouse courtyard bandits
      • Guardsmen spawned via console
    2. In one old savegame of mine, Lareth's guards did not switch to daggers at all. (it was the same game version, 5.6.1.
    3. Experiments I've done in test games in an attempt to 'replicate' this or otherwise rectify the problem:
      • Recruiting an NPC party member.
      • Not using console teleports.
      • Changing my party's weapon loadouts (all ranged weapons, and all melee weapons)
      • Resting before the fight.
      • Completing a Hommlet quest.
      • Clearing the cache and loading the save.
      • Removing/switching some commands from the AI: took out sniper, took out clear target, added partial charge, added reload at the beginning, etc.
      • Erasing the default AI completely, leaving it blank - still got weapon switching (the behavior is otherwise as expected)
      • Changing the targeting from 'target closest' to 'target threatened' (as in vanilla) - didn't work.
      • Looked up what AI the bugbear 'archers' use - it's just the sniper AI. Strangely, the ones in the back room will switch weapons, while the one where the scout is - doesn't, despite having the same AI.
      • Removing the start_combat script (made a duplicate proto of guardsman without any san_start_combat script, got daggerswitch again)
      • Restoring the protos.tab entry to vanilla state (removing 2 feats: combat reflexes and weapon focus longspear, and removing san_start_combat script).
      • Switching off the various TFE-X options: Humble NPCs, display HP, etc.
    4. None of the above worked.
    5. Further observations:
      • The phenomenon is somewhat random in nature - sometimes enemies will switch weapons, sometimes they won't.
      • Starting the fight by webbing all the enemies triggers daggerswitching as well - except it happens when the spell hits them rather than when their turn begins.
      • The item_wield_best_all() function actually equips a proper weapon, rather than the dagger. It seems to get overridden in the first round, though, as if the daggerswitch occurs after the san_start_combat executes.
      • The guardsmen's mobs have not been altered by Co8, at least up to 5.0.5, and as Gaear found, this problem was discovered in the 5.0.0 beta as well.
      • Doesn't happen in Vanilla - neither in the Moathouse nor with spawned guardsmen outdoors.
    6. Conclusions:
      • The weapon switching is not related to the strategy.tab entry itself, as fiddling with it extensively has yielded no results.
      • It is not location specific per se, as it happens outdoors with spawned guardsmen as well.
    7. The Livonya solution:
      • Forces the AI to wield the correct weapon.
      • Unfortunately, sometimes it seems to incur slowdowns.
     

    Attached Files:

    • t.rar
      File size:
      6.9 KB
      Views:
      1
    Last edited: Nov 28, 2009
  8. The Royal Canadian

    The Royal Canadian Established Member

    Joined:
    Oct 29, 2005
    Messages:
    741
    Likes Received:
    4
    Hi Gaear
    After Sitra's post, my data may be irrelevant but here it is anyway. I am running v5.6.0 and have just finished clearing the moathouse.

    The Crossbowman and Swordsman in the "Northwest" corner (to the left of the doors to the inner moathouse) didn't "activate" until I sent a fighter to investigate that area. The Crossbowman didn't charge/approach (probably because my fighter was right there to start with) but did not use the 5 foot step to avoid AOOs while shooting his crossbow.

    The Brigand Crossbowman did something interesting (I replayed this fight several times until I was able to get someone in melee range without killing him right away). I started the fight with my Fighter and Cleric blocking the doorway until only the Crossbowman and another brigand were left in the room. I then sent the fighter in to attack the other brigand, while the cleric went for the crossbowman. The Crossbowman changed to his sword, tumbled around the cleric and went for the doorway to entry hallway. I thought that was rather interesting, but killed him before he could cause any problems with my spellcasters.

    The Crossbowman in the Moathouse basement hallway "charged" and did not use the 5 foot step. All the Crossbowmen in Lareth's guards "charged" and none of them used the 5 foot step.

    I should also point out that I had one Bugbear attack a Spiritual Weapon that was cast behind him instead of attacking a Fighter and Elmo who were attacking him from his front.
    The Royal Canadian
     
  9. Kalshane

    Kalshane Local Rules Geek

    Joined:
    Aug 6, 2004
    Messages:
    1,653
    Likes Received:
    4
    That's wierd. According to the protos.tab they have the Sniper AI assigned, not the default.
     
  10. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    According to my protos.tab, they use AI type nothing (= default). They're technically 'guardsmen,' right?

    btw Sitra, I appended your changes above to the current strategy.tab and still got chargers and weapon switchers.

    Could you upload an actual working version of your file for testing?
     
  11. Kalshane

    Kalshane Local Rules Geek

    Joined:
    Aug 6, 2004
    Messages:
    1,653
    Likes Received:
    4
    You're right. Sorry, was thinking of the wrong group. It's been two years. ;) Yes, the guardsmen had no AI assigned in the protos.tab because the game uses the same proto entry for both the crossbow-type and the longspear-type. (Most other places Troika was thankfully less lazy and separated out ranged and melee baddies.) I remember now having to give them extra feats to account for that fact there was no differentiation between the two.
     
  12. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Ok, but you should probably refrain from using the file as-is, because it's a very heavily modified WIP (so just overwrite the first line (Default) and Sniper ).

    Also, it should be playtested to see that it doesn't bork other AIs (there are many creatures who use the default AI). I've done some testing in random encounters, but it should be tested further.
     

    Attached Files:

    Last edited: Nov 15, 2009
  13. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Thank you.

    Okay, here's what I've got:

    I added the two lines as you describe and still got not so much the charging crossbowmen anymore but the switching to daggers. Everybody but the lieutenant. So I took their daggers away. Now they all use their primary weapons, and the crossbowmen don't charge.

    I did some snooping around and now I have a theory as well. The start combat script for those guys is from Black Jay's scripts file, as we know. I think Black Jay's serves as the default, basically. In 5.5.0 we had no charging crossbowmen issues or dagger weilding issues that I recall, but they appeared in 5.6. There was a change made to Black Jay's scripts file from 5.5 to 5.6 - from utilities import * and from scripts import * were added. I don't know why. Black Jay's file also includes a script to get two weapon fighters to use two weapons. In that script are lines for "attachee.item_wield_best_all()." I remember hearing or reading that for some goofy reason, the game thinks a dagger is a preferred weapon. So maybe before the 'import' lines were added, users of that start combat script weren't going for the preferred weapon, but after those lines were added they were. How the charging might work in I'm not sure - maybe crossbowmen somehow failed to switch weapons (some of the time) but did the approach command anyway.

    At any rate, this would explain the charging/dagger participants - random encounter types, skeletons, low level troops - all whom use Black Jay's start combat script.
     
  14. Ranth

    Ranth Established Member

    Joined:
    Jan 26, 2008
    Messages:
    829
    Likes Received:
    1
    I can vouch that Jay did not charge in 5.5.0. At least he did not when you fought him in my Golden Skull mod.
     
  15. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Further testing with the above-indicated configuration shows that:

    • Moathouse guardsmen crossbowmen use five foot step when in close quarters.
    • Skeletons armed with crossbows at Emridy Meadows and in random encounters no longer charge.
    • Above skeltons use five foot step appropriately.
    • Moathouse brigands still switch weapons if they've got something in addition to their crossbows. If left with only crossbows, they do not approach and use 5 foot step effectively.
    I'm still looking for a roving gang of random encounter bandits.

    Please continue to report specific instances of charging/switching here.
     
Our Host!