ElvUI Enhanced Again (DF)

ElvUI Enhanced Again (DF)

1M Downloads

Attempt to perform arithmetic on local 'ButtonsPerRow' (a nil value)

RinZjx opened this issue ยท 3 comments

commented

Getting this error when switching profile and trying to use the buttons per row slider

[string "@ElvUI_Enhanced\modules\maps\minimapbuttons.lua"]:192: in function `UpdateLayout'
[string "@ElvUI_Enhanced\modules\maps\minimapbuttons.lua"]:310: in function `?'
[string "@ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0-17.lua"]:55: in function <...s\ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0.lua:50>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:367
 Enable = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:294
 NewModule = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:235
 CreateFrames = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:319
 EnableModule = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:332
 modules = <table> {
 }
 GetModule = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:210
 IterateEmbeds = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:442
 SecureHookScript = <function> defined @ElvUI\Libraries\Ace3\AceHook-3.0\AceHook-3.0.lua:410
 defaultModuleLibraries = <table> {
 }
 TimeLeft = <function> defined @ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0.lua:172
 RawHookScript = <function> defined @ElvUI\Libraries\Ace3\AceHook-3.0\AceHook-3.0.lua:395
 ScheduleRepeatingTimer = <function> defined @ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0.lua:129
 CancelAllTimers = <function> defined @ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0.lua:160
 GetName = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:279
 defaultModuleState = true
 baseName = "ElvUI_Enhanced"
 name = "ElvUI_MinimapButtons"
 Initialize = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:340
 IsEnabled = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:451
 orderedModules = <table> {
 }
 ScheduleTimer = <function> defined @ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0.lua:94
 DisableModule = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:350
 StartSkinning = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:313
 UpdateLayout = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:181
 ChangeMouseOverSetting = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:296
 SkinMinimapButtons = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:304
 RegisterMessage = <function> defined @ElvUI\Libraries\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
 HookScript = <function> defined @ElvUI\Libraries\Ace3\AceHook-3.0\AceHook-3.0.lua:366
 CancelTimer = <function> defined @ElvUI\Libraries\Ace3\AceTimer-3.0\AceTimer-3.0.lua:147
 SecureHook = <function> defined @ElvUI\Libraries\Ace3\AceHook-3.0\AceHook-3.0.lua:336
 IsHooked = <function> defined @ElvUI\Libraries\Ace3\AceHook-3.0\AceHook-3.0.lua:493
 SkinButton = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:81
 UpdateSkinStyle = <function> defined @ElvUI_Enhanced\modules\maps\minimapbuttons.lua:168
 IsModule = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:217
 db = <table> {
 }
 SetDefaultModuleState = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:387
 UnregisterAllEvents = <function> defined @ElvUI\Libraries\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
 SendMessage = <function> defined @ElvUI\Libraries\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:59
 SetEnabledState = <function> defined @ElvUI\Libraries\Ace3\AceAddon-3.0\AceAddon-3.0.lua:424
 Hook = <function> defined @ElvUI\Libraries\Ace3\AceHook-3.0\AceHook-3.0.lua:274
 enabledState = true
 UnregisterMessage = <function> defined @ElvUI\Libraries\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
 RegisterEvent = <function> defined @I```
commented

This problem can be fixed by adding these three lines to the file modules/maps/minimapbuttons.lua, after line 230:

	if not ButtonsPerRow or ButtonsPerRow <= 0 then
		return
	end
commented

Hey, I was on a holiday, sorry for the late reply. I tried to reproduce the error but was not able too. Are you switching to an older profile? Because every new profile would have set ButtonsPerRow by default.

commented

I was getting the error when I logged in, not when switching profiles, and I have never tried to adjust the setting manually.

It doesn't appear that any of my characters have the minimap buttonsPerRow setting in the WTF.