fiskee / DoMeWhen-Classic

GNU General Public License v3.0
31 stars 28 forks source link

Error #10

Open r00tdown opened 4 years ago

r00tdown commented 4 years ago

Message: ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:65: invalid order function for sorting Time: Sat Nov 30 10:40:23 2019 Count: 15 Stack: ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:65: invalid order function for sorting [C]: in function sort' ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:65: in function <...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:29> ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:135: in function <...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:97> ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:164: in functionUpdateOM' Interface\AddOns\DoMeWhen-Classic\Core.lua:75: in function <Interface\AddOns\DoMeWhen-Classic\Core.lua:66>

Locals: (temporary) =

{ 1 =
{ } 2 =
{ } 3 =
{ } 4 =
{ } } (temporary) = defined @Interface\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:67 (temporary) =
{ GUID = "Creature-0-4491-1-19-5286-000161DE83" ObjectID = 5286 Pointer = "0x000002AACBDFCBD4" HealthMax = 3260 EnemyScore = 15 PosX = -4480.343262 Attackable = true Quest = false Dead = false CombatReach = 1.250000 Classification = "normal" PosY = 3550.932861 Distance = 0 Health = 1075.800000 LoS = true Friend = false TTD = 3.451282 Target = "0x000002AACFF757B0" Level = 40 Facing = false SwingMH = 0 RealHealth = true ValidEnemy = true Moving = false LoSCache =
{ } NextUpdate = 12661.065000 Player = false Name = "Longtooth Runner" Trackable = false CreatureType = "Beast" PosZ = 20.354319 HP = 33.000000 DistanceAggro = 14.750000 } (temporary) =
{ GUID = "Creature-0-4491-1-19-5286-0000E1DD74" ObjectID = 5286 Pointer = "0x000002AACBDC1D74" HealthMax = 3260 EnemyScore = 1.000000 PosX = -4481.954590 Attackable = true Quest = false Dead = false CombatReach = 1.250000 Classification = "normal" PosY = 3555.406006 Distance = 0 Health = 32.600000 LoS = true Friend = false TTD = -1 Target = "0x000002AACFF757B0" Level = 40 Facing = true SwingMH = 1.438000 RealHealth = true ValidEnemy = true Moving = false LoSCache =
{ } NextUpdate = 12661.041300 Player = false Name = "Longtooth Runner" Trackable = false CreatureType = "Beast" PosZ = 20.407787 HP = 1 DistanceAggro = 14.750000 } (*temporary) = nil

fiskee commented 4 years ago

I think the error can occur if current target is not in the list of units, will try to find a non heavy way of doing a extra check. I never got the error myself I think, but will try to force it. Should not break anything, so error can be ignored.

r00tdown commented 4 years ago

The error occurs when more than one target is on my rogue. Yes doesn't break anything keeps working fine.

Message: ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:67: invalid order function for sorting Time: Wed Dec 11 11:04:11 2019 Count: 1 Stack: ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:67: invalid order function for sorting [C]: in function sort' ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:67: in function <...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:31> ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:137: in function <...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:99> ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:166: in functionUpdateOM' Interface\AddOns\DoMeWhen-Classic\Core.lua:75: in function <Interface\AddOns\DoMeWhen-Classic\Core.lua:66>

Locals: (temporary) =

{ 1 =
{ } 2 =
{ } 3 =
{ } 4 =
{ } } (temporary) = defined @Interface\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:69 (temporary) =
{ GUID = "Creature-0-4491-0-228-8675-00007062B9" ObjectID = 8675 Pointer = "0x0000028786E443A8" HealthMax = 2944 EnemyScore = 15 PosX = -11213.463867 Attackable = true Quest = false Dead = false CombatReach = 1.275000 Classification = "normal" PosY = -3309.854248 Distance = 0 Health = 2944 LoS = true Friend = false TTD = 999 Target = "0x000002876A2479A0" Level = 50 Facing = true SwingMH = 0 RealHealth = true ValidEnemy = true Moving = false LoSCache =
{ } NextUpdate = 10202.650300 Player = false Name = "Felbeast" Trackable = false CreatureType = "Demon" PosZ = 8.654659 HP = 100 DistanceAggro = 17.725000 } (temporary) =
{ GUID = "Creature-0-4491-0-228-8675-000070634A" ObjectID = 8675 Pointer = "0x0000028786DFA9B0" HealthMax = 2944 EnemyScore = 6.022109 PosX = -11210.137695 Attackable = true Quest = false Dead = false CombatReach = 1.275000 Classification = "normal" PosY = -3308.571289 Distance = 0 Health = 117.760000 LoS = true Friend = false TTD = 2.192384 Target = "0x000002876A2479A0" Level = 50 Facing = true SwingMH = 0 RealHealth = true ValidEnemy = true Moving = false LoSCache =
{ } NextUpdate = 10202.595700 Player = false Name = "Felbeast" Trackable = false CreatureType = "Demon" PosZ = 8.584365 HP = 4 DistanceAggro = 17.725000 } (*temporary) = nil

