Posts by Istalantar

    Thank you for your quick help. Your fix solved the issue that skills could not be saved.


    But there seems to be more wrong this time.

    When I change second class my skills are not being changed and I get this error message ingame:


    When I use the addon command /abar load xxx the following error message is displayed and also equip does not change:


    Hi everyone,

    I am pretty sure i located the problem, but wasn't able to fix it yet.

    The problem: vActionbar is using information from tooltip, since tooltip was changed recently i guess the problem came with that. I think somehow in the Tooltip the name of some skills has a whitespace where before was no whitespace.

    Here the function that is causing the problem.

    Code
    -- Get tooltip text
    local function getTooltip(side, index)
        local lineobj = _G["GameTooltipText"..side..index]
        if lineobj then
            local text = lineobj:GetText()
            lineobj:SetText("")
            return text
        end
        return ""
    end

    To remove all whitespaces i added following line, but unfotunatelly it removes also the whitespaces of skills which consist of two or more words.

    Code
     text = string.gsub(text, "%s", "")

    According to lua patterns following line should remove all trailing whitespaces, but somehow does not (just a minor change to the above)

    Code
    text = string.gsub(text, "%s$", "")

    Maybe someone here knows how just to remove the trailing whitespaces.


    lg

    Ista