Thread Tools Display Modes
06-01-09, 09:38 PM   #1
Astrocanis
A Black Drake
Join Date: Mar 2005
Posts: 84
nUI_Button.lua

Received this error the first time I targeted something:

Interface\Addons\nUI\Bars\nUI_Button.lua:1196:Usage:UnitIsUnit("unit","otherUnit").

Pressing "Okay" did not resolve it - the error continued.
 
06-01-09, 11:50 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Hmm, sounds like that split second target is locked kinda thing. Anything else mentioned after that line to shed some more light on the problem ?
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-02-09, 04:12 AM   #3
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Hmmm... that's a really odd one. The only way that error could occur is if an aura on the target didn't have anyone who cast the aura. o.O

In any event, I've added a trap for it. You can fix it yourself until I get the next patch out by editing [ Interface > AddOns > nUI > Bars > nUI_Button.lua ] and going to line 1192 where you'll see the following segment of code... add the new line (that's in blue) to the rest of the section.

Code:
if  aura.end_time
and aura.caster
and aura.end_time > proc_time
and aura.name == overlay.spellStatus.name
and aura.rank == overlay.spellStatus.rank                    
and UnitIsUnit( aura.caster, "player" )
then 
    overlay.spellStatus.remains = aura.end_time - proc_time;
    overlay.spellStatus.color   = { r=0, g=1, b=1 };
    break;
end
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-02-09, 04:26 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Is it possible that the person that cast the aura left the raid and thus the addon couldn't identify the owner ?

I know auras eventually get removed when people respec and possibly leave the raid but maybe it was one of those split second tests that went wrong.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-02-09, 06:12 AM   #5
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah -- I'm guessing it's something like that. The "and aura.caster" addition to that conditional should solve the problem since Lua uses short-circuit logic rules. The "and aura.caster" would resolve to false and kill the test before it gets to the UnitIsUnit( aura.caster, "player" ) test.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-02-09, 07:11 AM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
rofl .. Im still trying to figure out those weird and/or combinations .. I've been doing simple conditionals as I know how they work
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-02-09, 07:39 AM   #7
Astrocanis
A Black Drake
Join Date: Mar 2005
Posts: 84
Thanks, Scott. I'm going to give it a try (when the maintenance is over =P).
 
06-02-09, 07:53 AM   #8
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Originally Posted by Xrystal View Post
rofl .. Im still trying to figure out those weird and/or combinations .. I've been doing simple conditionals as I know how they work
~lol~

Yeah... took me a bit to get my head around that at first. If you program in C/C++ then they're much like the C tertiary statements...

int i = value > 0 ? 1 : 0;

In Lua that would be done like this

local i = (value > 0) and 1 or 0;

The rule for conditional processing in Lua is that the first condition that resolves the statement stops processing of the statement. Since any condition that resolves true makes an "or" true, the (value > 0) and 1 portion of the statement is true, so the "or" is already resolved and the statement stops processing thus assigning 1 to i. If (value > 0) is false, then false and 1 is also false, so the statement continues past the "or" and returns 0. Heady stuff, but really powerful.

The same is true in traditional conditional processing...

if a > 0
and b > 0
and c > 0
then doSomething()
end

If (a > 0) then the conditon test stops dead right there and never even bothers looking at the (b > 0) or (c > 0) part of the condition. This can make your code very efficient if you order your conditions to start with the most likely or easiest to test conditions first since that allows skipping all the rest of the tests if those conditions aren't met.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-02-09, 10:20 PM   #9
fred
A Cobalt Mageweaver
Join Date: Mar 2006
Posts: 208
Error after playing for awhile

Still solo...nothing special.Guess I'm just good at breaking stuff

[2009/06/02 23:18:51-6-x26]: nUI-5.03.06 (Dev)\Bars\nUI_Button.lua:1218: Usage: UnitIsUnit("unit", "otherUnit")
nUI-5.03.06 (Dev)\Bars\nUI_Button.lua:1218: in function <Interface\AddOns\nUI\Bars\nUI_Button.lua:1155>

---
 
06-02-09, 10:36 PM   #10
Astrocanis
A Black Drake
Join Date: Mar 2005
Posts: 84
Scott, made the change to the lua file, but the problem is still cropping up. Sorry to bother you like this.

After a while I get the "Addons have generated a large number of ..." disable message.
 
06-03-09, 04:56 AM   #11
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Ah another one of these .. sheesh .. played for hours today and had no errors whatsoever .. rofl, what are you guys doing to this ?
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-03-09, 06:09 AM   #12
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Is it still that exact same error?

[ Interface\Addons\nUI\Bars\nUI_Button.lua:1196:Usage:UnitIsUnit("unit","otherUnit") ]

Or is it something else? Are there *any* other error messages besides that one? The fact that no one else is screaming about this makes me believe it's a conflict issue.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-03-09, 06:11 AM   #13
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
psst .. someone else did report it Scott in another post
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-03-09, 06:14 AM   #14
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah -- this really puzzles me as I've *never* seen this error. Gotta figure out what's causing it.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-03-09, 06:14 AM   #15
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah -- I just saw Fred's post, too.

EDIT: I've merged them into one thread so as not to be answering the same questions in two places.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-03-09, 06:27 AM   #16
fred
A Cobalt Mageweaver
Join Date: Mar 2006
Posts: 208
No other errors for me.I'll see if I can upload my mod list.
Attached Files
File Type: txt myaddons.txt (3.8 KB, 694 views)
 
06-03-09, 06:31 AM   #17
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I'd be curious to know if you can force it to happen or figure out the exact sequence that reliably causes it to happen. Then, if you can, if you disable all mods except nUI, does the problem go away or is it still there?
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-03-09, 06:32 AM   #18
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Hmm, was it the first time you targetted something when you first logged in ?

Let me test that out. I think I heard a noise a couple of times tonight while playing about on other servers while waiting for our one to come up ... which it did at about midnight Pacific so pretty much a dead server


Edit: Nope .. logged in fresh on a toon and clicked on about 10 things, myself, my target, my targets target (in essence all me. Then targetted humanoids, animals, npcs. No problems whatsoever.

Went through bug logs but nothing with nUI in there that I might have missed.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 06-03-09 at 06:40 AM.
 
06-03-09, 01:49 PM   #19
Lackin
A Fallenroot Satyr
Join Date: Aug 2008
Posts: 26
Problem

Everytime i get on a mount of any kind i get an error
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_060309_111108.jpg
Views:	642
Size:	404.3 KB
ID:	2799  Click image for larger version

Name:	WoWScrnShot_060309_120738.jpg
Views:	629
Size:	374.3 KB
ID:	2800  
 
06-03-09, 01:56 PM   #20
Lackin
A Fallenroot Satyr
Join Date: Aug 2008
Posts: 26
And another 0ne And this error is if i click on anything it pops up so i have to not click on anything and if i click on something to kill it it pops up
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_060309_145336.jpg
Views:	634
Size:	483.5 KB
ID:	2801  

Last edited by Lackin : 06-03-09 at 01:59 PM.
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Bug Reports » nUI_Button.lua


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off