Quantcast
Download
(23 Kb)
Download
Updated: 04/04/18 09:21 PM
Pictures
File Info
Compatibility:
One Tamriel (2.6)
Updated:04/04/18 09:21 PM
Created:04/14/15 09:56 PM
Monthly downloads:45
Total downloads:4,062
Favorites:14
MD5:
OmNomNom
Version: 002-100022
by: Werewolf Finds Dragon [More]
Please read this.

I'm taking another break for a while. My anxiety isn't holding up well and I need to take some time for myself to recover. Frankly, modding can be a thankless job and some of the people one is forced to interact with can be... deeply unpleasant at best, to put it in the kindest way I can and not as I truly want to. For now, I feel like my mods don't need any further work done to them. They're fine as they are. See you later, folks.

I'll be back! I'm not gone for good, I just need to set this aside for now. That's all.

One thing I will say as a final note is that it'd be nice if one could turn off the comments system and only have a bug tracker in the vein of Nexus Mods. That'd be handy for people like myself who do deal with anxiety. And I deal with a lot of anxiety.

See you around, folks. My thanks to those who were kind.


Click here to check out my other addons.
Description
A simple addon that shows a non-intrusive warning when you've run out of your food or drink buff. See the screenshot on the right for details. You can control it with an easy to use menu or slash commands. It's a no-nonsense addon designed to do exactly what you want it to do, with a minimum of fuss.
Feature List
  • You'll get an alert when your food/drink buff runs out;
  • Both the food and drink alert texts are customisable;
  • The alert text comes with some nifty racial defaults;
  • It's modular, so you can delete the parts you don't want;
  • It's minimalist, it won't spam you and it won't lag you.
And here's the aforementioned slash commands:
  • /nom food - Tells you what your food alert text is set to;
  • /nom food my text - Sets your food alert text;
  • /nom drink - Tells you what your drink alert is set to;
  • /nom drink my text - Sets your drink alert text;
  • /nom toggle - Enables or disables the addon, respectively;
  • /nom reset - Resets all options to their default values.
Disclaimer
I haven't bothered to localise this. No one seems to be interested in that functionality, so it's not worth it. If I get enough requests for either, I'll consider it. I'm sharing this though because I genuinely get satisfaction out of the mere possibility of helping others, even when I don't know for sure. I have no interest in being popular, cults of popularity squick me out. As such, considering my disabilities, I'm unlikely to look at the comments very much. So this addon is delivered as-is, with a hearty dose of caveat emptor. Anything that it doesn't already do is 'out of scope.' You have other choices. I just wanted to make an simple, elegant solution for a real problem I was having. And now I'm sharing it in case it helps others.
Credits
My beau, who gives me the confidence to share these things.
:: 002-100022

o Updated for API code changes.
o Code cleanup.
o Tested and working with API v.100022.

:: 001-100017

o Lots of changes, bugfixes, and really too many things to even count.
o Removed the localisation. No one seemed to want it and it was causing more trouble than it was worth. I may put one back in there if there's enough demand for it.

[Data prior to this version has been cleared.]
Optional Files (0)


Post A Reply Comment Options
Unread 05/21/15, 01:49 PM  
mendisabal

Forum posts: 3
File comments: 104
Uploads: 0
how to turn ?

no messages are not issues
Report comment to moderator  
Reply With Quote
Unread 05/09/15, 11:09 PM  
Sinful Soul

Forum posts: 1
File comments: 183
Uploads: 0
Originally Posted by Werewolf Finds Dragon
Huh. I did an anchor yesterday and I used a drink. That worked, no errors. I'll try it again, today, when I get the chance. Were there any errors, thrown? Perhaps try resetting the text values to their defaults to see if that fixes it?

I dunno. Perhaps this is one of those bleedin' nebulous PvP things that are constantly a thorn in my side because I can't PvP (health issues).
I did some testing. The addon is catching all the green and blue drinks, but purple drinks however are getting no message for. Seems the problem is only with purple drinks, whether in Cyrodiil or anywhere else in the world.
Report comment to moderator  
Reply With Quote
Unread 05/08/15, 10:51 PM  
Werewolf Finds Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 105
Uploads: 15
Huh. I did an anchor yesterday and I used a drink. That worked, no errors. I'll try it again, today, when I get the chance. Were there any errors, thrown? Perhaps try resetting the text values to their defaults to see if that fixes it?

I dunno. Perhaps this is one of those bleedin' nebulous PvP things that are constantly a thorn in my side because I can't PvP (health issues).
Report comment to moderator  
Reply With Quote
Unread 05/05/15, 10:10 AM  
Sinful Soul

Forum posts: 1
File comments: 183
Uploads: 0
No alert for drinks

In PvE I use food so there's no problem there, but in PvP I use drinks (Rislav's Righteousness Red Kvass or Tears of Joy) and I've noticed that the add-on does not give out the alert for drinks only food consumables.

Considering there's a text alert we can set for drinks I'm guessing this is a bug?

Also, any chance of allowing a persistent text on the next version to alert us of when we need to refresh our food/drinks rather than just showing up for a second and then fading away?
Report comment to moderator  
Reply With Quote
Unread 04/15/15, 06:43 AM  
Sinful Soul

Forum posts: 1
File comments: 183
Uploads: 0
The zoning/loading alert would be nice indeed

Also, on the staying always showing, perhaps a slider in settings which goes from 0 to 60, 0 for always having the display on the screen and 1-60 to show the message up to 1 minute on the screen for those who don't always want the message up on the screen.

