attempt to index global 'ButtonForgeSave' (a nil value) #1
Labels
Sans labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Sans jalon
Sans projet
Sans assignation
1 participant
Échéance
Aucune échéance n'a été définie.
Bloque
#4 Addon is not working in classic WoW}
Albirew/ButtonForge-classic
Référence : Albirew/ButtonForge-classic#1
Chargement…
Référencer dans un nouveau ticket
Sans contenu.
Supprimer la branche "%!s()"
La suppression d’une branche est permanente. Bien qu’une branche supprimée puisse temporairement subsister, elle NE PEUT PAS être facilement restaurée. Continuer ?
some example when interacting buttonforge:
open BF: Message: Interface\AddOns\ButtonForge-classic\UILibLayers.lua:17: attempt to index global 'ButtonForgeSave' (a nil value)
close BF: Message: Interface\AddOns\ButtonForge-classic\UILibLayers.lua:33: attempt to index global 'ButtonForgeSave' (a nil value)
creating a bar: Message: Interface\AddOns\ButtonForge-classic\Util.lua:744: attempt to index global 'ButtonForgeSave' (a nil value)
etc.
trying to copy account/character saved variable from retail account results in content being overwitten by nil values:
global:
ButtonForgeGlobalSettings = nil
ButtonForgeGlobalProfiles = nil
ButtonForgeGlobalBackup = nil
character:
ButtonForgeSave = nil
BFSave = nil
PM from xfsbill at Curse:
Alright. I've managed to successfully installed the classic addon. After debugging for a while, I realized that some SavedVariables are saved in the character WTF folder. Digging out more, I found that in Classic you seems to absolutely need to declares your variables (specially the tables). If not, when trying to assign values, it will fail.
If you add the following at the end of Declares.lua, you will get a bit further:
In Bar.lua line 326, you need to change
to
It doesn't seem to exist in Classic.
Another thing if you want to speed your testing, create 2 macros:
1- Show/Hide Lua Errors
2- Toggle ButtonForge
This last macro will avoid having to go under the Addons menu every time you want to pop the toolbar. You won't it anymore once you got a working BF bar.
Hope that helps. There's still a lot to fix to make this usable but it should get you started.
also related to
3313d1df69