KuiNameplates

KuiNameplates

11M Downloads

Errors with new target and enemy nameonly

adrloza opened this issue ยท 3 comments

commented

The new beta features are giving me a bunch of errors (on my warrior). With nameonly mode on target activated and targeting something, I get this error. Then it seems like the feature isn't working.

Message: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:277: attempt to index upvalue 'cpf' (a nil value)
Time: 08/04/16 09:53:13
Count: 7
Stack: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:277: in function <...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:258>
...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:361: in function TargetUpdate' Interface\AddOns\Kui_Nameplates_Core\create.lua:1280: in functionNameOnlyUpdateFunctions'
Interface\AddOns\Kui_Nameplates_Core\hook.lua:130: in function func' Interface\AddOns\Kui_Nameplates\messages.lua:33: in functionDispatchMessage'
Interface\AddOns\Kui_Nameplates\elements/target.lua:9: in function <Interface\AddOns\Kui_Nameplates\elements/target.lua:7>
Interface\AddOns\Kui_Nameplates\elements/target.lua:32: in function func' Interface\AddOns\Kui_Nameplates\messages.lua:81: in function <Interface\AddOns\Kui_Nameplates\messages.lua:44> [C]: in functionCameraOrSelectOrMoveStop'
[string "CAMERAORSELECTORMOVE"]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

Locals: frame = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(*temporary) = "attempt to index upvalue 'cpf' (a nil value)"
on_target = nil
cpf = nil
FRAME_POINT = nil
ele =

{
Enable = defined @interface\AddOns\Kui_Nameplates\messages.lua:329
PLAYER_ENTERING_WORLD = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:364
Initialise = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:483
Initialised = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:459
PowerEvent = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:431
priority = 0
OnDisable = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:454
__CALLBACKS =
{
}
callbacks =
{
}
element = true
RuneUpdate = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:414
OnEnable = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:443
PowerInit = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:368
TargetUpdate = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:360
name = "ClassPowers"
UpdateConfig = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:302
Disable = defined @interface\AddOns\Kui_Nameplates\messages.lua:338
}

When I targeting something else, or stop targeting anything, I get this error.

Message: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:277: attempt to index upvalue 'cpf' (a nil value) Time: 08/04/16 09:53:13 Count: 7 Stack: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:277: in function <...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:258> ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:361: in functionTargetUpdate'
Interface\AddOns\Kui_Nameplates_Core\create.lua:1280: in function NameOnlyUpdateFunctions' Interface\AddOns\Kui_Nameplates_Core\hook.lua:142: in functionfunc'
Interface\AddOns\Kui_Nameplates\messages.lua:33: in function DispatchMessage' Interface\AddOns\Kui_Nameplates\elements/target.lua:13: in function <Interface\AddOns\Kui_Nameplates\elements/target.lua:11> Interface\AddOns\Kui_Nameplates\elements/target.lua:17: in function <Interface\AddOns\Kui_Nameplates\elements/target.lua:15> Interface\AddOns\Kui_Nameplates\elements/target.lua:25: in functionfunc'
Interface\AddOns\Kui_Nameplates\messages.lua:81: in function <Interface\AddOns\Kui_Nameplates\messages.lua:44>
[C]: in function `CameraOrSelectOrMoveStop'
[string "CAMERAORSELECTORMOVE"]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

Locals: frame = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(_temporary) = nil
(*temporary) = "attempt to index upvalue 'cpf' (a nil value)"
on_target = nil
cpf = nil
FRAME_POINT = nil
ele =

{
Enable = defined @interface\AddOns\Kui_Nameplates\messages.lua:329
PLAYER_ENTERING_WORLD = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:364
Initialise = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:483
Initialised = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:459
PowerEvent = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:431
priority = 0
OnDisable = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:454
__CALLBACKS =
{
}
callbacks =
{
}
element = true
RuneUpdate = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:414
OnEnable = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:443
PowerInit = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:368
TargetUpdate = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:360
name = "ClassPowers"
UpdateConfig = defined @interface\AddOns\Kui_Nameplates\elements/classpowers.lua:302
Disable = defined @interface\AddOns\Kui_Nameplates\messages.lua:338
}
`

In addition, another error I get is when I have the nameonly selected for enemies, but not for target. I get a health bar every other time I target an enemy. So I get one for the first time I target something, switching targets gives me no healthbar, and switching targets to a 3rd target gives me the health bar again.

