Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/03/22, 06:43 PM   #1
RainyDays
Join Date: Jul 2022
Posts: 1
Cannot understand why "attempt to index a nil value" is appearing

I am using the OblivionStyleHUD add-on which has been causing my game to hang when I try to logout to select a different character. I'm trying to figure it out and the only noticeable issue I have with the addon is this error message upon login:

Code:
user/AddOns/OblivionStyleHUD/Prettyadditions.lua:24: attempt to index a nil value
<Locals> MyTexture = ud, MyTexture = ud, MyTexture = ud, MyTexture = ud, </Locals>
At 24:

MyTexture:SetDimensions(1330,75)

Here's the full chunk of code there:

Lua Code:
  1. local MyTexture = WINDOW_MANAGER:CreateControl("Inventory4", ZO_QuickSlot, CT_TEXTURE)  
  2. MyTexture:SetDimensions(1330,75)
  3. MyTexture:SetAnchor(TOPLEFT, ZO_StatsPanelTitleSection, TOPLEFT, -15, 30)
  4. MyTexture:SetTexture("/OblivionStyleHud/media/details/inv_tab3.dds")

I found the functions in LibAddonMenu-2.0 and I looked at the texture list documentation and things appear to be accurate? I can't understand why it's popping the error and my research led me here. I don't know if that can be the cause of my game freezing upon logout, but it's worth a shot to fix that anyway. Thank you
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Cannot understand why "attempt to index a nil value" is appearing


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