Download
(46Kb)
Download
Updated: 09-07-10 10:44 AM
Pictures
File Info
Updated:09-07-10 10:44 AM
Created:unknown
Downloads:70,744
Favorites:320
MD5:

cargBags  Popular! (More than 5000 hits)

Version: 2.1.2
by: Cargor [More]

Problems? Visit the Wiki or Help & Discussion Thread!

cargBags is a modular inventory framework. It was created with one simple thing in mind: Taking the boring work away for you, so that you can start right-away with the important things: Layout and categories! You don't have to care anymore about fetching item-data, updating at the right time or creating a sophisticated filtering system - cargBags does this all for you!

From a simple all-in-one inventory over multiple category-based bags to your own needs:

Just start with the user-friendly and commented example cargBags_Simplicity, build upon it and implement your own features. Create and release your own individual bag addon by embedding cargBags!

Default Features

  • modular: remove features you don't need or add new ones
  • simple, fully extensible filtering-system (optional)
  • object-oriented approach
  • embed cargBags and make your own bag addon!
  • extensive API: Hook into every part of cargBags
  • optimized: recycling of buttons, caching of item data and more
  • plugin-system for often-used snippets like a space- or money-display (optional)

Additional resources and help
FAQ

My cargBags doesn't show anything!
Do you have a layout? This is a framework and does nothing by itself!

Will you provide support for alt bags / bank?
No, because it would be too hackish and cause problems. You can use external addons like BagSync. But if you are a layout author, nothing stops you from providing support yourself.

What about auto-stacking / -sorting?
In my opinion, this does not need to be in a bag addon, because there are lots of external addons for this, like Genie or kRestack.

Guildbank? Stack compression?
I'm trying, but don't expect anything soon.

Do you support LibDataBroker?
You can use LibCargoShip for this.

cargBags is licensed under the GPL 2. Go ahead and fork it!

Changes to the core prior to version 1.2 are located in the changelog.txt.
Releases are normally not backwards-compatible, although changes are kept to a minimum!
In most cases the version tagging follows the scheme Rewrite.Feature.Bugfix.

2.1.2
* bank now updates correctly again (sorry for that!)
* mostly bagBar changes and equipSets bugfixes

- .HighlightFunction changed to .highlightFunction (small 'H', consistency FTW)
- bagBar now supports highlightFunctions
- bagBar can be global for all containers (.isGlobal = true)
- new function: Implementation:GetBagButton()
- fixed bagButton onClick not toggling its bag
- fixed typo in equipSets-itemkey
- equipSets now update all open bags when changed
- introducing cargBags:FireEvent(force, event, ...)

2.1.1
* bugfix update, you need this if you have 2.1!
* fixed searchbar, extended filters and bags-sieve

- item.bindOn now supports soulbound items ("soul")
- new itemKey: item.bagType
- removed item.clink
- .toc bumped to Cataclysm

2.1
* The wiki was updated!
* Improved embedding support
* Sieves! Replace the filters with another system
* Scaffolds! Provide your own templates for item buttons
* Extended filters: pass arguments to them!
* Localization tables for auction house item classes

- File structure overhaul
- new Sieve: by bagID - lightweight enthusiasts, get rid of this filter
clutter :P
- Moved the ItemButton-UpdateX functions to their own scaffold, "Default"
- Callbacks are now correctly named events (RegisterCallback -> RegisterEvent,
HasCallback -> IsEventRegistered)
- the SearchBar now needs a .HighlightFunction to work

2.0-beta
* COMPLETE REWRITE
* Don't ever think about fixing your old layout, build a new one =)
* Beta-version, please note the "Planned features"- / ToDo-List
* and please write a comment for bug-reports, feedback, thank-you's and flaming

- object-oriented approach
- bags initialize on first open instead of in loading screen
- new plugin: TagDisplay
- a lot more modular than before!

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
Optional Files (1)
File Name
Version
Size
Author
Date
Type
9.0 r93
104kB
01-28-21 04:12 AM
Addon


Post A Reply Comment Options
Unread 09-29-09, 03:50 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Money Trail should do that for you.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 09-27-09, 07:03 AM  
CGamer
A Defias Bandit

Forum posts: 2
File comments: 3
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.
Report comment to moderator  
Reply With Quote
Unread 08-24-09, 07:03 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
@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.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 08-23-09, 11:44 PM  
Phatrik
A Murloc Raider
 
Phatrik's Avatar
AddOn Compiler - Click to view compilations

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

[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

---
Report comment to moderator  
Reply With Quote
Unread 08-23-09, 07: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)
Report comment to moderator  
Reply With Quote
Unread 08-23-09, 07:47 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
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
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 08-23-09, 07:01 AM  
Phatrik
A Murloc Raider
 
Phatrik's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 4
File comments: 33
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 'oShit' which I've completely forgot. Posting debugstack soonish ... bloody heroic daily ...
Last edited by Phatrik : 08-23-09 at 07:04 AM.
Report comment to moderator  
Reply With Quote
Unread 08-23-09, 05:07 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
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.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 08-23-09, 12:33 AM  
Phatrik
A Murloc Raider
 
Phatrik's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 4
File comments: 33
Uploads: 1
Re: Having some problems

With the latest version:

Report comment to moderator  
Reply With Quote
Unread 08-23-09, 12:13 AM  
animalmom
A Kobold Labourer

Forum posts: 1
File comments: 6
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
Report comment to moderator  
Reply With Quote
Unread 08-11-09, 03:16 PM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
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
Report comment to moderator  
Reply With Quote
Unread 08-11-09, 08:24 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
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
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 08-11-09, 03:36 AM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
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-09 at 03:45 AM.
Report comment to moderator  
Reply With Quote
Unread 08-10-09, 12:43 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
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 .
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 08-10-09, 10:49 AM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
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-09 at 10:55 AM.
Report comment to moderator  
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.