It must be a function of your health condition and amount the food restores. XAD looks for the best food and best percent food for your current health condition. It then compares the 2 and uses the one that restores the most of the 2. So if you have 1000 health and are down 800 thus needing to heal 800 hp. XAD will find the best normal food ie 875 health restore and say a 75% percent food (750 health) It will then use the normal food because it's higher than the percent food.
I don't use the food much since I'm playing a warlock mostly but I use the water a lot and have no problems using percent based food that restores water. Food and water both use very similar code.
will checkout the new version, just noticed the tea fix, cheers.
only consumables I have in my bags recently are the halloween foodstuffs (lollipop, candy bar) and some leftovers from the last festival (harvest fruit, harvest fish, harvest boar). the items display ok in the xad bar, but when clicked, I consume nothing. if I have other foods, like conjured sweet rolls, cured hams, whatever, I will only ever eat the regular items regardless of need.
That is indeed very odd. I've had no problems with food/water for quite a while now. I've had both recent versions of the special food and it's all worked fine.
Could it possibly be you arn't hurt enough? There is a check to see if the total healing amount of the food vs your current need. If the need is less thean 1/2 the total healing amount it won't use the food item. So the candy which I think restores a total of 60% health if you arn't down at least 30% it won't consume the candy. This check also helps to avoid useing items that are too high a level for you since they are more likly to be in the over double the need catagory and thus ignored.
On the tea I found the bug and will checkin a fix for it soon.
As for the Halloween stuff I've not had any problems with it. Remember what is shown on the bar is the "best" item you have but not necessarily the one that will be consumed when you click the button. That will depend on your current health/mana.
Actualy when you use a mana stone I start a 121 sec timer and refresh the button so it should find your next lower mana stone and display it. I had a simlare problem when the timer was set to 120 I guess the 1 sec additional delay isn't enough. I'll up to to 123 and see if that helps. Basicly what is happening is XAD is doing a refresh of the button and still sees your mana stones as being on cooldown and doesn't display them. Hopefuly a slight additional delay will fix the problem.
I just tried this again and you are right the lower level item isn't poping in when the stone timer expires. I have to take a closer look at this one.
Added Arathi Basin food to PT and changed XAD food/water to use Arathi Basin food for both food and water since it ups both health and mana when in Arathi Basin. Conjured food/water is still used before Arathi Basin food.
z0rn what is the cooldown on the manastones. Isn't it 2 min like health stones? The button "should" change back to the mana stone, assuming you have one in inventory, once the cooldown expires. It's working for my health stones.
On the buttons yes more options are a bit off. I really don't see much point in totaly redoing the actual button code if in a month I'll have to do it again anyway to use the secure framework to you can use potions in combat.
Thanks much Gamefaq. If anyone else wants to chip in a translation please feel free to do so. If you don't have SVN access just post it here and I or someone other helpful sole will get it checked in for ya.
z0rn, I'll check into the mana stones. Perhaps a spell is missing from SB 2.1
Greywind, Line 39 is where I get the instance of babble spell 2.1. Are you using embeded libs or the standalone libs? Babble spell burries the 2.1 libs down one level in the zip file so if you are using the standalone libs you'll need to move BabbleLib-2.1 up one level from inside BabbleLib. It already has the .toc and everything it's just one level too low for wow to find it.
z0rn, just checked BS and it has the spells so that's not it. Can you walk though step by step what you are doing to repeat this and make sure to check your bags for any manastones as you go. I don't see what exacly is going wrong yet.
I also play a warlock and it's been working for me but I'll test it again.
Ok tested again and aparantly a 120sec delay is too close to the truth and the cooldown hasn't expired yet so I upped it to 121 and that appears to have solved the problem. Will place the fix in SVN in a min.
Jinglehopper, Sorry but no XAD simply takes the first item of the most apporopriat healing amount to use. So if you have 5 items that restor 800 health, 2 that restore 1200 and you are down 700 hp XAD will use the firt item in your bags that restores 800 health. If you want XAD to eat the non stat items first them move then to be in front of the stat buff items.
does the periodic table ever get updated? last time i checked i couldn't get it to work with food from av
Yes I've made a few updates to PT myself adding some newer items etc. I don't go into AV much but AFAIK it should work fine with AV food. Perhaps you could give me an example AV food item you'f tried that didn't work and I'll see whats up with it.
Sykotic, To be honest my button frame code is a bit messy. What I mean is the coding is good but I really don't fully understand how all the fame elements work very well thus the look of the buttons isn't the nicest in the world. I'm also a bit hesident to spend a lot of time figuring it out due to 2.0 coming and thinging looking like they are going to change prettly drasticly. So I wait till then and try to get a better handle on it them.
Jexx, I have a feeling we are going to see alot more popup menus with 2.0.