HeroRotation

HeroRotation

5M Downloads

Demon Hunter - Havoc: LUA Errors on Target

Denixerianer opened this issue ยท 9 comments

commented

When i target something while out of combat as havoc i get error messages which stack really fast like 100 in 10 seconds. The errors are gone once im in combat:

Message: Interface\AddOns\HeroRotation_DemonHunter\Havoc.lua:148: attempt to call method 'TrinketHasStatAnyDps' (a nil value)
Time: Fri Jun 18 23:07:42 2021
Count: 186
Stack: Interface\AddOns\HeroRotation_DemonHunter\Havoc.lua:148: attempt to call method 'TrinketHasStatAnyDps' (a nil value)
[string "@interface\AddOns\HeroRotation_DemonHunter\Havoc.lua"]:148: in function <Interface\AddOns\HeroRotation_DemonHunter\Havoc.lua:141>
[string "@interface\AddOns\HeroRotation_DemonHunter\Havoc.lua"]:390: in function `?'
[string "@interface\AddOns\HeroRotation\Main.lua"]:447: in function <Interface\AddOns\HeroRotation\Main.lua:425>

Locals: (*temporary) = nil
(*temporary) =

{
ItemName = "Brand of the Banshee Queen"
ItemSlotIDs =
{
}
LastCastTime = 0
ItemRarity = 3
ItemMinLevel = 0
ItemID = 129104
ItemLevel = 44
LastDisplayTime = 0
LastHitTime = 0
}
(*temporary) = "attempt to call method 'TrinketHasStatAnyDps' (a nil value)"
trinket1 =
{
ItemName = "Brand of the Banshee Queen"
ItemSlotIDs =
{
}
LastCastTime = 0
ItemRarity = 3
ItemMinLevel = 0
ItemID = 129104
ItemLevel = 44
LastDisplayTime = 0
LastHitTime = 0
}
trinket2 =
{
ItemName = "Harlan's Loaded Dice"
ItemSlotIDs =
{
}
LastCastTime = 0
ItemRarity = 3
ItemMinLevel = 0
ItemID = 155881
ItemLevel = 59
LastDisplayTime = 0
LastHitTime = 0
}
VarTrinketSyncSlot = 0
VarUseEyeBeamFuryCondition = false
S =
{
ThrowGlaive =
{
}
FirstBlood =
{
}
FelBarrage =
{
}
ImmolationAuraBuff =
{
}
EssenceBreak =
{
}
FuriousGazeBuff =
{
}
FelRush =
{
}
CycleofHatred =
{
}
MomentumBuff =
{
}
EyeBeam =
{
}
MetamorphosisBuff =
{
}
BladeDance =
{
}
EssenceBreakDebuff =
{
}
UnboundChaos =
{
}
UnboundChaosBuff =
{
}
FelEruption =
{
}
ChaosStrike =
{
}
Blur =
{
}
DemonBlades =
{
}
DemonsBite =
{
}
DeathSweep =
{
}
Metamorphosis =
{
}
SinfulBrandDebuff =
{
}
ExposedWoundDebuff =
{
}
BurningWoundDebuff =
{
}
PreparedBuff =
{
}
ChaosTheoryBuff =
{
}
SinfulBrand =
{
}
GlaiveTempest =
{
}
ChaosNova =
{
}
Demonic =
{
}
Disrupt =
{
}
Felblade =
{
}
TheHunt =
{
}
SerratedGlaive =
{
}
Annihilation =
{
}
ElysianDecree =
{
}
TrailofRuin =
{
}
BlindFury =
{
}
FelBombardmentBuff =
{
}
Momentum =
{
}
ImmolationAura =
{
}
VengefulRetreat =
{
}
}
DarkglareEquipped = false
Target =
{
UnitExists = true
UnitName = "Felsoul Fleshcarver"
UnitNPCID = 95329
UnitID = "target"
UseCache = true
UnitCanBeAttacked = true
UnitGUID = "Creature-0-3111-1498-29253-95329-00004D09B2"
}
Cast = defined @interface\AddOns\HeroRotation\Core.lua:132

commented

What version of HeroLib are you using? The TrinketHasStatAnyDps function was added in version 9.0.5.03.

commented

i use the curseforge app and the newest version there seems to be "HeroLib-9.0.5.01". Where can i download the newer version? Thx for the fast reply :D

commented

You can download it from the github releases. Here's the zip for the latest version: 9.0.5.05

commented

Thanks i downloaded everything from here now. One more question: Do i need to move files like "License" or ".gitignore" also into the addons folder or just the folders? Thanks

commented

Just the folders.

commented

what folders go in from dbc

commented

HeroDBC is an oddity because of how it's structured. Everything inside the "addon" folder on the github will get placed in the HeroDBC folder in your Interface\Addons.

commented

alrighty did that and now it works thx for the help, sorry for the wrong bug report feel free to delete it (idk how to) :)
Just as friendly feedback: Maybe add install description on how to do it i would have never figured that out on my own love your addon tho <3

commented

No worries. Glad it's working now!