Message: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:281: attempt to index upvalue 'FRAME_POINT' (a nil value) Time: 08/04/16 10:01:20 Count: 16 Stack: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:281: in function <...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:258> ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:361: in functionTargetUpdate'
Interface\AddOns\Kui_Nameplates_Core\create.lua:1280: in function NameOnlyUpdateFunctions' Interface\AddOns\Kui_Nameplates_Core\hook.lua:105: in functionfunc'
Interface\AddOns\Kui_Nameplates\messages.lua:33: in function DispatchMessage' ...terface\AddOns\Kui_Nameplates\elements/healthbar.lua:66: in functionUpdateHealthColour'
...terface\AddOns\Kui_Nameplates\elements/healthbar.lua:96: in function `func'
Interface\AddOns\Kui_Nameplates\messages.lua:79: in function <Interface\AddOns\Kui_Nameplates\messages.lua:44>

Locals: frame = KuiNamePlate1 {
LevelText = {
}
Highlight = {
}
UpdateMainBars = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:333
parent = NamePlate1 {
}
UpdateTargetArrows = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:680
UpdateRaidIcon = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:934
UpdateFrameGlow = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:583
bg = {
}
TargetGlow = {
}
NameText = {
}
state =

{
}
x = 4
y = 13
unit = "nameplate1"
ShowCastBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:743
NameOnlyGlow = {
}
RaidIcon = {
}
UpdateStateIcon = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:901
UpdateAuras = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:1009
UpdateFrameSize = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:290
animated_bars =
{
}
SpellIcon = {
}
ThreatBrackets =
{
}
HealthText = {
}
StateIcon = {
}
handler =
{
}
CastBar = {
}
Auras =
{
}
UpdateCastbarSize = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:817
0 =
SpellIconSetWidth = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:737
UpdateCastBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:777
PowerBar = {
}
SpellName = {
}
HideCastBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:769
UpdateSpellNamePosition = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:814
UpdatePowerBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:365
SpellShield = {
}
UpdateNameTextPosition = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:436
TargetArrows =
{
}
elements =
{
}
UpdateThreatBrackets = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:1174
UpdateLevelText = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:451
GuildText = {
}
CastBarUpdateFrame = {
}
UpdateHealthText = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:496
HealthBar = {
}
UpdateNameText = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:393
ThreatGlow =
{
}
cast_state =
{
}
}
(_temporary) = nil
(_temporary) = "player"
(*temporary) = NamePlate1 {
namePlateUnitToken = "nameplate1"
driverFrame = NamePlateDriverFrame {
}
UnitFrame = NamePlate1UnitFrame {
}
ApplyOffsets = defined @interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:288
OnRemoved = defined @interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:275
kui = KuiNamePlate1 {
}
0 =
OnAdded = defined @interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:`

Another error I got was this one, although I have no idea how this happened or what its related to.
Message: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:281: attempt to index upvalue 'FRAME_POINT' (a nil value) Time: 08/04/16 10:04:20 Count: 62 Stack: ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:281: in function <...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:258> ...rface\AddOns\Kui_Nameplates\elements/classpowers.lua:361: in functionTargetUpdate'
Interface\AddOns\Kui_Nameplates_Core\create.lua:1280: in function NameOnlyUpdateFunctions' Interface\AddOns\Kui_Nameplates_Core\hook.lua:105: in functionfunc'
Interface\AddOns\Kui_Nameplates\messages.lua:33: in function DispatchMessage' Interface\AddOns\Kui_Nameplates\plugins/execute.lua:83: in functionHealthColourChange'
Interface\AddOns\Kui_Nameplates\plugins/execute.lua:89: in function `func'
Interface\AddOns\Kui_Nameplates\messages.lua:79: in function <Interface\AddOns\Kui_Nameplates\messages.lua:44>

Locals: frame = KuiNamePlate1 {
LevelText = {
}
Highlight = {
}
UpdateMainBars = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:333
parent = NamePlate1 {
}
UpdateTargetArrows = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:680
UpdateRaidIcon = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:934
UpdateFrameGlow = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:583
bg = {
}
TargetGlow = {
}
NameText = {
}
UpdateHealthText = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:496
ThreatGlow =

{
}
isChatBubble = false
state =
{
}
x = 4
y = 13
unit = "nameplate1"
ShowCastBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:743
NameOnlyGlow = {
}
RaidIcon = {
}
UpdateStateIcon = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:901
UpdateAuras = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:1009
UpdateFrameSize = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:290
animated_bars =
{
}
SpellIcon = {
}
ThreatBrackets =
{
}
HealthText = {
}
StateIcon = {
}
handler =
{
}
CastBar = {
}
Auras =
{
}
UpdateCastbarSize = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:817
0 =
SpellIconSetWidth = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:737
UpdateCastBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:777
PowerBar = {
}
SpellName = {
}
HideCastBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:769
UpdateSpellNamePosition = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:814
UpdatePowerBar = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:365
SpellShield = {
}
UpdateNameTextPosition = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:436
TargetArrows =
{
}
elements =
{
}
UpdateThreatBrackets = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:1174
UpdateLevelText = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:451
GuildText = {
}
CastBarUpdateFrame = {
}
fadeInfo =
{
}
HealthBar = {
}
UpdateNameText = defined @interface\AddOns\Kui_Nameplates_Core\create.lua:393
cast_state =
{
}
}
(_temporary) = nil
(_temporary) = "player"
(*temporary) = NamePlate1 {
namePlateUnitToken = "nameplate1"
driverFrame = NamePlateDriverFrame {
}
UnitFrame = NamePlate1UnitFrame {
}
ApplyOffsets = defined @interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:288
OnRemoved = defined @interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:275
kui = KuiNamePlate1 {
}
isChatBubble = false
0 =
OnAdded = defined @`

commented

Oh, thanks, forgot to try on a character with no class powers. Whoops.

commented

Sorry for the ugly formatting lol, and thanks for the help

commented