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,027
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 11-13-2009, 03:09 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 13
File comments: 21
Uploads: 0
Quote:
Originally posted by Cargor
I've written something up for you, but I didn't test it ingame (since I don't use _Nivaya) - http://pastey.net/128357-k1g6:128356-cmde

The part you need to insert is colored green and is in lines 289 - 310. You can see some comments to change the settings. In contrast to my first answer, I put both parts in the UpdateButton-function, this makes it more structurized to find it again if needed
YEEEEESS... thank you Cargor, that was spot-on
__________________
King for a Day, Fool for a Lifetime
cag_dk is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-12-2009, 08:58 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
I've written something up for you, but I didn't test it ingame (since I don't use _Nivaya) - http://pastey.net/128357-k1g6:128356-cmde

The part you need to insert is colored green and is in lines 289 - 310. You can see some comments to change the settings. In contrast to my first answer, I put both parts in the UpdateButton-function, this makes it more structurized to find it again if needed
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-12-2009, 03:04 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 13
File comments: 21
Uploads: 0
Quote:
Originally posted by Cargor
-- If you are already a bit into Lua scripting:
Basically you have to create the fontstring for the text in your layout's :PostCreateButton-callback and then update this text in the :UpdateButton-callback with the value of item.minLevel.
Can't figure out where to change this..
my lua scripting is unfortunately too low as I can't find 'PostCreate..' nor 'Update..' in any form that looks right to me
__________________
King for a Day, Fool for a Lifetime
cag_dk is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-10-2009, 12:31 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Hi,

das kommt ganz auf dein Layout an, was du benutzt. Meine Layouts (_Aurora und _Pernobilis) kann man verschieben, wenn man die Alt-Taste gedrückt hält und den Hintergrund mit der Maus zieht.
__________________
« Homepage | Git »

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

Forum posts: 0
File comments: 11
Uploads: 0
locked

Hallo,

ich nutze dein taschenaddon wirklich gerne, nur sind bei mir meine taschen festgesetzt, jeweils links und rechts mittig, meine lua kenntnisse sind scheinbar zu rudimentär um in der lua datei die option zum entsperren zu finden, kannst du mir dabei helfen, möchte sie frei beweglich haben, sofern möglich.

danke

Apollinaire
Apollinaire is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-06-2009, 08:01 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 13
File comments: 21
Uploads: 0
Quote:
Originally posted by Cargor
It is up to RequiredLevelIcon to implement this feature and I can't do anything on my side for that.
ofcause not

Quote:
Originally posted by Cargor
However, you can "replicate" the addon with cargBags' own internal API and write it as part of your layout. It's not too difficult to do and I could provide you the code for that one if you name the layout (_Nivaya, _Aurora or else) you are currently using.
Cool, please enlighten me... using _Nivaya

Quote:
Originally posted by Cargor
-- If you are already a bit into Lua scripting:
Basically you have to create the fontstring for the text in your layout's :PostCreateButton-callback and then update this text in the :UpdateButton-callback with the value of item.minLevel.
very little, but willing to try

Quote:
Originally posted by Cargor
-- For the users who can't await version 2.0, a small status update.
can't wait
__________________
King for a Day, Fool for a Lifetime

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

Forum posts: 127
File comments: 242
Uploads: 17
It is up to RequiredLevelIcon to implement this feature and I can't do anything on my side for that.

However, you can "replicate" the addon with cargBags' own internal API and write it as part of your layout. It's not too difficult to do and I could provide you the code for that one if you name the layout (_Nivaya, _Aurora or else) you are currently using.

-- If you are already a bit into Lua scripting:
Basically you have to create the fontstring for the text in your layout's :PostCreateButton-callback and then update this text in the :UpdateButton-callback with the value of item.minLevel.

-- For the users who can't await version 2.0, a small status update.
__________________
« Homepage | Git »

My blog is finally getting english!

Last edited by Cargor : 11-04-2009 at 07:06 AM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-04-2009, 03:59 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 13
File comments: 21
Uploads: 0
overlay

any chance that cargBags can function with http://www.wowinterface.com/download...Icon.html#info so that it will show req lvl on items in bank and inventory as it does in vault.

I know RequiredLevelIcon works as intended 'cos the numbers are there when I disable cargBags
__________________
King for a Day, Fool for a Lifetime
cag_dk is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-30-2009, 01:38 AM  
Slaxi81
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
Simple and useful, thank you for this!
Slaxi81 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-13-2009, 11:01 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
I'm going to look into it.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-11-2009, 10:38 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 13
File comments: 21
Uploads: 0
numbers on bags (free/total slots)

I've tried Arkinventory but it's too complicated for my liking, so I'd ask if you could add the feature that AI has...

on the bags AI displays free/total number of slots, this is very useful when you see that you have like 10 free slots but nowhere does it state that these are only in you ie. LW-bag and you just need to loot a weapon.

This can be very frustrating some times.

TIA

/Cag
__________________
King for a Day, Fool for a Lifetime
cag_dk is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-09-2009, 01:13 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Ha, I knew this question would come some time
Well, but I don't really know what to answer ...

cargBags is all about extensibilty via plugins (designed from the beginning on), with oUF in mind, so from this view point on it doesn't make sense to release another version which is incompatible to the larger one and lacks a lot of features.

Releasing a different version would basically mean that I need to maintain another addon I'm never going to use. I could maybe write one stable version up and then you can use it with no support from me. But it wouldn't benefit from new ideas on optimization of its "larger brother" nor would I update it if it is broken, because it costs me a lot of time despite only having a small userbase.

If you said that it uses too much CPU time for you, I could understand you - but "radical memory minimalism" doesn't make any sense. I try to keep memory usage down to a minimum and while having all these custom filters and options, cargBags is still around the same memory usage as BaudBag for example (and I try to keep it under 100kb without any extra features). But these 30 kb it was before ... it costs a lot of work and just gives you a prettier number in your mem-addon and decreases loading time by maybe about 0,05 seconds ...

Sorry for this wall of text and maybe being a bit rude
I see where you come from and I once belonged to this "extreme minimalist" scene, but my view point has changed a bit since then.
If I get some time and feel like it, I maybe write something up for ya - without additional "longterm support".
__________________
« Homepage | Git »

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

Forum posts: 0
File comments: 25
Uploads: 0
carg can you do a version of cargbags that is like it was back a few months ago? 15kb and as simple as possible with 0 options? please?
Moonwalker is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-06-2009, 08:14 AM  
CGamer
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Thanks Moneytral works great, now I just need to figure out how to add more filters.
CGamer is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-29-2009, 05:50 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Money Trail should do that for you.
__________________
« Homepage | Git »

My blog is finally getting english!
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.