LibHealComm error during Mend Pet #1045


Closed
  • xgooy created this issue Sep 10, 2021

    What version of Grid2 and game type (classic or retail) are you using ?

    2.0.22-bcc

     

    What game client version (windows or mac) and language are you using ?

    Burning Crusade Classic, Windows, English

     

    What steps will reproduce the problem?

    As a hunter, use Mend Pet to heal pet. Fix is below.

      
    Did you try having Grid2 as the only enabled addon and everything else disabled?

    No

      

    Was it working in a previous version? If yes, which was the last good one?

    I think the previous version one was working, though I don't remember if I was using a beta version, 2.0.21-beta-bcc, or the previous release, 2.0.14-bcc.

      

    Do you have an error log of what happened? If you don't see any errors, make sure that error reporting is enabled (`/console scriptErrors 1`) or install [BugSack](https://mods.curse.com/addons/wow/BugSack).

     

    Message: ...ddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua:770: attempt to perform arithmetic on local 'requiresLevel' (a nil value)
    Time: Thu Sep 9 22:33:02 2021
    Count: 3
    Stack: ...ddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua:770: attempt to perform arithmetic on local 'requiresLevel' (a nil value)
    [string "=[C]"]: ?
    [string "@Interface\AddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:770: in function <...ddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua:759>
    [string "@Interface\AddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:1437: in function <...ddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua:1435>
    [string "@Interface\AddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:2213: in function `?'
    [string "@Interface\AddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:2828: in function <...ddOns\Grid2\Libs\LibHealComm-4.0\LibHealComm-4.0.lua:2826>

    Locals:

      

    Please provide any additional information below.

     Don't know if this is an issue I should be opening with LibHealComm or here, but the LibHealComm version I see on Curseforge seems to be a little different. The problem lies on line 1437:

     

    local amount = getBaseHealAmount(hotData, spellName, spellRank)

     

    Notice that getBaseHealAmount takes in a spell id as the third param, so the fix is to change the line to:

     

    local amount = getBaseHealAmount(hotData, spellName, spellID, spellRank)

  • michaelsp posted a comment Sep 10, 2021

    Maybe fixed in Grid2 2.0.23-beta-bcc version, this version packages the last updates of libhealcomm4 library.

    https://www.wowace.com/projects/grid2/files/3455782

    But keep in mind that libhealcomm4 library was discontinued (nobody is maintaining this library anymore) , so probably not more updates and it will soon removed and replaced with the blizzard heal api (waiting for a blizzard fix to a important bug in game heal api).


    Edited Sep 10, 2021
  • michaelsp closed issue Sep 15, 2021

To post a comment, please login or register a new account.