SuperMacro help

SuperMacro help

by slipry » Thu Feb 04, 2016 10:48 am

Anyone have any idea why Supermacro works fine on every character except my priest?

Code: Select all
Error:  attempt to concatenate a nil value
AddOn: SuperMacro
File: SM_Tooltip.lua
Line: 98
Count: Infinite


line 98:
Code: Select all
      local macroname, pic;
      if ( this ) then
         macroname=getglobal(this:GetName().."Name");
         if ( macroname ) then
            macroname:SetText(name);
         end
         pic = getglobal(this:GetName().."Icon");
         if ( pic ) then
            pic:SetTexture(icon);
         end
      end
slipry
Senior Sergeant
Senior Sergeant
 

Re: SuperMacro help

by Dreez » Thu Feb 04, 2016 5:01 pm

this:GetName() seems to return nil

I'm going to have a guess and say one of your macros does not have a string as name on that priest
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 

Re: SuperMacro help

by slipry » Thu Feb 04, 2016 11:48 pm

They all have names. I even deleted my SavedVariables and remade them all. The first macro I make will always work regardless of what it is but as soon as I make 2 macros they both stop working.
slipry
Senior Sergeant
Senior Sergeant
 

Re: SuperMacro help

by TyrantRC » Fri Feb 05, 2016 12:55 am

maybe you can upload the macro-cache.txt of your priest and the SuperMacro.lua of savedvariables from that account so we can check it, Also before that try using only supermacro and disable all your other addons, maybe is another addon that's trying to call a variable with the same name in that addon in an specific event for your priest
User avatar
TyrantRC
Sergeant
Sergeant
 

Re: SuperMacro help

by slipry » Fri Feb 05, 2016 1:01 am

Code: Select all
local macroname, pic;
if ( this ) then
    local name = this:GetName();
    if ( name == nil or name == '' ) then
        name = "this:";
    end
    macroname=getglobal(name.."Name");
    if ( macroname ) then
        macroname:SetText(name);
    end
    pic = getglobal(name.."Icon");
    if ( pic ) then
        pic:SetTexture(icon);
    end
end


This fixes it but it breaks a lot of the rest of the addon, like automatically showing the right icon + it names them all things like Actionbar/Multibar etc. also for whatever reason when I use that "fix" my actionbars reset to their original everytime i go thru a load screen

can some1 fix it? will tip if on pvp server
slipry
Senior Sergeant
Senior Sergeant
 

Re: SuperMacro help

by slipry » Sat Feb 06, 2016 1:49 am

bump
slipry
Senior Sergeant
Senior Sergeant
 

Re: SuperMacro help

by TyrantRC » Sat Feb 06, 2016 8:36 am

slipry wrote:bump


I'm still waiting those files to see if I can help. You want to change the code of the addon, but I'm pretty sure it's a problem in your end and not in the addon perse. You also didn't try running just supermacro to see if another addon is messing with some random variable.

I understand you think that fixing that part of the code will help to resolve your problem, but i can assure you this is usually not the best way to do it, believe me, I've tried it before with a lot of addons
User avatar
TyrantRC
Sergeant
Sergeant
 

Re: SuperMacro help

by TyrantRC » Sat Feb 06, 2016 3:20 pm

slipry wrote:http://pastebin.com/raw/fda83Pwg
http://pastebin.com/raw/iJDgbCdf


Ok, cool, I was checking your file with my client and everything seems ok, then I checked the code to see what does that part of the code actually do, this part doesn't manage your local macros it seems, only the global ones, which obviously I didn't get in the files I asked, so I can't really check for myself, but from what I saw in your other macros, you probably exported your macros from a TBC client to nostalrius client, for example your locals macros:

MACRO 12 "hat" INV_Helmet_129
/equip Goblin Rocket Helmet
/equip Circlet of Prophecy
END

MACRO 14 "lowr" Spell_Holy_Penance
/cast Heal(Rank 4)
/cast Heal(Rank 3)
/cast Heal(Rank 2)
/cast Heal(Rank 1)
END

both have icons from TBC I believe, which are not available in this version of the game. this is how they appear to me http://i.imgur.com/5aysXa2.jpg

The part of the code were you are having trouble have the objective of taking names and icons from the global variables of blizzard and using it in a new UI to display, in this case, the supermacro UI. You probably have a global macro with a name or icon that nostalrius client cant process so it didn't save it and when supermacro ask for it he doesn't get anything (nil) and the addon tries to concatenate that nil value to an string and goes full retard. You are probably having trouble only in the priest because you are only using that global macro in the priest.

what you can try is to delete the cache.md5 from you account folder, then go and rename and put a new icon in every global macro and restart. Also be sure you are using Supermacro 3.15 which I think is the one that works the best for nostalrius, the 3.14 version does some fucky thing with some default variables.

Also I noticed that you used this solution that I found in the feenix server forum
http://www.wow-one.com/forum/topic/2413 ... upermacro/
I also use bongos and I was having trouble with supermacro, I don't know if that is the same thing happening to you, but what I did was that I changed the options in supermacro so it doesn't autocheck the cooldown in the macro or autoreplace the icon ui with is own global one.

this is how my options in supermacro look http://i.imgur.com/e7l1wdv.jpg
also make sure that you have "Hide macro text" and "Reuse Blizzard frames" disable in bongos if you are using the addon.

Let me know if anything of this helps, is not well try to upload the macros-cache.txt from your account folder this time, instead of the character one, which are the global macros
User avatar
TyrantRC
Sergeant
Sergeant
 

Re: SuperMacro help

by euronmisc » Sat Feb 06, 2016 3:44 pm

and the addon tries to concatenate that nil value to an string and goes full retard


lmao

I also use bongos and I was having trouble with supermacro,


Just wanted to add in on this that I was having issues with bongos not being compatible with supermacro too on feenix, so I ditched it for Zbar over a year ago. No issues since then.
euronmisc
Sergeant Major
Sergeant Major
 


Return to Addons & macros