The Greybar Dehanger exploit

Discussion in 'The Temple of Elemental Evil' started by Sitra Achara, Aug 20, 2021.

Remove all ads!
  1. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,613
    Likes Received:
    537
    I just found a hilarious exploit while debugging a combat hang issue. Here it is:


    GreybarResetExploit.jpg

    GreybarResetExploit2.jpg

    Explanation:
    ToEE has a 'dehanging' system in place, meant for when the combat system gets stuck on the AI's turn. Basically it ends all current ongoing actions and passes the turn to the next combatant.

    The bug is that this system uses the system time to measure these 20 seconds, as opposed to the animation time (which is what governs the actual action frames). The system time continues ticking no matter what. The animation time, however, is halted when you press Esc. So if you wait 20 seconds while the game is paused, the dehanger will kick in, terminating all the current ongoing actions. The AI's attack animation will actually continue where it stopped, but the action frame itself will be aborted (which is where the game actually calculates the damage / performs the spell effect event / launches the projectile), hence no actual attack will be made.

    Sure it's a bit tedious to do this for every turn, but you can certainly use it to save your ass in critical moments. I sear, this game is really something else :D:D:D

    Needless to say this will be plugged in the next Temple+ release...
     
    anatoliy likes this.
  2. Endarire

    Endarire Ronald Rynnwrathi

    Joined:
    Jan 7, 2004
    Messages:
    954
    Likes Received:
    112
    The AI hanging mid fight like in Giant Gar? Yeth pweath!
     
Our Host!