thanks for your answers, I started learning lua recently and I am still trying to figure out best practices before writing real addons.
For function hooking I clearly understand the use case and I had no doubt about its use for this specific case, it was more for my own code that I was wondering but it is true that you do not need variable arguments in a lot of places anyway.
I don't understand how the generated op code could be the same considering they do not take the same execution time, btw how can you se the generated op code ? is it the interpreter that can show you ?
- Registered User
Member for 14 years, 5 months, and 12 days
Last active Fri, Oct, 4 2013 14:29:42
- 0 Followers
- 74 Total Posts
- 0 Thanks
Dec 25, 2008Hi,Posted in: Lua Code Discussion
This is not really an ace question but I think it is a good place to ask :)
I read somewhere in wowiki (an article about Hook functions) that since WoW 2.0 and the inclusion of lua 5.1.1 the "..." construct could be used without any huge memory impact but it does not say much about performance so I made my own test.
Here is the script I ran in a console on Mac OS X with lua 5.1.3 :
function one(...) end function two(a, b, c, d) end local i local before = os.clock() for i=0,1000000 do one(1, 2, 3, 4) end local try1 = os.clock() - before print("time: " .. try1) before = os.clock() for i=0,1000000 do two(1, 2, 3, 4) end local try2 = os.clock() - before print("time: " .. try2)The output is:
Are that results correct ?
If they are I am wondering why this construct is even used in WoW where performance should be the first priority but maybe I am missing something.
Thanks for any light on this.
Aug 28, 2008And what make you say blizzard will never implement something like this ?Posted in: General Chat
Do you know how many people really use the current macro system introduced with the 2.0 release ?
Including all the people I played/play often with and the people from the guilds I got (4) in I am not even sure 15 of them are using macros, and in the macro user group you also have people who just copied one from someone else (this is fine don't get me wrong) and are not even able to modify it without asking the one who wrote it.
Just do a quick test and ask in your guild how many people know the existence of:
/cast [target=pettarget] Some spell
or even worse:
/cast [help][target=targettarget,help] Healing Spell
/cast [button:2,target=player][exists,help][target=mouseover] Rejuvenation(Rank 13)
Profile handling could possibly be used by more people than complex macros if the interface is simple enough but the complex macro system does exist and it is a great thing.
For the same reason I do not use Ace addons only because they are Ace addons I will not switch to a worse addon who use profile if I have a better one, and current profiles have drawbacks:
- every addon author implements it differently, even in Ace addons some require you to reload while others allow you to load immediatly, some also partly load the data and need a reload to complete it.
- some addons have no way to switch profile from command line
Aug 27, 2008Posted in: General ChatQuote from HunterZ »
It sounds like what you want to be able to do is to rip all your addons' settings out from under them and replace them with an entirely different set of settings on the fly. This functionality is not currently available and would have to be provided by Blizzard, who would probably say no because it would be too complicated both for the WoW developers and the end users. Also, I don't really see how it'd be any more practical than logging out and swapping your WTF folder with a different WTF folder that you have set up for a resto UI other than that you wouldn't have to exit the game. Your addons would still go out of sync between the two setups unless the feature were fancy enough to have per-addon control.
On my feral Druid I took a more practical approach and set up as much of my healing stuff as I could on HealBot/Clique/Decursive and paged action bars (action bars show the abilities appropriate to my currently active Druid form). This puts all of my healing stuff out of the way when I want to concentrate on tanking (I could even turn off HealBot and Decursive if I wanted, but then why play a hybrid class?).
First I will add a real example in this post (this is an example so there is no use discussing these choices):
- while healing I want to have my Grid clearly visible in the middle of the screen at the bottom and big enough
- while tanking I want to be able to concentrate on tanking with only the required data in the middle of the screen and so, Grid is in the bottom right corner and smaller than when healing
(on top of that I also want to display different debuffs/buffs or display the same but in a different way, say a debuffs that would be shown as a red dot in a corner in one would be a big icon at the center in the other)
And now for the reply:
To have such feature does not means that all users have to use it, we could have a "default" profile for each character so users with basic need do not have to care about it or even know its existence.
I know only Blizzard can make it happen and that is exactly the goal of all this post, maybe my first post was not clear enough but in fact i would not even have posted this here if i could have an access to the "Woltk > UI Scripting forum"... But since i only have an european account I cannot. The european blizzard team did not even bother to create an equivalent forum for the europe, I think it means a lot by itself about the "power" given to local team to report features requests (At least that is exactly how I get it and it seems not so far from the truth).
So my real goal is to find someone who also feels the need for such feature BUT has an US beta account and with it an access to the real beta forum (understnad: the us UI scripting forum) to make a proper feature request there.
From what you said I am pretty sure that if we had a real profile system you may choose to design your ui differently. Am I completly wrong if I say that you decided to use different addon for healing because by doing this you just have to disable them if you do not want them when tanking ?
(Playing an hybrid class does not means for me I will dps AND tank AND heal every time I play. I do not see any reason to keep my whole interface evrytime, I never cast any heal while MTing a boss and not more when offtanking)
PS: is it so hard to understand I do not want to exit wow client each time I switch character or spec ? beside the fact that my wow client takes far too much time to exit as said before.
Aug 25, 2008Posted in: General ChatQuote from Marsti »
And how does this disable the option (in your opinion) to rename the folders?
Do you just speak about theory or did you actually tried to do it ?
Most addons using a profile system store their config in your account savedvariables so if you have more than 1 character it means you have to exit wow and swap folders each time you change character (folder A and B mays have a different configuration state for all your characters), really handy... For me it is like: "why do you want to build a door to your house ? You can enter by the window !".
I just wish to improve the basic system (inexistant) when it comes to profile management, what i am really looking for at the moment is someone with an access to the us beta forum who feel like posting this request there.
Since the last big patch my wow client takes some minutes to exit for an unknown reason (even after a complete reinstall) so exiting to swap folders is even less an acceptable solution to my "problem".
Aug 24, 2008install two wow clients ? are you REALLY serious ?Posted in: General Chat
That is not really the kind of discutions I wanted to have here, not at all...
and savedvariables are not saved server side but you have one attacched to your current character and one to the account you are playing on (not server like I wrote in my first post).
Aug 24, 2008I currently have access to the europe beta and so cannot post on the US forums, since I am fairly convinced that the european forums for wolk suggestions are nearly useless I was wondering if someone with a us beta access can post there if I am not the only one to wish for this.Posted in: General Chat
Here is my original post (I am a druid):
If you use a lot of addons and play an hybrid class like me I am sure you already had that need: being able to maintain at least two completly different ui. It may be a "heal ui" and a "tanking ui" or it may as well be apllied to other classes as a "raid ui" and "pvp ui" or anything like that.
I play a MT / OT role in my guild but i also have a complete healing gear (now that the bosses drop 3 tokens each I think we all have them for all the spec we want to play), while I am mainly focused on the dps/tanking aspect of my class I also like to play heals for example when no heal is available, at least I used to do it before.
My problem is that now my ui is completly feral oriented and I cannot and does not want to have an hybrid ui, what the Ace addons are using is a really good start in this direction but the problems are:
- not all addons are using Ace libraries (this is not really a problem by itself) and so they may not have support for profiles at all or different implementation (even not all Ace addons uses profiles :x)
- there is no real way that to easily switch between different "ui profile" (switch all the addons to a new profile)
- another problem is the fact that we have both character specific savedvariables and server savedvariables so you cannot really copy all your configuration somewhere and switch folders before launching the games as it quickly becomes a nightmare to maintain
For me the only solution for that specific problem is to have a way to handle different profiles in the game API so each addon does not have to create its own implementation and the ability to switch between profiles, even if we have to logout to select another profile I do not consider this a problem at all.
This means that all the addons will be able to use the same API, the data will be stored at the same place (where it is stored is not a big deal, I was thinking of multiple savedvariables but it may as well be in one).
PS: I really wish to have feedbacks on this from other users whether you feel the need for this feature or not
Apr 30, 2008I really like this addon but could it be possible to add an ignore list on tracked items ?Posted in: Raid AddOns
I am mainly speaking about Badge of Justice, they are an useless pollution for me in the loot history.
Apr 21, 2008I just tried RBM last night and i really like it, BigWigs is fine but the graphic aspect is not really great and the option given by RBM are far more powerfull.Posted in: Raid AddOns
That said I missed something but maybe I just didn't see them in the options: choose where the text info from RBM will be displayed (chat, default raid warning, parrot, ...), For now it seems it is the only real thing I miss.
I also wondered something: is there a way to add custom triggers ? for example display an alert when you have more than X stacks of a given debuff, I think having something generic like this could be usefull for some fights (maybe not in the core).
It is great to see a real concurrent to BigWigs, it can only bring good things to end users :)
Dec 23, 2007Posted in: General AddOnsQuote from Arkayenro »
odd, it's working for me. i'm getting debug info with pt sets and the rules are working fine with them as well - although i did have to change some rules as the set names had changed from 3.0 to 3.1
do you have pt3.1 installed as a standalone mod? if so can you disable it and then login, see if that helps or not.
In fact it works well, it was just that I use ACP with two profile: raid and solo, and pt3.1 was not fully loaded xD
Dec 20, 2007with the latest version on wowace (2.24c) periodic table does not seems to be used, when in edit mode the debug menu show no entry for any item I test it on and my defined rules do not filter the items as they did just before the update.Posted in: General AddOns
- To post a comment, please login or register a new account.