Giter Club home page Giter Club logo

hero-lib's People

Contributors

aethys256 avatar alexanderkenny avatar c-ray-c avatar cilraaz avatar deibeljc avatar enaske avatar evanmichaels avatar fbrusch-ik avatar ghr74 avatar idubs avatar kutikuti avatar landonstewart avatar lithium720 avatar lockem90 avatar mrdmnd avatar mystler avatar nianel avatar nmxsz avatar nuohep avatar samueldruker avatar skasch avatar tae-l avatar tombell avatar xeropresence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hero-lib's Issues

\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua line 110: attempt to index field '?' (a nil value)

HeroLib and Titan init with TSM interaction issue.

This occurs when logging in and during addon loadin. if I disable TSM this does not occur.

I also reported this to the TSM folk.

LUA error text:

Date: 2019-01-20 07:27:39
ID: 1
Error occured in: Global
Count: 1
Message: ...\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua line 110:
attempt to index field '?' (a nil value)
Debug:
...ce\AddOns\TradeSkillMaster\Core\Lib\ErrorHandler.lua:613:
...ce\AddOns\TradeSkillMaster\Core\Lib\ErrorHandler.lua:575
[C]: ?
...\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua:110: L_UIDropDownMenu_Initialize()
Titan\TitanUtils.lua:1569:
Titan\TitanUtils.lua:1557
Titan\TitanUtils.lua:1664: TitanPanelDisplayRightClickMenu_Toggle()
Titan\TitanPanel.lua:581: TitanPanelBarButton_OnClick()
TitanReputation\TitanReputation.lua:190: TitanPanelReputationButton_OnLoad()
[string ":OnLoad"]:1:
[string "
:OnLoad"]:1
Locals:
errMsg = "...\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua:110: attempt to index field '?' (a nil value)"
errorTime = 2022372.615783
tsmErrMsg = nil
oldModule = nil
private =

{
AddonBlockedEvent = defined @interface\AddOns\TradeSkillMaster\Core\Lib\ErrorHandler.lua:378
num = 0
ErrorHandler = defined @interface\AddOns\TradeSkillMaster\Core\Lib\ErrorHandler.lua:106
origErrorHandler = defined @interface\AddOns\Decursive\Dcr_DIAG.lua:585
errorReports =
{
}
IsTSMAddon = defined @interface\AddOns\TradeSkillMaster\Core\Lib\ErrorHandler.lua:355
SantizeErrorReportString = defined @interface\AddOns\TradeSkillMaster\Core\Lib\ErrorHandler.lua:386
errorFrame = {
}
}
MAX_STACK_DEPTH = 50
TSM =
{
}

AddOns:
Swatter, v8.0.6162 (SwimmingSeadragon)
AAPCore, v8.1046
Ace3, v
ACP, vr259
AllTheThings, v1.8.2b
Altoholic, vr190
AskMrRobot, v71
AtlasLoot, vv8.09.00
AtlasLootBattleforAzeroth, vv8.09.00
AtlasLootBurningCrusade, vv8.09.00
AtlasLootCataclysm, vv8.09.00
AtlasLootClassic, vv8.09.00
AtlasLootLegion, vv8.09.00
AtlasLootMistsofPandaria, vv8.09.00
AtlasLootWarlordsofDraenor, vv8.09.00
AtlasLootWrathoftheLichKing, vv8.09.00
AucAdvanced, v8.0.6122 (SwimmingSeadragon)
AucFilterBasic, v8.0.6149 (SwimmingSeadragon)
AucStatHistogram, v8.0.6151 (SwimmingSeadragon)
AucStatiLevel, v8.0.6155 (SwimmingSeadragon)
AucStatPurchased, v8.0.6152 (SwimmingSeadragon)
AucStatSimple, v8.0.6153 (SwimmingSeadragon)
AucStatStdDev, v8.0.6154 (SwimmingSeadragon)
AucUtilFixAH, v8.0.6156 (SwimmingSeadragon)
Auctionator, v8.1.0
AutoRepair, v
AzeritePowerWeights, v8.1.7
AzerothAutoPilot, v
BadNomi, v0.8.4
BagBrother, v
Bagnon, v8.0.7
BarrelsOEasy, v1.1.11
BattlePetBreedID, vr185
BattlePetCount, v1.8.16
BeanCounter, v8.0.6157 (SwimmingSeadragon)
BigWigs, vv123
BonusRollPreview, v80000.46-Release
BtWQuests, v1.34
BtWQuestsBattleForAzeroth, v22
BtWQuestsBattleForAzerothPrologue, v10
BtWQuestsClassic, v4
BtWQuestsLegion, v17
CanIMogIt, v8.0.0v1.13
DataStore, vr65
DataStoreAgenda, vr29
DataStoreAuctions, vr50
DataStoreCharacters, vr43
DataStoreContainers, vr59
DataStoreCrafts, vr82
DataStoreCurrencies, vr38
DataStoreGarrisons, vr24
DataStoreInventory, vr53
DataStoreMails, vr52
DataStorePets, vr44
DataStoreQuests, vr46
DataStoreReputations, vr43
DataStoreSpells, vr32
DataStoreStats, vr31
DataStoreTalents, vr61
DBMCore, v8.1.2
DBMDefaultSkin, v
DBMStatusBarTimers, v
Decursive, v2.7.6.2
DraenorTreasures, v8.0.1.27144
DugisGuideViewerZ, v5.100
FishingAce, v0.8.9
FishingBuddy, v1.9.25p1
GarrisonCommanderBroker, v3.0.1 1.1.0
GatherMate2, v1.43.4
Grail, v099
GrailQuestsenUS, v27178
GTFO, v4.46.12
GupPet, v8.0.1.05
HandyNotes, vv1.5.3
HandyNotesArgus, vv0.12
HandyNotesBattleForAzerothAchievments, vv7
HandyNotesBattleForAzerothTreasures, v1
HandyNotesBrokenShore, vv1.30
HandyNotesDraenorTreasures, v1.21
HandyNotesDungeonLocations, v1.45
HandyNotesHallowsEnd, vv1.4.3
HandyNotesHigherLearning, v8.0.0.0
HandyNotesLegionClassOrderHalls, vv1.30
HandyNotesLegionRaresTreasures, v1.1
HandyNotesLegionTreasures, v1
HandyNotesLunarFestival, vv1.5
HandyNotesSummerFestival, vv1.5
HandyNotesTimelessIsleChests, v1.21
HandyNotesTreasureHunter, v1
HandyNotesUniversalExplorer, v8.0.1.2
HandyNotesWarfrontRares, v0.5.0
HandyNotesWarfrontTreasures, v1
HandyNotesWellRead, v8.0.0.0
HealBot, v8.1.0.1
HeroCache, v8.0.1.09
HeroLib, v8.0.1.09
HeroRotation, v8.0.1.09
LibBabbleBoss30, v
LibBabbleFaction30, v
LibDBIcon10, v
LibDialog10, vr93
LibQTip10, v8.0.1.1
LibSharedMedia30, v3.0-104
LibTabbedFrame10, v0.3
LibTextDump10, v8.1.0.1
LookingForGroup, vr1823
LookingForGroupBindings, vr1823
LookingForGroupBroker, vr1823
LookingForGroupEvent, vr1823
LookingForGroupHook, vr1823
LookingForGroupIcon, vr1823
LookingForGroupSF, vr1823
LootAppraiser, vv1.9.3
MasterPlanA, vA
MinimapButtonFrame, v3.1.10h
MinimapButtonFrameSkinPack, v3.0.1b
MogIt, v3.8.11
OmniCC, v8.1.1
Outfitter, v5.22.1
Overachiever, v1.0.5
OverachieverCache, v1.0.5
Pawn, v2.2.34
PetBattleTeams, v3.3.11
PetTracker, v8.0.6
PetTrackerBreeds, v8.0.6
PetTrackerSwitcher, v8.0.6
PetTrackerUpgrades, v8.0.6
Postal, vv3.6.0
Prat30, vr1195
Prat30Libraries, v
QuestCompletist, v109.20
RareScanner, v5.3.1
Rarity, v1.0 (r681-release)
RarityOptions, v
Rematch, v4.9.4
Routes, vv1.6.0
SilverDragon, vv4.0.13
SilverDragonBattleForAzeroth, vv4.0.13
SilverDragonBurningCrusade, vv4.0.13
SilverDragonCataclysm, vv4.0.13
SilverDragonLegion, vv4.0.13
SilverDragonMists, vv4.0.13
SilverDragonVanilla, vv4.0.13
SilverDragonWarlords, vv4.0.13
SilverDragonWrath, vv4.0.13
Simulationcraft, v1.10.10
Skada, v1.7.5
SlideBar, v8.0.6160 (SwimmingSeadragon)
SpellFlashCore, v2.1.8
Stubby, v8.0.6161 (SwimmingSeadragon)
TheUndermineJournal, v5.4.20190119
Titan, v5.16.1.80100
TitanBag, v5.16.1.80100
TitanClock, v5.16.1.80100
TitanCurrenciesMulti, v6.3
TitanCurrency, v8.1
TitanGold, v5.16.1.80100
TitanGuild, v8.0.0.0
TitanLocation, v5.16.1.80100
TitanLootType, v5.16.1.80100
TitanPerformance, v5.16.1.80100
TitanRepair, v5.16.1.80100
TitanReputation, v3.9.5
TomTom, vv80100-1.0.0-beta
TradeSkillMaster, vv4.6.13
BlizRuntimeLib_enUS v8.1.0.80100
(ck=125e)

[Bug]: Shadow Priest - attempt to index local 'ThisSpell' (a nil value)

What version of HeroLib are you using?

10.0.5.01

What is the issue?

I'm not sure if it's HeroLib or HeroRotation error as the log backtracks all the way to HeroRotation/Main.lua. This error shows randomly when fighting, I wasn't able to see when it was raised exactly. I tried some other classes (Warlock and Evoker) and it doesn't show up there.
I'm using HeroRotation v10.0.5.05

6x HeroLib/Class/Unit/Aura.lua:36: attempt to index local 'ThisSpell' (a nil value)
[string "@HeroLib/Class/Unit/Aura.lua"]:36: in function <HeroLib/Class/Unit/Aura.lua:32>
[string "=(tail call)"]: ?
[string "@HeroLib/Class/Unit/Aura.lua"]:101: in function `BuffRemains'
[string "@HeroLib/Class/Unit/Aura.lua"]:119: in function `BuffUp'
[string "@HeroLib/Class/Unit/Aura.lua"]:124: in function `BuffDown'
[string "@HeroRotation_Priest/Shadow.lua"]:561: in function <HeroRotation_Priest/Shadow.lua:525>
[string "@HeroRotation_Priest/Shadow.lua"]:660: in function `?'
[string "@HeroRotation/Main.lua"]:455: in function <HeroRotation/Main.lua:433>

Talents used: BIQA16pR6xQxvK1VWhXk+w0/GgkgEAAAAAAAAAAAAAJhkSEST7AJJJFiESKKkEJSjQSQQRahkAA

Trinket issue

It renders herorotation useless untill the useable trinket is on cd, as long as the trinket is on cd everything works but off of cd herorotation remains disabled.

11259x ...rfaceHeroLib/Class/Unit/Player/Equipment.lua:109: attempt to get length of local 'ExcludedTrinkets' (a nil value)
[string "@HeroLib/Class/Unit/Player/Equipment.lua"]:109: in function GetUseableTrinkets' [string "@HeroRotation_Hunter/Survival.lua"]:197: in function <HeroRotation_Hunter/Survival.lua:156> [string "@HeroRotation_Hunter/Survival.lua"]:495: in function ?'
[string "@HeroRotation/Main.lua"]:455: in function <HeroRotation/Main.lua:433>

Locals:
self =

{
CovenantID = defined @HeroLib/Class/Unit/Player/Main.lua:58
UseCache = true
ChiDeficitPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:595
GCDStartTime = defined @HeroLib/Class/Unit/Player/Stat.lua:70
Race = defined @HeroLib/Class/Unit/Player/Main.lua:46
Insanityrain = defined @HeroLib/Class/Unit/Player/Power.lua:647
FocusLossOnCastEnd = defined @HeroLib/Class/Unit/Player/Power.lua:226
PainMax = defined @HeroLib/Class/Unit/Player/Power.lua:724
IsInVehicle = defined @HeroLib/Class/Unit/Player/Main.lua:124
IsInParty = defined @HeroLib/Class/Unit/Player/Main.lua:33
EnergyDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:279
Fury = defined @HeroLib/Class/Unit/Player/Power.lua:697
InstanceInfo = defined @HeroLib/Class/Unit/Player/Instance.lua:22
RageDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:139
VersatilityDmgPct = defined @HeroLib/Class/Unit/Player/Stat.lua:119
FocusTimeToXPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:202
MaelstromPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:553
ArcaneCharges = defined @HeroLib/Class/Unit/Player/Power.lua:665
IsInDungeonArea = defined @HeroLib/Class/Unit/Player/Instance.lua:53
ActiveMitigationNeeded = defined @HeroLib/Class/Unit/Player/Tank.lua:57
UpdateActiveLegendaryEffects = defined @HeroLib/Class/Unit/Player/Equipment.lua:144
SoulShardsDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:469
EssenceDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:766
GetEnemiesInRange = defined @HeroLib/Class/Unit/Player/Enemies.lua:53
IsInWhitelistedVehicle = defined @HeroLib/Class/Unit/Player/Main.lua:160
PainDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:739
AttackPower = defined @HeroLib/Class/Unit/Player/Stat.lua:78
FocusCastRegen = defined @HeroLib/Class/Unit/Player/Power.lua:208
PainDeficitPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:744
PrevOffGCD = defined @HeroLib/Events/Prev_Spell.lua:236
MasteryPct = defined @HeroLib/Class/Unit/Player/Stat.lua:114
InsanityPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:632
ManaDeficitPercentageP = defined @HeroLib/Class/Unit/Player/Power.lua:113
FuryDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:707
PrevGCD = defined @HeroLib/Events/Prev_Spell.lua:202
AstralPowerMax = defined @HeroLib/Class/Unit/Player/Power.lua:481
IsMounted = defined @HeroLib/Class/Unit/Player/Main.lua:28
EssenceDeficitPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:771
EnergyRegenPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:289
RunicPowerDeficit = defined @HeroLib/Class/Unit/Player/Power.lua:389
FuryPercentage = defined @HeroLib/Class/Unit/Player/Power.lua:702
Insanity = defined @HeroLib/Class/Unit/Player/Power.lua:627
EnergyTimeToMaxPredicted = defined @HeroLib/Class/Unit/Player/Power.lua:336
ArcaneChargesPercentage = defined @h

Lua-Error

All other Addons disabled...

Message: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
Time: Mon Nov 30 17:55:58 2020
Count: 35
Stack: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:32: in function <Interface\AddOns\HeroLib\Class\Unit\Aura.lua:27>
[string "=(tail call)"]: ?
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:81: in function BuffRemains' [string "@Interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:99: in function BuffUp'
[string "@interface\AddOns\HeroRotation_Rogue\Outlaw.lua"]:193: in function <Interface\AddOns\HeroRotation_Rogue\Outlaw.lua:190>
[string "@interface\AddOns\HeroRotation_Rogue\Outlaw.lua"]:261: in function <Interface\AddOns\HeroRotation_Rogue\Outlaw.lua:201>
[string "@interface\AddOns\HeroRotation_Rogue\Outlaw.lua"]:506: in function `?'
[string "@interface\AddOns\HeroRotation\Main.lua"]:445: in function <Interface\AddOns\HeroRotation\Main.lua:423>

Locals: self =

{
UseCache = true
ChiDeficitPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:596
GCDStartTime = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:70
Race = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:46
Insanityrain = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:648
FocusLossOnCastEnd = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:226
PainMax = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:725
IsInVehicle = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:116
IsInParty = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:33
EnergyDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:279
Fury = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:698
InstanceInfo = defined @interface\AddOns\HeroLib\Class\Unit\Player\Instance.lua:22
RageDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:139
VersatilityDmgPct = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:119
FocusTimeToXPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:202
MaelstromPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:554
ArcaneCharges = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:666
IsInDungeonArea = defined @interface\AddOns\HeroLib\Class\Unit\Player\Instance.lua:53
ActiveMitigationNeeded = defined @interface\AddOns\HeroLib\Class\Unit\Player\Tank.lua:57
UpdateActiveLegendaryEffects = defined @interface\AddOns\HeroLib\Class\Unit\Player\Equipment.lua:110
SoulShardsDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:470
GetEnemiesInRange = defined @interface\AddOns\HeroLib\Class\Unit\Player\Enemies.lua:53
IsInWhitelistedVehicle = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:145
PainDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:740
AttackPower = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:78
FocusCastRegen = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:208
PainDeficitPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:745
PrevOffGCD = defined @interface\AddOns\HeroLib\Events\Prev_Spell.lua:236
MasteryPct = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:114
InsanityPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:633
ManaDeficitPercentageP = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:113
FuryDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Pl

Fury warrior - constant errors in combat

BugSack logs the following:

1897x HeroRotation_Warrior\Fury-Fury.lua:229: attempt to index field 'VictoryRush' (a nil value) [string "@HeroRotation_Warrior\Fury-Fury.lua"]:229: in function ?'
[string "@HeroRotation\Main.lua"]:446: in function <HeroRotation\Main.lua:424>

Locals:
ShouldReturn = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = 1
(*temporary) = 35000
(*temporary) = 0.002857
(*temporary) = 35000
(*temporary) = "player"
(*temporary) = "attempt to index field 'VictoryRush' (a nil value)"
AoEON = defined @HeroRotation\Core.lua:355
Enemies8y =

{
1 =
{
}
}
Player =
{
UseCache = true
ChiDeficitPercentage = defined @herolib\Class\Unit\Player\Power.lua:596
GCDStartTime = defined @herolib\Class\Unit\Player\Stat.lua:70
Race = defined @herolib\Class\Unit\Player\Main.lua:46
Insanityrain = defined @herolib\Class\Unit\Player\Power.lua:648
FocusLossOnCastEnd = defined @herolib\Class\Unit\Player\Power.lua:226
PainMax = defined @herolib\Class\Unit\Player\Power.lua:725
IsInVehicle = defined @herolib\Class\Unit\Player\Main.lua:118
IsInParty = defined @herolib\Class\Unit\Player\Main.lua:33
EnergyDeficit = defined @herolib\Class\Unit\Player\Power.lua:279
Fury = defined @herolib\Class\Unit\Player\Power.lua:698
InstanceInfo = defined @herolib\Class\Unit\Player\Instance.lua:22
RageDeficit = defined @herolib\Class\Unit\Player\Power.lua:139
VersatilityDmgPct = defined @herolib\Class\Unit\Player\Stat.lua:119
FocusTimeToXPercentage = defined @herolib\Class\Unit\Player\Power.lua:202
MaelstromPercentage = defined @herolib\Class\Unit\Player\Power.lua:554
ArcaneCharges = defined @herolib\Class\Unit\Player\Power.lua:666
IsInDungeonArea = defined @herolib\Class\Unit\Player\Instance.lua:53
ActiveMitigationNeeded = defined @herolib\Class\Unit\Player\Tank.lua:57
UpdateActiveLegendaryEffects = defined @herolib\Class\Unit\Player\Equipment.lua:121
SoulShardsDeficit = defined @herolib\Class\Unit\Player\Power.lua:470
GetEnemiesInRange = defined @herolib\Class\Unit\Player\Enemies.lua:53
IsInWhitelistedVehicle = defined @herolib\Class\Unit\Player\Main.lua:154
PainDeficit = defined @herolib\Class\Unit\Player\Power.lua:740
AttackPower = defined @herolib\Class\Unit\Player\Stat.lua:78
FocusCastRegen = defined @herolib\Class\Unit\Player\Power.lua:208
PainDeficitPercentage = defined @herolib\Class\Unit\Player\Power.lua:745
PrevOffGCD = defined @herolib\Events\Prev_Spell.lua:236
MasteryPct = defined @herolib\Class\Unit\Player\Stat.lua:114
InsanityPercentage = defined @herolib\Class\Unit\Player\Power.lua:633
ManaDeficitPercentageP = defined @herolib\Class\Unit\Player\Power.lua:113
FuryDeficit = defined @herolib\Class\Unit\Player\Power.lua:708
PrevGCD = defined @herolib\Events\Prev_Spell.lua:202
AstralPowerMax = defined @herolib\Class\Unit\Player\Power.lua:482
IsMounted = defined @herolib\Class\Unit\Player\Main.lua:28
EnergyRegenPercentage = defined @herolib\Class\Unit\Player\Power.lua:289
RunicPowerDeficit = defined @herolib\Class\Unit\Player\Power.lua:389
FuryPercentage = defined @herolib\Class\Unit\Player\Power.lua:703
Insanity = defined @herolib\Class\Unit\Player\Power.lua:628
EnergyTimeToMaxPredicted = defined @herolib\Class\Unit\Player\Power.lua:336
Arcane`

Memory leak in HeroLib?

I'm having some latency on my druid right now. I checked the menu bar to see what's eating memory, and I see HeroLib steadily ticking up even though I'm just standing still. It was 38mb when I was watching it, and now 40.3 and still going up.

I reloaded. It dropped down to 28mb and started ticking right back up again as I watched. It's going up at .01 or .02mb per second.

8.3.0.00-19-g1ecbe47-alpha

Update: Just downgraded to 8.3.0.00-18-g53d23e6-alpha, logged in... now seeing it tick up .03-.04mb per second. ><

IsUsableP trying to check predicted resources that don't exist.

Below is an example of the costinfos for Heartstrike since type -2 doesn't exist IsUsableP errors for heartstrike. perhaps we should check for nil in the predcited resource map e.g.

if Player.PredictedResourceMap[CostInfo.type] ~= nil then

{ 
  [1] = { 
    ["hasRequiredAura"] = false,
    ["type"] = -2,
    ["name"] = HEALTH,
    ["cost"] = 0,
    ["minCost"] = 0,
    ["requiredAuraID"] = 202846,
    ["costPercent"] = 10,
    ["costPerSec"] = 0,
  },
  [2] = { 
    ["hasRequiredAura"] = false,
    ["type"] = 6,
    ["name"] = RUNIC_POWER,
    ["cost"] = -15,
    ["minCost"] = -15,
    ["requiredAuraID"] = 0,
    ["costPercent"] = 0,
    ["costPerSec"] = 0,
  },
  [3] = { 
    ["hasRequiredAura"] = false,
    ["type"] = 5,
    ["name"] = RUNES,
    ["cost"] = 1,
    ["minCost"] = 1,
    ["requiredAuraID"] = 0,
    ["costPercent"] = 0,
    ["costPerSec"] = 0,
  } ,
} 

Lua Error

HeroLib\Events\Action.lua:190: attempt to index field 'ElvUIPaging' (a nil value)
[string "@herolib\Events\Action.lua"]:190: in function <HeroLib\Events\Action.lua:185>
[string "@herolib\Events\Action.lua"]:226: in function <HeroLib\Events\Action.lua:208>
[string "@herolib\Events\Action.lua"]:320: in function <HeroLib\Events\Action.lua:288>
[string "@herolib\Events\Action.lua"]:342: in function `Handler'
[string "@herolib\Events\Main.lua"]:80: in function <HeroLib\Events\Main.lua:78>

Locals:
class = "DEATHKNIGHT"
(for index) = 1
(for limit) = 10
(for step) = 1
i = 1
BarNum = "bar1"
PagingString = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'ElvUIPaging' (a nil value)"
Cache =

{
GUIDInfo =
{
}
Set = defined @HeroCache\Main.lua:268
APLVar =
{
}
Enemies =
{
}
Get = defined @HeroCache\Main.lua:252
HasBeenReset = true
SpellInfo =
{
}
UnitInfo =
{
}
MiscInfo =
{
}
Persistent =
{
}
ItemInfo =
{
}
Reset = defined @HeroCache\Main.lua:41
}

[Bug]: Lua error in combat, HeroLib/Class/Unit/Player/Equipment.lua:155: attempt to index a nil value

What version of HeroLib are you using?

10.1.0.07

What is the issue?

Lua error pops up in combat. Un-equipping and re-equipping my Drogbar Rocks trinket seems to have made the error go away.
I might have upgraded it or my other trinket (Pocket Darkened Elemental Core) before the error starting popping up.
Message: ...rface/AddOns/HeroLib/Class/Unit/Player/Equipment.lua:155: attempt to index a nil value
Time: Sat Jun 3 13:33:47 2023
Count: 865
Stack: ...rface/AddOns/HeroLib/Class/Unit/Player/Equipment.lua:155: attempt to index a nil value

Locals:

[Bug]: Feral Druid - Talent Astral Influence at level 1

What version of HeroLib are you using?

10.2.0.21

What is the issue?

Hi

I'm building a Feral Druid and just unlocked the first level of the Astral Influence Druid talent.
When I approach any potential target (even training dummies), I get this lua error.

Message: Interface/AddOns/HeroLib/Class/Unit/Range.lua:82: Distance must be between 5 and 100.
Time: Thu Dec 21 13:02:53 2023
Count: 882
Stack: Interface/AddOns/HeroLib/Class/Unit/Range.lua:82: Distance must be between 5 and 100.
[string "=[C]"]: in function `assert'
[string "@Interface/AddOns/HeroLib/Class/Unit/Range.lua"]:82: in function <Interface/AddOns/HeroLib/Class/Unit/Range.lua:80>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "@Interface/AddOns/HeroLib/Class/Unit/Player/Enemies.lua"]:40: in function <...terface/AddOns/HeroLib/Class/Unit/Player/Enemies.lua:33>
[string "@Interface/AddOns/HeroLib/Class/Unit/Player/Enemies.lua"]:116: in function `GetEnemiesInMeleeRange'
[string "@Interface/AddOns/HeroRotation_Druid/Feral.lua"]:692: in function `?'
[string "@Interface/AddOns/HeroRotation/Main.lua"]:460: in function <Interface/AddOns/HeroRotation/Main.lua:438>

Locals: (*temporary) = false
(*temporary) = "Distance must be between 5 and 100."

The counter goes up very quickly.
This error does not appear by not putting any points or by putting 2 points in the talent.

HeroLib 10.2.0.21
HeroRotation 10.2.0.43
HeroDBC 10.2.0.06

Please push a 9.1.0 release to CurseForge

The HeroLib project on CurseForge was last updated March 9th for game version 9.0.5, whereas HeroRotation and HeroDBC have both been updated within the month for game version 9.1.0.

I just ran into a NPE about an undefined method (Item:TrinketHasStatAnyDps) that renders HeroRotation unusable, and it looks like that method was introduced in HeroLib 9.1.0.04 (64e47c8) back in April.

I've verified that manually updating my local HeroLib to 9.1.0.04 has resolved the issue, at least on my end.

Thanks!

[Demonology] SoulShards() sometimes returns a decimal

Sometimes demonology returns a decimal number e.g. 1.1 or 2.1 for shards which effects the next spell shown in the rotation.

I noticed that within the wow interface files specifically ShardBar.lua they have the following where they use math.floor to ensure soulshards are not decimal for both demonology and affliction. Shouldn't we also be using this for our soulshards function?

local shardPower = WarlockPowerBar_UnitPower(self:GetUnit());

-- Bug ID: 496542: Destruction is supposed to show partial soulshards, but Affliction and Demonology should only show full ones.
if GetSpecialization() ~= SPEC_WARLOCK_DESTRUCTION then
    shardPower = math.floor(shardPower);
end```

Add Event-Based Implementation for GCDRemains Issues

As per the comments in: 9f824f2

At some point, this likely should be refactored to use combat log events or some other more accurate way to know when we have started to receive updates from the server following the successful spell cast event.

lua error

Message: Interface\AddOns\HeroLib\Events\KeyBinding.lua:100: attempt to index field 'db' (a nil value)
Time: Sun Apr 7 15:41:10 2019
Count: 5
Stack: Interface\AddOns\HeroLib\Events\KeyBinding.lua:100: attempt to index field 'db' (a nil value)
Interface\AddOns\HeroLib\Events\KeyBinding.lua:100: in function <Interface\AddOns\HeroLib\Events\KeyBinding.lua:62>
Interface\AddOns\HeroLib\Events\KeyBinding.lua:133: in function `Handler'
Interface\AddOns\HeroLib\Events\Main.lua:227: in function <Interface\AddOns\HeroLib\Events\Main.lua:225>

Locals: (*temporary) =

{
}
(*temporary) =
{
}
(*temporary) = "ElvUI_Bar1Button"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'db' (a nil value)"
BarNames =
{
}
ParseBar = defined @interface\AddOns\HeroLib\Events\KeyBinding.lua:21

my lua error

Lot of errors by using arcane mage

446x HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
[string "@herolib\Class\Unit\Aura.lua"]:32: in function <HeroLib\Class\Unit\Aura.lua:27>
[string "=(tail call)"]: ?
[string "@herolib\Class\Unit\Aura.lua"]:148: in function DebuffRemains' [string "@HeroLib\Class\Unit\Aura.lua"]:159: in function DebuffUp'
[string "@herolib\Class\Unit\Aura.lua"]:164: in function DebuffDown' [string "@HeroLib\Class\Unit\Aura.lua"]:132: in function DebuffStack'
[string "@HeroRotation_Mage\Arcane.lua"]:607: in function <HeroRotation_Mage\Arcane.lua:561>
[string "@HeroRotation_Mage\Arcane.lua"]:907: in function `?'
[string "@HeroRotation\Main.lua"]:445: in function <HeroRotation\Main.lua:423>

LUA Errors Warrior Arms

Message: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
Time: Tue Dec 8 10:33:22 2020
Count: 810
Stack: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
[string "=[C]"]: ?
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:32: in function <Interface\AddOns\HeroLib\Class\Unit\Aura.lua:27>
[string "=(tail call)"]: ?
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:81: in function BuffRemains' [string "@Interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:99: in function BuffUp'
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:104: in function BuffDown' [string "@Interface\AddOns\HeroRotation_Warrior\Arms.lua"]:262: in function ?'
[string "@interface\AddOns\HeroRotation\Main.lua"]:445: in function <Interface\AddOns\HeroRotation\Main.lua:423>

Locals:

[Auras] New tracking for players + all direct reachable unitid but nameplates

Instead of tracking it on demand on each pulse, rather make an event listener to build the buffs table (on aura applied / removed).
Player is the top priority but the handler should be flexible to take any UnitIDs/GUID (so, in the future it could be extended to UnitIDs even if the GUID changes, which is something that can happen with nameplates tracking especially).

Possibly to have more than 1 window?

Hekili has an option where you can choose how many windows you want, so you can see the spells next few spells that needs to be cast.

Is this possible with Aethy?

I think its a big deal, as it would make room for more flow in the rotation, because you know what the next spell needs to be.
It kinda stops the fluidity of the rotation if you have a class with alot of instants, as it would require alot of focus on the addon itself. A second or even third window would just be neat.

Error deamon hunter veangence

Hello,

I've pledged with ravendreth, it looks like since then, there is this error only in vengeance, not havoc :
Message: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
Time: Thu Nov 26 14:16:28 2020
Count: 9
Stack: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:32: attempt to index local 'ThisSpell' (a nil value)
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:32: in function <Interface\AddOns\HeroLib\Class\Unit\Aura.lua:27>
[string "=(tail call)"]: ?
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:81: in function BuffRemains' [string "@Interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:99: in function BuffUp'
[string "@interface\AddOns\HeroLib\Class\Unit\Aura.lua"]:104: in function BuffDown' [string "@Interface\AddOns\HeroRotation_DemonHunter\Vengeance.lua"]:192: in function <...erface\AddOns\HeroRotation_DemonHunter\Vengeance.lua:181> [string "@Interface\AddOns\HeroRotation_DemonHunter\Vengeance.lua"]:306: in function ?'
[string "@interface\AddOns\HeroRotation\Main.lua"]:445: in function <Interface\AddOns\HeroRotation\Main.lua:423>

Locals: self =

{
UnitCanBeAttacked = true
IsSpellInActionRange = defined @interface\AddOns\HeroLib\Events\Action.lua:426
IsItemInActionRange = defined @interface\AddOns\HeroLib\Events\Action.lua:416
UnitID = "target"
UseCache = true
UnitExists = true
IsActionInRange = defined @interface\AddOns\HeroLib\Class\Unit\Target\Range.lua:23
UnitGUID = "Creature-0-4251-2222-2990-159747-00003FAA64"
UnitName = "Reine perce-moelle"
UnitNPCID = 159747
}
ThisSpell = nil
Filter = "HELPFUL|PLAYER"
Full = nil
GUID = "Creature-0-4251-2222-2990-159747-00003FAA64"
UnitID = "target"
(*temporary) =
{
UnitCanBeAttacked = true
IsSpellInActionRange = defined @interface\AddOns\HeroLib\Events\Action.lua:426
IsItemInActionRange = defined @interface\AddOns\HeroLib\Events\Action.lua:416
UnitID = "target"
UseCache = true
UnitExists = true
IsActionInRange = defined @interface\AddOns\HeroLib\Class\Unit\Target\Range.lua:23
UnitGUID = "Creature-0-4251-2222-2990-159747-00003FAA64"
UnitName = "Reine perce-moelle"
UnitNPCID = 159747
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'ThisSpell' (a nil value)"
UnitAura = defined =[C]:-1

[Errors] On loading

Randomly happened after a loading screen (warlock and SP
15x [string "return function(func, a1,a2,a3)..."]:4: table index is nil [string "return function(func, a1,a2,a3)..."]:4: in function <[string "return function(func, a1,a2,a3)..."]:1> (tail call): ? (tail call): ? AethysCore\Class\Player.lua:66: in function <AethysCore\Class\Player.lua:64> (tail call): ? AethysTools\PullAnnouncer.lua:195: in function Handler'
AethysCore\Events\Main.lua:270: in function `Handler'
AethysCore\Events\Main.lua:225: in function <AethysCore\Events\Main.lua:223>

Locals:
func = defined @AethysCore\Class\Player.lua:67
a1 = "UnitInfo"
a2 = nil
a3 = "InstanceInfo"
c0 =

{
GUIDInfo =
{
}
Set = defined @AethysCache\Main.lua:266
WipeTableRecursively = defined @AethysCache\Main.lua:272
Get = defined @AethysCache\Main.lua:251
APLVar =
{
}
Enemies =
{
}
Reset = defined @AethysCache\Main.lua:38
HasBeenReset = true
SpellInfo =
{
}
UnitInfo =
{
}
Persistent =
{
}
MiscInfo =
{
}
ItemInfo =
{
}
EnemiesCount =
{
}
}
c1 =
{
}
c2 = nil
val =
{
1 = "Vault of the Wardens"
2 = "party"
3 = 0
4 = ""
5 = 5
6 = 0
7 = false
8 = 1493
9 = 0
10 = 1044
}
(*temporary) =
{
InstanceInfo =
{
}
}
(*temporary) = "table index is nil"`

Ice Lance Causes Lua Error

Lua error pops up every time my mage casts Ice Lance.

Message: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:43: Usage: GetPlayerAuraBySpellID(spellID)
Time: Wed Jul 20 15:48:31 2022
Count: 62
Stack: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:43: Usage: GetPlayerAuraBySpellID(spellID)

Locals:

Keybindings.lua

Getting some weird error messages whenever i mouse over nearly anything...

Message: Interface\AddOns\HeroLib\Events\KeyBinding.lua:36: attempt to call method 'GetPagedID' (a nil value)
Time: Fri Aug  7 18:21:21 2020
Count: 16
Stack: Interface\AddOns\HeroLib\Events\KeyBinding.lua:36: attempt to call method 'GetPagedID' (a nil value)
[string "@Interface\AddOns\HeroLib\Events\KeyBinding.lua"]:36: in function <Interface\AddOns\HeroLib\Events\KeyBinding.lua:21>
[string "@Interface\AddOns\HeroLib\Events\KeyBinding.lua"]:121: in function <Interface\AddOns\HeroLib\Events\KeyBinding.lua:62>
[string "@Interface\AddOns\HeroLib\Events\KeyBinding.lua"]:133: in function `Handler'
[string "@Interface\AddOns\HeroLib\Events\Main.lua"]:227: in function <Interface\AddOns\HeroLib\Events\Main.lua:225>

Locals: Bar = <table> {
 1 = "ElvUI_Bar1Button"
 2 = 7
}
Override = true
Button = ElvUI_Bar1Button1 {
 state_actions = <table> {
 }
 checked = <unnamed> {
 }
 NewActionTexture = <unnamed> {
 }
 Border = ElvUI_Bar1Button1Border {
 }
 Flash = ElvUI_Bar1Button1Flash {
 }
 _state_action = 1
 icon = ElvUI_Bar1Button1Icon {
 }
 AutoCastable = <unnamed> {
 }
 pushed = <unnamed> {
 }
 keyBoundTarget = "ACTIONBUTTON1"
 backdrop = <unnamed> {
 }
 FlyoutUpdateFunc = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:1037
 HotKey = ElvUI_Bar1Button1HotKey {
 }
 action = 0
 0 = <userdata>
 PixelSnapDisabled = true
 flashing = 0
 AutoCastShine = ElvUI_Bar1Button1Shine {
 }
 NormalTexture = ElvUI_Bar1Button1NormalTexture {
 }
 rangeTimer = -1
 LevelLinkLockIcon = <unnamed> {
 }
 CalculateAction = <function> defined @Interface\FrameXML\SecureTemplates.lua:582
 FlyoutBorder = ElvUI_Bar1Button1FlyoutBorder {
 }
 FlyoutBorderShadow = ElvUI_Bar1Button1FlyoutBorderShadow {
 }
 hover = <unnamed> {
 }
 SpellHighlightAnim = <unnamed> {
 }
 postKeybind = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:931
 Name = ElvUI_Bar1Button1Name {
 }
 id = 1
 header = ElvUI_Bar1 {
 }
 SpellHighlightTexture = <unnamed> {
 }
 __LAB_Version = 20
 outOfRange = false
 config = <table> {
 }
 Count = ElvUI_Bar1Button1Count {
 }
 _state_type = "action"
 state_types = <table> {
 }
 FlyoutArrow = ElvUI_Bar1Button1FlyoutArrow {
 }
 cooldown = ElvUI_Bar1Button1Cooldown {
 }
 zoneAbilityDisabled = false
}
ButtonTexture = 538771
ButtonHotKey = "1"
(for index) = 1
(for limit) = 7
(for step) = 1
i = 1
ButtonName = "ElvUI_Bar1Button1"
(*temporary) = <function> defined =[C]:-1
(*temporary) = nil
(*temporary) = ElvUI_Bar1Button1 {
 state_actions = <table> {
 }
 checked = <unnamed> {
 }
 NewActionTexture = <unnamed> {
 }
 Border = ElvUI_Bar1Button1Border {
 }
 Flash = ElvUI_Bar1Button1Flash {
 }
 _state_action = 1
 icon = ElvUI_Bar1Button1Icon {
 }
 AutoCastable = <unnamed> {
 }
 pushed = <unnamed> {
 }
 keyBoundTarget = "ACTIONBUTTON1"
 backdrop = <unnamed> {
 }
 FlyoutUpdateFunc = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:1037
 HotKey = ElvUI_Bar1Button1HotKey {
 }
 action = 0
 0 = <userdata>
 PixelSnapDisabled = true
 flashing = 0
 AutoCastShine = ElvUI_Bar1Button1Shine {
 }
 NormalTexture = ElvUI_Bar1Button1NormalTexture {
 }
 rangeTimer = -1
 LevelLinkLockIcon = <unnamed> {
 }
 CalculateAction = <function> defined @Interface\FrameXML\SecureTemplates.lua:582
 FlyoutBorder = ElvUI_Bar1Button1FlyoutBorder {
 }
 FlyoutBorderShadow = ElvUI_Bar1Button1FlyoutBorderShadow {
 }
 hover = <unnamed> {
 }
 SpellHighlightAnim = <unnamed> {
 }
 postKeybind = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:931
 Name = ElvUI_Bar1Button1Name {
 }
 id = 1
 header = ElvUI_Bar1 {
 }
 SpellHighlightTexture = <unnamed> {
 }
 __LAB_Version = 20
 outOfRange = false
 config = <table> {
 }
 Count = ElvUI_Bar1Button1Count {
 }
 _state_type = "action"
 state_types = <table> {
 }
 FlyoutArrow = ElvUI_Bar1Button1FlyoutArrow {
 }
 cooldown = ElvUI_Bar1Button1Cooldown {
 }
 zoneAbilityDisabled = false
}
(*temporary) = "attempt to call method 'GetPagedID' (a nil value)"
KeyBindings = <tabl

just thought i'd drop an issue ticket!

May also be an ElvUI issue, but i didn't see it happening until i installed herolib

1x [ADDON_ACTION_BLOCKED] AddOn 'HeroLib'

1x [ADDON_ACTION_BLOCKED] AddOn 'HeroLib' hat versucht die geschützte Funktion 'CompactRaidFrame1:Show()' aufzurufen.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function Show' [string "@FrameXML\CompactUnitFrame.lua"]:376: in function CompactUnitFrame_UpdateVisible'
[string "@FrameXML\CompactUnitFrame.lua"]:307: in function <FrameXML\CompactUnitFrame.lua:305>
[string "=[C]"]: in function `CompactUnitFrame_UpdateAll'
[string "@FrameXML\CompactUnitFrame.lua"]:126: in function <FrameXML\CompactUnitFrame.lua:57>

Bartender4 and Keybinds

BT4 is now using Blizzard Action Bar 1 for Keybinds for BT4 Bar 1 (and the stealth/form bars and such) by Default. and when you set keybinds using the BT /KB command
This causes Hero-lib to not see the Keybinds for anything on Bar1
Work around is to go in to blizzards Keybind interface and set Bartender4 Bar 1 keybinds to the desired keys
Hero-Lib will need to get Keybind info from both Blizzard Action Bar 1 (possibly others) and Bartender

[Unholy Death Knight] Lua errors when using "Outbreak" ability (breaks UI)

I posted this also in hero-rotation as well. Wasn't sure where it should go because this Lua error mentions both.

I copy/paste the error code I'm recieving when using the "Outbreak" ability for unholy. AFAIK, the other abilities aren't having issues.

Below is the LUA error.

Message: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:43: attempt to index local 'Spell' (a nil value)
Time: Wed Jul 18 19:15:16 2018
Count: 32
Stack: Interface\AddOns\HeroLib\Class\Unit\Aura.lua:43: attempt to index local 'Spell' (a nil value)
Interface\AddOns\HeroLib\Class\Unit\Aura.lua:43: in function Buff' Interface\AddOns\HeroLib\Class\Unit\Aura.lua:90: in function <Interface\AddOns\HeroLib\Class\Unit\Aura.lua:89> (tail call): ? Interface\AddOns\HeroRotation_DeathKnight\Unholy.lua:254: in function <Interface\AddOns\HeroRotation_DeathKnight\Unholy.lua:248> Interface\AddOns\HeroRotation_DeathKnight\Unholy.lua:267: in function <Interface\AddOns\HeroRotation_DeathKnight\Unholy.lua:263> Interface\AddOns\HeroRotation_DeathKnight\Unholy.lua:331: in function?'
Interface\AddOns\HeroRotation\Main.lua:432: in function <Interface\AddOns\HeroRotation\Main.lua:410>

Locals: self =
{
AttackPowerDamageMod = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:61
RunicPowerDeficitPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:362
Race = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:34
Insanityrain = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:599
FocusLossOnCastEnd = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:219
PainMax = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:668
IsInVehicle = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:95
EnergyDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:257
Fury = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:645
InstanceInfo = defined @interface\AddOns\HeroLib\Class\Unit\Player\Instance.lua:68
RageDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:139
VersatilityDmgPct = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:98
ArcaneChargesDeficitPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:630
MaelstromPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:510
ArcaneCharges = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:615
ActiveMitigationNeeded = defined @interface\AddOns\HeroLib\Class\Unit\Player\Tank.lua:61
SoulShardsDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:427
IsInWhitelistedVehicle = defined @interface\AddOns\HeroLib\Class\Unit\Player\Main.lua:124
PainDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:686
AttackPower = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:57
ChiDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:544
PainDeficitPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:690
PrevOffGCD = defined @interface\AddOns\HeroLib\Events\Prev_Spell.lua:162
MasteryPct = defined @interface\AddOns\HeroLib\Class\Unit\Player\Stat.lua:93
InsanityPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:587
ManaDeficitPercentageP = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:105
FuryDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:656
PrevGCD = defined @interface\AddOns\HeroLib\Events\Prev_Spell.lua:140
AstralPowerMax = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:435
FocusDeficitPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:180
EnergyRegenPercentage = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:265
RunicPowerDeficit = defined @interface\AddOns\HeroLib\Class\Unit\Player\Power.lua:358
FuryPercentage = defined @interface\Add

Documentation

Hello,

This library seems very nice to use for add-on creation. I had a glance at some parts of the source code to get an idea of what is possible. Now I'm wondering if there's documentation somewhere and where it is. If it exists, it would be nice to link it in the Readme.

Unit:DamageTaken(seconds)

As Blood DK i need to know how much damage i have taken the last 5 second to understand how much my Death Strike heals me for.

There is Weak Auras that have this implemented already so its should be simple to re use.

https://wago.io/NkaTBpcPW

Integration with Bartender

I was digging into the KeyBindings.lua code for the HRLib and see there appears to be some kind of support for Bartender but it doesn't seem like there's much - just one button (by the looks of the code) plus none of my BT key binds show up. Is there something extra I need to do to get my BT key binds to be visible in HR? I've keybound a number of bars and icons in BT and have used it for years so I would love to be able to utilize that.

Create a function to return useable equipped items by the player

The need comes down from ARParser, where I try to translate the use_items action into lua code for AethysRotation.

use_items asks the player to use every useable equipped item by the player; this should probably be cached, and refreshed when the equipment changes.

lua error

my lua warning.

Message: Interface\AddOns\HeroLib\Events\KeyBinding.lua:100: attempt to index field 'db' (a nil value)
Time: Mon Mar 25 20:27:13 2019
Count: 1
Stack: Interface\AddOns\HeroLib\Events\KeyBinding.lua:100: attempt to index field 'db' (a nil value)
Interface\AddOns\HeroLib\Events\KeyBinding.lua:100: in function <Interface\AddOns\HeroLib\Events\KeyBinding.lua:62>
Interface\AddOns\HeroLib\Events\KeyBinding.lua:133: in function `Handler'
Interface\AddOns\HeroLib\Events\Main.lua:227: in function <Interface\AddOns\HeroLib\Events\Main.lua:225>

Locals: (*temporary) =

{
}
(*temporary) =
{
}
(*temporary) = "ElvUI_Bar1Button"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'db' (a nil value)"
BarNames =
{
}
ParseBar = defined @interface\AddOns\HeroLib\Events\KeyBinding.lua:21

Unit:CastPercentage doesn't work

Prior to SL Prepatch I had no issues with interrupts, but now only channeled spells are shown.
I figured out, that the GetTime() function returns the value in seconds and CastingInfo returns its values of start time and end time in microseconds.
I have fixed it for me, so the return value of the function Unit:CastPercentage is now:

return (GetTime() * 1000 - CastStartTime) / (CastEndTime - CastStartTime) * 100

Memory continuously increasing

I have HeroLib installed as part of Hero Rotation.
The memory usage for HeroLib is increasing by 0.03MB every second, when I'm stationary, out of combat and without Hero Rotation displayed (turned off OOC).
It's currently at 30MB and continuing to increase.

PTR LUA Error - HeroRotation-8.3.0.01-5-gbaa666d-alpha.zip

Message: ...\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua:223: attempt to call method 'SetBackdrop' (a nil value)
Time: Fri Aug 14 11:00:00 2020
Count: 1
Stack: ...\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua:223: attempt to call method 'SetBackdrop' (a nil value)
[string "@interface\AddOns\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua"]:223: in function `creatre_UIDropDownList'
[string "@interface\AddOns\HeroLib\Lib\LibUIDropDownMenu\LibUIDropDownMenu.lua"]:386: in main chunk

Locals: name = "L_DropDownList1"
parent = nil
f = L_DropDownList1 {
0 =
Backdrop = L_DropDownList1Backdrop {
}
}
(*temporary) = nil
(*temporary) = L_DropDownList1Backdrop {
0 =
}
(*temporary) =

{
bgFile = "Interface\DialogFrame\UI-DialogBox-Background-Dark"
tileSize = 32
edgeFile = "Interface\DialogFrame\UI-DialogBox-Border"
tile = true
edgeSize = 32
insets =
{
}
}
(*temporary) = "attempt to call method 'SetBackdrop' (a nil value)"
_G =
{
UpdateOnBarHighlightMarksBySpell = defined @interface\FrameXML\ActionButton.lua:78
ERR_OUT_OF_CHI = "Not enough chi"
DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
}
MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
}
GetTrainerServiceTypeFilter = defined =[C]:-1
UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
SetTrainerServiceTypeFilter = defined =[C]:-1
LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 740
SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you."
LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 399
ERROR_CLUB_TICKET_COUNT_AT_MAX_COMMUNITY = "Can't create any more invite links for this community."
RecruitAFriendFrame = RecruitAFriendFrame {
}
CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture = CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture {
}
TutorialFrameLeft19 = TutorialFrameLeft19 {
}
MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown {
}
ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags."
PVP_RANK_6_1 = "Corporal"
MultiBarLeftButton7 = MultiBarLeftButton7 {
}
AudioOptionsVoicePanelOutputDeviceDropdownButtonHighlightTexture = AudioOptionsVoicePanelOutputDeviceDropdownButtonHighlightTexture {
}
VideoOptionsFrameDefaults = VideoOptionsFrameDefaults {
}
MerchantItem1AltCurrencyFrameItem1Text = MerchantItem1AltCurrencyFrameItem1Text {
}
DetailsWindowOptionsBarTextEditorEntryNumberLines = DetailsWindowOptionsBarTextEditorEntryNumberLines {
}
OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN = "Action button keybinds will respond on key down, rather than on key up."
BINDING_NAME_NAMEPLATES = "Show Enemy Name Plates"
CHAT_HEADER_SUFFIX = ": "
MultiBarBottomRightButton8Shine5 = MultiBarBottomRightButton8Shine5 {
}
COVENANT_MISSIONS_HEALTH = "Health"
MAIL_LETTER_TOOLTIP = "Click to make a permanent
copy of this letter."
UnitFrameManaBar_UnregisterDefaultEvents = defined @interface\FrameXML\UnitFrame.lua:782
PaperDollTitlesPaneButton10BgTop = PaperDollTitlesPaneButton10BgTop {
}
ERR_NOAMMO_S = "%s"
CHAT_CONFIG_OTHER_COMBAT =
{
}
FCFDockOverflowButton_OnClick = defined @interface\FrameXML\FloatingChatFrame.lua:2379
TutorialFrameRight19 = TutorialFrameRight19 {
}
ChatFrame6EditBoxFocusMid = ChatFrame6EditBoxFocusMid {
}
BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Blizzard services may be unavailable."
LE_GAME_ERR_RECRUIT_A_FRIEND_FAILED = 950
CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight = CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight {
}
LFGTeleport = defined =[C]:-1
LE_GAME_ERR_ONLY_ONE_QUIVER = 32
INT_SPELL_DURATION_HOURS = "%d |4hour:hrs;"
ToggleEncounterJournal = defined @interface\FrameXML\UIParent.lua:1027
LOSS_OF_CONTROL_DISPLAY_F

[Bug]:

What version of HeroLib are you using?

10.2.06.02

What is the issue?

4x [ADDON_ACTION_BLOCKED] Модификация 'HeroLib' пыталась вызвать защищенную функцию 'UNKNOWN()'.
[string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "@HeroLib/Class/Unit/Range.lua"]:124: in function <HeroLib/Class/Unit/Range.lua:80>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "@HeroLib/Class/Unit/Player/Enemies.lua"]:40: in function <HeroLib/Class/Unit/Player/Enemies.lua:33>
[string "@HeroLib/Class/Unit/Player/Enemies.lua"]:116: in function GetEnemiesInMeleeRange' [string "@HeroRotation_Shaman/Enhancement.lua"]:562: in function ?'
[string "@HeroRotation/Main.lua"]:460: in function <HeroRotation/Main.lua:438>

Locals:
_ = Frame {
RegisterEvent = defined @!BugGrabber/BugGrabber.lua:491
0 =
UnregisterEvent = defined @!BugGrabber/BugGrabber.lua:491
SetScript = defined @!BugGrabber/BugGrabber.lua:491
}
event = "ADDON_ACTION_BLOCKED"
events =

{
ADDON_ACTION_BLOCKED = defined @!BugGrabber/BugGrabber.lua:557
ADDON_ACTION_FORBIDDEN = defined @!BugGrabber/BugGrabber.lua:557
PLAYER_LOGIN = defined @!BugGrabber/BugGrabber.lua:551
LUA_WARNING = defined @!BugGrabber/BugGrabber.lua:566
ADDON_LOADED = defined @!BugGrabber/BugGrabber.lua:511
}

[Bug]: Typo in hero-lib/HeroLib/Class/Unit/Player/Enemies.lua

What version of HeroLib are you using?

10.2.5.03

What is the issue?

hero-lib/HeroLib/Class/Unit/Player /Enemies.lua Line 140:
if not RangeCheck then RangeCheck = function (ThisUnit) return ThisUnit:IsInSpellRange(ThisSpell) end RangeCheckByIdentifier[Identifier] = RangeCheck end
ThisUnit:IsInSpellRange(ThisSpell) should be ThisUnit:IsSpellInRange(ThisSpell)

I'm new to Git, so sorry if I did something wrong or missed something.

[Auras] Remains - GCD.Remains

Useful since most DoTs duration got the pandemic threshold that can be reached mid-gcd.
So, for a Subtlety Rogue in @SimCMinMax/aethysrotation, it would display a Nightblade directly instead of Evisc then Nightblade if the pandemic is reached.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.