Jaliborc / PetTracker

Tracks pets, alerts for upgrades and helps you in pet battles.
47 stars 25 forks source link

Tutorial window bug #307

Closed Duranna144 closed 1 year ago

Duranna144 commented 1 year ago

Running Software (issues missing this information will be deleted):

Describe the bug Tutorial frame pops up every time I log in, I am unable to go through it and get the error listed below.

To Reproduce Steps to reproduce the behaviour: Log in. That is all that I do and this occurs.

Expected behaviour I expect to be able to go through the tutorial and mark it as completed so it does not continue to pop up.

Error Logs 5x ...ker/libs/CustomTutorials-2.1-11/CustomTutorials-2.1.lua:115: attempt to perform arithmetic on field 'i' (a nil value) [string "@Interface/AddOns/PetTracker/libs/CustomTutorials-2.1-11/CustomTutorials-2.1.lua"]:115: in function <...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:114>

Locals: (temporary) = defined @Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:36 (temporary) = CustomTutorials1 { 0 = images =

{ } SetPortraitShown = defined @Interface/SharedXML/PortraitFrame.lua:91 GetTitleText = defined @Interface/SharedXML/PortraitFrame.lua:28 Inset = CustomTutorials1Inset { } SetPortraitTextureRaw = defined @Interface/SharedXML/PortraitFrame.lua:79 next = Button { } text = FontString { } TitleContainer = Frame { } SetTitleMaxLinesAndHeight = defined @Interface/SharedXML/PortraitFrame.lua:49 SetTitleColor = defined @Interface/SharedXML/PortraitFrame.lua:32 prev = Button { } shine = Frame { } DefaultPortraitTextureSizeAndOffset = defined @Interface/SharedXML/PortraitFrame.lua:101 SetTitle = defined @Interface/SharedXML/PortraitFrame.lua:36 SetBorder = defined @Interface/SharedXML/PortraitFrame.lua:62 layoutType = "PortraitFrameTemplate" flash = AnimationGroup { } SetPortraitToBag = defined @Interface/SharedXML/PortraitFrame.lua:75 PortraitContainer = Frame { } SetPortraitToUnit = defined @Interface/SharedXML/PortraitFrame.lua:71 Bg = CustomTutorials1Bg { } GetPortrait = defined @Interface/SharedXML/PortraitFrame.lua:58 SetTitleFormatted = defined @Interface/SharedXML/PortraitFrame.lua:40 NineSlice = Frame { } TopTileStreaks = Texture { } SetPortraitToAsset = defined @Interface/SharedXML/PortraitFrame.lua:67 SetPortraitTextureSizeAndOffset = defined @Interface/SharedXML/PortraitFrame.lua:95 CloseButton = CustomTutorials1CloseButton { } unlocked = 4 data =
{ } SetPortraitAtlasRaw = defined @Interface/SharedXML/PortraitFrame.lua:83 SetPortraitTexCoord = defined @Interface/SharedXML/PortraitFrame.lua:87 } (temporary) = nil (temporary) = 1 (*temporary) = "attempt to perform arithmetic on field 'i' (a nil value)" UpdateFrame = defined @Interface/AddOns/PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:36 frame = CustomTutorials1 { 0 = images =
{ } SetPortraitShown = defined @Interface/SharedXML/PortraitFrame.lua:91 GetTitleText = defined @Interface/SharedXML/PortraitFrame.lua:28 Inset = CustomTutorials1Inset { } SetPortraitTextureRaw = defined @Interface/SharedXML/PortraitFrame.lua:79 next = Button { } text = FontString { } TitleContainer = Frame { } SetTitleMaxLinesAndHeight = defined @Interface/SharedXML/PortraitFrame.lua:49 SetTitleColor = defined @Interface/SharedXML/PortraitFrame.lua:32 prev = Button { } shine = Frame { } DefaultPortraitTextureSizeAndOffset = defined @Interface/SharedXML/PortraitFrame.lua:101 SetTitle = defined @Interface/SharedXML/PortraitFrame.lua:36 SetBorder = defined @Interface/SharedXML/PortraitFrame.lua:62 layoutType = "PortraitFrameTemplate" flash = AnimationGroup { } SetPortraitToBag = defined @Interface/SharedXML/PortraitFrame.lua:75 PortraitContainer = Frame { } SetPortraitToUnit = defined @Interface/SharedXML/PortraitFrame.lua:71 Bg = CustomTutorials1Bg { } GetPortrait = defined @Interface/SharedXML/PortraitFrame.lua:58 SetTitleFormatted = defined @Interface/SharedXML/PortraitFrame.lua:40 NineSlice = Frame { } TopTileStreaks = Texture { } SetPortraitToAsset = defined @Interface/SharedXML/PortraitFrame.lua:67 SetPortraitTextureSizeAndOffset = defined @Interface/SharedXML/PortraitFrame.lua:95 CloseButton = CustomTutorials1CloseButton { } unlocked = 4 data =
{ } SetPortraitAtlasRaw = defined @Interface/SharedXML/PortraitFrame.lua:83 SetPortraitTexCoord = defined @Interface/SharedXML/PortraitFrame.lua:87 } direction = 1

Additional context Only other addon enabled was bugsack/buggrabber to get the bugs.

Konungrr commented 1 year ago

Same for me.

terrybader commented 1 year ago

Got the same.

Commented out line 55 of PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua to get around the problem. frame.TitleText:SetText(data.title or frame.data.title) to -- frame.TitleText:SetText(data.title or frame.data.title)

Since I just went around it, I believe TitleText should just be text but did not reset everything and try it.

Duranna144 commented 1 year ago

I don't have a line 55 in gossip.lua. It ends on line 45 for me, and searching for the titletext you have listed has nothing.

terrybader commented 1 year ago

I don't have a line 55 in gossip.lua. It ends on line 45 for me, and searching for the titletext you have listed has nothing.

Sorry I was looking at another issue.

It is line 55 of PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua

Duranna144 commented 1 year ago

That does seem to have worked!

ryankhart commented 1 year ago

Got the same.

Commented out line 55 of PetTracker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua to get around the problem. frame.TitleText:SetText(data.title or frame.data.title) to -- frame.TitleText:SetText(data.title or frame.data.title)

Since I just went around it, I believe TitleText should just be text but did not reset everything and try it.

This worked for me too! Thanks!

RuffianCM commented 1 year ago

Hi, is this going to be fixed in the download from CurseForge? I saw this awhile ago and figured it would be corrected soon in an updated version, but the tutorial window keeps popping up every time I log into any WoW character. I really like this addon, but the window popping up every time I switch characters is making me crazy! Thanks!

ryankhart commented 1 year ago

Hi, is this going to be fixed in the download from CurseForge? I saw this awhile ago and figured it would be corrected soon in an updated version, but the tutorial window keeps popping up every time I log into any WoW character. I really like this addon, but the window popping up every time I switch characters is making me crazy! Thanks!

I can't answer for when an official update will fix this, but you may be surprised how simple it is to work-around the issue with the fix described above. The code doesn't need to be compiled, so all it takes it just adding three characters to the beginning of one line "-- " and hit save.

You can use any editor that shows line numbers. If you care about it being lightweight and fast to launch, I recommend Notepad++. If you want versatility and one editor to rule them all at the expense of launch time and memory usage, I recommend VS Code.

Elnora commented 1 year ago

I also have this issue.