1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug Locatable#hover() fails indefinitely

Discussion in 'Developer Support' started by Jhinn, Jun 9, 2017.

  1. Jhinn

    Joined:
    Jun 9, 2015
    Messages:
    3,648
    Likes Received:
    1,337
    Code:
    Code (Text):
    1. if(selectedRift != null) {
    2.             getLogger().fine("Rift is: " + selectedRift + " [" + Distance.to(selectedRift) + "]");
    3.             getLogger().fine("Rift is visible: " + selectedRift.isVisible());
    4.             getLogger().fine("Mouse position: " + Mouse.getPosition());
    5.             if(Distance.to(selectedRift) < CustomPlayerSense.Key.DISTANCE_TO_ENTITY.getAsInteger() * Random.nextDouble(0.6, 1.1)) {
    6.                 getLogger().fine("Distance is lower than condition value");
    7.                 getLogger().fine("Mouse position: " + Mouse.getPosition());
    8.                 if(selectedRift.isVisible()) {
    9.                         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 (Text):
    1. 00:00:27 TRACE    Rift is: Nature rift [3035, 4842, 0] [Distance: 1.0]
    2. 00:00:28 TRACE    Rift is visible: true
    3. 00:00:28 TRACE    Mouse position: java.awt.Point[x=0,y=0]
    4. 00:00:28 TRACE    Distance is lower than condition value
    5. 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
    --- Double Post Merged, Jun 9, 2017, Original Post Date: May 22, 2017 ---
    @Cloud
     
    Aaron Priest likes this.

Share This Page

Loading...