Buffet is a food/water macro generator originally developed by tekkub and currently maintained by mZHg.
Buffet
What's new :
- Added support for Toxic Health Potion (Retail; enUS/frFR/deDE)
- Added list of available items in custom macro, sorted by value decreasing, see the GitHub wiki page for more info
Feel free to report any bug or request any feature here :)
Features:
- Dynamically scan your bag for usable food, drink, potion, rune, managem and bandage
- Provide 6 macros auto-magically updated (out of combat)
- Consumable and food/drink
- Food and Drink only
- Consumable only
- Allow configuration of modifiers used by macros
- Option to default macros to hearthstone if no item found
- Option to consider "well-fed" food items in macros
- Option to consider "toxic" potion items in macros (Retail)
- Support dark and demonic runes
- Support Classic Wow
- Custom macro using lua scripting language, see here for more info
- User-defined ignore list (per characters)
Currently supporting the following localizations:
For retail:
- English (enUS)
- Deutsch (deDE)
- Español (esES)
- Français (frFR)
- Italiano (itIT)
For Cataclysm:
- English (enUS)
- Deutsch (deDE)
- Español (esES)
- Français (frFR)
- Korean (koKR) provided by coderhyme
For classic:
- English (enUS)
- Deutsch (deDE)
- Español (esES)
- Français (frFR)
Partially supporting the following localizations:
For Retail, Cataclysm and Classic:
- Simplified Chinese (zhCN) provided by Witnesscm
If you want to contribute to localizations, pull requests are welcome!
In reply to Forge_User_94142338:
Hi,
I'm about to do a new release for retail then I'll do some test on classic and also do a proper classic release.
In the mean time, try to clear the cache with:
/buffet clear
then rescan with:
/buffet scan
I think there is an issue with the cache in rare conditions and I'm trying to fix it ;)
In reply to mZHg:
Still doesnt work. Doesnt recognize any of my food that is not bought from vendor.
Hey :). Buffet doesn't recognize my Salty Dog Crackers (https://www.wowhead.com/item=161053/salty-dog-crackers). German client if that matters. I tried other food which worked fine.
I also wonder if there's a way to disable the combat mode so it always just shows the food/water instead.
Edit: Okay, it seems that everything that is your inventory when addon runs the first time, it is marked with false/0. Water wasn't shown too. The food I bought for testing wasn't in any of my toons bags before.
In reply to Selthi:
Hello,
1. The Salty Dog Crackers should work with the next release.
2. I'll see ifI can add an option to disable combat mod.
3. You can try to clear the cache and rescan with:
/buffet clear
/buffet scan
Let me know if there are still food/drink not properly detected.
In reply to mZHg:
Hello, thanks for your reply. I cleared and scanned and it seems to work now. Had to do it again because after logging on another toon with water in its bags previous not seen, they were listed as 'false' again. So I bought the water on fresh cleared/scanned char and it's fine now. No idea what is going wrong otherwise.
In reply to Selthi:
Hello,
Hopefully, I fixed the cache issue today.
I was also able to add a "combat" option so you can now disable "in combat" mode with:
/buffet combat 0
The release with all those changes should go out tomorrow ;)
In reply to mZHg:
Good morning, thanks a lot for adding the crackers and the combat mode :).
Unfortunately, the cache issue seems to persist. I cleared the existing list to try this and it's not recognizing existing consumables on another toon, when the scanned character did not have it in its bags.
That's what I got for debug command with character B for https://www.wowhead.com/item=159867/rockskip-mineral-water after login with cleared list on character A before
[12:29:45] Buffet: - Is health: No
[12:29:45] Buffet: - Is mana: No
[12:29:45] Buffet: - Is well fed: No
[12:29:45] Buffet: - Is conjured: No
[12:29:45] Buffet: - Is percent: No
[12:29:45] Buffet: - Is potion: No
[12:29:45] Buffet: - Is bandage: No
[12:29:45] Buffet: - health value: 0
[12:29:45] Buffet: - mana value: 0
and after reload. A following relog showed the same:
[12:33:25] Buffet: Item 159867:
[12:33:25] Buffet: - Is health: No
[12:33:25] Buffet: - Is mana: Yes
[12:33:25] Buffet: - Is well fed: No
[12:33:25] Buffet: - Is conjured: No
[12:33:25] Buffet: - Is percent: No
[12:33:25] Buffet: - Is potion: No
[12:33:25] Buffet: - Is bandage: No
[12:33:25] Buffet: - health value: 0
[12:33:25] Buffet: - mana value: 83344
Did this twice with same result.
So I cleared the list on character B, logged in with A and checked https://www.wowhead.com/item=163784/seafoam-coconut-water:
[12:54:45] Buffet: - Is health: No
[12:54:45] Buffet: - Is mana: No
[12:54:45] Buffet: - Is well fed: No
[12:54:45] Buffet: - Is conjured: No
[12:54:45] Buffet: - Is percent: No
[12:54:45] Buffet: - Is potion: No
[12:54:45] Buffet: - Is bandage: No
[12:54:45] Buffet: - health value: 0
[12:54:45] Buffet: - mana value: 0
After reload:
[12:59:48] Buffet: Item 163784:
[12:59:48] Buffet: - Is health: No
[12:59:48] Buffet: - Is mana: Yes
[12:59:48] Buffet: - Is well fed: No
[12:59:48] Buffet: - Is conjured: No
[12:59:48] Buffet: - Is percent: No
[12:59:48] Buffet: - Is potion: No
[12:59:48] Buffet: - Is bandage: No
[12:59:48] Buffet: - health value: 0
[12:59:48] Buffet: - mana value: 83344
After a fresh scan, Buffett somehow gets the wrong information the first time it tries to read the tooltip? I have changed it manually in the saved file and am fine now, but still wondering :).
In reply to Selthi:
Hi,
Thanks for all the tests! It is very helpful.
Indeed sometime the tooltip is not "complete" on the first scan and I did put checks in place to mitigate this issue, however it seams to not be enough in your case :(
Rather than reloading, redo your test but try to hover the item to generate the tooltip then use debug again on it to see if the result changes.
Other thing I think of, it could be another addon interfering with the tooltip scanning.
Try to redo your test above without any other addons enable.
If you find out that an addon is responsible, give me its name, I'll try to make buffet compatible with it.
On my end, I'll try to improve the tooltip scanning process to catch bad data.
Thank you!
In reply to mZHg:
Tried a bit around and it seems that the issue occurs after a realm switch. When I log in, /clear, log into char with new water at the same realm it never seems to happen.
A following /buffet debug still returns zeros, but /buffet clear detects them properly even without mouseover before. Debug after that shows the right values.
Still happens with all other addons disabled.
In reply to Selthi:
Hi !
Thanks a lot, with your help I managed to reproduce the issue, by changing realm!
This is an issue with tooltip scanning, for some reason, the item description is not always available. I though this was happening only on the first scan, but apparently you can get the full tooltip with a "almost" empty line instead of the description...
And since I was checking the number of line found to "validate" the tooltip content, it was failing.
Note that the debug command is using the tooltip cache (if available).
So, the good:
- the issue should be fixed now
The bad:
- it may take a few second for all items to be properly detected (more or less 5 times the next scan delay)
- the scanning process is a little bit less efficient
New release soon!
In reply to mZHg:
Yes, it seems to work perfectly now.
The only thing I noticed is that the message after a successful scan is gone.
Thank you! :)
In reply to Selthi:
Hi,
Yes I removed the "Done" message since the scan was eventually not really done at this point due to additional queued scan waiting to happen :)
Thanks again for your help, it is pretty hard to find these kind of corner case bugs if nobody report them ;)
The macros were turning bright green when they were updated. This seems to be corrected if Buffet.lua line 123 is changed to:
EditMacro(macroid, name, nil, substring:gsub("%%MACRO%%", body), 1)
Not sure if this breaks anything else.
In reply to WhytteDragun:
Hi,
Are you using the last version ?
This line should down to around line 1018 and should be this:
EditMacro(macroid, name, "INV_Misc_QuestionMark", substring:gsub("%%MACRO%%", body), 1)
Unfortunately I didn't had much time for wow these past few days, I'll try to do a proper release (not a beta) next week.
In reply to mZHg:
Yeah, I wasn't even close to using the latest. Somehow my Twitch client was only installing version 4.1.0.34 Release. Manually downloaded the latest one and everything seems to be working correctly.
I am OH so glad someone picked this up.....I was sorely saddened when new food/drink items came out and this didn't get updated with the new IDs and such
In reply to KrysSeriken:
Hi,
I still have a few things to fix, especially for the classic version, but it is working pretty well already!
If you come across an item not properly detected, don't hesitate to report it to me!