KNIGHT_HOLY_STRIKE returns "Failed to cast" and the bot resets target after 7 seconds

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
OluxZarjaNebesnogo
Posts: 34
Joined: Sat Nov 26, 2022 1:58 am

KNIGHT_HOLY_STRIKE returns "Failed to cast" and the bot resets target after 7 seconds

#1 Post by OluxZarjaNebesnogo »

Hi everyone,

I'm having an issue with the `KNIGHT_HOLY_STRIKE` skill. When the bot uses this skill, the log repeatedly shows:

Code: Select all

Waypoint #39 is closer then #1. Hence we start with waypoint #39.
Moving to waypoint #45, (-2116, -4285)
Moving to waypoint #46, (-2254, -4143)
Engaging enemy [Wolf] in combat.
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_POWER_EXPLOSION             =>            Wolf 90%
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
1Taking too long to damage target, breaking sequence...
Clearing target.
Target lost.
Current fight aborted.
Clearing target.
Engaging enemy [Wolf] in combat.
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * aborted *
Fight finished. Killed 1 Wolf. (fight #1 / runtime 0 minutes)
We didn't move to the loot!? Root buff? Missing 'click to move' option?
Clearing target.
Engaging enemy [Wolf] in combat.
Moving in | Suggested range: 50 | Distance: 195
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * Failed to cast *
1Taking too long to damage target, breaking sequence...
Clearing target.
Target lost.
Current fight aborted.
Clearing target.
Engaging enemy [Wolf] in combat.
Use MACRO: KNIGHT_HOLY_STRIKE                      =>   * aborted *
Fight finished. Killed 2 Wolf. (fight #2 / runtime 1 minutes)
After approximately 7 seconds, the bot clears the target and aborts the fight.

I've tried the following:

1. Increased
MAX_FIGHT_TIME
from 10 to 20, but this did not solve the problem. The bot still resets the target after approximately 7 seconds.
2. Added the Holy Seal debuff IDs to the
KNIGHT_HOLY_STRIKE
entry in
skills.xml
:

Code: Select all

nobuffname="500140,500146,500168,500169" nobufftarget="target" nobuffcount="4"
This changed the bot's behaviour: it now uses
KNIGHT_HOLY_STRIKE
to apply all four Holy Seal stacks, then switches to auto-attacks. However, the original problem remains: the bot still sometimes resets the target after approximately 7 seconds.

I also searched the forum for similar reports, including older discussions, but couldn't find a solution that addresses this particular issue.

Thanks!

---

Additional information:

After further testing, I noticed that the target reset seems to occur after
KNIGHT_HOLY_STRIKE
has been used four times, provided the target survives. I haven't been able to confirm this with certainty, but so far I haven't observed target resets under other conditions.

I also removed all game addons except those required for RoMBot to function. This did not resolve the issue.

---

I tested another character, a Warrior/Scout, and encountered the same issue on a completely different class combination. The fight is interrupted with the message
Taking too long to damage target, breaking sequence...
, followed by the target being cleared and the fight aborted.

The log shows that multiple skills return Failed to cast:

Code: Select all

We begin the fight with ranged pulling.
Use MACRO: WARRIOR_SURPRISE_ATTACK                 =>Cyclops Berserker 100%
Ranged pulling finished, mob in melee distance.
Use MACRO: WARRIOR_SKULL_BREAKER                   =>   * Failed to cast *
Use MACRO: WARRIOR_SKULL_BREAKER                   =>   * Failed to cast *
Use MACRO: WARRIOR_SLASH                           =>   * Failed to cast *
Use MACRO: WARRIOR_SKULL_BREAKER                   =>   * Failed to cast *
1Taking too long to damage target, breaking sequence...
Clearing target.
Target lost.
Current fight aborted.
Clearing target.
This suggests that the issue is not limited to the Knight/Warrior combination or to KNIGHT_HOLY_STRIKE. It also occurs with Warrior/Scout, involving different skills.

I previously tested a Warden/Rogue, where combat appeared to work normally, so I cannot yet confirm whether this affects all classes. :?
Sorry for my English!
User avatar
Administrator
Site Admin
Posts: 5358
Joined: Sat Jan 05, 2008 4:21 pm

Re: KNIGHT_HOLY_STRIKE returns "Failed to cast" and the bot resets target after 7 seconds

#2 Post by Administrator »

Thank you for the report. Very detailed! As you continue to gather any more details, please be sure to reply again with any new findings.

Are you able to say whether or not this is a new thing? Did it happen after a recent patch, or has this been an ongoing issue for a long time?
User avatar
Administrator
Site Admin
Posts: 5358
Joined: Sat Jan 05, 2008 4:21 pm

Re: KNIGHT_HOLY_STRIKE returns "Failed to cast" and the bot resets target after 7 seconds

#3 Post by Administrator »

I was able to reproduce the issue and track down its cause. It was because the global cooldown address was off by 8 bytes, meaning that the bot wasn't detecting global cooldown spiking when the skills were being used.

A fix has been pushed up. Update your scripts to get the fix. The change can be found here: https://github.com/SolarStrike-Software ... d2237bcf6b
Post Reply