r00tdown commented 4 years ago

New errors... also get erros in MC alot. Message: ...ce\AddOns\DoMeWhen-Classic\Classes\Unit\Position.lua:9: attempt to perform arithmetic on field 'PosX' (a nil value) Time: Tue Dec 31 20:54:44 2019 Count: 778 Stack: ...ce\AddOns\DoMeWhen-Classic\Classes\Unit\Position.lua:9: attempt to perform arithmetic on field 'PosX' (a nil value) ...ce\AddOns\DoMeWhen-Classic\Classes\Unit\Position.lua:9: in function GetDistance' ...erface\AddOns\DoMeWhen-Classic\Classes\Unit\Unit.lua:40: in functionUpdate' ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:110: in function <...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:99> ...ace\AddOns\DoMeWhen-Classic\System\ObjectManager.lua:166: in function `UpdateOM' Interface\AddOns\DoMeWhen-Classic\Core.lua:75: in function <Interface\AddOns\DoMeWhen-Classic\Core.lua:66>

Locals: self =

{ GUID = "Creature-0-4490-1-28-7111-00000B527C" ObjectID = 7111 Pointer = "0x000001FC90D5B72C" HealthMax = 2426 EnemyScore = 0 Attackable = false Quest = false Dead = true CombatReach = 2.500000 Classification = "normal" Distance = 100.964585 Health = 0 LoS = false Friend = false TTD = -1 Level = 54 Facing = false SwingMH = 0 RealHealth = true ValidEnemy = false Moving = false LoSCache =
{ } NextUpdate = 133903.855100 Player = false Name = "Jadefire Hellcaller" Trackable = false CreatureType = "Demon" HP = 0 DistanceAggro = 14.500000 } OtherUnit =
{ GUID = "Player-4487-0006D81C" PowerDeficit = 62 Combat = 133895.323000 Pointer = "0x000001FC51F971D0" SwingMH = 0.292000 PosX = 6442.868652 Looting = false ComboPoints = 1 CombatReach = 1.500000 PosY = -811.956970 Power = 38 Distance = 0 EID = false Equipment =
{ } NoControl = false Health = 2860 InGroup = false PetActive = false Debuffs =
{ } NextTick = 1.119000 ComboMax = 5 Class = "ROGUE" ComboDeficit = 4 Resting = false PowerRegen = 10.001000 HealthMax = 3051 CombatTime = 8.468000 Level = 56 Spells =
{ } TickTime = 133904.910000 Talents =
{ } SwingOH = 0.683000 Buffs =
{ } Rotation = defined @Interface\AddOns\DMWC-Rogue\Rotation.lua:215 Instance = "none" CombatLeft = false CombatLeftTime = 0 Items =
{ } PowerMax = 100 Moving = false PowerPct = 38 Professions =
{ } PosZ = 473.129547 HP = 93.739757 LastCast =
{ } } (temporary) = defined =[C]:-1 (temporary) = nil (temporary) = 6442.868652 (temporary) = nil (*temporary) = "attempt to perform arithmetic on field 'PosX' (a nil value)" DMW =
{ SetDefaultModuleLibraries = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:367 Enable = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:294 RegisterChatCommand = defined @Interface\AddOns\Bartender4\libs\AceConsole-3.0\AceConsole-3.0.lua:85 EnableModule = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:332 modules =
{ } GetModule = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:210 IterateEmbeds = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:442 defaultModuleLibraries =
{ } UnregisterChatCommand = defined @Interface\AddOns\Bartender4\libs\AceConsole-3.0\AceConsole-3.0.lua:111 Functions =
{ } Printf = defined @Interface\AddOns\Bartender4\libs\AceConsole-3.0\AceConsole-3.0.lua:69 OnProfileChanged = defined @Interface\AddOns\DoMeWhen-Classic\System\Settings.lua:122 GetName = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:279 Units =
{ } Classes =
{ } name = "DMW" Enums =
{ } IsEnabled = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\AceAddon-3.0.lua:451 orderedModules =
{ } DisableModule = defined @Interface\AddOns\Bartender4\libs\AceAddon-3.0\

Lezbaby commented 4 years ago

Same here