Download
(15 Kb)
Download
Updated: 11/14/20 08:40 AM
Pictures
File Info
Compatibility:
Markarth (6.2.5)
Stonethorn (6.1.5)
Greymoor (6.0.5)
Updated:11/14/20 08:40 AM
Created:11/11/18 03:15 PM
Monthly downloads:132
Total downloads:17,053
Favorites:25
MD5:
Auto Eat, Recharge, Repair  Popular! (More than 5000 hits)
Version: 1.1
by: Jodynn [More]
Auto

What does it do?

- Eats food automatically once you set it in the settings, this will NOT work in combat unfortunately due to it using a protected function ( which I can't do in combat with UseItem for some reason ). I looked high and low for it to no avail for an eat function, not giving up, I have about 3 more ideas to test.

- Repairs armor with kits automatically for you once they hit a certain threshold you set, this works in combat WHEN the durability updates which is the same for when ESO will calculate the combat difference.
Also repairs if you change armor that is below threshold

- Auto charges your weapons once they hit a certain threshold you set, this works when charged are changed ( i.e. you smacks something that has an enchant or your weapon abilities proc it ).
Also charges if you change weapons that is below threshold


What else, UI?

- Gives you a HUD to show your resources ( gems, repair kits, food you have selected )
- Gives you a HUD to show you your armor conditions
- Gives you a HUD to show you your charges
- Each have icons you can hover over to get a tooltip of the actual item
- You can move it
- Hides if not in hud/hudui scene, unless you are changing a setting that requires you to see them, then it will show you so you can make sure you get it just the way you want.
- You can resize the icons in the settings which will auto fit the font
- You can set the alpha of the background
- You can group them, or separate each thing ( resources, durability, and charges ), and you can remove any and all from view.


What about chat window logging?
- Off by default but there is a setting that will tell you when you are going to eat food, need to select a food, repair and charge.



Donation Link


https://www.paypal.com/pools/c/8a80aoQpa4
v1.1
Clean up linkdropdown and remove annoying ZOS message.

v1.0
version bump

v0.62
Remove static lib, now you must install it ( LibFoodDrinkBuff ).

v0.61
Fix tooltip error

v0.6
Add PvP food

v0.5.2
Fix LAM2 error

v0.5.1
Check if we have initialized before processing events.

v0.5
Fixed bug if you didn't have settings loaded when you load settings and didn't parse the bag again you couldn't choose the food in your bag until it parsed again... basically it should always show now in the dropdown.
Checks IF I can call the SecureProtected Function and if not it will tell you ZOS says no >_>, currently there is absolutely no way I can get around this.

v0.41
Actually make the ui better this time.

v0.4
Update food choices whenever your bag changes
If you no longer have your selected food choice give you a warning
Instead of ticking every 1s tick every 10s to avoid many, many messages
Actually send an error message not just true
Make the window look cleaner

v0.32
Turns out you can't eat while swimming

v0.31
Repair/charge on reincarnate instead of alive
Fix weird log error with food.

v0.3
- Don't show if not hud(ui) scene
- You can set alpha for hud
- Setting for minutes is minutes now, not seconds
- There is now a setting for logging, unlike before
- Changed log messages to not look like default tell
- Don't try repair/eat/charge if we aren't currently allowed to use the item ( example bank scene )
- Fix font being stupid

v0.2
Food fix -> If you are combat, stop telling me you are going to eat because you can't eat while in combat, well, the player can, but I can't call this protected function in combat.

Repair fix -> Repair shields, don't just show them
-> Update when you change your equipment
-> Hide unequipped nodes
-> Update item condition when you die, this is a frivalious call that will probably never need to happen, will probably be removed next version because it should happen with a durability update.

Clarification on combat repairing and a crash you may have seen in v0.1 or other add-ons with similar functionality.

The bug is related to trying to repair while durability is changing and the durability is being updated by multiple sources thus resulting in a crash because two informations are no longer synced I'm assuming it hits an assert of some kind somewhere, but anyways, the solution is to simply wait for the code to finish executing, which while isn't a solution for most threading issues, this should suffice for this simple case, especially since I'm giving it a time out, it can only call the function x amount of times per interval, so if it tries through whatever other method, it won't spam it, only one event will go through, which, will be the event you actually WANT to go through.

We only get durability updates whenever a unit's state changes, whether this is the player's or an enemy dying or reviving or in combat or out of combat, it seems to happen on any of these events.

Not only is the event not sent, but the item condition is not updated for the item until such an event occurs, however, this does mean it CAN repair in combat, you just need to make a unit change it's state, what all states you ask? I have no idea, I need to do more research, but for the time being this is what I know.

On the flip-side enchants seem to work flawlessly 8D.

Next update will consist of UI updates and pvp/pve food choices.
Optional Files (0)


Archived Files (14)
File Name
Version
Size
Uploader
Date
1.0
473kB
Jodynn
02/29/20 08:44 AM
0.62
460kB
Jodynn
11/22/19 05:30 PM
0.61
434kB
Jodynn
05/23/19 12:55 PM
0.6
422kB
Jodynn
05/18/19 02:20 PM
0.5.2
401kB
Jodynn
05/17/19 05:51 PM
0.5.1
375kB
Jodynn
02/25/19 09:40 AM
0.5.1
375kB
Jodynn
12/06/18 01:42 PM
0.5
363kB
Jodynn
12/05/18 05:14 PM
0.41
327kB
Jodynn
11/25/18 03:36 PM
0.4
305kB
Jodynn
11/25/18 03:26 PM
0.32
281kB
Jodynn
11/24/18 02:51 PM
0.31
258kB
Jodynn
11/24/18 11:09 AM
0.31
199kB
Jodynn
11/13/18 02:39 AM
0.1
176kB
Jodynn
11/11/18 03:15 PM


Post A Reply Comment Options
Unread 06/07/23, 06:15 AM  
BillyH420

Forum posts: 0
File comments: 1
Uploads: 0
Issue with Necrom

I don't know if you are aware, But Necrom broke the Auto addon.
It now consumes food/drink buff at every log in, zone change, port to wayshrine, etc. I went through an entire stack in less than an hour just going to traders. Please fix. Thank you.
Up till then, this has been the best thing ever. I don't have to remember to use the buff, it just does it.
Report comment to moderator  
Reply With Quote
Unread 04/06/23, 01:13 PM  
TitanEidolon

Forum posts: 0
File comments: 3
Uploads: 0
Love the addon... but...

Ok 15/10 addon, saves me SO much headache and I love it so much I hate to even complain a little, but is there a way to stop it from kicking me out of a tales of tribute match to eat?
Report comment to moderator  
Reply With Quote
Unread 02/15/23, 11:34 AM  
JamieAubrey

Forum posts: 0
File comments: 21
Uploads: 0
It might be me being a simpleton but can I set this up so it just uses War Tortes, I set it up for WT and PVP food but it only uses WT after my main food has ended
Report comment to moderator  
Reply With Quote
Unread 11/20/22, 06:39 PM  
Dingodan
 
Dingodan's Avatar

Forum posts: 50
File comments: 276
Uploads: 0
Update maybe?

is the addon abandoned or can we hope for an update?
Report comment to moderator  
Reply With Quote
Unread 09/16/22, 02:01 AM  
spotlightstar

Forum posts: 0
File comments: 1
Uploads: 0
Interaction with Tales of Tribute

I've noticed that I am getting kicked out of Tales of Tribute matches when my food-timer triggers. Is there a way to auto-suspend during a ToT game? Thanks so much!
Report comment to moderator  
Reply With Quote
Unread 02/09/22, 04:27 AM  
Heggeg

Forum posts: 0
File comments: 1
Uploads: 0
I always get this error with default config.

The character is level 35 and wears Lvl 6 equipment, which is why I only have the tiny repair material in my inventory.

Is there a fix for it? Unfortunately, I can't find any reason why the repair failed.

Report comment to moderator  
Reply With Quote
Unread 12/26/21, 12:50 PM  
jayman10000

Forum posts: 2
File comments: 160
Uploads: 0
Originally Posted by Jodynn
Originally Posted by jayman10000
Hello, I love this addon. But it seems it constantly like to set quickslot number 2 as default (so after successfully eating/drinking say for example food/drinks that are in slot 4, it will keep setting the quickslot selection to slot 2. Even if I set it to something else manually, then as soon as I enter combat it sets it back to slot 2 again). Is there a way to specify which default quickslot the addon should select when not eating/drinking? I'd like it to set quickslot number 1 as the default as I like to have my potions there.
I have never experienced this issue and I don't touch quickslots period so that's very odd
This isn't happening for me anymore it seems, idk what caused it or fixed it. Maybe it was another addon.
Report comment to moderator  
Reply With Quote
Unread 12/26/21, 12:48 PM  
jayman10000

Forum posts: 2
File comments: 160
Uploads: 0
Feature suggestion: a way to un-assign food/drink.

If I want to use food in pvp only, but have already set food in my pve slot, then I can't avoid the addon using the food outside of pvp also because there is no way to unassign.

Only way to do this is modifying the saved variables file (or deleting it) while the game is not running, then set everything anew from the beginning.
Last edited by jayman10000 : 12/26/21 at 12:49 PM.
Report comment to moderator  
Reply With Quote
Unread 02/07/21, 02:56 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1667
Uploads: 40
slotIndex of the inventories is zero-based.

I would recommend to use SHARED_INVENTORY:GetOrCreateBagCache(BAG_BACKPACK)
Report comment to moderator  
Reply With Quote
Unread 02/07/21, 02:06 AM  
zelenin
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 192
Uploads: 12
GetItemInfo(BAG_BACKPACK, nil) returns stack like GetItemInfo(BAG_BACKPACK, 0), so required to check in Auto:Stackify

Code:
function Auto:Stackify(arr, count, index)
    if NonContiguousCount(arr) == 0 then
        return nil, 0
    end

    if not index then index = 1 end
    local icon, stack, _, _, _, _, _, _ = GetItemInfo(BAG_BACKPACK, arr[index])

    for i=2, count do
        local i, s, _, _, _, _, _, _ = GetItemInfo(BAG_BACKPACK, arr[i])
        stack = s + stack
    end

    return icon, stack
end
Last edited by zelenin : 02/10/21 at 03:29 AM.
Report comment to moderator  
Reply With Quote
Unread 01/27/21, 11:12 AM  
Jodynn
 
Jodynn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 221
Uploads: 10
Originally Posted by jayman10000
Hello, I love this addon. But it seems it constantly like to set quickslot number 2 as default (so after successfully eating/drinking say for example food/drinks that are in slot 4, it will keep setting the quickslot selection to slot 2. Even if I set it to something else manually, then as soon as I enter combat it sets it back to slot 2 again). Is there a way to specify which default quickslot the addon should select when not eating/drinking? I'd like it to set quickslot number 1 as the default as I like to have my potions there.
I have never experienced this issue and I don't touch quickslots period so that's very odd
Report comment to moderator  
Reply With Quote
Unread 01/18/21, 03:15 PM  
jayman10000

Forum posts: 2
File comments: 160
Uploads: 0
Hello, I love this addon. But it seems it constantly like to set quickslot number 2 as default (so after successfully eating/drinking say for example food/drinks that are in slot 4, it will keep setting the quickslot selection to slot 2. Even if I set it to something else manually, then as soon as I enter combat it sets it back to slot 2 again). Is there a way to specify which default quickslot the addon should select when not eating/drinking? I'd like it to set quickslot number 1 as the default as I like to have my potions there.
Last edited by jayman10000 : 01/18/21 at 04:04 PM.
Report comment to moderator  
Reply With Quote
Unread 11/14/20, 08:39 AM  
Jodynn
 
Jodynn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 221
Uploads: 10
Re: Error with libAddonmenu

Originally Posted by Phinux
When i'm changing which food to use i get this error.
Code:
user:/AddOns/Auto/libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value
stack traceback:
user:/AddOns/Auto/libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: in function 'RefreshReloadUIButton'
user:/AddOns/Auto/libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RequestRefreshIfNeeded'
user:/AddOns/Auto/libs/LibAddonMenu-2.0/controls/linkdropdown.lua:63: in function 'UpdateValue'
user:/AddOns/Auto/libs/LibAddonMenu-2.0/controls/linkdropdown.lua:71: in function 'DropdownCallback'
EsoUI/Libraries/ZO_ComboBox/ZO_ComboBox_Base.lua:216: in function 'ZO_ComboBox_Base:ItemSelectedClickHelper'
EsoUI/Libraries/ZO_ComboBox/ZO_ComboBox.lua:26: in function 'OnSelect'
EsoUI/Libraries/ZO_ContextMenus/ZO_ContextMenus.lua:451: in function 'ZO_Menu_ClickItem'
ZO_MenuItem1_MouseUp:4: in function '(main chunk)'
try with the latest update v1.1
Report comment to moderator  
Reply With Quote
Unread 11/14/20, 08:18 AM  
Jodynn
 
Jodynn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 221
Uploads: 10
Re: Re: Re: Re: UI Error

Originally Posted by AlcuZan
Hi there, I'd like to report a bug. I have the "Auto Eat" feature disabled, but when my buff food runs out, the addon starts spamming the chat with this message: "ZOS says I can't CallSecureProtected, they say false". It disappears once I eat another buff food, but this is very annoying. Is this a known bug?
Removing.
Report comment to moderator  
Reply With Quote
Unread 07/06/20, 07:47 AM  
Phinux

Forum posts: 0
File comments: 3
Uploads: 0
Error with libAddonmenu

When i'm changing which food to use i get this error.
Code:
user:/AddOns/Auto/libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value
stack traceback:
user:/AddOns/Auto/libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: in function 'RefreshReloadUIButton'
user:/AddOns/Auto/libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RequestRefreshIfNeeded'
user:/AddOns/Auto/libs/LibAddonMenu-2.0/controls/linkdropdown.lua:63: in function 'UpdateValue'
user:/AddOns/Auto/libs/LibAddonMenu-2.0/controls/linkdropdown.lua:71: in function 'DropdownCallback'
EsoUI/Libraries/ZO_ComboBox/ZO_ComboBox_Base.lua:216: in function 'ZO_ComboBox_Base:ItemSelectedClickHelper'
EsoUI/Libraries/ZO_ComboBox/ZO_ComboBox.lua:26: in function 'OnSelect'
EsoUI/Libraries/ZO_ContextMenus/ZO_ContextMenus.lua:451: in function 'ZO_Menu_ClickItem'
ZO_MenuItem1_MouseUp:4: in function '(main chunk)'
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.