Thread Tools Display Modes
07-09-09, 05:18 PM   #1
FarseerLolotea
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 11
Exp_Rating

There's an experience-bar mod called Exp_Rating that I used to like, but which seems to be abandoned. However, I was recently able to get it to more-or-less work by updating the TOC file.

But...whenever I hit a load screen, I get this error:

Date: 2009-06-30 03:48:14
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\EXP_Rating\EXP_Rating.lua line 204:
EXP_Rating_overlay_percent:SetPoint(): EXP_Rating_overlay_tnl is dependent on this
Debug:
[C]: ?
[C]: SetPoint()
EXP_Rating\EXP_Rating.lua:204: EXP_Rating_Layout()
EXP_Rating\EXP_Rating.lua:62: EXP_Rating_Ini()
EXP_Rating\EXP_Rating.lua:38: EXP_Rating_event()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1

Anyone have any idea how to fix this? (I'm kind of a LUA noob, but I liked it enough that I'm thinking of taking it over.)

Last edited by FarseerLolotea : 07-09-09 at 05:20 PM.
  Reply With Quote
07-09-09, 08:46 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,965
It looks like from that error message that this line

EXP_Rating_overlay_percent:SetPoint(): EXP_Rating_overlay_tnl is dependent on this


Is showing SetPoint as invalid. I am sure but not 100% that setpoint has to contain values to be valid. And the message following is letting you know that there is another frame in the code somewhere that is being positioned based on this specific frame.

Frame:SetPoint(point , frame , relativePoint , x , y);

You should find a line similar to the following somewhere.

EXP_Rating_overlay_tnl:SetPoint("TOP",EXP_Rating_overlay_percent,"BOTTOM",0,0);

Which is telling the addon that the tnl overlay is anchored to the percent overlay but where the percent overlay isn't positioning properly it cannot position the next one.
__________________


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
  Reply With Quote
07-10-09, 12:58 AM   #3
FarseerLolotea
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 11
The TNL overlay seems to be anchored to the rested overlay, which is anchored to the percent overlay, which is just anchored left. Here's what I think is the relevant code:

EXP_Rating_Percent();
EXP_Rating_Rested();
EXP_Rating_TNL();
EXP_Rating_KTL();
EXP_Rating_Lock();
EXP_Rating_Mouseoff();
EXP_Rating_overlay:ClearAllPoints();
EXP_Rating_overlay:SetPoint("CENTER", "UIParent", "CENTER");
EXP_Rating_overlay_percent:ClearAllPoints();
EXP_Rating_overlay_percent:SetPoint("LEFT", "EXP_Rating_overlay", "LEFT");
EXP_Rating_overlay_rested:ClearAllPoints();
EXP_Rating_overlay_rested:SetPoint("LEFT", "EXP_Rating_overlay_percent", "RIGHT");
EXP_Rating_overlay_tnl:ClearAllPoints();
EXP_Rating_overlay_tnl:SetPoint("LEFT", "EXP_Rating_overlay_rested", "RIGHT");
EXP_Rating_overlay_ktl:ClearAllPoints();
EXP_Rating_overlay_ktl:SetPoint("LEFT", "EXP_Rating_overlay_tnl", "RIGHT");
EXP_Rating_BGLayer:ClearAllPoints();
EXP_Rating_BGLayer:SetPoint("TOPLEFT", "EXP_Rating_overlay_percent", "TOPLEFT", -5, 5);
EXP_Rating_BGLayer:SetPoint("BOTTOMLEFT", "EXP_Rating_overlay_percent", "BOTTOMLEFT", -5, -5);
EXP_Rating_BGLayer:SetPoint("TOPRIGHT", "EXP_Rating_overlay_ktl", "TOPRIGHT", 5, 5);
EXP_Rating_BGLayer:SetPoint("BOTTOMRIGHT", "EXP_Rating_overlay_ktl", "BOTTOMRIGHT", 5, -5);
EXP_Rating_Background();

Of course, I could be wrong; as I mentioned, LUA noob.
  Reply With Quote
07-10-09, 01:09 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,965
Well, I can't see anything obviously wrong with that code and I can't see why it is having problems for tnl sake and not rested sake. *confused* .. maybe in the morning more people will spot it and can point out something I can't see.
__________________


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
  Reply With Quote
07-10-09, 07:13 AM   #5
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,362
Try a "refreshed" version here:
http://wow.curseforge.com/addons/pro.../dridzt/files/

You'll need a curse login and file is currently pending approval.

No new functionality I mainly refreshed the script handlers for 3.x and tested it on 3.1 and 3.2 ptr.

No errors that I could see.
  Reply With Quote
07-10-09, 12:57 PM   #6
FarseerLolotea
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 11
Okay, Dridzt, I'm about to try out your updated version. And it's good to see that someone with more LUA knowledge than I have at the moment seems to have taken over the project.

Edit: Okay, I tried it, took a character from Dalaran to Shatt...got the same errors again even after deleting saved variables. I don't know if it's some incompatibility with some other add-ons or what, but it's saying that it's Exp_Rating.

Last edited by FarseerLolotea : 07-10-09 at 01:22 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Exp_Rating


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