Quantcast
Download
(24 Kb)
Download
Updated: 05/14/20 10:01 AM
Pictures
File Info
Compatibility:
Greymoor (6.0.5)
Harrowstorm (5.3.4)
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:05/14/20 10:01 AM
Created:09/12/18 03:16 PM
Monthly downloads:295
Total downloads:6,771
Favorites:26
MD5:
6.0.5
Grubmaster Food & Drink Auto Consume  Popular! (More than 5000 hits)
Version: 1.06
by: aethronx [More]
Description:
This addon allows a food or drink to be easily chosen from inventory and used automatically whenever the player's current food buff is nearing expiration.

To select a food to use automatically, right click on it in inventory and chose the "Consume Automatically" option.

After selecting a food, it will be used immediately if no food buff is active. If a food buff is active, it will be used when the buff is nearing expiration (5 minutes before by default).

The expiration buffer can be changed to anything between 0 and 10 minutes (0 and 600 seconds) using the /grubmasterbufferseconds command in chat (see below).

Right clicking the selected food in inventory again will show an option to stop automatic consumption.

A message will be shown in the chat window when food is used. When the food count reaches 5 or less in player inventory, a low inventory warning will be shown in chat. When food count is 0 and the expiration buffer has been reached, a warning will be shown in chat every minute. This can be turned off by using the /grubmasteroff slash command (see below).

Food or drinks cannot be used automatically while in combat. This is a limitation of the game's API. If a food cannot be used for any reason, it will try again 10 seconds later.

Using any food manually at any time while Grubmaster is running is perfectly fine.


Available Slash Comands:
  • /grubmasteron - Turns auto consumption on if food has been previously selected
  • /grubmasteroff - Turns auto consumption off
  • /grubmastershowsettings - Shows the current settings including food, expiration buffer, and current bag count
  • /grubmasterbufferseconds [seconds] - Shows the current buffer in seconds, or optionally changes it. Can be a number between 0 and 600.

Known Issues:
  • Food and drink items do not show option to autoconsume in gamepad mode. Turn off gamepad mode to select food, then turn it back on.
  • Text is not localized (however, it should work for all locations.)

Acknowledgements:
  • Uses the LibFoodDrinkBuff library by Scootworks, Baertram. (Saved a lot of time, huge thanks!)
  • Uses LibCustomMenu by votan
Optional Files (0)


Archived Files (6)
File Name
Version
Size
Uploader
Date
1.05
20kB
aethronx
12/08/19 12:26 PM
1.04
11kB
aethronx
08/12/19 08:54 AM
1.03
11kB
aethronx
05/19/19 09:59 AM
1.02
10kB
aethronx
02/25/19 11:19 AM
1.01
10kB
aethronx
10/22/18 01:26 PM
1.00
10kB
aethronx
09/12/18 03:16 PM


Post A Reply Comment Options
Unread 05/31/20, 09:26 AM  
baldylox

Forum posts: 3
File comments: 34
Uploads: 0
i have this enabled on all my characters and have chosen an item for each via the right click menu and set timers, but there is some issue

ALL of my characters post in chat that they cannon not eat/drink the item that only my main character has enabled. i have to re-select on each toon each day.
Report comment to moderator  
Reply With Quote
Unread 05/15/20, 07:57 AM  
aethronx
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 1
Originally Posted by trowieuk
Does this work in gamepad mode?
Yes it does, though you have to turn gamepad mode off to select the food in inventory. After that you can turn gamepad mode back on and it will work fine.
Report comment to moderator  
Reply With Quote
Unread 05/14/20, 11:44 AM  
trowieuk

Forum posts: 1
File comments: 30
Uploads: 0
Does this work in gamepad mode?
Report comment to moderator  
Reply With Quote
Unread 11/20/19, 09:07 AM  
kindredspirit

Forum posts: 3
File comments: 90
Uploads: 0
Re: Re: Re: Re: Add-on Consumes too often?

