CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Check if SavedVariable exist
    Quote from Aporakh
    Hello,
    I have a problem with checking if a SavedVariable exist or not :

    if ( not AddonDB ) then AddonDB = {nil} Debug("test exist 0") end
    if ( not AddonDB.Horizontal ) then AddonDB.Horizontal = true Debug("test exist 1") end


    So every time i launch the addon it enter in the 'if boucle' like if AddonDB and AddonDB.Horizontal doesn't exists but when i check in WTF/.../SavedVariable/Addon.lua they already exists.

    Edit : I have declared AddonDB in the toc file :
    ## SavedVariables: AddonDB
    When are you doing that? Show us all of your code.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Need updater for Diablo3orbs light
    We can't just go updating other people's addons without permission.

    Edit: Besides, even if we could, we don't have access to upload changes.
    Posted in: Addon Ideas
  • 0

    posted a message on plz Check my code. Lua not loading
    Quote from Farmbuyer
    If you're not seeing any in-game errors, it means the loader never got that far; take a look in <path_to_WoW>/Logs/FrameXML.log for what's going wrong then.


    Opening the XML file in Firefox is superior because it will actually tell you why as opposed to a generic "unable to load" error message.
    Posted in: Need Help?
  • 0

    posted a message on plz Check my code. Lua not loading
    Line 19 of the XML:
    [B]				<AbsValue val="32/>[/B]
    Posted in: Need Help?
  • 0

    posted a message on Hide Target/Focus Buffs+Debuffs
    To add to that: if you must use an existing frame's script handler, use :HookScript() instead of :SetScript(). Even if you know Blizzard isn't using it. That is unless you are completely replacing the whole script handler with your own and are taking any Blizzard activity into account. For example: the FriendsFrame populates the friend list OnShow and you want to change that so it shows a differently styled friends list instead.
    Posted in: Lua Code Discussion
  • 0

    posted a message on MoonScript
    Quote from dusknoir_
    As for the extra files, I'd probably just check them into version control, but not include them in zip file releases. They're only of interest to future developers, because, like I said above, it's probably better to just work on the .moon files and forget the .lua files exist. That raises the problem that you severely limit who can work on your code, though.


    I would put them in TortoiseSVN's ignore list because those files might cause the addon to get denied by the packager.

    Quote from dusknoir_
    Why not just forget about Lua and do all of the work in MoonScript?


    Most people here prefer to write the code themselves, so having a third-party app write code for them is unacceptable.
    Posted in: Lua Code Discussion
  • 0

    posted a message on MoonScript
    @dusknoir_: Is this your thread? http://us.battle.net/wow/en/forum/topic/2973021636

    Anyway, MoonScript also adds some superfluous files. I don't like that.
    Posted in: Lua Code Discussion
  • 0

    posted a message on loadstring for in "customizable messages"
    FYI: loadstring() returns a function, so your code will return a function that creates and returns a function.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Hide Target/Focus Buffs+Debuffs
    Quote from rashkaldo
    i have a last qusetion. why does this small code have such a high CPU Cycle?


    Because it works now and your code is running every time the screen refreshes. Meaning that if you're getting 50 FPS, your code is running 50 times per second.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Hide Target/Focus Buffs+Debuffs
    Quote from rashkaldo
    what exactly i need to do?


    for i=1, MAX_FOCUS_DEBUFFS [B]or 8[/B] do
    Posted in: Lua Code Discussion
  • 0

    posted a message on Waiting on approval for 3 days.
    Quote from MagmyGeraith
    This isn't my project. I brought this up to the UI & Macro forum and asked for someone who knew what they were doing to fix it. Choonster did and has it working with 4.2 and decided to upload it here. Again, he said it should only take a day to approve, and now it's going on 5.

    I'm just the middle man that wants to use Choonster's hard work for my in-game enjoyment.


    We know it's not yours. That's why Akkorian suggested that you report the original addon or contact its author. And, as I said, Curse doesn't like fan updates. If you're not the original author or don't have explicit permission, the addon will get denied. Feel free to relay that information to Choonster or have him post here instead of you.
    Posted in: Need Help?
  • 0

    posted a message on Hide Target/Focus Buffs+Debuffs
    Also, unless your addon is really named "xxx", is it really necessary to obscure it?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Mark bag items
    Just be aware that EnumerateFrames() will cycle through every single frame that ever was made, everything from UI panels to font strings. I would recommend saving the frame to a local variable once you find it so you're not constantly cycling through the frames and exit the loop.

    E.g.
    local frameIWant
    local function FindFrame()
        if frameIWant then
            return
        end
        local f = EnumerateFrames()
        while f do
            if f is the frame I want then
                frameIWant = f
                break
            end
        end
        f = EnumerateFrames(f)
    end


    Edit: If you're looking for multiple frames, then, don't break from the loop, but still save the frames for reuse.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Hide Target/Focus Buffs+Debuffs
    The error message line number doesn't match the code. Either post the full code or tell us which line is line 127.

    That said, make sure the variable you are using in the for loop on line 127 is not nil.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Waiting on approval for 3 days.
    Curse doesn't like fan updates.

    That said, use the report link in the lower right corner. It's a triangle with a !" in it.
    Posted in: Need Help?
  • To post a comment, please or register a new account.