WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Bug Reports (https://www.wowinterface.com/forums/forumdisplay.php?f=90)
-   -   5.4 - interesting bug (https://www.wowinterface.com/forums/showthread.php?t=46713)

Seer 06-23-13 03:41 PM

5.4 - interesting bug
 
So, decided to look at the 5.4 ptr. Wiped the interface and wtf folders and updated the ptr.

Logged in, exited and installed nUI... logged back in, and nUI fails to load. One error that pops up mention that the font isn't set. AFAIK, there's no / command for setting the fonts in nUI so installed a pluggin for that. (http://www.wowinterface.com/download...ConfigGUI.html -> note that some options here are broken as well, seems to be the ace library so update the included one).

Set the font and reloaded. problem fixed. logged out and back in, all was fine. Then logged out, exited and logged back in, again same error and nUI fails to load.

Anyone else getting this? Or am I the lucky lone one..

Lua errors grabbed, guess the last ones are caused by the first ones;

Code:

2x nUI-5.07.32 (Plus)\Plugins\nUI_ButtonBag.lua:240: nUI_ButtonBag_Label:SetText(): Font not set
<in C code>
nUI-5.07.32 (Plus)\Plugins\nUI_ButtonBag.lua:240: in main chunk

Locals:
CreateFrame = <func> =[C]:-1
ProfileCounter = <table> {}
BUTTONBAG_COLS = 7
ButtonBagConfig = <table> {
 Includes = <table> {}
 ButtonSize = <table> {}
 Unnamed = <table> {}
 TopRow = <table> {}
 ExcludePatterns = <table> {}
 Excludes = <table> {}
}
name = "nUI_ButtonBag"
bag_list = <table> {}
anchor = nUI_ButtonBagEvents {
 0 = <userdata>
}
frame = nUI_ButtonBag {
 top = nUI_ButtonBag_Top {}
 buttons = <table> {}
 label = nUI_ButtonBag_Label {}
 bottom = nUI_ButtonBag_Bottom {}
 0 = <userdata>
 middle = nUI_ButtonBag_Middle {}
 close_btn = nUI_ButtonBag_CloseButton {}
}
bag_button = nUI_ButtonBagButton {
 0 = <userdata>
 WrapScript = <func> @FrameXML\SecureHandlers.lua:704
 SetFrameRef = <func> @FrameXML\SecureHandlers.lua:715
 Execute = <func> @FrameXML\SecureHandlers.lua:699
 test = nUI_ButtonBag_CloseButton {}
 UnwrapScript = <func> @FrameXML\SecureHandlers.lua:710
}

Code:

6x nUI-5.07.32 (Plus)\Bars\nUI_Button.lua:713: nUI_TopLeftBar_Button1_nUIHotkey:SetText(): Font not set
<in C code>
nUI-5.07.32 (Plus)\Bars\nUI_Button.lua:713: in function "updateHotkeys"
nUI-5.07.32 (Plus)\Bars\nUI_Button.lua:1387: in function "initActionButton"
nUI-5.07.32 (Plus)\Bars\nUI_ButtonBar.lua:715: in function "createBar"
nUI-5.07.32 (Plus)\Bars\nUI_ButtonBar.lua:327: in function <nUI\Bars\nUI_ButtonBar.lua:167>

Locals:
key1 = nil
key2 = nil
GetBindingKey = <func> =[C]:-1
button = nUI_TopLeftBar_Button1 {
 0 = <userdata>
 feedback_action = 1
 action = 1
 flashing = 0
 FlyoutBorder = nUI_TopLeftBar_Button1FlyoutBorder {}
 FlyoutBorderShadow = nUI_TopLeftBar_Button1FlyoutBorderShadow {}
 flashtime = 0
 FlyoutArrow = nUI_TopLeftBar_Button1FlyoutArrow {}
 icon = nUI_TopLeftBar_Button1Icon {}
 cooldown = nUI_TopLeftBar_Button1Cooldown {}
}
text = ""
overlay = nUI_TopLeftBar_Button1_ActionOverlay {
 0 = <userdata>
 Timers = <table> {}
 updateHotkeys = <func> @nUI\Bars\nUI_Button.lua:703
 nUI_CachedSetAllPoints = <func> =[C]:-1
 abCooldown = <func> @nUI\Bars\nUI_Button.lua:673
 updateCooldown = <func> @nUI\Bars\nUI_Button.lua:956
 button = nUI_TopLeftBar_Button1 {}
 onUpdate = <func> @nUI\Bars\nUI_Button.lua:884
 is_oor = false
 is_oom = false
 elapsed = 0
 layers = <table> {}
 nUI_CachedClearAllPoints = <func> =[C]:-1
 nUI_CachedSetPoint = <func> =[C]:-1
 is_usable = true
 updateUsable = <func> @nUI\Bars\nUI_Button.lua:764
 is_cdc = false
 nUI_init = true
}

Code:

2x nUI-5.07.32 (Plus)\Integration\nUI_KeyBinding.lua:159: <unnamed>:SetText(): Font not set
<in C code>
nUI-5.07.32 (Plus)\Integration\nUI_KeyBinding.lua:159: in function <nUI\Integration\nUI_KeyBinding.lua:101>

Locals:
frame = nUI_KeyBindingFrame {
 0 = <userdata>
 label2 = <unnamed> {}
 header = <unnamed> {}
 label1 = <unnamed> {}
}

Code:

2x nUI-5.07.32 (Plus)\Integration\nUI_InfoPanel.lua:315: nUI_InfoPanelSelector:SetPoint(): Couldn"t find region named "nUI_BottomRightBar"
<in C code>
nUI-5.07.32 (Plus)\Integration\nUI_InfoPanel.lua:315: in function "applyAnchor"
nUI-5.07.32 (Plus)\Integration\nUI_InfoPanel.lua:453: in function "applySkin"
nUI\Main\nUI-5.07.32 (Plus).lua:297: in function <nUI\Main\nUI.lua:138>

Locals:
anchor = <table> {
 relative_to = "nUI_BottomRightBar"
 yOfs = 0
 xOfs = -10
 relative_pt = "TOPLEFT"
 anchor_pt = "TOPRIGHT"
}
anchor = <table> {
 relative_to = "nUI_BottomRightBar"
 yOfs = 0
 xOfs = -10
 relative_pt = "TOPLEFT"
 anchor_pt = "TOPRIGHT"
}
anchor_pt = "TOPRIGHT"
relative_to = "nUI_BottomRightBar"
relative_pt = "TOPLEFT"
xOfs = -7.5000001025809
yOfs = 0
frame = nUI_InfoPanelSelector {
 0 = <userdata>
 relative_to = "nUI_BottomRightBar"
 scale = 1
 xOfs = -7.5000001025809
 Panels = <table> {}
 applySkin = <func> @nUI\Integration\nUI_InfoPanel.lua:429
 anchor = <table> {}
 anchor_pt = "TOPRIGHT"
 applyOptions = <func> @nUI\Integration\nUI_InfoPanel.lua:356
 options = <table> {}
 text = nUI_InfoPanelSelector_Label {}
 relative_pt = "TOPLEFT"
 width = 69.750000954002
 yOfs = 0
 enabled = true
 applyScale = <func> @nUI\Integration\nUI_InfoPanel.lua:250
 height = 25.649999935032
 applyAnchor = <func> @nUI\Integration\nUI_InfoPanel.lua:289
 button = nUI_InfoPanelSelector_Button {}
 Labels = <table> {}
}

Code:

2x nUI-5.07.32 (Plus)\Bars\nUI_PowerBars.lua:92: WarlockPowerFrame:SetPoint(): Couldn"t find region named "nUI_HUDLayout_PlayerTargetBottom"
<in C code>
nUI-5.07.32 (Plus)\Bars\nUI_PowerBars.lua:92: in function <nUI\Bars\nUI_PowerBars.lua:63>
nUI-5.07.32 (Plus)\Bars\nUI_PowerBars.lua:163: in function <nUI\Bars\nUI_PowerBars.lua:148>

Locals:
PTM_Frame = PTM_Frame {
 0 = <userdata>
 unit = "player"
}

Code:

2x Blizzard_TimeManager.lua:666: attempt to index global "BlizzardStopwatchOptions" (a nil value)
Blizzard_TimeManager.lua:666: in function <Blizzard_TimeManager.lua:642>

Locals:


Xrystal 06-23-13 05:08 PM

Looks like for some reason the nUI_L values aren't being recognised for some reason. For the first error message the following block of code is the one mentioned:

Code:

frame.label:SetJustifyH( "LEFT" );
frame.label:SetJustifyV( "MIDDLE" );
frame.label:SetFont( nUI_L["font2"], 10, "OUTLINE" );
frame.label:SetPoint( "TOPLEFT", frame, "TOPLEFT", 47, -10 );
frame.label:SetText( nUI_L["Minimap Button Bag"] );

As you can see the font and the text is using the nUI_L table to grab the text from. try putting a print(nUI_L["font2"]) statement in front of that block and the same for the text nUI_L as well and see whether it prints a nil or blank font or even a font that is getting removed from 5.4. If it comes up with a font name try replacing that font name with GameFontNormal and see what happens.

That said, I'll download the 5.4 ptr tonight and have a look tonight or tomorrow, depending on how quick it updates.

spiel2001 06-24-13 06:06 AM

Blizz has made changes to how saved variables are handled. There may be some new issues as a result. I spent some time testing with nUI6 yesterday, but haven't with nUI5 yet. There's almost certainly going to be some changes needed. /sigh

Xrystal 06-24-13 01:54 PM

Oh dear, guess I better get cracking on that download. wasn't even 50% through when I got up and left for work this morning so had to stop it so I didn't eat up the bandwidth from the family. Will carry on downloading when it gets to bed time so they can't moan at me rofl.

Daveo77 06-24-13 03:01 PM

Is this the change to Saved Varibles coming in 5.4 > Addon Change - 5.4 ?

Xrystal 06-24-13 03:29 PM

Its possible, but no message like that was reported. Just a regular error message.

Xrystal 06-26-13 12:07 AM

grr after days of patching over night it seems I need to download a fresh installer rather than it patch on top of the last ptr stuff that only went as far as 5.05 rofl. so have to start again tomorrow night rofl

spiel2001 06-26-13 10:37 AM

Yeah... my social director is working this weekend, so I expect to spend the weekend working on this, myself, as well.

Xrystal 06-28-13 04:09 PM

Test 1 : What values do nUI_L ?
.. Result: The correct ones
Test 2 : What happens if I try to manually set the font name to the text in nUI_L ?
.. Result: The same thing
Test 3 : What happens if I use the default fonts initially set in nUI_L["font1"] and nUI_L["font2"] ?
.. Result: It works
Test 4 : What happens if I move the font folder out of nUI//Layouts//Default//Fonts into the main wow folder and use the chosen fonts from the usual "Fonts" folder ?
.. Result: Same problem
Test 5 : What happens if I use the built in templates of GameFontNormal and GameFontHighlight ?
.. Result: It works for the fontstring it was created for
Test 6 : So, seeing that that works, what if I created my own font template to use my own font ?
.. Result: Either the server went down or I crashed the client ...

Overall result :
Either use the built in font style templates or use the built in fonts. It looks like custom fonts are not working any more. Further testing needed though.

Xrystal 06-28-13 04:51 PM

Continuation of tests once server came back up / game fixed itself :

Test 6 : So, seeing that that works, what if I created my own font template to use my own font ?
.. Result: Doesn't work whether you use the nUI font folder or wow font folder.

Test 7 : What if we do test 6 again and use one of the built in fonts ?
.. Result: Didn't work either, so possibility the XML font templates I created aren't correct ( see below )

Test 8 : Back to the only ways that worked. Either change the nUI_L to the built in fonts or use the built in font templates.
.. Result: Works flawlessly from the get go.

Once the buttonbag text is fixed nUI works fine.

Code:

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

        <Font name="Font1_Regular" font="Fonts\\ARIALN.TTF" virtual="true">
                <FontHeight>
                        <AbsValue val="10"/>
                </FontHeight>
        </Font>

        <Font name="Font2_Regular" font="Fonts\\FRIZQT__.TTF" virtual="true">
                <FontHeight>
                        <AbsValue val="10"/>
                </FontHeight>
        </Font>

        <Font name="Font1_Regular_Outline" inherits="Font1_Regular"  outline="NORMAL" virtual="true">
                <FontHeight>
                        <AbsValue val="10"/>
                </FontHeight>
        </Font>

        <Font name="Font2_Regular_Outline" inherits="Font2_Regular"  outline="NORMAL" virtual="true">
                <FontHeight>
                        <AbsValue val="10"/>
                </FontHeight>
        </Font>
</Ui>


Seer 08-13-13 03:59 PM

Just a heads up

http://blue.mmo-champion.com/topic/2...3-ending-soon/

2 weeks for 5.4 to hit I guess.


All times are GMT -6. The time now is 11:17 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI