Thread Tools Display Modes
10-22-09, 03:27 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
oUF on PTR

I'm currently testing my UI on the PTR. oUF currently produces one LUA error, obviously due to Blizzard UI changes.

Is there any working version available?

Code:
Message: Interface\AddOns\oUF\ouf.lua:218: attempt to index global 'TargetofTargetFrame' (a nil value)
Blizzard changed the ToT frame names:


Quick'n dirty fix to make it work until further notice:

Find this in oUF.lua starting at ~line 217
Code:
    if(unit == "targettarget") then
      TargetofTargetFrame:UnregisterAllEvents()
      TargetofTargetFrame.Show = dummy
      TargetofTargetFrame:Hide()

      TargetofTargetHealthBar:UnregisterAllEvents()
      TargetofTargetManaBar:UnregisterAllEvents()
    end
and make it
Code:
    if(unit == "targettarget") then
      TargetFrameToT:UnregisterAllEvents()
      TargetFrameToT.Show = dummy
      TargetFrameToT:Hide()

      TargetFrameToTHealthBar:UnregisterAllEvents()
      TargetFrameToTManaBar:UnregisterAllEvents()
    end
    if(unit == "focustarget") then
      FocusFrameToT:UnregisterAllEvents()
      FocusFrameToT.Show = dummy
      FocusFrameToT:Hide()

      FocusFrameToTHealthBar:UnregisterAllEvents()
      FocusFrameToTManaBar:UnregisterAllEvents()
    end
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-22-09 at 05:12 PM.
  Reply With Quote
10-22-09, 05:35 PM   #2
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Thank you Blizzard! ... for "fixing" things that are working.
  Reply With Quote
10-22-09, 06:48 PM   #3
Bluspacecow
Giver of walls of text :)
 
Bluspacecow's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 770
Originally Posted by Dawn View Post
Thank you Blizzard! ... for "fixing" things that are working.
Meh it's their API so they can change it whenever they like !

Addons are officially unsupported so they have no pressing need to maintain backwards compatibility for mods.
__________________
tuba_man on Apple test labs : "I imagine a brushed-aluminum room with a floor made of keyboards, each one plugged into a different test box somewhere. Someone is tasked with tossing a box full of cats (all wearing turtlenecks) into this room. If none of the systems catch fire within 30 minutes, testing is complete. Someone else must remove the cats. All have iPods." (http://community.livejournal.com/tec...t/2018070.html)
  Reply With Quote
10-22-09, 07:15 PM   #4
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Yeah but they should know that at least half the community is using addons (and I'm pretty sure it's way more). Changing a frame name makes no sense, it's still the same frame. But it ****s up every unit frame addon. Just like this freaking GetQuestDifficultyColor() thingy was creating a mess, lately. Sure it's there game, they can do what they want. But they shouldn't do arbitrary changes that make no sense - at least I don't see what a different frame name will "fix" or "improve". That might be because I'm being ignorant, ofc.
  Reply With Quote
10-23-09, 12:29 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Dawn its OK. I'm more interested in what they changed exactly and why. Maybe there is a new way of handling ToT units (no the onUpdate thingy you know). ToT events, anyone?!
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-23-09 at 02:52 AM.
  Reply With Quote
10-23-09, 07:43 AM   #6
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
They made their ToT dynamically spawned through Lua, as they are using it in two places now.
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF on PTR


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