Originally Posted by Mica1952
Originally Posted by Red_Nine
Originally Posted by Mica1952
Originally Posted by Red_Nine
Is anyone else's Grubmaster consuming the designated food every few seconds, or otherwise too fast?
It hasn't happened to me but a friend is saying that it is happening with one of the new foods from the Witches Festival. I've heard two other guild members mention the issue as well although they didn't specify which food was involved.
It was the Bewitched Sugar Skulls gold food from the Witches Festival. I did not test other foods or drinks, but that one consumes every 10 seconds or so. Had to remove the add-on. That food is too good to not use it.
I'm guessing that since Grubmaster hasn't been updated since August it isn't recognising any food/drink buffs that have been added since then so it keeps consuming.
yes mine is. It was expensive gold food too ! Ate like four of them in a row before I realized what was going on lol
Report comment to moderator  
Reply With Quote
Unread 11/13/19, 05:37 AM  
Mica1952

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: Re: Add-on Consumes too often?

Originally Posted by Red_Nine
Originally Posted by Mica1952
Originally Posted by Red_Nine
Is anyone else's Grubmaster consuming the designated food every few seconds, or otherwise too fast?
It hasn't happened to me but a friend is saying that it is happening with one of the new foods from the Witches Festival. I've heard two other guild members mention the issue as well although they didn't specify which food was involved.
It was the Bewitched Sugar Skulls gold food from the Witches Festival. I did not test other foods or drinks, but that one consumes every 10 seconds or so. Had to remove the add-on. That food is too good to not use it.
I'm guessing that since Grubmaster hasn't been updated since August it isn't recognising any food/drink buffs that have been added since then so it keeps consuming.
Last edited by Mica1952 : 11/13/19 at 05:39 AM.
Report comment to moderator  
Reply With Quote
Unread 11/12/19, 01:35 PM  
Red_Nine

Forum posts: 0
File comments: 11
Uploads: 0
Re: Re: Add-on Consumes too often?

Originally Posted by Mica1952
Originally Posted by Red_Nine
Is anyone else's Grubmaster consuming the designated food every few seconds, or otherwise too fast?
It hasn't happened to me but a friend is saying that it is happening with one of the new foods from the Witches Festival. I've heard two other guild members mention the issue as well although they didn't specify which food was involved.
It was the Bewitched Sugar Skulls gold food from the Witches Festival. I did not test other foods or drinks, but that one consumes every 10 seconds or so. Had to remove the add-on. That food is too good to not use it.
Report comment to moderator  
Reply With Quote
Unread 11/09/19, 01:41 AM  
kindredspirit

Forum posts: 3
File comments: 90
Uploads: 0
please update

The addon is consuming my food every few seconds and its expensive gold food! I had to turn off the addon. I love this addon plz update
Report comment to moderator  
Reply With Quote
Unread 11/08/19, 09:38 AM  
Mica1952

Forum posts: 0
File comments: 3
Uploads: 0
Re: Add-on Consumes too often?

Originally Posted by Red_Nine
Is anyone else's Grubmaster consuming the designated food every few seconds, or otherwise too fast?
It hasn't happened to me but a friend is saying that it is happening with one of the new foods from the Witches Festival. I've heard two other guild members mention the issue as well although they didn't specify which food was involved.
Report comment to moderator  
Reply With Quote
Unread 11/05/19, 05:09 PM  
Red_Nine

Forum posts: 0
File comments: 11
Uploads: 0
Add-on Consumes too often?

Is anyone else's Grubmaster consuming the designated food every few seconds, or otherwise too fast?
Report comment to moderator  
Reply With Quote
Unread 08/12/19, 09:09 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3043
File comments: 3646
Uploads: 62
Hey there, please DO NOT include the librraies loaded from your addon's manifest txt file!
This might kill other addons.
Read this wiki entry abouit libraries, especially the section "Shipped with your addon (loaded via your addon's txt manifest file -> maybe causing problems)" please: https://wiki.esoui.com/Libraries

If you really need to include the libraries you should include them as total library with their own txt file so the game will find and load newer versions correctly.

And your included LibFoodDrinkBuff was even old and missing the language files! So this is a double no go

And LibStub is not needed anymore. Please don't use it in this addon and don't provide it with your addon anymore if not needed.
See this forum thread:
https://www.esoui.com/forums/showthread.php?t=8492

