DBM - PvP Mods (Requires Deadly Boss Mods) - DBM

DBM - PvP Mods (Requires Deadly Boss Mods) - DBM

22M Downloads

Lua Error in DBM-PvP/PvPGeneral.lua on Arathi Basin

Closed this issue · 0 comments

commented

Describe the bug
I expected the DBM PvP module to function normally during an Arathi Basin battleground. Instead, as soon as the match started, I began receiving a constant stream of Lua errors, preventing the mod from working correctly. The error points to 'allianceScore' being a nil value, which suggests an issue with fetching the team scores.

Do you have an error log of what happened?
Yes, here is the error log:

1795x DBM-PvP/PvPGeneral.lua:488: attempt to perform arithmetic on local 'allianceScore' (a nil value)
[DBM-PvP/PvPGeneral.lua]:488: in function 'UpdateWinTimer'
[DBM-PvP/PvPGeneral.lua]:674: in function 'handler'
[DBM-Core/DBM-Core.lua]:1047: in function <DBM-Core/DBM-Core.lua:1033>

Locals:
self = <table> {
 SyncThreshold = 8
 modId = "DBM-PvP"
 revision = 20241128195800
 DefaultOptions = <table> {
 }
 iconRestore = <table> {
 }
 isDummyMod = false
 localization = <table> {
 }
 announces = <table> {
 }
 optionCategories = <table> {
 }
 timers = <table> {
 }
 categorySort = <table> {
 }
 groupSpells = <table> {
 }
 shortTermRegisterEvents = <table> {
 }
 stats = <table> {
 }
 Options = <table> {
 }
 addon = <table> {
 }
 specwarns = <table> {
 }
 groupOptions = <table> {
 }
 yells = <table> {
 }
 isTrashMod = false
 id = "PvPGeneral"
 vb = <table> {
 }
 inCombat = false
}
maxScore = 2000
allianceScore = nil
hordeScore = nil
allianceBases = 0
hordeBases = 0
resPerSec = <table> {
 1 = 0.000000
 2 = 0.833333
 3 = 1.111111
 4 = 1.666667
 5 = 3.333333
 6 = 30
}
gameTime = 215.286000
(*temporary) = 2000
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on local 'allianceScore' (a nil value)"
resourcesPerSec = <table> {
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
}
numObjectives = 5
winTimer = <table> {
 option = "TimerWin"
 icon = "132486"
 type = "cd"
 simpType = "cd"
 id = "TimerWin"
 objClass = "Timer"
 mod = <table> {
 }
 startedTimers = <table> {
 }
 colorType = 0
 text = "Победа через"
 timer = 30
}
L = <table> {
 Vulnerable1 = "Персонажи, несущие флаг, стали более уязвимы!"
 RunestoneBoss = "Рунический камень"
 BgStart60era = "Битва начнется через 1 минуту."
 InfoFrameHeader = "[DBM] Здоровье босса"
 ResearchBoss = "Исследование"
 BgStart60 = "Битва начнется через 1 минуту."
 MoonwellBoss = "Лунный колодец"
 Fangraal = "Фанграал"
 BasesToWinHeader = "DBM-PvP"
 FlagTaken = "(.+) взял флаг!"
 BgStart120 = "Битва начнется через 2 минуты."
 ExprFlagPickUp = "(.+) несет флаг (%w+)!"
 Volrath = "Верховный полководец Волрат"
 GlaiveBoss = "Глефа"
 name = "Общие параметры"
 Galvangar = "Капитан Гальвангар"
 ArenaStart30 = "Тридцать секунд до начала боя на Арене!"
 CatapultBoss = "Катапульта"
 FlagDropped = "Флаг был сброшен!"
 HordeBoss = "Босс Орды"
 Ivus = "Ивус Лесной Властелин"
 BonfireBoss = "Большой костер"
 ExprFlagCaptured = "(.+) захватывает флаг (%w+)!"
 Kronus = "Крон"
 ArenaInvite = "Приглашение на Арену"
 Tremblade = "Верховный маршал Тремблейд"
 Vulnerable2 = "Персонажи, несущие флаг, стали еще более уязвимы!"
 BgStart30 = "Битва начнется через 30 секунд. Приготовиться!"
 Stale = "(несвежий) "
 ArenaStart15 = "Пятнадцать секунд до начала боя на Арене!"
 BasesToWin = "Базы, необходимые для победы: %d"
 FlagReset = "Флаг был возвращен!"
 ShredderBoss = "Шреддер"
 WinBarText = "%s выигрывает"
 ArenaStart60 = "Одна минута до начала боя на Арене!"
 BgStart30era = "Битва начнется через 30 секунд. Приготовиться!"
 Balinda = "Капитан Балинда Каменный Очаг"
 ExprFlagReturn = "(.+) возвращает на базу флаг (%w+)!"
 AllianceBoss = "Босс Альянса"
 FlagCaptured = ".+ ha%w+ захватил флаг!"
 Lokholar = "Локолар Владыка Льда"
 BgStart120era = "Битва начнется через 2 минуты."
 LumberBoss = "Древесина"
}
FACTION_HORDE = "Орда"
FACTION_ALLIANCE = "Альянс"
infoFrameState = <table> {
 maxScore = 0
 resPerSec = <table> {
 }
 hordeScore = 0
 allianceScore = 0
}
DBM = <table> {
 DungeonMusic = <table> {
 }
 ReleaseRevision = 202508210

To Reproduce
Steps to reproduce the behavior:

  1. Set the game client language to Russian.
  2. Queue for the Arathi Basin battleground.
  3. Enter the battleground.
  4. The error begins to appear as soon as the match starts.

Screenshots
N/A

Did you try having DeadlyBossMods as the only enabled addon and everything else (especially something like ElvUI) disabled?
I have not tried this yet, but it is the next step I will take.

Which version of DeadlyBossMods are you using?
DBM-PvP-r188 for MoP Classic

Was it working in a previous version? If yes, which was the last good one?
I am not sure.

Additional context
This issue occurred on the WoW Mists of Pandaria Classic servers. I am using the Russian (ruRU) game client, which might be related to the issue, as the addon might have trouble parsing localized data.