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,013
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 08-03-2009, 04:50 AM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 165
Uploads: 0
Yeah, i'm using 2.5.5 aswell. I also have it set to show both minutes and seconds (mm:ss format). I'm gonna try with only Omnicc and Cargbags now, to see if it still happens.


Edit: Ok, this still happens with only Omnicc, Cargbags and pernobilis. Also, HSing seems to work fine, so i guess the only way to reproduce this is to use something with a casttime which disappears from your bags after casting it. So potions aren't really viable to reproduce this. These are my Omnicc settings: http://img11.yfrog.com/img11/1306/setswj.jpg

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

Forum posts: 127
File comments: 242
Uploads: 17
Mhhh, that's strange ...

I've tried it first with _Aurora and after your comment with _Pernobilis, but I still can't reproduce it. The tests I did were:

- Single potion clicked and closed directly after it: Before closing I didn't see any cooldown popping up and afterwards still nothing
- Stacked potion clicked and closed: Normal cooldown is running on it like it's expected
- Stacked potion clicked and then closed while the cooldown is finishing: after opening again the cooldown has disappeared, because it's finished
- HS clicked, while casting closed - after port, I opened backpack and this time completely no cooldown was shown, moving it in the bagpack brought back the 30 min left.

Which OmniCC-version are you using? I'm using 2.5.5
Did you try testing with only cargBags and OmniCC running?

------
At the moment, I'm tending to say it is a OmniCC-problem ... because moving an item into the slot updates the complete slot, including cooldown data - OmniCC should get the new data and therefore remove the cooldown.

Whew, I don't have any idea what could cause this :/
(and my potions are running out :P )
__________________
« Homepage | Git »

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

Forum posts: 0
File comments: 165
Uploads: 0
Quote:
Originally posted by Cargor
Ah thanks, that makes it a lot easier to find the problem!

EDIT: HS'ing seems to work without problems, I'll try to see what happens if its cooldown is finished.
EDIT 2: Arr, HS-cooldown seems to work flawlessly - Now I'm trying potions (wish I had a warlock :/ )
EDIT 3: Runic Healing Potion negative ...

Does the problem persist after you've moved an item into the same slot? Or just moving an item in the same real bag? - this should cause a complete update, including cooldown data.

I don't really know where the problem lies ... the cooldown-data after updating is correct and cargBags reflects these updates - I try to find out how other bag addons handle cooldowns and maybe find differences.
Yes, moving any item into the empty slot with a CD displayed doesn't make it reset or go away. I'm not sure why you can't reproduce it though, did you try with pernobilis? And did you make sure you closed your bag after casting HS?

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

Forum posts: 127
File comments: 242
Uploads: 17
Ah thanks, that makes it a lot easier to find the problem!

EDIT: HS'ing seems to work without problems, I'll try to see what happens if its cooldown is finished.
EDIT 2: Arr, HS-cooldown seems to work flawlessly - Now I'm trying potions (wish I had a warlock :/ )
EDIT 3: Runic Healing Potion negative ...

Does the problem persist after you've moved an item into the same slot? Or just moving an item in the same real bag? - this should cause a complete update, including cooldown data.

I don't really know where the problem lies ... the cooldown-data after updating is correct and cargBags reflects these updates - I try to find out how other bag addons handle cooldowns and maybe find differences.
__________________
« Homepage | Git »

My blog is finally getting english!

Last edited by Cargor : 08-02-2009 at 10:33 AM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-01-2009, 04:31 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 165
Uploads: 0
This only seems to happen when you rightclick your soulstone to cast it, then close the bag. When you open it again, there's a timer being displayed in that slot. This behavious doesn't seem to happen if you have bags open while you finish the cast.

Edit: I think Hearthstone has the same behaviour too, try closing your bags after rightclicking it, then open your bag again after HS'ing.

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

Forum posts: 127
File comments: 242
Uploads: 17
Thanks for the report, I'll check it
__________________
« Homepage | Git »

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

Forum posts: 0
File comments: 165
Uploads: 0
I noticed that after using a soulshard from my inventory, the cooldown is still displayed in the slot the soulshard previously were in.


http://i28.tinypic.com/soxw5d.jpg


Using OmniCC for the cooldown count if it's to any help.
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-19-2009, 11:45 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
The new version should fix this issue.

@Skylinee: Replaced the texture with a completely dark one, but reduced the alpha to make it transparent. You can however change the last value (0.8) of background:SetBackdropColor() down in line 290 to 1 if you like.
__________________
« Homepage | Git »

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

Forum posts: 0
File comments: 165
Uploads: 0
Quote:
Originally posted by Cargor
You're using Pernobilis, right? There seems to be a small line of code which is broken in the layout with the new version.

I plan on bringing an update to this fix today, together with some small code cleanups and Anywhere support.
I'm getting the same error, using Pernobilis. Looking forward to the update (Please provide a completely dark background texture aswell if you can)

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

Forum posts: 127
File comments: 242
Uploads: 17
You're using Pernobilis, right? There seems to be a small line of code which is broken in the layout with the new version.

I plan on bringing an update to this fix today, together with some small code cleanups and Anywhere support.
__________________
« Homepage | Git »

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

Forum posts: 10
File comments: 37
Uploads: 0
Received the following error after updating to the latest release.

Error: bad argument #1 to 'pairs' (table expected, got nil)
AddOn: cargBags
File: space.lua
Line: 82
Count: 1
Reolin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2009, 08:50 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
That depends on your layout. Please ask this question in the comments-section of the layout you're using (Aurora, Nivaya, etc).
__________________
« Homepage | Git »

My blog is finally getting english!

Last edited by Cargor : 07-16-2009 at 08:50 AM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2009, 07:33 AM  
Espo
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 1
Hello,

Its a really nice addons! I have just one question, where can we config the scale? I don't find it
Espo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-08-2009, 02:44 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
The core itself doesn't do this freezes by itself at all, you should write into the addon section of the appropriate layout (_Aurora, _Pernobilis, _Nivaya, _Gnomed or else) you've got.
__________________
« Homepage | Git »

My blog is finally getting english!

Last edited by Cargor : 07-08-2009 at 02:45 PM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-08-2009, 01:12 PM  
jedcooper
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
first of all: very good addon, i want to use it further!! ;-)

but...

the game always gets really jerky if (it wasn't so before!) there's access to the bags. they are closed, and if i pick up loot or craft something which involves a bag place, the game stops for about 0,5 sec. it's a no go :-(

as in raids/instances where you often loot, it slows the whole game down... never had that in ANY other addon!

i hope there is a fix for this great addon... *sigh*
jedcooper 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.