Thread Tools Display Modes
08-13-16, 12:31 PM   #1
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Someone please help fix DerpyStuffing Bags

AddOn Page

I wish someone coud fix this cool Bag Addon. If someone knows how and where in the lua file I have to replace the code to make it work again then please post here. I also coud add you to the project here on WoWUI.

Currently the bagslots are not visible looks like the rest of the addon (sorting, searching, display of gold, bagslots) is working fine. I coud not check if bank works.



I get this error:

Lua Code:
  1. 8x DerpyStuffing\stuff.lua:173: attempt to call global 'CooldownFrame_SetTimer' (a nil value)
  2. DerpyStuffing\stuff.lua:173: in function `SlotUpdate'
  3. DerpyStuffing\stuff.lua:460: in function `SlotNew'
  4. DerpyStuffing\stuff.lua:1178: in function `Layout'
  5. DerpyStuffing\stuff.lua:1346: in function `?'
  6. DerpyStuffing\stuff.lua:1736: in function <DerpyStuffing\stuff.lua:1735>
  7.  
  8. Locals:
  9. self = Stuffing {
  10.  0 = <userdata>
  11.  ITEM_LOCK_CHANGED = <function> defined @DerpyStuffing\stuff.lua:1353
  12.  SearchUpdate = <function> defined @DerpyStuffing\stuff.lua:515
  13.  PLAYERREAGENTBANKSLOTS_CHANGED = <function> defined @DerpyStuffing\stuff.lua:1315
  14.  ReAnchorFrames = <function> defined @DerpyStuffing\stuff.lua:1271
  15.  RestackOnUpdate = <function> defined @DerpyStuffing\stuff.lua:1658
  16.  BagType = <function> defined @DerpyStuffing\stuff.lua:469
  17.  InitBank = <function> defined @DerpyStuffing\stuff.lua:807
  18.  BAG_CLOSED = <function> defined @DerpyStuffing\stuff.lua:1405
  19.  BagFrameSlotNew = <function> defined @DerpyStuffing\stuff.lua:301
  20.  BankSort = <function> defined @DerpyStuffing\SortBags.lua:222
  21.  Restack = <function> defined @DerpyStuffing\stuff.lua:1675
  22.  SetBagsForSorting = <function> defined @DerpyStuffing\stuff.lua:819
  23.  PLAYER_LOGIN = <function> defined @DerpyStuffing\stuff.lua:1335
  24.  BAG_UPDATE = <function> defined @DerpyStuffing\stuff.lua:1323
  25.  BagNew = <function> defined @DerpyStuffing\stuff.lua:479
  26.  BAG_UPDATE_DELAYED = <function> defined @DerpyStuffing\stuff.lua:1327
  27.  BagSort = <function> defined @DerpyStuffing\SortBags.lua:230
  28.  CheckSVars = <function> defined @DerpyStuffing\stuff.lua:1242
  29.  frame = StuffingFrameBags {
  30.  }
  31.  bagframe_buttons = <table> {
  32.  }
  33.  BagSlotUpdate = <function> defined @DerpyStuffing\stuff.lua:251
  34.  EndFakeStatusBar = <function> defined @DerpyStuffing\stuff.lua:1016
  35.  buttons = <table> {
  36.  }
  37.  BANKFRAME_CLOSED = <function> defined @DerpyStuffing\stuff.lua:1395
  38.  Layout = <function> defined @DerpyStuffing\stuff.lua:1081
  39.  bags = <table> {
  40.  }
  41.  SlotNew = <function> defined @DerpyStuffing\stuff.lua:383
  42.  SortOnUpdate = <function> defined @DerpyStuffing\stuff.lua:1441
  43.  SlotUpdate = <function> defined @DerpyStuffing\stuff.lua:167
  44.  BANKFRAME_OPENED = <function> defined @DerpyStuffing\stuff.lua:1367
  45.  CreateBagFrame = <function> defined @DerpyStuffing\stuff.lua:610
  46.  InitBags = <function> defined @DerpyStuffing\stuff.lua:872
  47.  PLAYERBANKSLOTS_CHANGED = <function> defined @DerpyStuffing\stuff.lua:1293
  48.  SortBags = <function> defined @DerpyStuffing\stuff.lua:1558
  49.  SearchReset = <function> defined @DerpyStuffing\stuff.lua:547
  50. }
  51. b = <table> {
  52.  bag = 0
  53.  slot = 1
  54.  frame = StuffingBag0_1 {
  55.  }
  56.  Cooldown = StuffingBag0_1Cooldown {
  57.  }
  58.  Glow = DerpyFrame_7 {
  59.  }
  60. }
  61. texture = 342424
  62. count = 1
  63. locked = false
  64. clink = "|cffffffff|Hitem:141602::::::::100:577::9:3:1816:1815:3447:::|h[]|h|r"
  65. cd_start = 0
  66. cd_finish = 0
  67. cd_enable = 1
  68. (*temporary) = nil
  69. (*temporary) = StuffingBag0_1Cooldown {
  70.  0 = <userdata>
  71. }
  72. (*temporary) = 0
  73. (*temporary) = 0
  74. (*temporary) = 1
  75. (*temporary) = "attempt to call global 'CooldownFrame_SetTimer' (a nil value)"
  76. GetContainerItemInfo = <function> defined =[C]:-1
  77. GetContainerItemLink = <function> defined =[C]:-1
  78. _ = nil
  79. GetItemInfo = <function> defined =[C]:-1
  80. GetCagedBattlePetInfo = <function> defined @DerpyStuffing\stuff.lua:38
  81. unpack = <function> defined =[C]:-1
  82. grad = <table> {
  83.  1 = "VERTICAL"
  84.  2 = 0.345
  85.  3 = 0.345
  86.  4 = 0.345
  87.  5 = 1
  88.  6 = 1
  89.  7 = 1
  90. }

I tested out some AddOns like Bagnon but I get massive fps drops when the bags/bank is open while I have masque enabled.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
08-13-16, 12:35 PM   #2
syncrow
A Flamescale Wyrmkin
 
syncrow's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 149
DerpyStuffing\stuff.lua

Line: 173

replace
Code:
CooldownFrame_SetTimer
with
Code:
CooldownFrame_Set
__________________
  Reply With Quote
08-13-16, 01:02 PM   #3
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Thank you very much syncrow!
I can see the bagslots now and there is no more error. BUT the item quality color glow/border around the icons is not showing and when I hoover a bagslot I get a green texture (like a missing texture normaly it shoud display "glowTex.tga" I guess its something wrong with media.lua).

How it shoud look: http://cdn-wow.mmoui.com/preview/pvw61654.jpg

How it looks: http://i.imgur.com/WUZjIRn.jpg
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 08-13-16 at 01:18 PM.
  Reply With Quote
08-13-16, 01:40 PM   #4
syncrow
A Flamescale Wyrmkin
 
syncrow's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 149
You have to look for:
Code:
:SetTexture(0,0,0,0.5)
or similar...

...has to be replaces with:
Code:
:SetColorTexture(0,0,0,0.5)
__________________
  Reply With Quote
08-13-16, 02:39 PM   #5
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Super Awesome! I think I figured it out. I'll upload a new version. Thank you again I'll credit you on the AddOn page
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Someone please help fix DerpyStuffing Bags

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off