• 0

    posted a message on Reward points & Reputation
    I dont exactly know how the points works, but i seem to receive 30% less points since the fix happened. (As well as not getting refunded the "lost" points)

    While i know i cant exactly ask to fix it, could i get an explanation as to why the sudden drop?
    Posted in: General Chat
  • 0

    posted a message on Static Tables at load times
    Yeah, i suppose i could split the table, i'm still getting used to the fact of being able to use conditional in the main chunk, it feel like coming out of nowhere :p
    I believe i could go into my idea of a compact table since sometimes there are lots and lots of repetition for talents that affects a vast amount of spells/abiities, it'll even create a LoD effect since the table will stay compact unless i call it to be otherwise...

    Also i'm having a hard time understanding sylvannar reply... Does it basically end up as "Don't bother with it if its only going to save a few seconds and a low percentage of the load time". ?
    Or more like "Make a test to see how much time your addon takes to load, then try again with your changes, see if its really better", if its this, what should i do to test and find this out?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Static Tables at load times
    Right now in my code, i have a table to define the crit gains from talents and other sources in a static table for lookup.

    It looks like: (Hugely inspired by how StatLogic handles similar lookup information)
    CritTable = {
        ...
        ["MAGE"] = {
            ["Arcane Blast"] = {
                -- Incineration (2,2): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 2,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
                -- Mage Tier 9 4-Set Bonus: Increases Crit by 5%
                {
                    ["setbonus"] = 4,
                    ["gear"] = GearSets["MAGE"]["Tier9"][faction],
                    ["rank"] = 5,
                }, 
            },
            ["Arcane Explosion"] = {
                -- World in Flames (2,6): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 6,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Arcane Missiles"] = {
                -- Mage Tier 9 4-Set Bonus: Increases Crit by 5%
                {
                    ["setbonus"] = 4,
                    ["gear"] = GearSets["MAGE"]["Tier9"][faction],
                    ["rank"] = 5,
                }, 
            },
            ["Blast Wave"] = {
                -- World in Flames (2,6): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 6,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Blizzard"] = {
                -- World in Flames (2,6): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 6,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Cone of Cold"] = {
                -- Incineration (2,2): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 2,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Dragon's Breath"] = {
                -- Incineration (2,2): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 2,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Fireball"] = {
                -- Improved Scorch (2,11): Increases Crit by 1/2/3%
                {
                    ["tab"] = 2,
                    ["num"] = 11,
                    ["rank"] = {
                        1, 2, 3,
                    },
                },
                -- Mage Tier 9 4-Set Bonus: Increases Crit by 5%
                {
                    ["setbonus"] = 4,
                    ["gear"] = GearSets["MAGE"]["Tier9"][faction],
                    ["rank"] = 5,
                }, 
                -- Glyph of Fireball: Increases Crit by 5%
                {
                    ["glyph"] = 56368,
                    ["rank"] = 5,
                },
            },
            ["Frostbolt"] = {
                -- Mage Tier 9 4-Set Bonus: Increases Crit by 5%
                {
                    ["setbonus"] = 4,
                    ["gear"] = GearSets["MAGE"]["Tier9"][faction],
                    ["rank"] = 5,
                },
            },
            ["Frostfire Bolt"] = {
                -- Improved Scorch (2,11): Increases Crit by 1/2/3%
                {
                    ["tab"] = 2,
                    ["num"] = 11,
                    ["rank"] = {
                        1, 2, 3,
                    },
                },
                -- Mage Tier 9 4-Set Bonus: Increases Crit by 5%
                {
                    ["setbonus"] = 4,
                    ["gear"] = GearSets["MAGE"]["Tier9"][faction],
                    ["rank"] = 5,
                },
                -- Glyph of Frostfire: Increases Crit by 2%
                {
                    ["glyph"] = 61205,
                    ["rank"] = 2,
                },
            },
            ["Flamestrike"] = {
                -- World in Flames (2,6): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 6,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Living Bomb"] = {
                -- World in Flames (2,6): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 6,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Pyroblast"] = {
                -- World in Flames (2,6): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 6,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
            },
            ["Scorch"] = {
                -- Incineration (2,2): Increases Crit by 2/4/6%
                {
                    ["tab"] = 2,
                    ["num"] = 2,
                    ["rank"] = {
                        2, 4, 6,
                    },
                },
                -- Improved Scorch (2,11): Increases Crit by 1/2/3%
                {
                    ["tab"] = 2,
                    ["num"] = 11,
                    ["rank"] = {
                        1, 2, 3,
                    },
                },
            },
        },
        ...
    },
    The table goes like that for all classes (and right after that, i nil out all the tables not matching playerClass)
    This way, when i want to check for a spell's crit, i just call a function that parse this table and returns the crit bonus of the spell.

    But ive been wondering if making a table such as:
    CompactCritTable = {
        ["MAGE"] = {
            ["Incineration"] = {
                ["talent"] = { 2, 2, },
                ["rank"] = { 2, 4, 6, },
                ["affects"] = {    "Arcane Blast", "Cone of Cold", "Scorch", "Fire Blast", },
            },
            ["Mage Tier9 4Set"] = {
                ["setbonus"] = 4,
                ["gear"] = GearSets["MAGE"]["Tier9"][faction],
                ["rank"] = 5, 
                ["affects"] = { "Arcane Blast", "Arcane Missiles", "Fireball", "Frostbolt", }, 
            },
            ["World In Flames"] = {
                ["talent"] = { 2, 6, },
                ["rank"] = { 2, 4, 6, },
                ["affects"] = {    
                    "Arcane Explosion", "Blast Wave", "Dragon's Breath",  
                    "Living Bomb", "Blizzard", "Pyroblast", "Flamestrike", 
                },
            }, 
            ["Improved Scorch"] = {
                ["talent"] = { 2, 11, },
                ["rank"] = { 1, 2, 3, },
                ["affects"] = {    "Fireball", "Frostfire Bolt", "Scorch", },
            },
            ["Glyph of Fireball"] = {
                ["glyph"] = 56368,
                ["rank"] = 5,
                ["affects"] = "Fireball"
            },
            ["Glyph of Frostfire Bolt"] = {
                ["glyph"] = 56368,
                ["rank"] = 5,
                ["affects"] = "Frostfire Bolt"
            },
        },
    }
    in the main chunk, with a function to "unfold" this compact table into the bigger table would be better for load times and such (as well as being easier to update).

    I was wondering if some of you lua gurus could tell me if going the path of making this compact table, along with the function to make the bigger table (and ofc nil'ing the compact one once it's job is done) would be better efficiency-wise.

    additional note: Also wondering which format would be the most efficient in the compact table.
    [tab] = x,
    [num] = y,
    or
    [talent] = { tab, num, },
    Posted in: Lua Code Discussion
  • 0

    posted a message on AceComm3 w/ Custom Channels
    Well yeah, people that uses the addon will get the simple chat filter, but i would still like acecomm to relay what was the achievement ID.
    So, if AceComm does not show up in the players chats which is interesting, it means i -could- use a loop to send it to every player in a given channel using WHISPER addon channel right?
    Still concerned slightly about 200+ channels if i ding two achievements at once for example but i guess it would be an acceptable "lag"
    Posted in: Ace3
  • 0

    posted a message on AceComm3 w/ Custom Channels
    I'm currently writing an addon to send messages to all my specified custom channels when i receive achievements, and using a simply SendChatMessage doesnt seems to do the work, i would like it to have the following features:
    - If the member is in your guild, he should not be seeing the achievement in the channel too.
    - If a friend or someone else is in two of your custom channels, he shouldnt see the achievement twice.
    - Having clickable achievement links in channels for people who are also using the addon.

    My idea is kinda to have the addon SendChatmessage when you receive an achievement, and if you have the addon yourself, you will filter out those messages (keeping you from the spam of getting 4 achievements at once displayed in your guild, and your 5 other channels too, that day was fun >.<), and instead do a regular print that will mimic your first channel that would be showing this information.
    I am thinking of sending via AceComm the following data:
    - Achievement ID
    - Channel list of the achiever so the addon can determine which of these channels is the first in your list.

    Which channel to send the message to. Available channels are "PARTY", "RAID", "BATTLEGROUND", "GUILD", and "WHISPER"


    Ironically, "CHANNEL" is not an avaible channel of sending Acecomm info, so would i have to loop everyone in the channel using WHISPER channel? How would this effect performance in a 200+ people channels? (which i dont know who is using this addon or not)

    I do not want to set up an invisible channel for my addon users as this can sometime screw up General being joined in /2 and end up with trade in /3, annoying thing is annoying. Also my channel list is full >.>
    Posted in: Ace3
  • 0

    posted a message on EnhancedCharStats
    Finally! After ~30 tries over 2 days, i got able to upload it to Curseforge =P
    Posted in: General AddOns
  • 0

    posted a message on EnhancedCharStats
    Woo, new version is up, and now i'm following the previously mentioned link to add the project to Curseforge, the project is up:
    http://wow.curseforge.com/projects/enhancedcharstats/

    But i can't seem to upload the file, after i choose the file to upload, and then when i clicked "Upload" it just showed a blank page without anything on it, even after an hour and a half, the page was still blank, and project's Files section was saying "No files found" . Is there any problems with the uploader or something?

    New version can be found on wowinterface for now till i get to upload it on curse :/
    Posted in: General AddOns
  • 0

    posted a message on EnhancedCharStats
    Quote from Arrowmaster
    And you never will unless you limit it to only working for druids with Imp Faerie Fire and only if it is their Faerie Fire on the target. Except for that one situation its impossible to detect.


    That's what i feared, oh well, i might add an option later on to "Always consider Hit debuff is on"
    Posted in: General AddOns
  • 0

    posted a message on EnhancedCharStats
    I'm new to lua scripting, and i was quite hesitant to post this here since i dont have my addon on the Ace SVN even if its written with the help of Ace3. If this doesnt belong here ill understand, but im giving it a shot:

    Link: http://www.wowinterface.com/downloads/info12110-EnhancedCharStats.html

    This addon is pretty simple, just put it in your addon folder, and it will start doing its magic, that is enhancing your paperdoll's tooltips by adding more informative lines depending where you put your talent points, such as adding a information in the Intellect tooltip such as "Increase Armor by" or "Increase Spellpower by" for an Arcane Mage, or showing the bonus spellpower from Spirit a priest gains in its respective tooltip, it should works on mostly all conversions acknowledged by StatLogicLib. It doesnt show stats multipliers yet (for example, Intellect gained from Intellect via Gnome racial etc)

    The second feature is something i always wanted but didnt find anywhere, it changes the Spell Hit rating to be more dynamic and looks like the Spell Crit rating tooltip, when you open it will show you the spell hit rating of your three talent trees separately and modify them depending if you spec'd to get bonus hit from a talent, it will also be modified depending if you are are a draenei (or in a party with one), and if Misery is on your current target.

    You can use the command /ecs (or /enhancedcharstats) to go in the option menu.



    Known issues:
    The spell hit tooltip doesnt support Imp Faerie Fire because i have yet to find a way to detect it.

    Please tell me what you think about it, suggestions, and all that :3
    Posted in: General AddOns
  • 0

    posted a message on Empty Table in DB defaults
    function AchieveChannel:OnInitialize()
        local defaults = {
            profile = {
                chanList = {},
            },
        }
        self.db = LibStub("AceDB-3.0"):New("AchieveChannelDB",defaults)
        LibStub("AceConfig-3.0"):RegisterOptionsTable("AchieveChannel", options, {"achievechannel", "ac"})
        db = self.db.profile
    end
    
    function AchieveChannel:OnEnable()
        AC:Print("AchieveChannel Loaded");
        AC:RegisterEvent("ACHIEVEMENT_EARNED")
        AC:Print(#db.chanList);
        for key,value in pairs(db.chanList) do AC:Print(key.." - "..value) end
    end


    Is it possible to have an empty table in the DB Defaults? i want AceDB3-0 to keep a table that will have things added to it at the user's input, but have it defaults to being empty. But just in that small part, there's two things i cannot understand which i hope people can help me understand:

    1- #db.chanList returns 6 in that Print command, so i believe that's not a randomly assigned number, and really the numbers of items in chanList
    2- in the pairs(), it says db.chanList is a string with the error: "Bad Argument #1 to 'pairs' (table expected, got string)

    The table will be used to keep a list of channel names, so i dont need indexing if i can loop the table using pairs() and send a message to all channels im on that are found inside the table's "list". Is this a good way?

    PS: I know its totally against Ace3 to have "Addon Loaded" messages, but it helps me when im writing it, but it's always deleted before i send it to anybody.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Cant load UTF8
    PRAISE BE THE LIGHT! *puts a sheep on an altar as a tribute*

    Im starting to wonder why i didnt think about that, but either way its fixed now, and i know something new... :)

    Since im still learning, ill probably be posting about more problems that arrives my way (but obvious after using the FrameXML.log and Search which are such nice functions), and maybe if i feel like it could be released, show it to the world who knows...
    Posted in: AddOn HELP!
  • 0

    posted a message on Cant load UTF8
    More than triple certain, the folders are all correctly written, i even re-wrote all it all letter by letter making sure everything is identical. after that didnt work, i went in RatingBuster, copied the UTF8 folder, opened the toc, copied the lines directly from there and pasted them in mine, it didnt change anything either.
    Posted in: AddOn HELP!
  • 0

    posted a message on Cant load UTF8
    I'm fairly new to the whole Lua world, but i still tried ten different ways and it still doesnt work so im going to ask on the forums...
    I've been trying to load UTF8 into my addon, but for some reasons, my
    ## Interface: 30000
    ## Title : Enhanced Char Stats
    ## Notes: Enhance the PaperDoll tooltips to display more information.
    ## Author: Siku
    ## eMail: chaoslux@gmail.com
    ## Version: 0.51
    ## SavedVariables: EnhancedCharStatsDB
    ## OptionalDeps: Ace3, StatLogicLib, UTF8
    ## X-Embeds: Ace3, StatLogicLib, UTF8
    ## X-Category: Interface Enhancements 
    
    UTF8\utf8data.lua
    UTF8\utf8.lua
    
    embeds.xml
    
    EnhancedCharStats.lua
    and just for the testing, i disabled all other addons, and the error still reproduce:
    12/19 00:45:22.875  Binding TOGGLECURRENCY is defined more than once in Interface\FrameXML\Bindings.xml
    12/19 00:45:22.875  Loading add-on EnhancedCharStats
    12/19 00:45:22.875  ** Loading table of contents Interface\AddOns\EnhancedCharStats\EnhancedCharStats.toc
    12/19 00:45:22.875  Error loading Interface\AddOns\EnhancedCharStats\UTF8\utf8data.lua
    12/19 00:45:22.875  Error loading Interface\AddOns\EnhancedCharStats\UTF8\utf8.lua
    12/19 00:45:22.875  ++ Loading file Interface\AddOns\EnhancedCharStats\embeds.xml
    12/19 00:45:22.875  ...hancedCharStats\Libs\StatLogic-1.0\StatLogic-1.0.lua:4705: attempt to call local 'strutf8lower' (a nil value)
    What could be the reason for UTF8 to -not- be loading, while the folder is in my addon folder like it should, and i even went up and looked up at RatingBuster / TankPoints toc and folders and i see no difference between how mine is setup and theirs, except that mine doesnt work for some reasons.

    Anyone can enlighten me on a possible cause of this?
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.