kaminaris / AuctionFaster

19 stars 8 forks source link

Lua Error when trying to sell #103

Open BlueNightSky opened 4 years ago

BlueNightSky commented 4 years ago

When I try to sell something and enter the quantity, the following two errors occur:

1.3x AuctionFaster\tabs\sell\validators.lua:30: bad argument #1 to 'GetAvailablePostCount' (Usage: local listCount = C_AuctionHouse.GetAvailablePostCount(item)) [string "=[C]"]: in functionGetAvailablePostCount' [string "@AuctionFaster\tabs\sell\validators.lua"]:30: in function ValidateStackSize' [string "@AuctionFaster\tabs\sell\ui.lua"]:321: in functionOnValueChanged' [string "@AuctionFaster\Libs\StdUi\widgets\EditBox.lua"]:146: in function `Validate' [string "@AuctionFaster\Libs\StdUi\widgets\EditBox.lua"]:156: in function <AuctionFaster\Libs\StdUi\widgets\EditBox.lua:155>

Locals: (*temporary) =

{ Clear = defined @FrameXML\ObjectAPI\ItemLocation.lua:21 IsEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:48 IsEqualToBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:64 SetBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:27 IsBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:52 SetEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:38 slotIndex = 16 HasAnyLocation = defined @FrameXML\ObjectAPI\ItemLocation.lua:56 bagID = 4 GetEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:44 IsEqualToEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:72 GetBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:34 IsValid = defined @FrameXML\ObjectAPI\ItemLocation.lua:60 IsEqualTo = defined @FrameXML\ObjectAPI\ItemLocation.lua:80 } `

2.6x AuctionFaster\modules\Auctions-拍賣.lua:378: bad argument #1 to 'GetItemCommodityStatus' (Usage: local isCommodity = C_AuctionHouse.GetItemCommodityStatus(item)) [string "=[C]"]: in functionGetItemCommodityStatus' [string "@AuctionFaster\modules\Auctions-拍賣.lua"]:378: in function SellItem' [string "@AuctionFaster\tabs\sell\functions.lua"]:383: in functionSellCurrentItem' [string "@AuctionFaster\tabs\sell\ui.lua"]:367: in function <AuctionFaster\tabs\sell\ui.lua:366>

Locals: (*temporary) =

{ Clear = defined @FrameXML\ObjectAPI\ItemLocation.lua:21 IsEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:48 IsEqualToBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:64 SetBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:27 IsBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:52 SetEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:38 slotIndex = 16 HasAnyLocation = defined @FrameXML\ObjectAPI\ItemLocation.lua:56 bagID = 4 GetEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:44 IsEqualToEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:72 GetBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:34 IsValid = defined @FrameXML\ObjectAPI\ItemLocation.lua:60 IsEqualTo = defined @FrameXML\ObjectAPI\ItemLocation.lua:80 } `

pwilkowski commented 4 years ago

I was never able to see that error, is it something you can reproduce?