ElvUI Enhanced Again (DF)

ElvUI Enhanced Again (DF)

1M Downloads

Minimap error inside dungeons.

Opened this issue ยท 2 comments

commented

Got this error today when doing dungeons. Maybe related to the removal of the position stuff? I don't know, but would be nice if you could find a fix.

Thanks in advance!

1397x ...dOns\ElvUI_Enhanced\modules\maps\minimaplocation.lua:19: attempt to perform arithmetic on field 'pos' (a nil value)
...dOns\ElvUI_Enhanced\modules\maps\minimaplocation.lua:19: in function <...dOns\ElvUI_Enhanced\modules\maps\minimaplocation.lua:14>

Locals:
self = EnhancedLocationPanel {
0 =
}
elapsed = 1.1610000133514
(_temporary) = defined =[C]:-1
(_temporary) = {
0 =
fontSize = 12
fontStyle = "OUTLINE"
}
(_temporary) = "%.1f"
(_temporary) = nil
(*temporary) = "attempt to perform arithmetic on field 'pos' (a nil value)"
location = EnhancedLocationText {
0 =
text = {
}
template = "Transparent"
elapsed = 1.3310000244528
}
digits =

{
0 =
{
}
2 =
{
}
1 =
{
}
}
E =
{
GetTimeInfo = defined @ElvUI\core\math.lua:322
Bags =
{
}
resolution = "1920x1080"
modules =
{
}
CancelTimer = defined @ElvUI\Libraries\AceTimer-3.0\AceTimer-3.0.lua:145
FormatMoney = defined @ElvUI\core\math.lua:366
ExitVehicleShowFrames = defined @ElvUI\core\core.lua:1092
StaticPopup_EscapePressed = defined @ElvUI\core\staticpopups.lua:411
CopyTable = defined @ElvUI\core\core.lua:623
MassGuildKick = defined @ElvUI\core\commands.lua:78
SetMoversPositions = defined @ElvUI\core\movers.lua:468
ScheduleTimer = defined @ElvUI\Libraries\AceTimer-3.0\AceTimer-3.0.lua:92
PriestColors =
{
}
RegisterModule = defined @ElvUI\core\core.lua:1168
SetupTheme = defined @ElvUI\core\install.lua:216
media =
{
}
SetUpAnimGroup = defined @ElvUI\core\animation.lua:11
bags =
{
}
data =
{
}
EnableBlizzardAddOns = defined @ElvUI\core\commands.lua:193
UIScale = defined @ElvUI\core\pixelperfect.lua:18
db =
{
}
FramesOverlap = defined @ElvUI\core\math.lua:96
SetEnabledState = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:455
Hook = defined @ElvUI\Libraries\AceHook-3.0\AceHook-3.0.lua:274
Options =
{
}
Layout =
{
}
tDeleteItem = defined @ElvUI\core\animation.lua:290
LoadCommands = defined @ElvUI\core\commands.lua:203
SendPluginVersionCheck = defined @ElvUI\Libraries\LibElvUIPlugin-1.0\LibElvUIPlugin-1.0.lua:143
HiddenFrame = {
}
NewModule = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:266
diffGetRight = 0
UIFrameFade = defined @ElvUI\core\animation.lua:229
MinimapWidth = 176
StaticPopup_IsLastDisplayedFrame = defined @ElvUI\core\staticpopups.lua:472
Truncate = defined @ElvUI\core\math.lua:77
UpdateBackdropColors = defined @ElvUI\core\core.lua:447
StaticPopup_OnHide = defined @ElvUI\core\staticpopups.lua:512
RemoveTableDuplicates = defined @ElvUI\core\core.lua:667
name = "ElvUI"
WorldMap =
{
}
MinimapHeight = 176
Disable = defined @Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:345
DF =
{
}
SlideOut = defined @ElvUI\core\animation.lua:174
Unhook = defined @ElvUI\Libraries\AceHook-3.0\AceHook-3.0.lua:418
Print = defined @ElvUI\core\core.lua:172
Install = defined @ElvUI\core\install.lua:857
UnregisterObjectForVehicleLock = defined @ElvUI\core\core.lua:1123
LockedCVars =
{
}
TimeFormats =
{
}
RGBToHex = defined @ElvUI\core\math.lua:82
RequestBGInfo = defined @ElvUI\core\core.lua:398
HealingClasses =
{
}
diffGetLeft = 0
Tutorials = defined @ElvU

commented

in 7.1 "GetPlayerMapPosition" got remove while in instance (and in party too?), my workaround:

in file "ElvUI_Enhanced\modules\maps\minimaplocation.lua"

local function UpdateLocation(self, elapsed)
    location.elapsed = (location.elapsed or 0) + elapsed
    if location.elapsed < digits[E.private.general.minimap.locationdigits][1] then return end

    xMap.pos, yMap.pos = GetPlayerMapPosition('player')

    if xMap.pos then
       xMap.text:SetFormattedText(digits[E.private.general.minimap.locationdigits][2], xMap.pos * 100)
    else
       xMap.text:SetText("---")
    end

    if yMap.pos then
       yMap.text:SetFormattedText(digits[E.private.general.minimap.locationdigits][2], yMap.pos * 100)
    else
       yMap.text:SetText("---")
    end

    location.elapsed = 0
end
commented

Seems to do the job!
Thanks!