Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
1.3
Date:
07-18-2009 09:54 PM
Size:
31.91 Kb
Downloads:
40,016
Favorites:
316
MD5:
Pictures
Click to enlarge
cargBags_Aurora
Click to enlarge
cargBags_Nivaya
Click to enlarge
cargBags_Pernobilis
cargBags   Popular! (More than 5000 hits)
cargBags is a lightweight and modular bag framework. It is designed that you can completely focus on how your items are displayed and sorted rather than caring about getting item info, updating your bags or handle interaction with items. You can define how many virtual bags you'd like to have and what items should go into it.

The core addon only moves and sorts information between the handler and the layout - it's up to your layout how to present the items to the user!

So, to see something going on, you need a layout! See below or on the "Optional Files"-tab for additonal resources.


Filtering
cargBags can react on special rules or filters to check if an item goes into that bag, but it's completely optional. So there's the possibility to make a complete all-in-one bag or separate small bags which hide gray items or show only keys, for example.

Modular
There's the possibility to add/modify parts of cargBags on all sides. You could write a custom layout - or just a small different money display which other layouts can easily spawn in their code. Or just hook into the backend, the item data, and manipulate it, e.g. writing a handler which displays the contents of some sort of database rather than your inventory.

Lightweight
cargBags tries to be efficient in both terms of CPU- and memory usage and there are thoughts on optimization before almost every update.

But aren't item filters in conflict with the term 'lightweight'?
Well, it depends on which features you'd like to have, but the default configuration is about only 50-60 kb including the layout. The CPU-usage is of course a bit higher because of the item filters, but it tries to only do the work which is needed to be done.
Item buttons which are not used will be recycled for later use, so there are no extra frames generated which are not needed.


Default features
  • item filters
  • modular: custom layouts, plugins or handlers
  • lightweight: strip out features you don't need
  • comes with money display, space indicator and bag button bar


Additional resources and help
Planned features for 2.0
  • stack compression
  • include GetInventoryItemCount()
  • guild bank support
  • additional default plugins (e.g. search)

cargBags is licensed under the GPL 3.

And of course, please drop a comment for bugs. For feature requests, help or discussion which do not relate to the core, please use the mentioned thread above!
  Change Log - cargBags
Changes to the core prior to version 1.0 are located in the changelog.txt.
In most cases the version tagging follows the scheme rewrite.feature.bugfix.

cargBags (core)
1.3
* licensed as GPL 3
* fixed background texture of empty bag buttons
* hovering over a bag button can now fade different bag objects
* fixed tooltip-parsing not working correctly
* and now the usual developer-stuff:

- BagBar new property: BagBar.BackgroundTexture - texture path if no icon was found
- new function: object:Fire(callback, ...) - fires a callback with the defined arguments
- new function cargBags.C2I(id) - translates a ContainerID into an InventoryID
- new function cargBags.I2C(id) - translates an InventoryID into a ContainerID
- function changed: cargBags.ParseBags(bagString or bagID or table) - now returns a table every time
- new property: cargBags.BagStrings[] - holds tables of the bagID's for the different bagStrings
- :PreCheckFilters() now also fires on :GetItemInfo()

1.2
* first tooltip-scanning code, if you have wishes for more parsed infos than bindOn,
* please let me know =)

- updated for 3.2
- fixed item.id not working properly
- new item data: item.bindOn - returns "equip", "pickup", "account", "quest", "use" or nil
- 3.2 only: new item data: item.stats - returns a table of all stats of the item (see GetItemStats() for info)
- 3.2 only: new item data: item.sellValue - returns the sellValue in copper of an item
- new plugin: DataBroker - displays a databroker-object, the addon cargoShip is needed for that

1.1 r431
* completely rewritten item-data fetching (should go faster now)
* handlers before version 1.1 are not compatible

- new item data: item.id - returns the item id extracted from the link
- new item data: item.bagType - returns the type of the item's bag
- you can now add your own data to the item-table by adding a function in cargBags.ItemKeys["keyName"]
- new function: object:GetItemInfo(bagID, slotID) - returns the item table for the specified slot
- debug-mode included, see top of core.lua for details

1.0.8 r426
- new property: object.PositionEveryTime - set to true to call UpdateButtonPositions every update
- new pipe function: handler.GetContainerItemLink(bagID, slotID)
- new pipe function: handler.GetContainerItemInfo(bagID, slotID)

1.0.7 r424
- fixed keyring not initializing
- rewritten iterator-function, you can now supplement a table-sort-function in cargBags:IterateBags()
- object's buttons are now available as table-keys in object.Buttons
- fixed a typo when using the bagstring "backpack+bags"
- plugins can now be spawned outside of objects by using cargBags.SpawnPlugin(...)

1.0.6 r413
- fixed the button.bagID-errors

1.0.5 r410
- fixed problem with hidden bags
- fixed plugins not updating on login
- lots of comments in the files added
- fixed bagType not being stored in cargBags.Bags[bagID]

1.0.4 r402
- pass arguments to Update-callbacks
- timed events to reduce updating
- new callback function: cargBags:PreCheckFilters(item, updateType)

1.0.3 r398
- silent mode for setting active handler and style (set #arg2 to 'true'), returns true on success
- update bags only after init
- new callback function: object:PreUpdateBags() - fired before an object is updated
- new callback function: object:PostUpdateBags() - fired after an object is updated

1.0.2 r387
- space indicator can now fetch information of defined bags (like BagBar)
- new function cargBags:ParseBags(bags) - returns id's of bag-strings like "bags" or "bank"
- some changes on showing/hiding buttons (hopefully fixes the appearing of unused buttons)
- style-arguments changed: style(settings, self, name, ...)

1.0.1 r383
* updated .toc for patch 3.1
* removed property: cargBags.FreezeButtons - don't think it's really needed
* fixed cooldowns not updating on item move
* new callback function: object:PostCreateBag(bag, bagID) - fired after a bag was created in the object

1.0
* COMPLETE REWRITE
* your old layout won't work with this new version without major changes!
* be aware that most previous callback functions for the layout are removed / modified due to the changes
- cargBags now supports filters for item-based placing!
- unused buttons are now recycled to save memory and cpu time
- item quality glow removed, it is now handled by the layout
- additional elements are now spawned with the new plugin system
- see object:RegisterPlugin(name, func)
- and object:SpawnPlugin(name, ...)
- new callback function: object: object:UpdateButton(button, item)
- new callback function: object: object:UpdateButtonLock(button, item)
- new callback function: object: object:UpdateButtonCooldown(button, item)
  Optional Files - cargBags
File Name
Version
Size
Author
Date
Type
r16.1
12kB
08-25-2009 01:58 AM
Addon
1.1
6kB
07-19-2009 11:43 AM
Addon
1.3
4kB
07-18-2009 09:54 PM
Addon
r29
13kB
06-25-2009 05:59 PM
Addon
2.0
7kB
06-01-2009 07:12 AM
Addon
  Archived Versions - cargBags
File Name
Version
Size
Author
Date
1.2
16kB
Cargor
07-02-2009 11:31 AM
1.1
14kB
Cargor
06-25-2009 01:27 PM
1.0.8
14kB
Cargor
06-01-2009 07:28 AM
1.0.7
14kB
Cargor
06-01-2009 07:06 AM
  Comments - cargBags
Post A Reply Comment Options
Old 09-27-2009, 09:03 AM  
CGamer
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Money Tooltip

Is it possible to display on a tooltip from withing the cargbags the combined amount, something like

------------------
Bob-Toon 125g
Ted-Toon 250g
Jim-Toon 300g
------------------
Total 675g

Showing what each toon has in the tooltip and the combined total for all toons.
CGamer is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-24-2009, 09:03 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
@Resurrwreckage: Ah thanks, I'll try to fix it

@Phatrik: Yep, that's exactly the error I got while testing with _Gnomed, I hope Soeters gets it fixed fast. Nevertheless, if you go back to cargBags 1.2, it shouldn't happen anymore.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-24-2009, 01:44 AM  
Phatrik
A Kobold Labourer
 
Phatrik's Avatar

Forum posts: 0
File comments: 50
Uploads: 1
Ok, this is what cargBags spews out with cargBags_Gnomed enabled:

Quote:
[2009/08/24 07:43:21-1-x1]: cargBags-1.3\plugins\space.lua:82: bad argument #1 to 'pairs' (table expected, got nil)
cargBags-1.3\plugins\space.lua:82: in function `?'
cargBags-1.3\core.lua:197: in function `SpawnPlugin'
cargBags_Gnomed-r15\layout.lua:467: in function `style'
cargBags-1.3\core.lua:236: in function `Spawn'
cargBags_Gnomed-r15\layout.lua:690: in main chunk

---
Phatrik is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-23-2009, 09:40 PM  
Resurrwreckage
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I got this while working with the bank

Date: 2009-08-23 21:38:04
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\cargBags\core\events.lua line 31:
attempt to call global 'timeBag' (a nil value)
Debug:
(tail call): ?
[C]: timeBag()
cargBags\core\events.lua:31: ?()
cargBags\core\core.lua:407: UpdateBags()
cargBags\handler.lua:36:
cargBags\handler.lua:36
AddOns:
Swatter, v5.6.4399 (KangaII)
NPCScan, v3.2.0.5
acbAuras, v09.08.13
acbCastBar, v09.08.13
acbMirror, v09.08.13
acbSwing, v09.05.17
Ammomatique, v1.7
AtlasLoot, vv5.07.05
AtlasLootFu, vv5.07.05
AucAdvanced, v5.6.4399 (KangaII)
AucDb, v5.1.DEV.3583
AucFilterBasic, v5.6.4399 (KangaII)
AucFilterOutlier, v5.6.4399.2531
AucMatchUndercut, v5.6.4399.2531
AucScanData, v5.6.4399 (KangaII)
AucStatClassic, v5.6.4399 (KangaII)
AucStatHistogram, v5.6.4399 (KangaII)
AucStatiLevel, v5.6.4399 (KangaII)
AucStatPurchased, v5.6.4399 (KangaII)
AucStatSales, v5.6.4399.2842
AucStatSimple, v5.6.4399 (KangaII)
AucStatStdDev, v5.6.4399 (KangaII)
AucStatWOWEcon, v5.6.4399.2530
AucUtilAHWindowControl, v5.6.4399.3311
AucUtilAppraiser, v5.6.4399.2530
AucUtilAskPrice, v5.6.4399.3175
AucUtilAutoMagic, v5.6.4399.3142
AucUtilCompactUI, v5.6.4399.2530
AucUtilEasyBuyout, v5.6.4399.3583
AucUtilItemSuggest, v5.6.4399.3108
AucUtilPriceLevel, v5.6.4399.2545
AucUtilScanButton, v5.6.4399.2530
AucUtilScanFinish, v5.6.4399.2530
AucUtilScanProgress, v5.6.4399.2530
AucUtilSearchUI, v5.6.4399.3655
AucUtilSimpleAuction, v5.6.4399.0
AucUtilVendMarkup, v5.6.4399.2530
AzCastBar, v09.08.13
Babylonian, v5.1.DEV.130
BagnonForever, v1.1.2
BagnonTooltips, v
Bartender4, v4.4.0
BeanCounter, v5.6.4399 (KangaII)
cargBags, v1.3
cargBagsNivaya, v
Chatter, v1.0
Configator, v5.1.DEV.130
CowTip, v
DBMCore, v
DebugLib, v5.1.DEV.130
ElkBuffBars, v2.2.5-150
epgp, v5.5.4
epgploot2, v2.0.11
Examiner, v09.08.13
FaceShooter, v0.7.11b
FuBar, v
FuBarDurabilityFu, v2.11
FuBarItemRackFu, v1.4.14
FuBarMoneyFu, vv1.2.2
FuBarNameToggleFu, vv1.3.3
FuBarTopScoreFu, vv1.0.5
Gatherer, v3.1.14
GathererHUD, v3.1.14
GathererDBWowhead, v1.0.2009-02-18
GFWLevelator, v3.1
ImprovedMerchant, v3.6x5
Informant, v5.6.4399 (KangaII)
InspectEquip, v1.5.0
ItemRack, v
LightHeaded, v296
MailGet, v
MikScrollingBattleText, v5.4.64
Omen, v3.0.8
Pawn, v1.2.3
QuestHelper, v1.1.12
RatingBuster, v
Recount, v
RuneWatch, vv1.2.10 Build 5243aea
SellOMatic, vv1.1.15
SexyMap, v
SlideBar, v5.6.4399 (KangaII)
Stubby, v5.6.4399 (KangaII)
Talented, vv2.4.2c-release
TalentedSpecTabs, v1.0
TomTom, v222
TotemManager, v4.13.2
XLoot, v0.9
XLootGroup, v0.5
XLootMonitor, v0.7
XPerl, v3.0.5f
XPerlArcaneBar, v
XPerlParty, v
XPerlPartyPet, v
XPerlPlayer, v
XPerlPlayerBuffs, v
XPerlPlayerPet, v
XPerlRaidAdmin, v
XPerlRaidFrames, v
XPerlRaidHelper, v
XPerlRaidMonitor, v
XPerlRaidPets, v
XPerlTarget, v
XPerlTargetTarget, v
BlizRuntimeLib_enUS v3.2.0.30200 <us>
(ck=a7e)
Resurrwreckage is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-23-2009, 09:47 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Mhh, seems like Blizz only shows the new errors frame when "Blizzard_DebugTools" is loaded ...
I've already tested it with _Gnomed and reported the debugstack in its comments section. Take your time for the heroic daily
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-23-2009, 09:01 AM  
Phatrik
A Kobold Labourer
 
Phatrik's Avatar

Forum posts: 0
File comments: 50
Uploads: 1
Of course I have 3.2, but I have yet to see a debugstack of any kind.

EDIT: Uh, scratch that. Found why I havn't seen any. It's good to be reminded about the slash-command for 'o****' which I've completely forgot. Posting debugstack soonish ... bloody heroic daily ...

Last edited by Phatrik : 08-23-2009 at 09:04 AM.
Phatrik is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-23-2009, 07:07 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
I think it's a problem of _Gnomed, because all other layouts work flawlessly. I'm going to post the problem for ya on its comments section.

By the way, do you have 3.2? Because Blizz included a nicer error frame with stack tracing (like BugSack) which makes it a lot easier to find the problem for me.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-23-2009, 02:33 AM  
Phatrik
A Kobold Labourer
 
Phatrik's Avatar

Forum posts: 0
File comments: 50
Uploads: 1
Re: Having some problems

With the latest version:

Phatrik is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-23-2009, 02:13 AM  
animalmom
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Having some problems

Hi, I had this addon prior to 3.2 and it worked great (really nice addon)

Since 3.2 it has not worked.

Idumped my old copy, downloaded the new version and d/l the 3.2 Gnomed.

On boot up I checked cargbags and gnomed

However - nothing. Still have the default bag setup

is there a slash command I need to turn on cargags?

I have tried to find a faq or somethign so excuse this noob question
animalmom is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-11-2009, 05:16 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 165
Uploads: 0
It didn't fix the soulstone issue, but don't worry about it. The only issue now is that the bank bags doesn't display properly (using the beta from git), screen here:

http://img3.yfrog.com/img3/61/sfdsfdsf.jpg
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-11-2009, 10:24 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
My fault, noticed that I forgot to include a complete sub-directory on the page

Should work now.

@HS: I got the stucking, too, but it seems to re-adjust itself after max. 15 seconds. In general OmniCC includes an OnUpdate-script for the timer and these only work as long as the bag is visible. I'm sorry of constantly referring to OmniCC and not to cargBags, but the only thing cargBags does with button-cooldowns is setting it via "CooldownFrame_SetTimer(button.Cooldown, item.cdStart, item.cdFinish, item.cdEnable)" - and this data gets updated at the right time. If the beta version doesn't fix it (which would be a wonder), I can't do anything more for you regarding this issue
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-11-2009, 05:36 AM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 165
Uploads: 0
Quote:
Originally posted by Cargor

By the way, I've made some changes to cargBags in the last beta version concerning the event-handling (including cooldowns). I still think, your cooldown-problem is not caused by cargBags, but you could try it with the new beta version and see if it maybe resolves your issue. Click on the button "Download" on this site to download it .
Yeah, this cooldown issue is puzzling, though it's not a major issue i'm concerned with. I also noticed that the HS cooldown sometimes get stuck, so it shows 5 mins when it's really 1 min and a few secs left for example. I'll try the latest beta to see if something's changed.


Edit: Getting lots of errors with the beta version of cargbags, here's 3 of the 10 i get on login:




[2009/08/11 11:43:33-3083-x1]: cargBags-1.3\plugins\money.lua:31: attempt to index global 'cargBags' (a nil value)

---


[2009/08/11 11:43:33-3083-x1]: cargBags-1.3\plugins\purchase.lua:48: attempt to index global 'cargBags' (a nil value)

---

[2009/08/11 11:43:33-3083-x1]: cargBags_Pernobilis-1.1\layout.lua:300: attempt to index global 'cargBags' (a nil value)

---

Last edited by Skylinee : 08-11-2009 at 05:45 AM.
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-10-2009, 02:43 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Complete 'out of the box'-support is a problem at the moment, because Money Trail would need to provide an API for me to get into it and let it hook cargBags' money displays. So, it's more an issue of MoneyTrail.

Second problem is that it depends on the layout how many money frames there are actually - so, maybe Pernobilis uses two (1x money for bank and 1x for bags), but another author chooses (for whatever reason) no standard Blizz-money display or a lot more of them. And in it's lightweight sense, cargBags won't track how many money-frames actually exist).