LibFoodDrinkBuff can be access without LibStub via the global variable LIB_FOOD_DRINK_BUFF directly (which you already did, so LibStub was never needed for your addon to work).

But this needs you to update the addon, remove the libraries from your addon manifest txt file and if you include them, include them with their own manifest txt file (LibFoodDrinkBuff.txt) containing the ##AddOnVersion: tag, + add them to your manifest txt file via the tag ## DependsOn: LibFoodDrinkBuff LibOtherLibraryNeeded

If you need help just ask, I'm glad to assist.
This would be basically your addon changed to the described stuff from above:
Grubmaster v1.05
-> Untested. Please test if all works as expected!

-Removed LibStub
-Removed call to LibFoodDrinkBuff in Grubmaster.txt
-Changed ## OptionalDependsOn: to ## DependsOn: so the library will be always loaded or the addon fails to start
-Updated version
-Corrected LibFoodDrinkBuff in Libs folder (added lang folder, added txt file, updated to newest version)


At best you wouldn't include libraries in your addons at all and let users download them as standalone version. But this is your choice.


Oh and another hint about the context menu:
If you add options to the context menu you should not use AddMenuItem but the library LibCustomMenu and it's function AddCustomMenuItem.
We had several problems in the past where the game said using AddMenuItem will taint the source code and raise an call to unsecure code afterwards (somewhere, not in your addon, maybe somewhere else in the Vanilla UI code).
The library is really simple. Just add it to ## DependsOn: LibCustomMenu LibFoodDrinkBuff
and then in your code at the line where you use AddMenuItem replace it with AddCustomMenuItem.
That's all.
Last edited by Baertram : 08/12/19 at 09:29 AM.
Report comment to moderator  
Reply With Quote
Unread 06/29/19, 01:16 AM  
Kahsa

Forum posts: 0
File comments: 7
Uploads: 0
Stopped Working??

Installed this AddOn and it worked fine for several days, then just stopped working. I have tried various foods, turning on and off, switching to drinks, etc. I have watched it tick down to time it should consume and it doesn't (making sure I'm not in combat). Seems really random. Any ideas guys?
Report comment to moderator  
Reply With Quote
Unread 05/19/19, 12:53 PM  
kindredspirit

Forum posts: 3
File comments: 90
Uploads: 0
Thank You

I don't think this addon needs anything more than it has. I love it. It's easy, it's simple, and It has never let me down!
Report comment to moderator  
Reply With Quote
Unread 11/10/18, 02:32 PM  
cag_dk

Forum posts: 21
File comments: 107
Uploads: 0
notification?

any chance for a notification Y seconds before consuming next meal?
(if autoconsume set to X seconds before expire, then Y would be X+20 ?? )
Report comment to moderator  
Reply With Quote
Unread 09/13/18, 06:14 PM  
aethronx
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 7
Uploads: 1
Originally Posted by SlippyCheeze
It is mostly cosmetic, but it'd be nice to have an addon settings page for this (eg: libAddonMenu-2.0) that had the currently selected food, an option to clear it, and an on/off switch.

Bonus points for listing other foods in inventory and letting it be selected there, but the context menu serves the purpose fine for that.

...and thank you so much. I very much like this. It is what I want in terms of food management. No more "don't suck" button to press every time food runs out, which is how it should have been from day one, ZOS.

So, good stuff!
Thanks for the suggestions (and compliment). A settings page is definitely in the works.
Report comment to moderator  
Reply With Quote
Unread 09/13/18, 04:22 PM  
SlippyCheeze
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 234
Uploads: 1
It is mostly cosmetic, but it'd be nice to have an addon settings page for this (eg: libAddonMenu-2.0) that had the currently selected food, an option to clear it, and an on/off switch.

Bonus points for listing other foods in inventory and letting it be selected there, but the context menu serves the purpose fine for that.

...and thank you so much. I very much like this. It is what I want in terms of food management. No more "don't suck" button to press every time food runs out, which is how it should have been from day one, ZOS.

So, good stuff!
Last edited by SlippyCheeze : 09/13/18 at 04:23 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: