Download
(46Kb)
Download
Updated: 09-07-10 10:44 AM
Pictures
File Info
Updated:09-07-10 10:44 AM
Created:unknown
Downloads:70,780
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 05-24-09, 11:52 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Whew, have to test (and fix) that

- I don't like taint issues :/
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-24-09, 10:18 AM  
Great White Cow
A Kobold Labourer
 
Great White Cow's Avatar

Forum posts: 0
File comments: 41
Uploads: 0
open/close doesn't work in combat anymore...

cargBags blocked from using cb_main:Show()
Count: 1

Call Stack:
[C]: in function `Show'
Interface\AddOns\cargBags_Pernobilis\layout.lua:250: in function `OpenCargBags'
Interface\AddOns\cargBags_Pernobilis\layout.lua:261: in function `ToggleBackpack'
[string "TOGGLEBACKPACK"]:1: in function <[string "TOGGLEBACKPACK"]:1>
Report comment to moderator  
Reply With Quote
Unread 05-24-09, 09:34 AM  
Jarenthal
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by recluse
Is it possible to have them collapse/expand properly, though? I would assume doing this would only allow one filtered bag per row without risking the overflow to really be placed strangely.

I'm poking around with making a layout atm.
From your description of what you're trying to do, I may want your layout (or a modification thereof). I had an abortive attempt a while ago to modify cargBags-Gnomed to look like TBag-Shefki.
Report comment to moderator  
Reply With Quote
Unread 05-22-09, 12:25 PM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally posted by Cargor
Since 0.4.X, cargBags-layouts don't use oGlow for the button-glow. It is created by the layout itself (mostly at the top).

Give me some time (a few days) and I could probably come up with a code part you can insert in your layout.

And: this belongs to the help thread :/
My bad Cargor .. slap me hehe

Thanks mate .. i am gonna wait till than

Happy Weekend dude
Report comment to moderator  
Reply With Quote
Unread 05-22-09, 11:01 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Since 0.4.X, cargBags-layouts don't use oGlow for the button-glow. It is created by the layout itself (mostly at the top).

Give me some time (a few days) and I could probably come up with a code part you can insert in your layout.

And: this belongs to the help thread :/
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-21-09, 02:50 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Cargor my man u did it



One more thing can u also glow it? i am using next to ur addons oGlow .. i have asked haste about this but he said i should talk to u

if u could give me some script or where i should look than i am gonna puzzle it out

thank you very very much
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 04:52 PM  
MadCow
A Chromatic Dragonspawn
 
MadCow's Avatar

Forum posts: 150
File comments: 95
Uploads: 0
Originally posted by Cargor
Okay, it seems that there are some problems with the new version. I would suggest switching back to 1.0.4 until I've fixed the bugs

EDIT: Here's a hopefully fixed, but totally untested version. Replace the original file with this core.lua in your cargBags-directory.
I can not log into WoW at the moment, because it seems the loginservers are down, but I'd like to get informed whether it works or not
That appears to have fixed it. Thanks
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 03:02 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Okay, it seems that there are some problems with the new version. I would suggest switching back to 1.0.4 until I've fixed the bugs

EDIT: Here's a hopefully fixed, but totally untested version. Replace the original file with this core.lua in your cargBags-directory.
I can not log into WoW at the moment, because it seems the loginservers are down, but I'd like to get informed whether it works or not
__________________
« Website | GitHub »

Oh hai!
Last edited by xConStruct : 05-20-09 at 03:23 PM.
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 12:39 PM  
MadCow
A Chromatic Dragonspawn
 
MadCow's Avatar

Forum posts: 150
File comments: 95
Uploads: 0
Code:
[2009/05/20 14:37:32-577-x2]: cargBags-1.0.5\core.lua:275: bad argument #2 to 'min' (number expected, got nil)
cargBags-1.0.5\core.lua:275: in function <Interface\AddOns\cargBags\core.lua:271>
cargBags-1.0.5\core.lua:301: in function <Interface\AddOns\cargBags\core.lua:284>
(tail call): ?:
cargBags-1.0.5\core.lua:365: in function <Interface\AddOns\cargBags\core.lua:349>
cargBags-1.0.5\core.lua:387: in function <Interface\AddOns\cargBags\core.lua:378>
cargBags-1.0.5\core.lua:467: in function `UpdateBags'
cargBags-1.0.5\core.lua:406: in function <Interface\AddOns\cargBags\core.lua:404>
i got this error when taking items from mail
Last edited by MadCow : 05-20-09 at 12:40 PM.
Report comment to moderator  
Reply With Quote
Unread 05-18-09, 09:10 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
I'll fix it in the next update.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-17-09, 07:26 PM  
kimboslice
A Defias Bandit

Forum posts: 3
File comments: 76
Uploads: 0
Using latest version of OpenAll and cargBags + Prenoilis layout.

When I open the mailbox, the money at the bottom of the bag layout doesn't spawn. Of course this is fixed when I /rl and do not open the mailbox, but open the bag first.
Report comment to moderator  
Reply With Quote
Unread 05-16-09, 07:20 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 only a minor thing, but requires some bigger changes. It would need to check which item you are hovering and if this was updated in the mean time.
I can't promise on including it, but I'll try to look into it if I have time. At the moment I'm very busy with other fixes
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-16-09, 04:33 AM  
zebez
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Tooltip weirdness

The tooltip won't update or show at all when you move stuff around the bags or equipping items. You have to move the mouse cursor off the item and on it again for it to show/update. Anyway I can fix it?
Report comment to moderator  
Reply With Quote
Unread 05-15-09, 06:03 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
There is no fixed code, as you have to adjust it to your own liking.
Seems like you need to get some experience with Lua and the layout-system of cargBags. I can't teach you the basics of coding, but there are lots of comments in the layouts which should give you a simple start.

Look into the layout you're using and how the sorting is achieved for the bags - and if you have code-regarding questions, you could ask them in the thread.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-14-09, 11:54 PM  
cosmicB
A Murloc Raider
 
cosmicB's Avatar

Forum posts: 6
File comments: 188
Uploads: 0
bank bags sorting

hi im not very familiar with lua and all that
i just like to know if there is a code i can do to make my bank look like the one in my bags all sorted coz i have a hard time looking for stuff when im on my bank.
im also using one of the plug in.
Thanks more power really love your work.
This is my only concern.
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.