And thanks so much for this!
Report comment to moderator  
Reply With Quote
Unread 04/15/15, 06:15 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 853
File comments: 1122
Uploads: 33
Originally Posted by Baertram
You could use the event EVENT_ON_PLAYER_ACTIVATED, which will be triggered if you logged in/change a zone/do a reloadui to output the message as well, if no food is currently active.
I don't know if you can check by lua code, if the food is active though but you are able to check it already so there must be way (maybe by EVENT_INVENTORY_ITEM_USED and the iventoryItemType :-)).
Food/dring gives long term buff, so you can use function GetUnitBuffInfo.
Lua Code:
  1. for buffIndex = 1, GetNumBuffs("player") do
  2.     local name = GetUnitBuffInfo("player", buffIndex)
  3.     if OmNomNom.buffNames[zo_strlower(name)] then
  4.         d(name .. " is active.")
  5.         break
  6.     end
  7. end

Originally Posted by Baertram
The current message shown on screen looks like the announce message build in from ZOS. This one will automatically fade out as standard, so you won't be able to see the message "longer" than once.
But you could register an update timer event to check if food is activated and as long as it isn't the timer will show the message every x seconds again (or something like this).
CENTER_SCREEN_ANNOUNCE can do much more then you think.

CENTER_SCREEN_ANNOUNCE:AddMessage(eventId, category, soundId, message, combinedMessage, icon, iconBg, expiringCallback, barParams, lifespan, suppressIconFrame)

eventId - primary use of CENTER_SCREEN_ANNOUNCE is handling messages from various events and each event has different priority. In my addons I'm using 0 instead of actual eventId (eventId which is not defined), so my messages will have always the lowest priority.

category - The alert category to send the alert to.
CSA_EVENT_SMALL_TEXT, CSA_EVENT_LARGE_TEXT, CSA_EVENT_COMBINED_TEXT, CSA_EVENT_NO_TEXT

soundId - An optional sound id to play along with the message (sound defined in the SOUNDS table)

message - The message to alert (either a string or a function that returns a string that will be called every frame)

(Optional) combinedMessage - For combined text, the secondary text to display (either a string or a function that returns a string that will be called every frame)

(Optional) icon - An icon to be displayed with the announcement
NOTE: Combined text is the only thing that uses icons - and only on the small text label.

(Optional) iconBg - background for the icon above

(Optional) expiringCallback - A callback to be called when the announcement has begun fading out

(Optional) barParams - used for player progress bar

(Optional) lifespan of the message to be on the screen in milliseconds

(Optional) suppressIconFrame - if true, icon frame will be hidden

Originally Posted by Baertram
An alternative would be a standalone TopLevelWindow control with parent = GUI_ROOT which contains a label with the message and is shown :SetHidden(false) or hidden :SetHidden(true) depending on the food state.
__________________
@Garkin (retired from ESO)
My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you!, ... (full list)
Last edited by Garkin : 04/15/15 at 06:17 AM.
Report comment to moderator  
Reply With Quote
Unread 04/15/15, 06:01 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 853
File comments: 1122
Uploads: 33
Really good idea for an addon!

My comments for the first version:
  • It doesn't work for purple quality food & drinks - "Increase All Primary Stats", "All Primary Stat Recovery".
  • You have typo on the line 39 - there is capital "F" in "Food".
  • I don't really get when addon is active, but I think that you just forgot argument load in the first condition in function OmNomNom.handleEvent(load, reset).
    Warning: Spoiler
  • Do you plan support for german/french languages?
    Warning: Spoiler
  • You should include LibAddonMenu-2.0 license in your addon
__________________
@Garkin (retired from ESO)
My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you!, ... (full list)
Last edited by Garkin : 04/15/15 at 06:21 AM.
Report comment to moderator  
Reply With Quote
Unread 04/15/15, 01:15 AM  
Werewolf Finds Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 105
Uploads: 15
Let me see if I can break this down, here.

If I understand what you want, you're asking for an optional alert on loading/zoning? That's not too hard, I can do that. I just want to make sure that's actually what you want.

In regards to keeping an alert on the screen? I don't think I can do that, I don't actually know how. I'll look into it, but I'm using a system function (CENTER_SCREEN_ANNOUNCE.AddMessage) to display the text. You have to account for my ignorance, here. I'm new to ESO coding and rusty at coding in general.

The first is simple, if I can get a confirmation that that's what you're after.

The second... well, I'll look, but I make no promises.
Report comment to moderator  
Reply With Quote
Unread 04/14/15, 11:05 PM  
Sinful Soul

Forum posts: 1
File comments: 183
Uploads: 0
Thanks!

Nothing like doing a pledge run and running out of food halfway and only realizing it by the time you are done isn't ideal lol Been there, done that. Srendarr is great and all, but I have it set to only show during combat plus you can end up forgetting to refresh it when it runs out. This will definitely be a nice way to guarantee I always got the food up when needed.

Awesome idea for an add-on.

I would like to point out something however. At first I was like "wait, this isn't working" so I figured the message only showed up inside Cyrodiil or a dungeon, so I switched zones but still nothing. Then I thought of just using a food and canceling the effect to see if that would trigger the add-on to work and it did. First time users might be a bit thrown off by that. I know the idea if to alert on "refresh" hence indicating you must have had some food consumed at first but perhaps it can always notice whether or not you have the food up, regardless if the first time you use the add-on you happen not to have any food running?

Also, would it be possible to have an option somewhere to leave a "persistent text" on the screen? The text we set up for the alert to always be up until we refresh the food/drink? I'd love to have a permanent alert up, that way I'd be sure not to forget to use food on Cyrodiil/Dungeons/Trials. And a way to move the location of the text on the screen as well.
Last edited by Sinful Soul : 04/14/15 at 11:10 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: