Bagnon

Bagnon

132M Downloads

Bagnon not working in The War Within!

Esabria opened this issue ยท 10 comments

commented

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

Worked fine yesterday, but today, it will not open the bags! I have had to turn off the addon and use the games option of combine bags just to open bags.

Bagnon Version

Bagnon 11.1.9.zip

World of Warcraft Flavor

Retail

World of Warcraft Region

US/NA

Tested with only Bagnon

I got this issue with only Bagnon enabled

Lua Error

Message: ...rface/AddOns/BagBrother/core/classes/playerMoney.lua:48: attempt to index global 'MoneyTypeInfo' (a nil value)
Time: Wed Apr  9 10:33:57 2025
Count: 1
Stack:
[C]: ?
[Interface/AddOns/BagBrother/core/classes/playerMoney.lua]:48: in function 'Construct'
[Interface/AddOns/BagBrother/libs/Poncho-2.0/Poncho-2.0.lua]:81: in function <...ace/AddOns/BagBrother/libs/Poncho-2.0/Poncho-2.0.lua:75>
[tail call]: ?
[Interface/AddOns/BagBrother/core/classes/parented.lua]:10: in function <...nterface/AddOns/BagBrother/core/classes/parented.lua:9>
[tail call]: ?
[Interface/AddOns/BagBrother/core/classes/playerMoney.lua]:26: in function <...rface/AddOns/BagBrother/core/classes/playerMoney.lua:25>
[tail call]: ?
[Interface/AddOns/BagBrother/core/classes/frameBase.lua]:125: in function 'GetWidget'
[Interface/AddOns/Bagnon/src/frame.lua]:251: in function <Interface/AddOns/Bagnon/src/frame.lua:248>
[tail call]: ?
[Interface/AddOns/Bagnon/src/frame.lua]:54: in function 'Layout'
...[tail call]: ?
[Interface/AddOns/BagBrother/frames/inventory/inventory.lua]:27: in function <...ace/AddOns/BagBrother/frames/inventory/inventory.lua:26>
[C]: in function 'Show'
[Interface/AddOns/BagBrother/core/api/frames.lua]:32: in function 'Show'
[Interface/AddOns/BagBrother/core/api/frames.lua]:24: in function <Interface/AddOns/BagBrother/core/api/frames.lua:23>
[tail call]: ?
[tail call]: ?
[Interface/AddOns/BagBrother/core/features/autoDisplay.lua]:83: in function 'ToggleBag'
[Interface/AddOns/Blizzard_ActionBar/Mainline/MainMenuBarBagButtons.lua]:79: in function <...lizzard_ActionBar/Mainline/MainMenuBarBagButtons.lua:69>
[C]: ?

Locals:

Reproduction Steps

Click on Bags, does not open

Last Working Version

The one before Bagnon 11.1.9.zip

Screenshots

No response

commented

That's exactly the code I have in my playerMoney.lua file already. Copy/pasting this code results in zero changes.

Terribly sorry, I managed to copy the original code instead of the edited code. It has been updated now.

commented

@Esabria You can temporarily edit the affected file to make it work (updated & shortened):

  1. Open interface/AddOns/BagBrother/core/classes/playerMoney.lua
  2. Replace line 48: f.info = MoneyTypeInfo[f.Type]
  3. With this: f.info = { UpdateFunc = function(frame) return frame:GetMoney() end }
  4. Just do a /reload in-game and it should work again.

The whole function should look like this:

function Money:Construct()
    local f = self:Super(Money):Construct()
    f.trialErrorButton:SetPoint('LEFT', -14, 0)
    f:SetScript('OnShow', f.RegisterEvents)
    f:SetScript('OnHide', f.UnregisterAll)
    f:SetScript('OnEvent', nil)
    f:SetHeight(24)

    local overlay = CreateFrame('Button', nil, f)
    overlay:SetScript('OnClick', function(_,...) f:OnClick(...) end)
    overlay:SetScript('OnEnter', function() f:OnEnter() end)
    overlay:SetScript('OnLeave', function() f:OnLeave() end)
    overlay:SetFrameLevel(f:GetFrameLevel() + 4)
    overlay:RegisterForClicks('anyUp')
    overlay:SetAllPoints()

    f.info = { UpdateFunc = function(frame) return frame:GetMoney() end }
    f.overlay = overlay
    return f
end
commented

@HawkCodePotato That's exactly the code I have in my playerMoney.lua file already. Copy/pasting this code results in zero changes.

commented

I just did that with the changed code. This works now make sure you replace the correct code in proper place.
Thanks Hawk

commented

That's exactly the code I have in my playerMoney.lua file already. Copy/pasting this code results in zero changes.

Terribly sorry, I managed to copy the original code instead of the edited code. It has been updated now.

Thank you so much brother
recovered my pw just to say thank you ๐Ÿ˜†

commented
commented

Cannot open bags in retail.

commented

Cannot open bags in retail.

You can just do as in the temp fix I posted above: #2047 (comment)

commented

@Esabria You can temporarily edit the affected file to make it work (updated & shortened):

  1. Open interface/AddOns/BagBrother/core/classes/playerMoney.lua
  2. Replace line 48: f.info = MoneyTypeInfo[f.Type]
  3. With this: f.info = { UpdateFunc = function(frame) return frame:GetMoney() end }
  4. Just do a /reload in-game and it should work again.

The whole function should look like this:

function Money:Construct()
    local f = self:Super(Money):Construct()
    f.trialErrorButton:SetPoint('LEFT', -14, 0)
    f:SetScript('OnShow', f.RegisterEvents)
    f:SetScript('OnHide', f.UnregisterAll)
    f:SetScript('OnEvent', nil)
    f:SetHeight(24)

    local overlay = CreateFrame('Button', nil, f)
    overlay:SetScript('OnClick', function(_,...) f:OnClick(...) end)
    overlay:SetScript('OnEnter', function() f:OnEnter() end)
    overlay:SetScript('OnLeave', function() f:OnLeave() end)
    overlay:SetFrameLevel(f:GetFrameLevel() + 4)
    overlay:RegisterForClicks('anyUp')
    overlay:SetAllPoints()

    f.info = { UpdateFunc = function(frame) return frame:GetMoney() end }
    f.overlay = overlay
    return f
end

Worked for me. Ty man =)