BugSack

BugSack

7M Downloads

SoD Error and not loading.

ShalaAddons opened this issue ยท 1 comments

commented

Describe the problem

I have to use version 10.2.4 for Buggsack to even load.

What steps will reproduce the problem?

  1. Install any version newer than 10.2.4

Consider attaching a screenshot below to help describe your issue (Attach directly, do not link to other websites)

What version of the addon are you using? (Stating 'latest' is not useful)

10.2.4

Do you have an error log of what happened?

192x BugSack/config.lua:151: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@BugSack/config.lua"]:151: in main chunk

Any additional information? (example: WoW language if not English)

Changing Line 151 in config.lua to the below code seems to fix the issue:

`-- Register the addon options frame using the new SettingsPanel system
local function RegisterOptionsFrame()
local category = Settings.RegisterCanvasLayoutCategory(frame, addonName)
category.ID = addonName
Settings.RegisterAddOnCategory(category)
end

frame:SetScript("OnShow", function(frame)
-- Your existing UI setup code here...
frame:SetScript("OnShow", nil) -- Prevent reinitialization on subsequent shows
end)

-- Register the options frame at an appropriate time
RegisterOptionsFrame()`

commented

Don't use old versions and you won't get errors.