just downloaded your addon and when i tried the "Optimize" button i get this Lua error:
1x CovenantMissionHelper\Board.lua:331: attempt to index field '?' (a nil value)
[string "@CovenantMissionHelper\Board.lua"]:331: in function onUnitTakeDamage' [string "@CovenantMissionHelper\Board.lua"]:296: in functionmakeUnitAction'
[string "@CovenantMissionHelper\Board.lua"]:161: in function fight' [string "@CovenantMissionHelper\Board.lua"]:142: in functionsimulate'
[string "@CovenantMissionHelper\MetaBoard.lua"]:46: in function findBestDisposition' [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:55: in functionfindBestDisposition'
[string "@CovenantMissionHelper\UI.lua"]:94: in function <CovenantMissionHelper\UI.lua:93>
4x CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value)
[string "@CovenantMissionHelper\Board.lua"]:99: in function new' [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:29: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:25> [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:37: in functionsimulateFight'
[string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:20: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:15>
string "=[C]": in function UpdateAllyPower' [string "@Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:647: in functionAssignFollowerToMission'
[string "@Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:472: in function ptr' [string "@SharedXML\CallbackRegistry.lua"]:55: in functionTriggerEvent'
[string "@Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua"]:426: in function <...dOns\Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua:423>
Locals:
self =
{
checkMissionOver = defined @CovenantMissionHelper\Board.lua:186
Errors =
{
}
constructResultString = defined @CovenantMissionHelper\Board.lua:382
getTargetIndexes = defined @CovenantMissionHelper\Board.lua:410
simulate = defined @CovenantMissionHelper\Board.lua:123
onUnitTakeDamage = defined @CovenantMissionHelper\Board.lua:328
getTurnOrder = defined @CovenantMissionHelper\Board.lua:227
isTargetableUnit = defined @CovenantMissionHelper\Board.lua:214
new = defined @CovenantMissionHelper\Board.lua:38
makeUnitAction = defined @CovenantMissionHelper\Board.lua:253
CombatLogEvents =
{
}
getTargetableUnits = defined @CovenantMissionHelper\Board.lua:218
__index =
{
}
HiddenCombatLog =
{
}
getTotalLostHP = defined @CovenantMissionHelper\Board.lua:336
isWin = defined @CovenantMissionHelper\Board.lua:401
CombatLog =
{
}
getMyTeam = defined @CovenantMissionHelper\Board.lua:353
manageBuffsFromDeadUnits = defined @CovenantMissionHelper\Board.lua:316
fight = defined @CovenantMissionHelper\Board.lua:145
manageAppliedBuffs = defined @CovenantMissionHelper\Board.lua:302
setHasRandomSpells = defined @CovenantMissionHelper\Board.lua:169
isUnitAlive = defined @CovenantMissionHelper\Board.lua:206
}
missionPage = {
EncounterIcon = {
}
StartMissionFrame = {
}
CostFrame = {
}
mentorLevel = 0
StartMissionButton = {
}
SetFollowerListSortFuncsForMission = defined @Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1356
mentorItemLevel = 0
FollowerBackground = {
}
IconBG = {
}
Stage = {
}
UpdateFollowerModel = defined @Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1361
missionEffects =
have the same issue I think. Night Fae. This is when I select optimize. I also get a lua message when I add my troops. will post that in another comment.
Message: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value)
Time: Sun Jan 24 11:29:00 2021
Count: 3
Stack: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value)
[string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:99: in function new' [string "@Interface\AddOns\CovenantMissionHelper\MetaBoard.lua"]:35: in functionnew'
[string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:52: in function `findBestDisposition'
[string "@Interface\AddOns\CovenantMissionHelper\UI.lua"]:94: in function <Interface\AddOns\CovenantMissionHelper\UI.lua:93>
Locals: self =
{
checkMissionOver = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:186
Errors =
{
}
constructResultString = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:382
getTargetIndexes = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:410
simulate = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:123
onUnitTakeDamage = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:328
getTurnOrder = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:227
isTargetableUnit = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:214
new = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:38
makeUnitAction = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:253
CombatLogEvents =
{
}
getTargetableUnits = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:218
__index =
{
}
HiddenCombatLog =
{
}
getTotalLostHP = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:336
isWin = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:401
CombatLog =
{
}
getMyTeam = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:353
manageBuffsFromDeadUnits = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:316
fight = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:145
manageAppliedBuffs = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:302
setHasRandomSpells = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:169
isUnitAlive = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:206
}
missionPage = {
UpdatePortraitPulse = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua:964
EnemyBackground = {
}
missionEffects =
{
}
0 =
StartMissionFrame = {
}
EmptyString = {
}
CostFrame = {
}
mentorLevel = 0
lastUpdate = 2735.089000
CheckCounter = defined @Interface\AddOns\Blizzard_GarrisonTemplates\Blizzard_GarrisonMissionTemplates.lua:2322
GetFollowerFrameFromID = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1384
Median = {
}
CalculateDurabilityLoss = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1432
missionInfo =
Not sure if the same message, but this is when I add a troop (or take them away)
Message: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value)
Time: Sun Jan 24 11:33:26 2021
Count: 5
Stack: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value)
[string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:99: in function new' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:29: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:25> [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:37: in functionsimulateFight'
[string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:20: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:15>
[string "=[C]"]: in function UpdateAllyPower' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:647: in functionAssignFollowerToMission'
[string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:472: in function ptr' [string "@Interface\SharedXML\CallbackRegistry.lua"]:55: in functionTriggerEvent'
[string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua"]:426: in function <...dOns\Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua:423>
Locals: self =
{
checkMissionOver = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:186
Errors =
{
}
constructResultString = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:382
getTargetIndexes = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:410
simulate = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:123
onUnitTakeDamage = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:328
getTurnOrder = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:227
isTargetableUnit = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:214
new = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:38
makeUnitAction = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:253
CombatLogEvents =
{
}
getTargetableUnits = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:218
__index =
{
}
HiddenCombatLog =
{
}
getTotalLostHP = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:336
isWin = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:401
CombatLog =
{
}
getMyTeam = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:353
manageBuffsFromDeadUnits = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:316
fight = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:145
manageAppliedBuffs = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:302
setHasRandomSpells = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:169
isUnitAlive = defined @Interface\AddOns\CovenantMissionHelper\Board.lua:206
}
missionPage = {
UpdatePortraitPulse = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua:964
EnemyBackground = {
}
missionEffects =
{
}
0 =
StartMissionFrame = {
}
EmptyString = {
}
CostFrame = {
}
mentorLevel = 0
lastUpdate = 3191.907000
CheckCounter = defined @Interface\AddOns\Blizzard_GarrisonTemplates\Blizzard_GarrisonMissionTemplates.lua:2322
GetFollowerFrameFromID = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1384
Median = {
}
CalculateDurabilityLoss = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1432
missionInfo =
{
}
SetFollowerListSortFuncsForMission = defined @Interface\AddOns\Blizzard_GarrisonUI\Blizzard_GarrisonMissionUI.lua:1356
mentorIte
Hello,
just downloaded your addon and when i tried the "Optimize" button i get this Lua error:
1x CovenantMissionHelper\Board.lua:331: attempt to index field '?' (a nil value) [string "@CovenantMissionHelper\Board.lua"]:331: in function
onUnitTakeDamage' [string "@CovenantMissionHelper\Board.lua"]:296: in function
makeUnitAction' [string "@CovenantMissionHelper\Board.lua"]:161: in functionfight' [string "@CovenantMissionHelper\Board.lua"]:142: in function
simulate' [string "@CovenantMissionHelper\MetaBoard.lua"]:46: in functionfindBestDisposition' [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:55: in function
findBestDisposition' [string "@CovenantMissionHelper\UI.lua"]:94: in function <CovenantMissionHelper\UI.lua:93>Locals: self =
another bug when you use "Troops" in the battle
4x CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value) [string "@CovenantMissionHelper\Board.lua"]:99: in function
new' [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:29: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:25> [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:37: in function
simulateFight' [string "@CovenantMissionHelper\CovenantMissionHelper-0.1.lua"]:20: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:15>string "=[C]": in function
UpdateAllyPower' [string "@Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:647: in function
AssignFollowerToMission' [string "@Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:472: in functionptr' [string "@SharedXML\CallbackRegistry.lua"]:55: in function
TriggerEvent' [string "@Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua"]:426: in function <...dOns\Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua:423>Locals: self =
have the same issue I think. Night Fae. This is when I select optimize. I also get a lua message when I add my troops. will post that in another comment. Message: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value) Time: Sun Jan 24 11:29:00 2021 Count: 3 Stack: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value) [string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:99: in function
new' [string "@Interface\AddOns\CovenantMissionHelper\MetaBoard.lua"]:35: in function
new' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:52: in function `findBestDisposition' [string "@Interface\AddOns\CovenantMissionHelper\UI.lua"]:94: in function <Interface\AddOns\CovenantMissionHelper\UI.lua:93>Locals: self =
Not sure if the same message, but this is when I add a troop (or take them away)
Message: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value) Time: Sun Jan 24 11:33:26 2021 Count: 5 Stack: Interface\AddOns\CovenantMissionHelper\Board.lua:99: attempt to perform arithmetic on field 'xp' (a nil value) [string "@Interface\AddOns\CovenantMissionHelper\Board.lua"]:99: in function
new' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:29: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:25> [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:37: in function
simulateFight' [string "@Interface\AddOns\CovenantMissionHelper\CovenantMissionHelper.lua"]:20: in function <...dOns\CovenantMissionHelper\CovenantMissionHelper.lua:15> [string "=[C]"]: in functionUpdateAllyPower' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:647: in function
AssignFollowerToMission' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_CovenantMissionUI.lua"]:472: in functionptr' [string "@Interface\SharedXML\CallbackRegistry.lua"]:55: in function
TriggerEvent' [string "@Interface\AddOns\Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua"]:426: in function <...dOns\Blizzard_GarrisonUI\Blizzard_AdventuresPuck.lua:423>Locals: self =
Fixed in v3.0.1 #18