Download
(46 Kb)
Download
Updated: 09-07-10 10:44 AM
Pictures
File Info
Updated:09-07-10 10:44 AM
Created:unknown
Downloads:67,410
Favorites:340
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 (2)
File Name
Version
Size
Author
Date
Type
1.6
71kB
09-11-13 04:06 AM
Addon
r41
46kB
11-05-10 01:44 PM
Addon


Archived Files (8)
File Name
Version
Size
Author
Date
2.1.1
46kB
Cargor
09-02-10 03:27 PM
2.1
46kB
Cargor
08-30-10 08:04 AM
2.0-beta
42kB
Cargor
06-08-10 01:53 PM
1.3
32kB
Cargor
07-18-09 07:54 PM
1.2
16kB
Cargor
07-02-09 09:31 AM
1.1
14kB
Cargor
06-25-09 11:27 AM
1.0.8
14kB
Cargor
06-01-09 05:28 AM
1.0.7
14kB
Cargor
06-01-09 05:06 AM


Post A Reply Comment Options
Old 06-29-11, 12:50 PM  
Saith90
A Kobold Labourer

Forum posts: 0
File comments: 21
Uploads: 0
LF new Version of gBags !
Saith90 is offline Report comment to moderator  
Reply With Quote
Old 03-17-11, 07:26 PM  
Zurechial
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Hi Cargor,
While working on a new CargBags layout I noticed that the cargBags:GetLocalizedTypes() function is broken as of 4.0.6 due to the removal of Projectiles and Quivers from the types returned by GetAuctionItemClasses() API function, and a couple of my filters that relied on it didn't work.

Changing line 44 of cargbags\mixins\locale.lua as follows fixes this:
Code:
L["Weapon"], L["Armor"], L["Container"], L["Consumable"], L["Glyph"], L["Trade Goods"], L["Projectile"], L["Quiver"], L["Recipe"], L["Gem"], L["Miscellaneous"], L["Quest"] = GetAuctionItemClasses()
to
Code:
L["Weapon"], L["Armor"], L["Container"], L["Consumable"], L["Glyph"], L["Trade Goods"], L["Projectile"], L["Gem"], L["Miscellaneous"], L["Quest"] = GetAuctionItemClasses()
I don't know enough about submitting patches to an addon to contribute the fix that way, but hopefully this helps anyone who uses this function and is having trouble since 4.0.6.
Zurechial is offline Report comment to moderator  
Reply With Quote
Old 03-03-11, 06:42 AM  
Goldpaw
A Cyclonian
 
Goldpaw's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 296
Uploads: 21
Re: gBags/cargBags hideEmpty filter

Originally posted by Turtledin
Hi guys,

I'm not sure if this question should go here or not since I'm using gBags, but it has cargBags embedded.

gBags is outdated. In fact, all addons I host on WoWInterface are outdated. I'll release gBags 2.0 soon, and it will have a feature like this one built in. I have no ETA.
Goldpaw is offline Report comment to moderator  
Reply With Quote
Old 03-02-11, 02:00 AM  
Turtledin
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
gBags/cargBags hideEmpty filter

Hi guys,

I'm not sure if this question should go here or not since I'm using gBags, but it has cargBags embedded.

I'd like to make my main bag frame show only one row of empty slots instead of like... 30. Here's the line for hiding empty slots:
Code:
local bagCol = 8;
local hideEmpty = function(item) return item.texture ~= nil end

...
...
...


local main = Container:New("Main", { Bags = "backpack+bags"; Name = L["Bags"]; Columns = bagCol; });
	main:SetFilter(onlyBags, true);
	main:SetFilter(hideEmpty, true);
The problem with hideEmpty is that it hides every empty slot and makes it impossible to do something like split stacks. So basically, I want to do something like this:
Code:
local showOnlyRow = function(item)
	if emptySlots > bagCol then
		return bagCol <--- number of columns in the bag... in other words, one row
	else
		return emptySlots <--- number of slots less than the columns in a row... if there are 6 empty slots, show only 6
	end
end
I'm not sure if that would be the right way to go about it. Any help would be appriciated!
Turtledin is offline Report comment to moderator  
Reply With Quote
Old 01-09-11, 10:28 AM  
Teek5449
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 21
Uploads: 2
I am looking for a way to filter BOE, unusable items, and soulbound items. Any ideas? I have tried searching without any luck but I could have missed it since there is no easy way to search specific addon comment threads.

