Download
(25 Kb)
Download
Updated: 09/22/20 11:14 AM
Pictures
File Info
Compatibility:
Stonethorn (6.1.5)
Greymoor (6.0.5)
Harrowstorm (5.3.5)
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:09/22/20 11:14 AM
Created:09/12/18 03:16 PM
Monthly downloads:157
Total downloads:22,276
Favorites:33
MD5:
Grubmaster Food & Drink Auto Consume  Popular! (More than 5000 hits)
Version: 1.07
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
-- Version 1.00 09/07/2018
-- Version 1.01 10/22/2018 Updated for Murkmire (100025)
-- Version 1.02 02/25/2019 Updated for Wrathstone DLC (100026)
-- Version 1.03 05/19/2019 Updated for Elsweyr (100027); Calls addon with global LIB_FOOD_DRINK_BUFF
-- Version 1.04 08/12/2019 Updated for Scalebreaker (100028); Updated embedded LibFoodDrinkBuff library
-- Version 1.05 12/08/2019 Updated for Dragonhold (100029); Updated LibFoodDrinkBuff library; Adds LibCustomMenu
-- Version 1.06 05/14/2020 Updated for Greymoor (100031); Updated LibFoodDrinkBuff library; Updated LibCustomMenu
-- Version 1.07 08/24/2020 Updated for Stonethorn (100032); Updated LibFoodDrinkBuff library; Updated LibCustomMenu; Adds check for scrying/digging games
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Uploader
Date
1.06
24kB
aethronx
05/14/20 10:01 AM
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 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: 16
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: 113
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: 16
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
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
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: 113
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
 
cag_dk's Avatar

Forum posts: 25
File comments: 122
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: 8
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: 53
File comments: 272
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
Unread 09/13/18, 04:02 PM  
aethronx
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by Baertram
Just as hints:
LibDialog for the poupup to ask
LibCustomMenu for the context menu entries, instead of base game functions. More lua error safe then using it the way it is currently done
Thanks for the tip, I'll check them out.
Report comment to moderator  
Reply With Quote
Unread 09/13/18, 01:52 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
Just as hints:
LibDialog for the poupup to ask
LibCustomMenu for the context menu entries, instead of base game functions. More lua error safe then using it the way it is currently done
Report comment to moderator  
Reply With Quote
Unread 09/12/18, 06:26 PM  
SilverWF
 
SilverWF's Avatar
AddOn Author - Click to view AddOns

Forum posts: 55
File comments: 349
Uploads: 2
Originally Posted by aethronx
Originally Posted by SilverWF
Just let it would be consumed while in combat only
Sometimes I'm just can do nothing important (i.e. building house) and I don't need food to be refreshed there

Also food can be used while in combat, dunno, why you posted it a limitation. And while swimming, riding whatever
Hi, it's a limitation of the game API. The function call used to use items (like food and drinks) is protected, which means it won't execute if the player is in combat. I'll try to make that a little clearer in the description. As far as eating while swimming, it didn't work when we tested it, but I'll take another look at it.

If you're doing something and you don't want the food to refresh for a while, just use /grubmasteroff or turn it off via the food's right click menu.
Oh, I see, thx.
Well, better add a keybind then to turn it on or off - it's pretty easy to do
Report comment to moderator  
Reply With Quote
Unread 09/12/18, 06:21 PM  
aethronx
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by SilverWF
Just let it would be consumed while in combat only
Sometimes I'm just can do nothing important (i.e. building house) and I don't need food to be refreshed there

Also food can be used while in combat, dunno, why you posted it a limitation. And while swimming, riding whatever
Hi, it's a limitation of the game API. The function call used to use items (like food and drinks) is protected, which means it won't execute if the player is in combat. I'll try to make that a little clearer in the description. As far as eating while swimming, it didn't work when we tested it, but I'll take another look at it.

If you're doing something and you don't want the food to refresh for a while, just use /grubmasteroff or turn it off via the food's right click menu.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: