PetTracker

PetTracker

13M Downloads

error on Rivals

valelp opened this issue · 2 comments

commented

Message: ...nterface\AddOns\PetTracker\addons\journal\record.lua:74: attempt to perform arithmetic on local 'date' (a string value)
Time: Sat Mar 21 00:09:40 2020
Count: 1
Stack: ...nterface\AddOns\PetTracker\addons\journal\record.lua:74: attempt to perform arithmetic on local 'date' (a string value)
[string "=[C]"]: ?
[string "@interface\AddOns\PetTracker\addons\journal\record.lua"]:74: in function UnpackDate' [string "@Interface\AddOns\PetTracker\addons\journal\record.lua"]:58: in function Unpack'
[string "@interface\AddOns\PetTracker\addons\journal\record.lua"]:28: in function Display' [string "@Interface\AddOns\PetTracker\addons\journal\rivals.lua"]:265: in function Display'
[string "@interface\AddOns\PetTracker\addons\journal\rivals.lua"]:187: in function Update' [string "@Interface\AddOns\PetTracker\addons\journal\rivals.lua"]:125: in function SetTab'
[string ":OnClick"]:2: in function <[string ":OnClick"]:1>

Locals:

commented

Message: ...nterface\AddOns\PetTracker\addons\journal\record.lua:74: attempt to perform arithmetic on local 'date' (a string value)
Time: Sat Mar 21 00:09:40 2020
Count: 1
Stack: ...nterface\AddOns\PetTracker\addons\journal\record.lua:74: attempt to perform arithmetic on local 'date' (a string value)
[string "=[C]"]: ?
[string "@interface\AddOns\PetTracker\addons\journal\record.lua"]:74: in function UnpackDate' [string "@Interface\AddOns\PetTracker\addons\journal\record.lua"]:58: in function Unpack'
[string "@interface\AddOns\PetTracker\addons\journal\record.lua"]:28: in function Display' [string "@Interface\AddOns\PetTracker\addons\journal\rivals.lua"]:265: in function Display'
[string "@interface\AddOns\PetTracker\addons\journal\rivals.lua"]:187: in function Update' [string "@Interface\AddOns\PetTracker\addons\journal\rivals.lua"]:125: in function SetTab'
[string ":OnClick"]:2: in function <[string ":OnClick"]:1>

Locals:

Hello!
I found problem in code and solve it like this:

  1. go to ..\Interface\AddOns\PetTracker\addons\journal\
  2. open record.lua in notepad and find 74 line
  3. change floor(date / 31 / 12) + 2014 to floor(tonumber(date, 16) / 31 / 12) + 2014
  4. save file
  5. enjoy ;)
commented

Message: ...nterface\AddOns\PetTracker\addons\journal\record.lua:74: attempt to perform arithmetic on local 'date' (a string value)
Time: Sat Mar 21 00:09:40 2020
Count: 1
Stack: ...nterface\AddOns\PetTracker\addons\journal\record.lua:74: attempt to perform arithmetic on local 'date' (a string value)
[string "=[C]"]: ?
[string "@interface\AddOns\PetTracker\addons\journal\record.lua"]:74: in function UnpackDate' [string "@Interface\AddOns\PetTracker\addons\journal\record.lua"]:58: in function Unpack'
[string "@interface\AddOns\PetTracker\addons\journal\record.lua"]:28: in function Display' [string "@Interface\AddOns\PetTracker\addons\journal\rivals.lua"]:265: in function Display'
[string "@interface\AddOns\PetTracker\addons\journal\rivals.lua"]:187: in function Update' [string "@Interface\AddOns\PetTracker\addons\journal\rivals.lua"]:125: in function SetTab'
[string ":OnClick"]:2: in function <[string ":OnClick"]:1>
Locals:

Hello!
I found problem in code and solve it like this:

1. go to ..\Interface\AddOns\PetTracker\addons\journal\

2. open record.lua in notepad and find 74 line

3. change `floor(date / 31 / 12) + 2014` to `floor(tonumber(date, 16) / 31 / 12) + 2014`

4. save file

5. enjoy ;)

Ty so much!