CovenantMissionHelper

CovenantMissionHelper

2M Downloads

Unit.lua:50: attempt to index field '?'

Aryadiel opened this issue ยท 6 comments

commented

Message: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)
Time: Sat Jul 3 16:41:29 2021
Count: 1
Stack: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)

Locals:

commented

Same.

Message: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)
Time: Sat Jul  3 11:56:19 2021
Count: 1
Stack: Interface\AddOns\CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)
[string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:69: in function `new'
[string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:51: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:49>
[string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:60: in function `simulateFight'
[string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:43: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:35>
[string "=[C]"]: in function `UpdateAllyPower'
[string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:341: in function `ShowMission'
[string "@Interface\AddOns\VenturePlan\Util.lua"]:206: in function `ShowMission'
[string "@Interface\AddOns\VenturePlan\Widgets.lua"]:242: in function <Interface\AddOns\VenturePlan\Widgets.lua:241>

Locals: self = <table> {
 checkMissionOver = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:209
 applyUnitsPassiveSkills = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:189
 constructResultString = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:430
 getTargetIndexes = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:458
 simulate = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:126
 onUnitTakeDamage = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:344
 getTurnOrder = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:254
 isTargetableUnit = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:241
 new = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:39
 makeUnitAction = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:280
 getResultInfo = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:391
 CombatLogEvents = <table> {
 }
 getTargetableUnits = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:245
 HiddenCombatLog = <table> {
 }
 getTotalLostHP = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:366
 isWin = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:449
 CombatLog = <table> {
 }
 manageBuffsFromDeadUnits = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:332
 Errors = <table> {
 }
 fight = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:147
 manageAppliedBuffs = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:318
 setHasRandomSpells = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:173
 isUnitAlive = <function> defined @Interface\AddOns\CovenantMissionHelper\Board.lua:229
}
missionPage = <unnamed> {
 UpdatePortraitPulse = <function> defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua:1002
 UpdateEmptyString = <function> defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1385
 StartMissionFrame = <unnamed> {
 }
 EmptyString = <unnamed> {
 }
 CostFrame = <unnamed> {
 }
 0 = <userdata>
 missionInfo = <table> {
 }
 CheckCounter = <function> defined @Interface\AddOns\Blizzard_GarrisonTemplates\Blizzard_GarrisonMissionTemplates.lua:2330
 GetFollowerFrameFromID = <function> defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1393
 ItemLevelHitboxFrame = <unnamed> {
 }
 CalculateDurabilityLoss = <function> defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1441
 Show = <function> defined =[C]:-1
 SetFollowerListSortFuncsForMission = <function> defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1365
 EnemyBackground = <unnamed> {
 }
 AddFollower = <function> defined
commented

3x CovenantMissionHelper\Unit.lua:50: attempt to index field '?' (a nil value)
[string "@CovenantMissionHelper\Unit.lua"]:50: in function getAttackType' [string "@CovenantMissionHelper\Unit.lua"]:61: in function setSpells'
[string "@CovenantMissionHelper\Unit.lua"]:43: in function new' [string "@CovenantMissionHelper\Board.lua"]:69: in function new'
[string "@CovenantMissionHelper\CovenantMissionHelper-3.2.0.lua"]:51: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:49>
[string "@CovenantMissionHelper\CovenantMissionHelper-3.2.0.lua"]:60: in function simulateFight' [string "@CovenantMissionHelper\CovenantMissionHelper-3.2.0.lua"]:43: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:35> [string "=[C]"]: in function UpdateAllyPower'
[string "@Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:341: in function ShowMission' [string "@Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua"]:206: in function OnClickMission'
[string "@Blizzard_GarrisonTemplates\Blizzard_CovenantMissionTemplates.lua"]:504: in function <...risonTemplates\Blizzard_CovenantMissionTemplates.lua:499>

Locals:
self =

{
role = 1
ID = 3522524
reflect = 0
startHealth = 540
spells =
{
}
untargetable = false
currentHealth = 540
name = "Anima Smuggler"
boardIndex = 6
buffs =
{
}
maxHealth = 540
attack = 36
}
autoCombatSpells =
{
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
CMH =
{
Spell =
{
}
Board =
{
}
isDebug = false
Unit =
{
}
log = defined @CovenantMissionHelper\CovenantMissionHelper.lua:192
TargetManager =
{
}
MetaBoard =
{
}
Buff =
{
}
debug_log = defined @CovenantMissionHelper\CovenantMissionHelper.lua:199
DataTables =
{
}
}

commented

Same for me.
Error did pop up at the mission "Catch the Anima Smugglers".

commented

replace Unit.lua line 43 with:

    if blizzardUnitInfo.autoCombatSpells and next(blizzardUnitInfo.autoCombatSpells) ~= nil then
        newObj:setSpells(blizzardUnitInfo.autoCombatSpells)
    end
commented

thx, but which origin line exactly needs to be replaced? my editor does not show me any line numbers ...

commented

Now that it has been mentioned, I can confirm that this error seems to only appear when trying to assign a party for "Catch the Anima Smugglers"