• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Load Profile while bot is running has trouble looking for the next gather item

    Discussion in 'Rebornbuddy Support' started by ZaneMcFate, Nov 20, 2014.

    1. ZaneMcFate

      ZaneMcFate Member

      Joined:
      Nov 17, 2014
      Messages:
      137
      Likes Received:
      2
      Trophy Points:
      18
      Situation: Bot running, switching from one mining profile to another mining profile.
      Bug: Loading a new mining profile while running another mining profile, while the bot is running, has trouble finding the new desired item. The bot will switch to the new profile, teleport, move to the new hotspot, and begin gathering, but the bot cannot locate the current item, giving the error "Couldn't Find desired item...picking first one..."

      To Reproduce:
      • Load any mining profile, and start the bot.
      • At any time while the mining profile is running (don't have to wait until it mines something), load a new mining profile using the Load Profile button or NeoProfileManager.Load() (bug occurs using either method).
      • Wait until the bot starts a mining attempt, the error will appear.

      Stopping and starting the bot after this happens resolves the problem. Is there a way to command the bot to stop and start as a temporary workaround for a plugin? I appreciate any information you can provide. Thank you!
       

      Attached Files:

    2. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I know nothing about profiles but you might be able to NeoProfileManager.UpdateCurrentProfileBehavior() or ProfileBehavior.UpdateBehavior() or ResetCachedDone()

      ...probably not but it's the only thing I can think of
       
    3. ZaneMcFate

      ZaneMcFate Member

      Joined:
      Nov 17, 2014
      Messages:
      137
      Likes Received:
      2
      Trophy Points:
      18
      Thanks for the pointers; they didn't seem to change anything. There is a ton going on behind the scenes of the simple Stop / Start button of RB, so I am unable to emulate it at the moment. It looks like switching profiles adjusts everything in the profile except the current gather item, and I haven't been able to find a way to get in there and force the new item names. I think my project has hit a wall until I can completely update a profile without the user hitting stop/start.
       
    4. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      did you try a botmanager reload()?
       
    5. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      Why not call TreeRoot.Stop() and TreeRoot.Start() within your plugin to automatically stop and start the bot yourself?
       
    6. ZaneMcFate

      ZaneMcFate Member

      Joined:
      Nov 17, 2014
      Messages:
      137
      Likes Received:
      2
      Trophy Points:
      18
      That's exactly what I was looking for! Thanks for pointing me in the right direction; that is the workaround I needed to keep developing. Thanks again!
       

    Share This Page