rursache / InFlight-TWW

InFlight Taxi Timer World of Warcraft Addon
13 stars 2 forks source link

1x InFlight_Load/InFlight_Load.lua:129: attempt to call global 'InterfaceOptions_AddCategory' (a nil value) #2

Closed Hollicsh closed 4 months ago

Hollicsh commented 4 months ago

1x InFlight_Load/InFlight_Load.lua:129: attempt to call global 'InterfaceOptions_AddCategory' (a nil value) [string "@InFlight_Load/InFlight_Load.lua"]:129: in function SetupInFlight' [string "@InFlight_Load/InFlight_Load.lua"]:21: in function?' [string "@InFlight_Load/InFlight_Load.lua"]:3: in function <InFlight_Load/InFlight_Load.lua:3>

Locals: self = InFlight { L =

{ } } panel = Frame { name = "InFlight" } (temporary) = nil (temporary) = Frame { name = "InFlight" } (*temporary) = "attempt to call global 'InterfaceOptions_AddCategory' (a nil value)" InFlight = InFlight { L =
{ } }

rursache commented 4 months ago

Add the steps to reproduce this issue or I'll close it..

Hollicsh commented 4 months ago

I just go into the game and get this error.

rursache commented 4 months ago

Its safe to ignore it for now, it will get fixed soon. meantime run:

/console scriptErrors 0

in chat to hide lua errors

Daveo7 commented 4 months ago

To fix this...

In InFlight_Load/InFlight_Load.lua remove...

InterfaceOptions_AddCategory(panel)

...and replace it with these two lines...

local category = Settings.RegisterCanvasLayoutCategory(self, "InFlight") Settings.RegisterAddOnCategory(category)