There is however a thing that _you_ can do. As you noticed, Money Trail tried to get cargBags-support working, but only for an older version of cargBags_Pernobilis. Open MoneyTrail.lua and scroll down to line 200, there you can see two (deprecated) lines for cargBags, change their names into:
"cBags_MainMoney" and "cBags_BankMoney" and it should work.

---
By the way, I've made some changes to cargBags in the last beta version concerning the event-handling (including cooldowns). I still think, your cooldown-problem is not caused by cargBags, but you could try it with the new beta version and see if it maybe resolves your issue. Click on the button "Download" on this site to download it .
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-10-2009, 12:49 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 165
Uploads: 0
Can you add support for http://www.wowace.com/addons/money-trail/?

It has cargBags in its optdeps, so it should support it.

Last edited by Skylinee : 08-10-2009 at 12:55 PM.
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-03-2009, 09:07 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
I just noticed that Blizz fixed their linux-opengl-bug on the 3.2 PTRs, so hopefully I can login there with a premade warlock and test it.

EDIT: Tested it with only cargBags, _Pernobilis and OmniCC activated on the PTR - the OmniCC settings are the same as yours. I've created a soulstone, then right-clicked it, closed bag while casting and then re-opened, but there was no cooldown shown on the empty button.

Sorry, I'm running out of ideas ... I've checked all the cooldown-related data and it is transmitted to the item on every bag-update, regardless if the bag is shown or not ... I can only repeat that I think of it being more a OmniCC-problem.
Especially since moving items into the slot causes complete updating of the cooldown data, so this should fix it if the bug was caused by cargBags - like my previously mentioned HS-bug which I need to figure out in the next days
__________________
« Homepage | Git »

My blog is finally getting english!

Last edited by Cargor : 08-03-2009 at 09:57 PM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.