Resolved RS3 Interactable#Interact() failing

Discussion in 'Developer Support' started by Ozzy, Feb 15, 2016.

  1. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    504
    Likes Received:
    159
    I've only tested this on RS3, but interactions have been consistently failing for me @Cloud

     
  2. Best Answer:
    Post #11 by Cloud, Mar 8, 2016
  3. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,889
    Likes Received:
    821
    It sounds a bit strange, but try disabling GameEvents.RS3.GRIM_REAPERS_OFFICE.
     
  4. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    504
    Likes Received:
    159
    Just gave that a shot but interact() on NPC's is still failing and returning false the vast majority of the time, the actual execute() of my task is being called much more frequently after doing that though.
     
  5. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,889
    Likes Received:
    821
    Yeah GRIM_REAPERS_OFFICE was causing the GameEventController to take 4s to validate. It helped with my npc interaction so I thought it might help with yours too :/ Are you getting a tonne of "Couldn't load model component" errors?
     
  6. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    504
    Likes Received:
    159
    Not that I've noticed but I haven't had much time to test lately, I plan on doing some tonight though. All that's happening for me is that the mouse moves over to the NPC correctly, waits a couple of seconds and then interact() returns false and there's no click, I'll try in some new areas to see if I can get any load errors like you're experiencing.
     
  7. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,329
    Likes Received:
    758
    Are these npcs that you're struggling with completely visible and uncovered?
     
  8. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    504
    Likes Received:
    159
    Yeah they are, dust devils in the chaos tunnels.
     
  9. Savior

    Savior rep++

    Joined:
    Nov 17, 2014
    Messages:
    2,677
    Likes Received:
    1,008
    Maybe they move off the viewport, thus not validating your visibility filter?
     
  10. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    504
    Likes Received:
    159
    The mouse is moving to them but the actual interaction fails, I'm going to see if this still happens on the new releases, I haven't had chance to try the last few builds yet.
     
  11. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,889
    Likes Received:
    821
    I did some tests and npc.interact was taking about 2 seconds. npc.getInteractionPoint().interact was taking about 1.5, and interactionPoint.interact was taking about 50-200ms. The way I have my stuff set up I can get the interaction point from previous stuff, so I'm using that at the moment, although it means that it won't account for if the target is moving or you are moving.
     
  12. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,329
    Likes Received:
    758
    Projection is being worked on more soon, today's update should have made osrs projection much faster and that should result in better interaction rates.
    --- Double Post Merged, Mar 8, 2016, Original Post Date: Feb 23, 2016 ---
    The speed of projection has been significantly improved and is now at a point where interaction shouldn't fail because of it being slow.
     
    SlashnHax and Ozzy like this.

Share This Page

Loading...