Pokemon Trainer NG: The Pet Battle Mod

Pokemon Trainer NG: The Pet Battle Mod

33.4k Downloads

opening collections when in combat causes error

JPEscher opened this issue ยท 12 comments

commented

bug sack/bug grabber data:

reproduction steps (done using training dummy while trying to repro something for a diff mod)
1: go to training dummies in dornogal
2: enter combat
3: open collections

note: 2x is because i tested the keyboard shortcut, which also produced the error

2x [ADDON_ACTION_BLOCKED] AddOn 'PokemonTrainer' tried to call the protected function 'PTHealBandageFrameHealButton:SetAttribute()'.
[C]: ?

Locals:
(*temporary) = CollectionsMicroButton {
 FlashBorder = Texture {
 }
 QuickKeybindHighlightTexture = Texture {
 }
 lastNumMountsNeedingFanfare = 0
 tooltipText = "Warband Collections |cffffd200(SHIFT-P)|r"
 Background = Texture {
 }
 lastNumPetsNeedingFanfare = 0
 layoutIndex = 8
 textureName = "Collections"
 FlashContent = Texture {
 }
 PushedBackground = Texture {
 }
 commandName = "TOGGLECOLLECTIONS"
}
(*temporary) = "LeftButton"
(*temporary) = false
commented

I just tried this, and I cannot get it to trigger.

Can you try with only this addon loaded, to see if the issue is still there?

The error looks like something else might have causes a taint, causing PT to trip later on.

commented

tried with just this enabled. got

Message: ...ner/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:3: attempt to index global 'LibStub' (a nil value)
Time: Thu Sep  4 06:32:05 2025
Count: 1
Stack:
[Interface/AddOns/Blizzard_UIParent/Shared/UIParent.lua]:221: in function 'UIParentLoadAddOn'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:475: in function 'CollectionsJournal_LoadUI'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:886: in function 'SetCollectionsJournalShown'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:876: in function 'ToggleCollectionsJournal'
[TOGGLECOLLECTIONS]:1: in function <[string "TOGGLECOLLECTIONS"]:1>

Locals:
name = "Blizzard_Collections"
FailedAddOnLoad = <table> {
}
Message: ...ner/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:3: attempt to index global 'LibStub' (a nil value)
Time: Thu Sep  4 06:32:05 2025
Count: 1
Stack:
[Interface/AddOns/Blizzard_UIParent/Shared/UIParent.lua]:221: in function 'UIParentLoadAddOn'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:475: in function 'CollectionsJournal_LoadUI'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:886: in function 'SetCollectionsJournalShown'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:876: in function 'ToggleCollectionsJournal'
[TOGGLECOLLECTIONS]:1: in function <[string "TOGGLECOLLECTIONS"]:1>

Locals:
name = "Blizzard_Collections"
FailedAddOnLoad = <table> {
}
Message: Interface/AddOns/PokemonTrainer/Libs/iLib/iLib.lua:7: Cannot find a library instance of "AceComm-3.0".
Time: Thu Sep  4 06:32:05 2025
Count: 1
Stack:
[Interface/AddOns/PokemonTrainer/Libs/LibStub/Libstub.lua]:23: in function 'LibStub'
[Interface/AddOns/PokemonTrainer/Libs/iLib/iLib.lua]:7: in main chunk
[C]: ?
[C]: in function 'LoadAddOn'
[Interface/AddOns/Blizzard_UIParent/Shared/UIParent.lua]:221: in function 'UIParentLoadAddOn'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:475: in function 'CollectionsJournal_LoadUI'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:886: in function 'SetCollectionsJournalShown'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:876: in function 'ToggleCollectionsJournal'
[TOGGLECOLLECTIONS]:1: in function <[string "TOGGLECOLLECTIONS"]:1>

Locals:
self = <table> {
 minors = <table> {
 }
 minor = 2
 libs = <table> {
 }
}
major = "AceComm-3.0"
silent = nil
Message: ...Trainer/Libs/LibPetJournal-2.0/LibPetJournal-2.0.lua:44: Cannot find a library instance of "CallbackHandler-1.0".
Time: Thu Sep  4 06:32:05 2025
Count: 1
Stack:
[Interface/AddOns/PokemonTrainer/Libs/LibStub/Libstub.lua]:23: in function 'LibStub'
[Interface/AddOns/PokemonTrainer/Libs/LibPetJournal-2.0/LibPetJournal-2.0.lua]:44: in main chunk
[C]: ?
[C]: in function 'LoadAddOn'
[Interface/AddOns/Blizzard_UIParent/Shared/UIParent.lua]:221: in function 'UIParentLoadAddOn'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:475: in function 'CollectionsJournal_LoadUI'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:886: in function 'SetCollectionsJournalShown'
[Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua]:876: in function 'ToggleCollectionsJournal'
[TOGGLECOLLECTIONS]:1: in function <[string "TOGGLECOLLECTIONS"]:1>

Locals:
self = <table> {
 minors = <table> {
 }
 minor = 2
 libs = <table> {
 }
}
major = "CallbackHandler-1.0"
silent = nil
commented

Interresting - I'll look into that - it looks like some libraries are missing

commented

I have pushed 11.2.0-20250904-1 with the remaining Ace3 libraries added - it should be available within the next hour - please try and update to that version, and see if it works by itself then.

commented

same issues, but i noticed it's not the add on per se, its the blizzard stuff..

Image
commented

Is it retail or classic you are playing?

commented

retail

commented

Okay, can you attach a screenshot of your addon settings? (maybe a certain combination of settings are needed)

commented
Image Image Image Image
commented

Okay, this was interesting - I managed to trigger the issue (at least the issue with loading only this addon).
It seems like I have never hit the problem before, since other addons would make sure the correct libraries where loaded before this addon was loaded.

Anyway, I have pushed 11.2.0-20250904-2, which should fix the loading issue.

With this version, I have tried the following, without any errors:

  1. Only load PT addon
  2. Start battling target dummy
  3. SHIFT+P to open collections
  4. Click all the tabs
  5. Heal battle pets

Please update to this version, and see if the issue persists on your end, with only PT loaded.

commented

still getting it. but its also an edge case i dont think you should stress too much over.

commented

Okay, I'll close the ticket, but keep it in the back of my mind, if I happen to run into the issue myself.