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

Forum posts: 199
File comments: 374
Uploads: 18
I just noticed that Blizz fixed their linux-opengl-bug on the 3.2 PTRs, so hopefully I can login there with a premade warlock and test it.

EDIT: Tested it with only cargBags, _Pernobilis and OmniCC activated on the PTR - the OmniCC settings are the same as yours. I've created a soulstone, then right-clicked it, closed bag while casting and then re-opened, but there was no cooldown shown on the empty button.

Sorry, I'm running out of ideas ... I've checked all the cooldown-related data and it is transmitted to the item on every bag-update, regardless if the bag is shown or not ... I can only repeat that I think of it being more a OmniCC-problem.
Especially since moving items into the slot causes complete updating of the cooldown data, so this should fix it if the bug was caused by cargBags - like my previously mentioned HS-bug which I need to figure out in the next days
__________________
« Website | GitHub »

Oh hai!
Last edited by xConStruct : 08-03-09 at 07:57 PM.
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 02:50 AM  
Skylinee
A Murloc Raider

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

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

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

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

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

Oh hai!
Last edited by xConStruct : 08-02-09 at 08:33 AM.
Report comment to moderator  
Reply With Quote
Unread 08-01-09, 02:31 PM  
Skylinee
A Murloc Raider

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

Forum posts: 199
File comments: 374
Uploads: 18
Thanks for the report, I'll check it
__________________
« Website | GitHub »

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

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

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

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

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

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

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 07-19-09, 01:45 AM  
Reolin
A Deviate Faerie Dragon
 
Reolin's Avatar

Forum posts: 10
File comments: 58
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
Report comment to moderator  
Reply With Quote
Unread 07-16-09, 06:50 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
That depends on your layout. Please ask this question in the comments-section of the layout you're using (Aurora, Nivaya, etc).
__________________
« Website | GitHub »

Oh hai!
Last edited by xConStruct : 07-16-09 at 06:50 AM.
Report comment to moderator  
Reply With Quote
Unread 07-16-09, 05: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
Report comment to moderator  
Reply With Quote
Unread 07-08-09, 12:44 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

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

Oh hai!
Last edited by xConStruct : 07-08-09 at 12:45 PM.
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.