-
-
Notifications
You must be signed in to change notification settings - Fork 406
g_game.look() often "misses" looking at creature #1054
Copy link
Copy link
Closed
Labels
Priority: MediumThis issue may be impactful and needs some attention.This issue may be impactful and needs some attention.Status: Pending TestThis PR or Issue requires more testingThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Metadata
Metadata
Assignees
Labels
Priority: MediumThis issue may be impactful and needs some attention.This issue may be impactful and needs some attention.Status: Pending TestThis PR or Issue requires more testingThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Priority
Medium
Area
What happened?
Issue
When bot is turned on, if the Check Players option is enabled in the Extras menu of vBot_4.8 (accessed via the vBot Settings and Scripts button for those unfamiliar) and another player appears on the screen while already moving, the script (which uses
g_game.look(creature)) often "misses" looking at the player, especially if the player moves through the screen quickly. Instead, it looks at whatever is on the tile the target was when it entered the screen. Here is what I mean:2025-01-16_21-55-19.mp4
As you can see in the video above, the script "looked" at the wrong thing and because of that, it did not draw the text with level and vocation over the character as it should have.
This "missed look" doesn't always happen, but it happens often enough (especially with faster moving players), but it should not happen at all.
Expected Behavior
With the Check Players option enabled, when another player appears on the screen, whether moving or not, the script should ALWAYS be able to "look" at the player to find out his/her vocation and level and draw it over that character, regardless of the speed of that player, ping, fps or any other variable.
In fact, I'm certain that before the commit that introduced changes leading to the
stackPosissue mentioned in #1045, this issue with "missed" looks never used to happen. The terminal error from #1045 has been resolved with PR #1047, but the Check Players option in vBot 4.8 is not working as intended reliably as is.Environment
Using: Unmodified latest main (commit 20a0bec)
Client: OpenGL x64 compiled using VS Solution
Operating System: Windows
Server/Protocol: TFS-based 10.41
What OS are you seeing the problem on?
Windows
Code of Conduct