[PQR] "PQR Debug Release menu

User Tag List

Results 1 to 8 of 8
  1. #1
    TheLuBu's Avatar Contributor
    Reputation
    83
    Join Date
    Jun 2012
    Posts
    164
    Thanks G/R
    1/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] "PQR Debug Release

    Hi there fellow profile creators

    I was a bit disappointed about the possibilities of debugging a pqr profile.

    So i searched a little bit and wrote a little bit and well, here it is

    First of all, you need a LUA IDE. Im using Zero Brane Studio, it has everything you need to debug a lua script, but every Lua IDE with an analyzer should do the job. The only requirement is the ability to analyze the source code.

    Secondly, you need this little piece of code i wrote.

    PQR Debug Ver. 1.0.0.2

    In the archive are two files, the source Code (AutoIt written) and the compiled exe.
    You can use the executable right away, or if you don't trust me, you can compile it yourself, its open source

    So what it does:

    First of all, you have to choose the Profile you want to debug.
    The programm gathers the lua data out of the rotation, abilities and the datafile and merges them to one "big" file.
    It also adds dummy functions for the WoW API functions and PQR Custom functions.
    Variables of PQInterface are also created.

    The WOW API functions are retrieved from
    docs/api categories - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
    World of Warcraft API - WoWWiki - Your guide to the World of Warcraft
    they should stay always up to date (atleast i hope they will ^^).

    After the programm is finished, it copies your merged file to your clipboard.

    This is where your IDE comes into play. Paste the code into a new lua file and start analyzing (In Zero Brane Studio SHIFT + F7)

    You get a lot of informations in the console now:
    If there is only one line, you have an error in your syntax (missed a bracket maybe, closed a function or loop to much )
    Search for "first use of unknown", these are the main errors i considered when debugging (missspelled variable names, remember, LUA is Case-Sensitive)!

    New in V.1.0.0.2:
    You can now copy back your console output to PQR Debug and it clears out all not needed messages (reduces errorcount from 295 to 16)
    It should make errorfinding alot easier!

    I tested with some of the profiles i have and found some errors, even in the really good ones,
    so maybe you can use it and make your profiles even better!

    I hope, someone can benefit from this

    Please feel free to request changes, make suggestions and give advice!

    ---FAQ--
    1. Everytime i start debugging, it just returns 1 line!
    Well there are 2 possibilities what went wrong. You have a syntax error in your script, or you started the debugger from your IDE and not the analyzer Start the analyzer and everything should go smooth
    2. Not all PQR Functions are added when running the executable
    If you do not need them, they won't be included in the created header to keep it as small as possible!
    3. I receive an error containing first use of unknown global variable 'UnitBuffID', i thought all PQR functions were included?
    Sure they are, but if you get this message, UnitBuffID is declared as a variable like this:
    Code:
    local variablename = UnitBuffID
    And i can't recognize this as a function If you use abbreviations, you have to clean the debugging messages for yourself


    --CHANGELOG--
    Code:
    1.0.0.2 - added possibility to reduce errormessages
    1.0.0.1 - Fixed bug with removed ability
    1.0.0.0 - Release
    Regards,
    TheLuBu
    Last edited by TheLuBu; 10-07-2013 at 09:00 AM.

    [PQR] "PQR Debug Release
  2. #2
    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)
    Debugging is one of the things I consider myself somewhat proficient at Lets see how this thing likes my profiles xD

    HAHAHAHAHA

    man this thing is just tearing my Data file to shreds.... it's caught about 5 typos already... (nothing that ever broke it, but I'm curious if people randomly got an error once whenever these things tried to fire )

    you have earned some rep from me my friend
    Last edited by bu_ba_911; 09-02-2013 at 12:53 PM.
    ^0^Team Nova's PQR NCC ^0^

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

  3. #3
    kuukuu's Avatar Contributor
    Reputation
    269
    Join Date
    Jul 2012
    Posts
    619
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nothing wrong with mine Though it does fail on the PQI variable your PQR Debug program creates for some reason.... Just says PQI is a nil value.
    Former PQR Developer

  4. #4
    TheLuBu's Avatar Contributor
    Reputation
    83
    Join Date
    Jun 2012
    Posts
    164
    Thanks G/R
    1/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] "PQR Debug Release

    Originally Posted by kuukuu View Post
    Nothing wrong with mine Though it does fail on the PQI variable your PQR Debug program creates for some reason.... Just says PQI is a nil value.
    Could you please post the header of the created file and your PQI creation ability? I would like to improve it


    @bubba thanks, glad you liked it


    Sent from my iPhone using Tapatalk

  5. #5
    kuukuu's Avatar Contributor
    Reputation
    269
    Join Date
    Jul 2012
    Posts
    619
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheLuBu View Post
    Could you please post the header of the created file and your PQI creation ability? I would like to improve it


    @bubba thanks, glad you liked it


    Sent from my iPhone using Tapatalk
    Code:
    -----------------PQI Variables-----------------
    PQI = nil
    PQI_KuukuuBrewmaster_AutoBuffs_enable = nil
    PQI_KuukuuWindwalker_AutoBuffs_enable = nil
    PQI_KuukuuBrewmaster_AreaofEffect_key = nil
    PQI_KuukuuWindwalker_AreaofEffect_key = nil
    PQI_KuukuuBrewmaster_Pause_key = nil
    PQI_KuukuuWindwalker_Pause_key = nil
    PQI_KuukuuBrewmaster_Detox_enable = nil
    PQI_KuukuuBrewmaster_AutoGuardDungeon_enable = nil
    PQI_KuukuuBrewmaster_AutoGuardDungeon_value = nil
    PQI_KuukuuBrewmaster_AutoGuard_enable = nil
    PQI_KuukuuBrewmaster_AutoGuard_value = nil
    PQI_KuukuuBrewmaster_Tier5_key = nil
    PQI_KuukuuWindwalker_Tier5_key = nil
    PQI_KuukuuBrewmaster_FortifyingBrew_key = nil
    PQI_KuukuuBrewmaster_Healthstone_enable = nil
    PQI_KuukuuBrewmaster_Healthstone_value = nil
    PQI_KuukuuBrewmaster_DizzyingHaze_key = nil
    PQI_KuukuuBrewmaster_InvokeXuen_key = nil
    PQI_KuukuuBrewmaster_AutoTarget_enable = nil
    -----------------PQR Custom Variables-----------------
    PQR_RotationStarted = nil
    PQR_InterruptStarted = nil
    PQR_SpellAvailableTime = nil
    PQR_ResetMovementTime = nil
    PQR_RotationName = nil
    -----------------WOW API FUNCTIONS-----------------
    function CameraOrSelectOrMoveStart()
    end
    function CameraOrSelectOrMoveStop()
    end
    function CastShapeshiftForm()
    end
    function CastSpellByName()
    end
    function ClearTarget()
    end
    function GetCurrentKeyBoardFocus()
    end
    function GetGlyphSocketInfo()
    end
    function GetInventoryItemID()
    end
    function GetInventorySlotInfo()
    end
    function GetItemCooldown()
    end
    function GetItemCount()
    end
    function GetNumGlyphSockets()
    end
    function GetNumGroupMembers()
    end
    function GetPowerRegen()
    end
    function GetShapeshiftForm()
    end
    function GetSpecialization()
    end
    function GetSpellCooldown()
    end
    function GetSpellInfo()
    end
    function GetTime()
    end
    function IsInGroup()
    end
    function IsInRaid()
    end
    function IsMounted()
    end
    function IsMouseButtonDown()
    end
    function IsSpellInRange()
    end
    function IsSpellKnown()
    end
    function PQR_DelayRotation()
    end
    function PQR_SpellAvailable()
    end
    function PQR_StopRotation()
    end
    function PQR_UnitDistance()
    end
    function PQR_WriteToChat()
    end
    function SpellCancelQueuedSpell()
    end
    function SpellIsTargeting()
    end
    function StopAttack()
    end
    function TargetNearestEnemy()
    end
    function UnitAffectingCombat()
    end
    function UnitBuff()
    end
    function UnitBuffID()
    end
    function UnitCastingInfo()
    end
    function UnitChannelInfo()
    end
    function UnitClass()
    end
    function UnitDebuff()
    end
    function UnitDebuffID()
    end
    function UnitExists()
    end
    function UnitGUID()
    end
    function UnitHealth()
    end
    function UnitHealthMax()
    end
    function UnitInVehicle()
    end
    function UnitIsDead()
    end
    function UnitLevel()
    end
    function UnitPower()
    end
    function UseItemByName()
    end
    Is that what you wanted?
    Former PQR Developer

  6. #6
    TheLuBu's Avatar Contributor
    Reputation
    83
    Join Date
    Jun 2012
    Posts
    164
    Thanks G/R
    1/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes

    Everything went fine these are dummy functions to eliminate errormessages when debugging
    it's not a bug, it's a feature

    If PQI is not declared, you will get an unknown function error because of PQI:IsHotkey or PQI:AddConfig. I have implemented all internal functions from PQR to exclude these errors


    Sent from my iPhone using Tapatalk
    Last edited by TheLuBu; 09-03-2013 at 12:58 AM.

  7. #7
    kuukuu's Avatar Contributor
    Reputation
    269
    Join Date
    Jul 2012
    Posts
    619
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheLuBu View Post
    Yes

    Everything went fine these are dummy functions to eliminate errormessages when debugging
    it's not a bug, it's a feature ��

    If PQI is not declared, you will get an unknown function error because of PQI:IsHotkey or PQI:AddConfig. I have implemented all internal functions from PQR to exclude these errors


    Sent from my iPhone using Tapatalk
    The issue though is it stops on first error so it gets to the first PQI function and stops debugging....unless I need to change something...
    EDIT: Nvm, I'm debugging instead of analyzing like a noob.
    Last edited by kuukuu; 09-02-2013 at 02:24 PM.
    Former PQR Developer

  8. #8
    TheLuBu's Avatar Contributor
    Reputation
    83
    Join Date
    Jun 2012
    Posts
    164
    Thanks G/R
    1/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I´m going to add a Video Guide later this week to avoid these misunderstandings

Similar Threads

  1. [PQR] Looking for PQR 5.4.8 release and profile pack.
    By f2p in forum World of Warcraft Bots and Programs
    Replies: 11
    Last Post: 05-08-2017, 09:36 PM
  2. [PQR] LF "Use engineering gloves" pqr string code
    By dealerx in forum WoW Bot Maps And Profiles
    Replies: 2
    Last Post: 08-15-2016, 03:05 PM
  3. [PQR] Need gladiator profile for PQR
    By Esdescon in forum World of Warcraft Bots and Programs
    Replies: 0
    Last Post: 12-14-2015, 12:52 PM
  4. [mac] 4.1.0 Build 13850 release w/debug info?
    By Tanaris4 in forum WoW Memory Editing
    Replies: 57
    Last Post: 05-21-2014, 06:09 AM
  5. [PQR]PetBattle Wintrading -- RELEASE --
    By phannes1987 in forum WoW Bot Maps And Profiles
    Replies: 15
    Last Post: 10-05-2013, 07:01 AM
All times are GMT -5. The time now is 03:24 AM. 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