Thread Tools Display Modes
07-12-09, 11:19 AM   #21
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Hello, Carg.
First off, I love the addon; very minimalistic and to the point.

Secondly, is there a way to disable the item glow that your addon provides and use oGlow instead for this? I've tried commenting out all of the "glow" sections in _Pernobilis (3 to 12 & 26 to 32) which effectively removed your glow, but oGlow's does not show up.

The only reasons that I wish to use oGlow instead are that I'm using it to already glow the items in the character frame, merchant display, guild bank, etc. and also because haste's newest revision will glow quest items as well (http://github.com/haste/oGlow/tree/master).

Any help with this would be greatly appreciated.
  Reply With Quote
07-13-09, 03:30 PM   #22
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Preamble: This only works with the new oGlow-API (basically on haste's git).

You basically have to tell oGlow that cargBags needs to be updated, too.
Add this code on top of the layout (basically replacing the old createGlow-function):
Code:
local function dummy() end
oGlow:RegisterPipe('cargBags_Pernobilis', dummy, nil, dummy, [[The cargBags layout Pernobilis.]])
oGlow:RegisterFilterOnPipe('cargBags_Pernobilis', 'quality')
oGlow:RegisterFilterOnPipe('cargBags_Pernobilis', 'quest')
The dummy-function is merely a hack to circumvent the mandatory oGlow-functions which are not needed :/

And then this part into the UpdateButton-function, replacing the old glow-code:
Code:
	oGlow:CallFilters('cargBags_Pernobilis', button, item.link)
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
07-13-09, 04:15 PM   #23
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Thanks for the reply.

I might just be overlooking something or completely dumb (most likely the latter), but it's telling me that it's unable to index the global "oGlow".
"Interface\AddOns\cargBags_Pernobilis\layout.lua:4:attempt to index global 'oGlow' (a nil value)"

Here's how I changed the code in the Pernobilis layout.
http://i28.tinypic.com/28ugz2q.gif

Last edited by Dainton : 07-13-09 at 04:20 PM.
  Reply With Quote
07-13-09, 04:19 PM   #24
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Uh yeah, I forgot that you have to add oGlow to the RequiredDeps-line in the cargBags_Pernobilis.toc-file. This ensures that it's loaded before cargBags
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
07-13-09, 05:44 PM   #25
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
I even added that to it and reloaded my ui, but I guess I needed to exit the game completely. :P
Thanks, carg, it works like a charm now.
  Reply With Quote
07-16-09, 03:37 AM   #26
gagou
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 16
Thanks for this great mod I really like it.
The API page on your website is down, is there a copy of this API somewhere else?

also new features for 2.0 are exciting, any ETA on this one?
  Reply With Quote
07-16-09, 06:43 AM   #27
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Originally Posted by Dainton View Post
I even added that to it and reloaded my ui, but I guess I needed to exit the game completely. :P
Thanks, carg, it works like a charm now.
Yep, .toc-changes always require a complete restart.

Originally Posted by gagou View Post
Thanks for this great mod I really like it.
The API page on your website is down, is there a copy of this API somewhere else?

also new features for 2.0 are exciting, any ETA on this one?
Oh yeah, you're right, have to get the server back online

The API can be found as well on top of all the files in the cargBags-core. I'd recommend looking there, even if the site is back online, because ... you know, programmers are lazy .... just have to program a script which does this automatically

Concerning 2.0: Uhh no, not at the moment. I'm just busy on writing a bugfix-release (1.3) and releasing it in the next days. Though 2.0 is planned as the next update then.

EDIT: server back online.
__________________
« Website | GitHub »

Oh hai!

Last edited by xConStruct : 07-16-09 at 08:37 AM. Reason: server online.
  Reply With Quote
07-17-09, 03:45 AM   #28
xXVegâsXx
A Kobold Labourer
AddOn Compiler - Click to view compilations
Join Date: Jun 2009
Posts: 1
how do i activate layouts for cargbags? i have downloaded cargbags and the nivaya layout. but now i don't know how to activate it. pls help someone who knows how it works

this error comes every start.

Code:
cargBags_Nivaya\cargBags_Nivaya.lua:575: attempt to call method 'GetHandler' (a nil value)
cargBags-0.4.4.1\core.lua:114: in function `Spawn'
cargBags_Nivaya\cargBags_Nivaya.lua:65: in function `?'
cargBags_Nivaya\cargBags_Nivaya.lua:2: in function <Interface\AddOns\cargBags_Nivaya\cargBags_Nivaya.lua:2>

Last edited by xXVegâsXx : 07-17-09 at 04:16 AM.
  Reply With Quote
07-17-09, 05:47 AM   #29
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
You' ve got a totally outdated version of cargBags (0.4.4.1). The new version is already 1.2 - with this version, it should work without problems
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
09-01-09, 11:27 PM   #30
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Occasionally when I get in combat I am unable to open my bags (or close them if they're open before I get in combat). Here's the message that I get with Baud Error:
Code:
cargBags blocked from using cBags_Main:Show()
Count: 1

Call Stack:
[C]: in function `Show'
Interface\AddOns\cargBags_Pernobilis\layout.lua:314: in function `OpenCargBags'
Interface\AddOns\cargBags_Pernobilis\layout.lua:323: in function `ToggleBackpack'
[string "TOGGLEBACKPACK"]:1: in function <[string "TOGGLEBACKPACK"]:1>
Here is my slightly modded Pernobilis also (oGlow support/spacing/colors/draggable):
http://www.pastey.net/124517

Without Baud Error no error is displayed aside from "Interface action failed because of an AddOn" in the chat frame.

Edit: I'm using 1.3 of cargBags and 1.1 of Pernobilis.

Last edited by Dainton : 09-01-09 at 11:31 PM. Reason: version numbers
  Reply With Quote
09-02-09, 04:14 AM   #31
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
At the moment, I don't think, cargBags is solely responsible for this taint, since it doesn't use any protected frames. I assume, the error is caused, because some protected frame interacts with cargBags / the inventory in some way that causes it to become protected.

Some questions to narrow down the issue:
Can you define 'occasionally' a bit more clearly?
How do you toggle your bags?
Which addons you are using could interfere with cargBags or the inventory in general?
Does it happen with the normal _Pernobilis or another layout? (Although your code looks good to me)
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
09-02-09, 05:13 AM   #32
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
"Occasionally" meaning that at a random time while playing it will start to do this and will continue to consistently until I reload the UI.

My bags are toggled with the standard "B" keybinding.

No other mods that I use really interfere with the bags at all. Here's a list and I've highlighted the ones that could possibly have anything to do with the bags. http://www.pastey.net/124530

I can try using the standard Pernobilis layout later today and see if it happens at all.
  Reply With Quote
09-02-09, 05:46 AM   #33
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
At a quick glance, Dolemite and Molinari seem suspicious to me, because both have a secure frame and anchor it to the item-buttons of cargBags, as soon as their animation starts, making it protected in combat.

I would suggest you to show the animation on the inventory button and after that try to toggle cargBags in combat.

EDIT: Tested and reported it to the author.
__________________
« Website | GitHub »

Oh hai!

Last edited by xConStruct : 09-02-09 at 08:50 AM.
  Reply With Quote
09-02-09, 01:54 PM   #34
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
You're awesome, thanks!
  Reply With Quote
09-06-09, 08:14 PM   #35
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Haha, sorry to keep coming back here with problems. I just noticed today while playing an alt that the [max] tag isn't including the backpack. Here's a screenshot to show you what I mean.
http://i28.tinypic.com/10y06wy.jpg
Nothing has changed since my last posting.
  Reply With Quote
09-06-09, 09:45 PM   #36
zero-kill
A Firelord
 
zero-kill's Avatar
Join Date: Aug 2009
Posts: 497
You mean the default "backpack" that you get at the beginning?
  Reply With Quote
09-06-09, 09:54 PM   #37
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Originally Posted by zero-kill View Post
You mean the default "backpack" that you get at the beginning?
Yes, BagId 0.
  Reply With Quote
09-06-09, 10:38 PM   #38
zero-kill
A Firelord
 
zero-kill's Avatar
Join Date: Aug 2009
Posts: 497
I don't believe any of the flavors are showing bagID0, might be because it cannot be un-equipped.
  Reply With Quote
09-07-09, 06:36 AM   #39
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
The so-called custom variable bagType define which bags should be addressed by a plugin. In _Pernobilis it is defined in lines 111 to 116, directly before the space-indicator.
The default here is "bags", so using bagIDs 1 to 4. You can however replace it by "backpack+bags" to get 0 to 4. Same goes for bank which can also be replaced by "bankframe+bank".

Seems like it's an error and I will fix it in the next version.
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
09-07-09, 06:27 PM   #40
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Yeah, changing:
lua Code:
  1. local bagType
  2.         if(self.Name == "cBags_Main") then
  3.             bagType = "bags"    -- We want to add all bags to our bag button bar
  4.         else
  5.             bagType = "bank"    -- the bank gets bank bags, of course
  6.         end
to:
lua Code:
  1. local bagType
  2.         if(self.Name == "cBags_Main") then
  3.             bagType = "backpack+bags"   -- We want to add all bags to our bag button bar
  4.         else
  5.             bagType = "bankframe+bank"  -- the bank gets bank bags, of course
  6.         end
seems to have worked in _Pernobilis.
Thanks again for everything.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » cargBags - Help & Discussion


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