Any help would be much appreciated.
Teek5449 is offline Report comment to moderator  
Reply With Quote
Old 12-28-10, 11:09 PM  
vivianalive
A Deviate Faerie Dragon
 
vivianalive's Avatar

Forum posts: 15
File comments: 36
Uploads: 2
Originally posted by Cargor
I don't have any idea :O
Hey, Cargor, I visited your site the other day, and favored it.
I'm pretty interested in the work you're heading to, especially the idea for wow inventory framework.
Anyway, WOW is a mere part of life, and I'm happy that you've found something you think more valuable. So, keep going.
Merry Christmas and Happy new year!~
-----A sincere user of CargBags.
__________________

CeeUI: a minimalistic all-class UI
vivianalive is offline Report comment to moderator  
Reply With Quote
Old 12-05-10, 03:33 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
I don't have any idea :O
__________________
Website | GitHub

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Old 12-05-10, 01:39 PM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 672
Uploads: 1
Originally posted by Cargor
I didn't really "play" WoW in the last two years - I was merely logging in for developing addons (okay, it was fun, although it's strange to pay a fee so I can code ). Now I'm going to university and my free time is very limited, and I want to spend my coding on other projects (in other languages).
And updating WoW addons which I don't use anymore became more 'work' than 'fun'.


Ah, so I misunderstood. You're not looking for a real All-In-One-addon, but for categorized "sub-bags" in one single window. Okay, then I'm afraid _Aurora is the thing which currently fits the best. The core has the possibility for this feature, but you have to write most of it in the layout.


Uh, I'm not sure. First of all, I'd need to re-activate my subscription to test it and then it is a lot of work, because this dynamic ArkInventory-style categorization is a lot more complicated than my current layouts. And it would force me into some kind of 'work relationship', because I guess I'd need to keep it up to date when it breaks / add missing features
Sorry, but with cargBags I didn't mean to write custom bag addons for people, but rather provide a basic framework so they can start on their own =/
I understand. If it isn't fun for you anymore, then it wouldn't be right to keep you doing it. I really like the concept put into these though. However, if I could code I would make my own off of this. Is there going to be someone in mind to pick up on this after Cataclsym, since you no longer can, and if so, do you think they'd b willing to add the Aurora theme to the latest build since it only works with the previous builds now?
Rammoth is offline Report comment to moderator  
Reply With Quote
Old 12-05-10, 08:57 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
Originally posted by Rammoth
Oh... why not update your subscription? Do you no longer wish to play WoW?
I didn't really "play" WoW in the last two years - I was merely logging in for developing addons (okay, it was fun, although it's strange to pay a fee so I can code ). Now I'm going to university and my free time is very limited, and I want to spend my coding on other projects (in other languages).
And updating WoW addons which I don't use anymore became more 'work' than 'fun'.

Originally posted by Rammoth
Category Sorting, you know how ArkInventory has the ability to put everything in order. It groups your armor/weapons into the same side, while everything else goes somewhere too. Everything has it's own location to be within the bag, so you don't have to scramble through the bag looking for tooltips to tell you what is what.
Ah, so I misunderstood. You're not looking for a real All-In-One-addon, but for categorized "sub-bags" in one single window. Okay, then I'm afraid _Aurora is the thing which currently fits the best. The core has the possibility for this feature, but you have to write most of it in the layout.

Originally posted by Rammoth
If I donate some money to you would you make it function with the type of sorting I'm asking about for any theme used as an optional feature to turn on or off? and also maybe have an option to hide/show the 4 bags on the side when needed, and not all the time like they're always showing?
Uh, I'm not sure. First of all, I'd need to re-activate my subscription to test it and then it is a lot of work, because this dynamic ArkInventory-style categorization is a lot more complicated than my current layouts. And it would force me into some kind of 'work relationship', because I guess I'd need to keep it up to date when it breaks / add missing features
Sorry, but with cargBags I didn't mean to write custom bag addons for people, but rather provide a basic framework so they can start on their own =/
__________________
Website | GitHub

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Old 12-05-10, 07:12 AM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 672
Uploads: 1
Originally posted by Cargor
My subscription has already ended and I think I read somewhere that the cata beta ended too (?), so I can't login anymore. I still have the update lying around here on GitHub, but I'm afraid to release it, because it may have major bugs I didn't see

