확장팩 팁과 노하우

전체보기

모바일 상단 메뉴

본문 페이지

[애드온] wow 10.1 에서 발생하는 Bagnon(10.0.16) 버그 임시 처방

아이콘 Kepi
댓글: 4 개
조회: 7370
추천: 1
2023-05-04 18:27:39
현재 와우 10.1 에서 아래와 같은 Bagnon 의 버그가 발생 됩니다.
BagBrother/libs/ItemSearch-1.3-2/API.lua:53: attempt to index field 'args' (a nil value)
[string "@BagBrother/libs/ItemSearch-1.3-2/API.lua"]:53: in function <BagBrother/libs/ItemSearch-1.3/API.lua:50>
[string "@BagBrother/libs/ItemSearch-1.3-2/API.lua"]:58: in function `IsUnusable'
[string "@BagBrother/addons/core/classes/item.lua"]:243: in function `UpdateBorder'
[string "@BagBrother/addons/core/classes/item.lua"]:206: in function `Update'
[string "@BagBrother/addons/core/classes/item.lua"]:134: in function <...rfaceBagBrother/addons/core/classes/item.lua:129>
[string "=[C]"]: in function `Show'
[string "@BagBrother/addons/core/api/frames.lua"]:85: in function <BagBrother/addons/core/api/frames.lua:80>
[string "=(tail call)"]: ?
[string "@BagBrother/addons/core/features/autoDisplay.lua"]:83: in function `OpenAllBags'
[string "@FrameXML/MailFrame.lua"]:63: in function `showFunc'
[string "@FrameXML/PlayerInteractionFrameManager.lua"]:183: in function <FrameXML/PlayerInteractionFrameManager.lua:172>
[string "=(tail call)"]: ?
[string "@FrameXML/PlayerInteractionFrameManager.lua"]:215: in function <FrameXML/PlayerInteractionFrameManager.lua:212>
[string "=[C]"]: in function `TurnOrActionStop'
[string "TURNORACTION"]:4: in function <[string "TURNORACTION"]:1>

Locals:
lines = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
}
(for index) = 6
(for limit) = 5
(for step) = -1
i = 6
(*temporary) = nil
(*temporary) = <table> {
 leftText = ""
 maxPrice = -1

수정법

wow설치폴더_retail_InterfaceAddOnsBagBrotherlibsItemSearch-1.3API.lua

라는 파일을 텍스트애디터(노트패드 같은)로 열어서


function Lib:IsUnusable(id)
    if Unfit:IsItemUnusable(id) then
        return true
elseif Lib.Unusable[id] == nil and IsEquippableItem(id) then
Lib.Unusable[id] = (function()
local lines = C.TooltipInfo.GetItemByID(id).lines
for i = #lines-1, 5, -1 do
local class = lines[i].args[2].stringVal:match(L.CLASS_REQUIREMENT)
if class then
return not class:find(L.PLAYER_CLASS)
end
end
end)() or false
    end
return Lib.Unusable[id]
end
 이 부분을

function Lib:IsUnusable(id)
    if Unfit:IsItemUnusable(id) then
        return true
elseif Lib.Unusable[id] == nil and IsEquippableItem(id) then
Lib.Unusable[id] = (function()
local lines = C.TooltipInfo.GetItemByID(id).lines
for i = #lines-1, 5, -1 do
if lines[i].args ~= nil then -- add this check
local class = lines[i].args[2].stringVal:match(L.CLASS_REQUIREMENT)
if class then
return not class:find(L.PLAYER_CLASS)
end
end
end
end)() or false
    end
return Lib.Unusable[id]
end

로 수정해 줍니다.

출처: https://github.com/Jaliborc/Bagnon/issues/1661#issuecomment-1533389826

해당 게시판에 가보면 https://github.com/Jaliborc/Bagnon/issues/1660#issuecomment-1533354338 과 같은 해결법도 있으나 전 해결되지 않았었습니다.

와우저

Lv85 Kepi

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

  • 와우
  • 게임
  • IT
  • 유머
  • 연예