Neuron

Neuron

98.2k Downloads

Keybinding error

40P3 opened this issue · 6 comments

commented

Hi,

Noticed on my hunter that when I pushed my mount button it used a different mount than it was on neuron's macro. Seems like the game's main bar keybinding is active in the background (thus a normal blizzard macro mount was the button using). Then I reallized I got no button keybinding setup in neuron. When I tried to set buttons I saw this error:

24x Neuron\Neuron-KeyBinder.lua:235: attempt to index field 'hotKeys' (a nil value)
Neuron\Neuron-KeyBinder.lua:235: in function ProcessBinding' Neuron\Neuron-KeyBinder.lua:397: in function OnKeyDown'
Neuron\Neuron-KeyBinder.lua:434: in function <Neuron\Neuron-KeyBinder.lua:434>

Locals:
self =

{
SetDefaultModuleLibraries = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:398
Enable = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:325
NewModule = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:266
EnableModule = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:363
modules =
{
}
GetModule = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:241
IterateEmbeds = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:473
SecureHook = defined @arkinventory\Externals\Ace3\AceHook\AceHook-3.0.lua:336
defaultModuleLibraries =
{
}
OnUpdate = defined @neuron\Neuron-KeyBinder.lua:326
baseName = "Neuron"
CreateBindFrame = defined @neuron\Neuron-KeyBinder.lua:421
RawHookScript = defined @arkinventory\Externals\Ace3\AceHook\AceHook-3.0.lua:395
OnShow = defined @neuron\Neuron-KeyBinder.lua:250
OnMouseWheel = defined @neuron\Neuron-KeyBinder.lua:403
OnKeyDown = defined @neuron\Neuron-KeyBinder.lua:386
OnClick = defined @neuron\Neuron-KeyBinder.lua:339
SetDefaultModulePrototype = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:440
OnLeave = defined @neuron\Neuron-KeyBinder.lua:319
ClearBindings = defined @neuron\Neuron-KeyBinder.lua:144
OnEnter = defined @neuron\Neuron-KeyBinder.lua:280
name = "Neuron_Binder"
ApplyBindings = defined @neuron\Neuron-KeyBinder.lua:190
IsEnabled = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:482
orderedModules =
{
}
OnHide = defined @neuron\Neuron-KeyBinder.lua:275
DisableModule = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:381
ProcessBinding = defined @neuron\Neuron-KeyBinder.lua:224
GetKeyText = defined @neuron\Neuron-KeyBinder.lua:105
SetNeuronBinding = defined @neuron\Neuron-KeyBinder.lua:172
GetName = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:310
RegisterMessage = defined @accountant\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:116
UnregisterMessage = defined @accountant\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:179
GetModifier = defined @neuron\Neuron-KeyBinder.lua:55
OnDisable = defined @neuron\Neuron-KeyBinder.lua:44
IsHooked = defined @arkinventory\Externals\Ace3\AceHook\AceHook-3.0.lua:493
OnEnable = defined @neuron\Neuron-KeyBinder.lua:35
OnInitialize = defined @neuron\Neuron-KeyBinder.lua:26
IsModule = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:248
hooks =
{
}
SetDefaultModuleState = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:418
SendMessage = defined @accountant\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:85
UnhookAll = defined @arkinventory\Externals\Ace3\AceHook\AceHook-3.0.lua:477
SetEnabledState = defined @accountant\Libs\AceAddon-3.0\AceAddon-3.0.lua:455
Hook = defined @arkinventory\Externals\Ace3\AceHook\AceHook-3.0.lua:274
enabledState = true
Unhook = defined @arkinventory\Externals\Ace3\AceHook\AceHook-3.0.lua:418
RegisterEvent = defined @accou

To be fair on this tune I have a different UI setup than on most of my toon, I set up the Overwatch UI OwD. Maybe its a conflict, but on other char (yesterday played my paladin) I didn't notice this error yet.

commented

Hi,

Thanks for getting back to me about this. For some reason I had to set up all my chars like above once, then the keybinding stayed and no errors.
If I would make a new char and enable neuron I believe the error would occur once, until I set up keybinding and do a Reload.
Can you try it? I will try it once I get a little time today.

commented

Is this still an issue?

commented

Hi,

On a new character all looks good. Seems like some addon conflict that can be fixed with UI reload.

Would be good to include regarding comments on the site about keymapping issue might occur with other (unknown) addons but a /reloadui will fix it and next time you able to change key mappint.
Other than that I guess it's all good. :)

Thanks!

commented

To be fair, after /reloadui I was able to set the keybinding on Neuron.

commented
commented

Last wednesday update, 0.9.37a