Page 1 of 1

Addons: Clique and Xperl

PostPosted: Tue Jul 07, 2015 11:59 am
by Salsanasaris
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.

Re: Addons: Clique and Xperl

PostPosted: Tue Jul 07, 2015 2:57 pm
by Mr_Rosh
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

Re: Addons: Clique and Xperl

PostPosted: Sat Jul 11, 2015 2:15 pm
by Shyman
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

Re: Addons: Clique and Xperl

PostPosted: Sat Jul 11, 2015 10:05 pm
by Salsanasaris
Thank you Shyman, that solution works! I still get the lua error but everything works. :)

Re: Addons: Clique and Xperl

PostPosted: Sun Jul 12, 2015 11:24 pm
by Shyman
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.)