Resolved A few bugs...

Discussion in 'Client & Site Support' started by Savior, Nov 27, 2014.

  1. Savior

    Savior I'm your motherfucking conscience

    Joined:
    Nov 17, 2014
    Messages:
    3,060
    Likes Received:
    1,192
    1) When an item is added, the InventoryListener calls the item added method twice, sometimes 3 times (I am pretty sure I don't do anything wrong)

    2) Grandexchange price checker does not work well, for example Wine of Zamorak, which is like 3k gp, is 5k gp when I grab the price over the API

    3)

    Traversal.getDefaultWeb().getPathBuilder().buildTo(TEMPLE).step(true);

    Throws a NullPointerException at some points, even if there is no blockage on the way to the spot.
     
    #1 Savior, Nov 27, 2014
    Last edited: Nov 27, 2014
  2. Aidden

    Aidden The better executive ;)

    Joined:
    Dec 3, 2013
    Messages:
    3,398
    Likes Received:
    683
    3. The web isn't perfect so even though there may not have been any obstacles, some positions won't be able to generate a path.
    What you should be doing is storing the path before performing step on it so that you can null check the path. If the path is null you can then use the same logic with regionpath or bresenhampath to build a path and traverse it.

    @Cloud
     
  3. Savior

    Savior I'm your motherfucking conscience

    Joined:
    Nov 17, 2014
    Messages:
    3,060
    Likes Received:
    1,192
    okay good idea, I will try it :)

    Edit:
    @Aidden I am now doing this, but now it takes the character ages to move each step.
     
    #3 Savior, Nov 27, 2014
    Last edited: Nov 27, 2014
  4. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,416
    Likes Received:
    796
    Then there is something wrong with your script bot that is preventing it from stepping quickly.
    1. I'll investigate although I think it is unlikely. The events will be called again however if you logout and log back in, however item removed events will also have been called when you logged out.
    2. We rely on a 3rd party service for getting item prices, so unfortunately that's out of our control for the near future.
     
  5. Aidden

    Aidden The better executive ;)

    Joined:
    Dec 3, 2013
    Messages:
    3,398
    Likes Received:
    683
    Iirc defeat3d had the same issue with the inventory listener a week or two ago
     
  6. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,416
    Likes Received:
    796
    Yeah I realized that although it's rare that it should happen, it's still possible.
     
  7. Savior

    Savior I'm your motherfucking conscience

    Joined:
    Nov 17, 2014
    Messages:
    3,060
    Likes Received:
    1,192
    Okay I will askhim then :)
    And recheck my code for walking
     
  8. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    611
    Likes Received:
    245
    @Cloud
    I also have the InventoryListener problem, it's detecting 3 logs added when I chop down a normal tree which only gives 1.
     
  9. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,416
    Likes Received:
    796
    It'll be fixed in an update later tonight.
     
  10. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    611
    Likes Received:
    245
    Sorry to nag you again, but the ChatboxListener is also experiencing the same problem. When I receive a message, the bot seems to receive the message 2-3 times.
     
  11. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,416
    Likes Received:
    796
    Its all caused by the same issue.
     
  12. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,416
    Likes Received:
    796
    The update that fixes this has been released, can you please verify it has been resolved.
     
  13. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    611
    Likes Received:
    245
    Let me make an account and test since all my accounts are getting banned :p

    Edit: Seems to be working fine. Good work.
     
    #13 Baddest Man on Earth, Nov 29, 2014
    Last edited: Nov 30, 2014

Share This Page

Loading...