• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • FindBestFood method return ores

    Discussion in 'Honorbuddy Support' started by cls15, Nov 26, 2012.

    1. cls15

      cls15 New Member

      Joined:
      Oct 27, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      [SOLVED]FindBestFood method return ores

      My character always try to use ores that he have in bags when resting.
      I figured out that the FindBestFood() method in inventory namespace returns ores as best food.
      This function is called at the bot start (so I even can't fix food to use).
      No Plugins used.

      I so disabled mining so I have no ores in my bags.

      I didn't find how to abstract this function in Singular routines.
       

      Attached Files:

      Last edited: Dec 10, 2012
    2. Tony

      Tony "The Bee" Staff Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      128,834
      Likes Received:
      571
      Trophy Points:
      113
    3. cls15

      cls15 New Member

      Joined:
      Oct 27, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      There's a new version of HB with a rest issue fixed. I gonna trie that this tonight and post result...
       
    4. cls15

      cls15 New Member

      Joined:
      Oct 27, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      Tried the new version, Consumables.GetBestFood() still flush ores when present in bags.
      No logs are flushed but the tries to use ores when "resting".

      I put this function directly within a plugin to be sure it's the problem.
      This function is called in Singular rest behaviour before to eat and in the refreshment plugin packaged with HB (Useless one I think cause it only call GetBestFood and GetBestDrink methods to override users pref which is already done in Singular rest behaviour)
       
    5. Tony

      Tony "The Bee" Staff Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      128,834
      Likes Received:
      571
      Trophy Points:
      113
      Singular is throwing errors,use another combat Routine
       
    6. cls15

      cls15 New Member

      Joined:
      Oct 27, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      Will made a cleaner logs for you to see what I mean.
      I don't even launch the bot to get my result...
       
    7. cls15

      cls15 New Member

      Joined:
      Oct 27, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      OK, after investigation, it appear that the problem come from the UseBandageBehavior.
      It happens when no bandages are found...

      Will add trace there.

      The getbestfood function works well in fact...
       
    8. bambam922

      bambam922 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      6,071
      Likes Received:
      28
      Trophy Points:
      48
      Glad you found your issue.
      For future reference, posting in the developer forum will net better results for help.
       
    9. cls15

      cls15 New Member

      Joined:
      Oct 27, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      thank's for the advice and sorry for the desagrement.
      I will post a new thread in dev forum about this issue (after further invest of course)
       

    Share This Page