What exactly do you mean with Category Sorting? You can write your own custom functions to sort the slots - just provide your own sort-function for self:SortButtons() in Container:OnContentsChanged(). cargBags_Nivaya has its own exhaustive sort-func.
Oh... why not update your subscription? Do you no longer wish to play WoW?

Category Sorting, you know how ArkInventory has the ability to put everything in order. It groups your armor/weapons into the same side, while everything else goes somewhere too. Everything has it's own location to be within the bag, so you don't have to scramble through the bag looking for tooltips to tell you what is what.

As for providing my own... I can't understand code for the life of me. I have a bad learning disability. I tried learning code once, and I flipped out of frustration and my emotions changed and I scared everybody around me, and I didn't even remember what I did, but they told me. So chances are, I am not able to learn it, I dunno.

Does cargBags_Nivaya have the All In One style that Simplicity does? If not then I dunno if I wanna use it. I like the all in one style, but with sorting available.

If I donate some money to you would you make it function with the type of sorting I'm asking about for any theme used as an optional feature to turn on or off? and also maybe have an option to hide/show the 4 bags on the side when needed, and not all the time like they're always showing?

This is the best "looking" bag addon I've ever found yet, and I wanna keep using it. If I could code, I would make an optional file, but I just can't...
Rammoth is offline Report comment to moderator  
Reply With Quote
Old 11-25-10, 01:07 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
My subscription has already ended and I think I read somewhere that the cata beta ended too (?), so I can't login anymore. I still have the update lying around here on GitHub, but I'm afraid to release it, because it may have major bugs I didn't see

What exactly do you mean with Category Sorting? You can write your own custom functions to sort the slots - just provide your own sort-function for self:SortButtons() in Container:OnContentsChanged(). cargBags_Nivaya has its own exhaustive sort-func.
__________________
Website | GitHub

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Old 11-25-10, 04:05 AM  
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 672
Uploads: 1
Originally posted by Cargor
I spontaneously canceled my WoW subscription (as I do from time to time) and I don't know if I ever come back. That depends mostly on my free time and mood for addon development (both are very low at the moment).
This means that I won't update my addons anymore - except for maybe bug fixes. I'll probably be still around for answering comments and providing help.

All of my addons are available open source and I'd be glad if someone wants to contribute to them - best via submitting patches/pull requests to the GitHub repo. if you want to take over one of my addons, please drop a PM. In general, you can re-release them (or parts), but I'd like to get credit.

What this means for cargBags:
I try to complete the next major version (2.2) this weekend featuring better update handling, forced embedding, data sources.
The API changes are pretty big internally, sorry for that - but I guess it's the last time this is happening (?).
Darn... sorry to hear that. But since you're gonna roll out 1 more update for it, any chance you could fit in Category Sorting? If it's already there, then I guess I missed it and don't know how to enable it or use it.
Rammoth is offline Report comment to moderator  
Reply With Quote
Old 11-04-10, 03:43 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
I spontaneously canceled my WoW subscription (as I do from time to time) and I don't know if I ever come back. That depends mostly on my free time and mood for addon development (both are very low at the moment).
This means that I won't update my addons anymore - except for maybe bug fixes. I'll probably be still around for answering comments and providing help.

All of my addons are available open source and I'd be glad if someone wants to contribute to them - best via submitting patches/pull requests to the GitHub repo. if you want to take over one of my addons, please drop a PM. In general, you can re-release them (or parts), but I'd like to get credit.

What this means for cargBags:
I try to complete the next major version (2.2) this weekend featuring better update handling, forced embedding, data sources.
The API changes are pretty big internally, sorry for that - but I guess it's the last time this is happening (?).
__________________
Website | GitHub

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Old 11-03-10, 12:54 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
Error message?
__________________
Website | GitHub

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Old 11-02-10, 01:14 PM  
omek
A Murloc Raider

Forum posts: 4
File comments: 15
Uploads: 0
Getting an error when I open bags, running the simple skin.
omek is offline 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.