[BETA] PQRotation - an automated ability priority queue. menu

Shout-Out

User Tag List

Page 490 of 731 FirstFirst ... 390440486487488489490491492493494540590 ... LastLast
Results 7,336 to 7,350 of 10955
  1. #7336
    diesall's Avatar Contributor
    Reputation
    197
    Join Date
    Jul 2011
    Posts
    208
    Thanks G/R
    1/46
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Valma View Post
    w00t the ****? O.o I have weird computer and even on it it doesn't lags :/
    i havnt got time to look over your code but here are a few performance techniques for lua:
    • avoid using ipairs and pairs as much as possible they are up to 250% slower then using an indexed table and traversing the table this way:
    Code:
    for i=1,#table do
        table[x] --do stuff with key here
    end
    • avoid defining a function as a parametre for another function it us up to 1200% slower then defining it as a local outside the calling function, ie.
    Bad
    Code:
    myfunction(arg1,arg2,function(a) return a*2 end)
       ...
     end
    Good
    Code:
    local function Multiply(a)
        return a*2
     end
    myfunction(arg1,arg2,Multiply)
        ...
    end
    • avoid using table.insert its up to 700% slower then using table[index] = value
    • if you are accessing any global variable or function more then once in the same ability i can't stress this enough LOCALIZE it, same goes for tabled references, for example if you are referencing: myGlobalTable.myValue more then once use local myValue = myGlobalTable.myValue
    • when using if statements always check the statement that is most likely short circuit the ability first
    Last edited by diesall; 03-12-2012 at 05:03 AM.

    [BETA] PQRotation - an automated ability priority queue.
  2. #7337
    imdasandman's Avatar Contributor
    Reputation
    206
    Join Date
    Feb 2011
    Posts
    965
    Thanks G/R
    9/4
    Trade Feedback
    7 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by imdasandman View Post
    @ valma getting this error in wow with your profile with the use of PQR 2.01 or w/e his newest version is... your profile is the only one to be throwing errors so far....

    Code:
    Message: [string "  ..."]:272: attempt to index a nil value
    Time: 03/12/12 02:55:28
    Count: 224
    Stack: [string "  ..."]:272: in function `PQ_Init'
    [string "  ..."]:293: in function `?'
    [string "..."]:542: in function `PQR_NextAbility'
    [string "..."]:355: in function `PQR_ExecuteRotation'
    [string "..."]:139: in function <[string "..."]:74>
    
    Locals: (*temporary) = <function> defined =[C]:-1
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to index a nil value"
    edit I just tried with the older PQR and it is tossing same error... I use elv ui I will try disableing it and see what happens for you.
    My Frost/Unholy DK WoL ranking edits(4.3) and crystals Hunter Beta profiles-
    https://imdasandmandeathknight.googl...com/svn/trunk/
    Originally Posted by Valma View Post
    Oh sure. (: Plz,lord,rewrite my profile without "re-inventing a wheel".I'm really interested how would you do so.I even ready to eat my pants if yours will perform better in raids than mine

  3. #7338
    Valma's Avatar Contributor
    Reputation
    152
    Join Date
    Nov 2011
    Posts
    209
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by firepong View Post
    Gotta admit though, your profile is one of the biggest ones I've used. My systems specs are not that bad and even when I use your profiles, I notice a good 10fps drop on boss fights. Guess all that code is really killer though Anyways, I just got to trying out your Last Profile update before the latest one and have to say. It works great. Will have to try out the new one later.

    EDIT* Damn, if only I had enough time to code a profile that has almost 3.5k lines of code in it
    This accounts to COMBAT_LOG_UNFILTERED event :/ Anyway more flexible and complicated any profile is - more CPU it needs. TBH I tested my fps when PQR is not loaded on ultraxion_LFR(ye-ye I'm bad boy standing here and slacking (((((((( ),then I tested fps with loaded PQR and loaded events and debug window(no rotation) and got 0-2 fps loss and finally then I started rotation and got further more 0-1 fps loss.So as for me I got maximum of -3 fps drop in 25 ppl raid(this is without BL ofc).
    MEDVED+VODKA+BALALAYKA

  4. #7339
    Valma's Avatar Contributor
    Reputation
    152
    Join Date
    Nov 2011
    Posts
    209
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by imdasandman View Post
    @ valma getting this error in wow with your profile with the use of PQR 2.01 or w/e his newest version is... your profile is the only one to be throwing errors so far....

    Code:
    Message: [string "  ..."]:272: attempt to index a nil value
    Time: 03/12/12 02:55:28
    Count: 224
    Stack: [string "  ..."]:272: in function `PQ_Init'
    [string "  ..."]:293: in function `?'
    [string "..."]:542: in function `PQR_NextAbility'
    [string "..."]:355: in function `PQR_ExecuteRotation'
    [string "..."]:139: in function <[string "..."]:74>
    
    Locals: (*temporary) = <function> defined =[C]:-1
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to index a nil value"
    Its my bad,changed things from work and haven't tested them. QUICK FIX
    MEDVED+VODKA+BALALAYKA

  5. #7340
    Valma's Avatar Contributor
    Reputation
    152
    Join Date
    Nov 2011
    Posts
    209
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by diesall View Post
    i havnt got time to look over your code but here are a few performance techniques for lua:
    • avoid using ipairs and pairs as much as possible they are up to 250% slower then using an indexed table and traversing the table this way:
    Code:
    for i=1,#table do
        table[x] --do stuff with key here
    end
    • avoid defining a function as a parametre for another function it us up to 1200% slower then defining it as a local outside the calling function, ie.
    Bad
    Code:
    myfunction(arg1,arg2,function(a) return a*2 end)
       ...
     end
    Good
    Code:
    local function Multiply(a)
        return a*2
     end
    myfunction(arg1,arg2,Multiply)
        ...
    end
    • avoid using table.insert its up to 700% slower then using table[index] = value
    • if you are accessing any global variable or function more then once in the same ability i can't stress this enough LOCALIZE it, same goes for tabled references, for example if you are referencing: myGlobalTable.myValue more then once use local myValue = myGlobalTable.myValue
    • when using if statements always check the statement that is most likely short circuit the ability first
    THX for feedback I'm not that really familiar with luacoding(coding on #,.NET etc on work) so this info is really helpfull +rep mate.

    Just quick question.
    Slow:
    Code:
    PQ_EventHandlerFrame:SetScript(&amp;quot;OnEvent&amp;quot;, function(self, event, ...) events[event](self, ...); end);
    Faster ??? :
    Code:
    function PQ_HandleEvents(self, event, ...)
    	events[event](self, ...)
    end
    
    PQ_EventHandlerFrame:SetScript(&amp;quot;OnEvent&amp;quot;, PQ_HandleEvents(self, event, ...));
    Last edited by Valma; 03-12-2012 at 05:23 AM.
    MEDVED+VODKA+BALALAYKA

  6. #7341
    momo1029's Avatar Sergeant
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    69
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Valma View Post
    Its my bad,changed things from work and haven't tested them. QUICK FIX
    thanks valma for the pro lock profile
    but somehow it repeatly summon felguard when out of combat

  7. #7342
    Valma's Avatar Contributor
    Reputation
    152
    Join Date
    Nov 2011
    Posts
    209
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by momo1029 View Post
    thanks valma for the pro lock profile
    but somehow it repeatly summon felguard when out of combat
    Yes,coz it is intended to do so :/ FG is better for most of the trash and on bosses profile will auto swap for FH,but I see your point coz hardcoded FG for trash is not good.Will probably add key modifier to change this.

    EDIT: OK,changed this.By default pet swap is off,you can change this by pressing right ctrl when you are in demo,there will be notify on screen when you do so.If you will target boss petswap will be set to true automatically,if you target not boss mob it will be set to false.

    DOWNLOAD

    EDIT2: Or you mean that profile is loopcasting FG when out of combat? :/ Actually I know about the bug with casting FG 2 times in a row,and will fix it a bit later.
    Last edited by Valma; 03-12-2012 at 05:52 AM.
    MEDVED+VODKA+BALALAYKA

  8. #7343
    happydado's Avatar Active Member
    Reputation
    20
    Join Date
    Feb 2011
    Posts
    158
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Valma
    Hi m8 your pve profile is realy pro.
    Do u think that can do some pvp profile for lock?

  9. #7344
    diesall's Avatar Contributor
    Reputation
    197
    Join Date
    Jul 2011
    Posts
    208
    Thanks G/R
    1/46
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Valma View Post
    THX for feedback I'm not that really familiar with luacoding(coding on #,.NET etc on work) so this info is really helpfull +rep mate.

    Just quick question.
    Slow:
    Code:
    PQ_EventHandlerFrame:SetScript(&quot;OnEvent&quot;, function(self, event, ...) events[event](self, ...); end);
    Faster ??? :
    Code:
    function PQ_HandleEvents(self, event, ...)
    	events[event](self, ...)
    end
    
    PQ_EventHandlerFrame:SetScript(&quot;OnEvent&quot;, PQ_HandleEvents(self, event, ...));
    yes quite a bit faster, localizing PQ_HandleEvents will result in even more performance.

  10. #7345
    bu_ba_911's Avatar Elite User
    Reputation
    552
    Join Date
    May 2006
    Posts
    1,638
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xelper View Post
    PQR (v2.0.1) Download Here

    -Changed default 'spell available time' to 125ms before a spell is off CD. Up from 50ms. It was 250ms in the original version. This can be changed in a profile by changing PQR_SpellAvailableTime.
    -Changed default refresh rate from 100ms to 50ms.
    -Added external Lua file loading. Any file in the "Data" directory named as follows: "PQR_*.lua" will be loaded into WoW when PQR starts. It should only be loaded once. If you reload UI, log off then in, etc.. it should re-inject on the next PQR start.


    ----

    Here is a quick sample of Time to Die for developers: TTD.zip
    Place the Lua file in the Data directory. Place the mage profile in the MAGE directory. Start the rotation and attack a dummy.
    lol freaking awesome Now I can just transfer all my most used functions that i use across all my profiles into a single file
    ^0^Team Nova's PQR NCC ^0^

    If you think someone did something good, take the time to show your appreciation!

  11. #7346
    imdasandman's Avatar Contributor
    Reputation
    206
    Join Date
    Feb 2011
    Posts
    965
    Thanks G/R
    9/4
    Trade Feedback
    7 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @ valma the error only cropped up on testing on test dummies and well your profile is not made to support that so everything is working fine for destro…

    Hagara on LFR with a 360 ilvl equipped lock..... 19k dps… that is very good I think imo
    My Frost/Unholy DK WoL ranking edits(4.3) and crystals Hunter Beta profiles-
    https://imdasandmandeathknight.googl...com/svn/trunk/
    Originally Posted by Valma View Post
    Oh sure. (: Plz,lord,rewrite my profile without "re-inventing a wheel".I'm really interested how would you do so.I even ready to eat my pants if yours will perform better in raids than mine

  12. #7347
    yourson's Avatar Member
    Reputation
    4
    Join Date
    Feb 2012
    Posts
    149
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haven't seen Boss around for some time... Started to worry.

  13. #7348
    Valma's Avatar Contributor
    Reputation
    152
    Join Date
    Nov 2011
    Posts
    209
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by diesall View Post
    yes quite a bit faster, localizing PQ_HandleEvents will result in even more performance.
    Are local variables works in some different way in lua then in other languages? :/

    So this is right way? :
    Code:
    if not PQ_EventHandlerLoaded then
    
    	local PQ_EventHandlerFrame, events = CreateFrame(&amp;quot;Frame&amp;quot;), {};
    
    	local function events:COMBAT_LOG_EVENT_UNFILTERED(...)
    				  
    	end
    
    	local function events:PLAYER_REGEN_DISABLED(...)
    		
    	end
    
    	local function events:PLAYER_REGEN_ENABLED(...)
    	
    	end
    
    	local function events:PLAYER_CONTROL_LOST(...)
    
    	end
    
    	local function events:PLAYER_CONTROL_GAINED(...)
    
    	end
    
    	local function events:MODIFIER_STATE_CHANGED(...)
    
    	end
    
    	local function events:UNIT_POWER(...)
    
    	end
    	
    	local function events:PLAYER_TARGET_CHANGED(...)
    
    	end
    
    	local function events:PLAYER_FOCUS_CHANGED(...)
    
    	end
    
    	local function events:UPDATE_MOUSEOVER_UNIT(...)
    		
    	end
    	
    	local function events:INSTANCE_ENCOUNTER_ENGAGE_UNIT(...)
    	
    	end
    	
    	local function events:UNIT_SPELLCAST_START(...)
    
    	end
    	
    	local function events:UNIT_SPELLCAST_SUCCEEDED(...)
    
    	end	
    	
    	local function events:RAID_ROSTER_UPDATE(...)
    
    	end
    	
    	local function events:ACTIVE_TALENT_GROUP_CHANGED(...)
    
    	end
    	
    	local function PQ_Init()
    	
    	end
    
    	--Notify frame
    	PQ_NotifyFrame = CreateFrame(&amp;apos;Frame&amp;apos;)
    	PQ_NotifyFrame:ClearAllPoints()
    	PQ_NotifyFrame:SetHeight(300)
    	PQ_NotifyFrame:SetWidth(300)
    	PQ_NotifyFrame:SetScript(&amp;apos;OnUpdate&amp;apos;, PQ_NotifyFrame_OnUpdate)
    	PQ_NotifyFrame:Hide()
    	PQ_NotifyFrame.text = PQ_NotifyFrame:CreateFontString(nil, &amp;apos;BACKGROUND&amp;apos;, &amp;apos;PVPInfoTextFont&amp;apos;)
    	PQ_NotifyFrame.text:SetAllPoints()
    	PQ_NotifyFrame:SetPoint(&amp;apos;CENTER&amp;apos;, 0, 200)
    	PQ_NotifyFrameTime = 0
    
    	local function PQ_HandleEvents(self, event, ...)
    	
    	end
    
    	PQ_EventHandlerFrame:SetScript(&amp;quot;OnEvent&amp;quot;, PQ_HandleEvents(self, event, ...));
    
    	for k, v in pairs(events) do
    		PQ_EventHandlerFrame:RegisterEvent(k); -- Register all events for which handlers have been defined
    	end
    
    	PQ_Init()
    	PQ_EventHandlerLoaded = true
    	if PQ_EventHandlerLoaded then
    		if PQ_Debug then
    			DebugFrame.messageFrame:AddMessage(&amp;apos;Sucess!!!&amp;apos;)
    		end
    	else
    		if PQ_Debug then
    			DebugFrame.messageFrame:AddMessage(&amp;apos;FAIL!!!&amp;apos;)
    		end
    	end	
    end
    MEDVED+VODKA+BALALAYKA

  14. #7349
    Valma's Avatar Contributor
    Reputation
    152
    Join Date
    Nov 2011
    Posts
    209
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by imdasandman View Post
    @ valma the error only cropped up on testing on test dummies and well your profile is not made to support that so everything is working fine for destro…

    Hagara on LFR with a 360 ilvl equipped lock..... 19k dps… that is very good I think imo
    Its not about dummy,its about your pet I got a check for pet's npcid in PQ_Init() and it is a mathematic function wich will cause errors if you don't have pet.So I just forgot to add check if pet exists LOL So as for now it must work even if you don't have pet.
    MEDVED+VODKA+BALALAYKA

  15. #7350
    bu_ba_911's Avatar Elite User
    Reputation
    552
    Join Date
    May 2006
    Posts
    1,638
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by yourson View Post
    Haven't seen Boss around for some time... Started to worry.
    last i heard i think he was doing some background work with somebody..... probably working on epic awesomeness that would blow ur socks off!!!!!

    or he quit either or
    ^0^Team Nova's PQR NCC ^0^

    If you think someone did something good, take the time to show your appreciation!

Similar Threads

  1. [Buying] Planetside 2 Priority Beta Key
    By isit123 in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 07-21-2012, 06:34 AM
  2. [Selling] PLANETSIDE 2 Priority/Early Access Beta Account
    By Kabraxiss in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 07-18-2012, 10:20 AM
  3. [Selling] Planetside 2 Priority/Early access Beta Keys
    By mrsluf in forum General MMO Buy Sell Trade
    Replies: 3
    Last Post: 07-17-2012, 04:45 AM
  4. [Selling] Planetside 2 Priority Access beta key codes
    By fatalefout in forum General MMO Buy Sell Trade
    Replies: 1
    Last Post: 06-26-2012, 04:08 PM
  5. [Bot] Automated dungeon queue / Justice Point leecher(Auto-it source)
    By s_e_a_n_66 in forum World of Warcraft Bots and Programs
    Replies: 36
    Last Post: 01-17-2011, 11:50 AM
All times are GMT -5. The time now is 07:28 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search