Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Locatable#hover() fails indefinitely

Joined
Jun 9, 2015
Messages
3,735
Code:
Code:
if(selectedRift != null) {
            getLogger().fine("Rift is: " + selectedRift + " [" + Distance.to(selectedRift) + "]");
            getLogger().fine("Rift is visible: " + selectedRift.isVisible());
            getLogger().fine("Mouse position: " + Mouse.getPosition());
            if(Distance.to(selectedRift) < CustomPlayerSense.Key.DISTANCE_TO_ENTITY.getAsInteger() * Random.nextDouble(0.6, 1.1)) {
                getLogger().fine("Distance is lower than condition value");
                getLogger().fine("Mouse position: " + Mouse.getPosition());
                if(selectedRift.isVisible()) {
                        if (selectedRift.interact("Exit-through")) {

Expected result:
Bot interacting with the rift.

Current result:
The mouse does not move. Bot completely idles. Even after logging out due to inactivity, the bot does not activate the lobby handler. No mouse movement whatsoever.

Debug:
Code:
00:00:27 TRACE    Rift is: Nature rift [3035, 4842, 0] [Distance: 1.0]
00:00:28 TRACE    Rift is visible: true
00:00:28 TRACE    Mouse position: java.awt.Point[x=0,y=0]
00:00:28 TRACE    Distance is lower than condition value
00:00:28 TRACE    Mouse position: java.awt.Point[x=0,y=0]

Rift model:
http://i.imgur.com/N2OjwHx.png
http://i.imgur.com/I2GH8XT.png
http://i.imgur.com/2kXeTiu.png

Additional notes:
- I cannot reproduce this issue consistently
- Interaction with this entity works fine for the most part. Only breaks on occasion.
- Party: "yeah so I'm not convinced at all that it's an issue with the model."
- Worst case scenario, the minimum distance check (PS key) would be 4.2

@Party @Cloud
 
@Cloud
 
Top