msemtex 6 Posted November 10, 2021 Hi all, I have noticed some odd behaviour with the Camera.mouseRotateToEntity() method - when this method is called repeatedly, the cursor in the client begins to track across the screen in a very bot like fashion. The above issue did not happen previously and have since switched to using the Camera.keyboardRotateToEntity() method with better results.
Pandemic 2818 Posted November 10, 2021 I'll take a look, do you have a GIF of what it's doing that's different for you? Edit: Looks fine to me, any more info?
msemtex 6 Author Posted November 10, 2021 @Pandemic I don't have a gif to hand, but previously the camera would track the entity (a player for example) without moving the cursor within the client. If the method is called now, the cursor moves up and down in a wave pattern going from right to left across the screen.
Pandemic 2818 Posted November 10, 2021 1 minute ago, msemtex said: @Pandemic I don't have a gif to hand, but previously the camera would track the entity (a player for example) without moving the cursor within the client. If the method is called now, the cursor moves up and down in a wave pattern going from right to left across the screen. I'm not sure how that's possible without using the keyboard, it would need to put the mouse on the canvas to start the mouse rotation. I'll go try with some players but with an NPC it was working as expected.
Pandemic 2818 Posted November 10, 2021 Even with players it appears to be working normally, one smooth mouse mouse movement, no waves or anything, so I'm not sure what's going on
msemtex 6 Author Posted November 10, 2021 4 minutes ago, Pandemic said: Even with players it appears to be working normally, one smooth mouse mouse movement, no waves or anything, so I'm not sure what's going on Ah - definitely a bug in the code on my side then! The use case for that method is to track players that are a potential threat to the bot in the wilderness and while that happens, the bot is checking for any nearby loot. So the bug is potentially a conflict between scanning and acting on nearby ground items whilst trying to move the camera via the mouse if a player comes into view. My current solution though is to use the keyboard camera rotation and that now works smoothly again.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.