Addons: Clique and Xperl

Addons: Clique and Xperl

by Salsanasaris » Tue Jul 07, 2015 11:59 am

I get the Error:
Interface\Addons\Clique\Plugins\Clique_BlizzUnitFrames.lua:38:38 attempt to call method 'RegisterForClicks' (a nil value)

I've tried 3 different versions of xperl with no luck. Any help would be greatly appreciated.
Salsanasaris
Tester
 

Re: Addons: Clique and Xperl

by Mr_Rosh » Tue Jul 07, 2015 2:57 pm

As far as I know, Clique doesn't work with Xperl. But anyway, this is the wrong section. You should've posted in here: viewforum.php?f=63
User avatar
Mr_Rosh
Senior Sergeant
Senior Sergeant
 

Re: Addons: Clique and Xperl

by Shyman » Sat Jul 11, 2015 2:15 pm

I found a solution from another user on another forum:

Sixtoes:
There's a function OtherClickHandlers(button, unitid) (starting @ 32 un-edited Xperl.lua)

Original:
local function OtherClickHandlers(button, unitid)
if (CastParty and CastParty.Event) then


To make XPerl work with Clique modify it this way (add 3 lines in between):
local function OtherClickHandlers(button, unitid)
if (Clique) then
Clique:OnClick(button, unitid)
end
if (CastParty and CastParty.Event) then


This is a solution I found myself, not sure if it works as I haven't tried myself yet.
I advise you to make a backup .lua file before changing anything
User avatar
Shyman
Private
Private
 

Re: Addons: Clique and Xperl

by Salsanasaris » Sat Jul 11, 2015 10:05 pm

Thank you Shyman, that solution works! I still get the lua error but everything works. :)
Salsanasaris
Tester
 

Re: Addons: Clique and Xperl

by Shyman » Sun Jul 12, 2015 11:24 pm

Good to know it did its job.

You can always get an addon that hides those .LUA erros, grouping them up into a notification center. (an icon with the number of lua errors.)
User avatar
Shyman
Private
Private
 


Return to Addons & macros