Category: Data Broker
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)
VagrantEsha's Portal Bug Reports Feature Requests
Author:
Version:
2.4.3-1.2
Date:
09-01-2008 02:17 PM
Size:
8.44 Kb
Downloads:
2,036
Favorites:
82
MD5:
Pictures
Click to enlarge
Bagsy
Bagsy: A DataBroker Plugin

The screenshot will tell you most of what you'll need to know about this plugin, but basically it's all about bag information (free slots, taken slots, that kind of thing).

Click Options:

Left-Click toggles just your backpack open/closed
Right-Click toggles the backpack and all bags open/closed.
Alt + Left-Click toggles between showing free slots/taken slots.
Alt + Right-Click toggles whether the bag count should be coloured or not.
Shift + Left-Click toggles counting class bags in the overall count display.
Shift + Right-Click toggles whether class bags should have their own, separate count.
Control + Left-Click toggles counting profession bags in the overall count display.
Control + Right-Click toggles whether profession bags should have their own, separate count.

Separate Counts: You may be wondering why this is important, but basically it allows you to show your ammo pouch/soul shard bag, or profession bags separately from the main count.

Take a look at the screenshot to see an example of this; the first count (with the standard backpack icon) is all bags - not counting class or profession bags into that count, the second count is soul shards (accompanied by the icon of the soul shards bag), and the third count is enchanting (accompanied by the icon of the enchanting bag). These are added dynamically, so if you have more than one profession bag they'll be added in the same fashion, one after the other.

So if you like, Bagsy can cover all of your bag-count display needs. It's bagnificent! (I <3 bad puns.)

Important Note: Some bag mods work differently, so you'll have to test to find out whether you should be left-clicking or right-clicking to open your bags.

What is DataBroker?

DataBroker is part of a system that's similar to FuBar and its plugins, what you have here is a plugin but you'll also need something to display the output of the plugin. You have many options for this, and I've listed a number of them below for your perusal, just pick the one that interests you the most.

- Fortress: http://www.wowinterface.com/downloads/info10401-Fortress.html
- ButtonBin: http://www.wowinterface.com/downloads/info10474-ButtonBin.html
- StatBlockCore: http://www.wowinterface.com/downloads/info9221-StatBlockCore.html
- MakeRocketGoNow: http://www.wowinterface.com/downloads/info9771-MakeRocketGoNow.html
- Carousel: http://www.wowinterface.com/downloads/info10295-Carousel.html
- Titan: http://www.wowinterface.com/downloads/info8092-TitanPanel.html

If you want further information, that nice feller tekkub has put together some information on his wiki. And it's good information too, information that you should probably read if you're just getting into DataBroker plugins. (Not to mention that poor old tek puts these pages together and not many people seem to read them, so I thought I'd do my part to help remedy that situation. )

http://github.com/tekkub/libdatabroker-1-1/wikis
  Change Log - Bagsy
2.4.3-1.2

- 1.1 introduced a click bug. I think this was due to some reverted code, basically stuff I had changed that I either undid by accident or didn't save. This is why it took me so long to spot it. This should guarantee that the clicking will work again, if not I'll just revert to the click-code I had in 1.0 from the archive. Here's hoping.
- Again, drycoded. You all know why by now though, sorry about that!

2.4.3-1.1

- I adjusted the alignment of the secondary icons (class/profession), they were actually too far down (see the screenshot) and it was so very irritating! So I've corrected them, they should now be aligned with the first icon.
- There was an issue with the sentences, this was amazingly minor but I had to fix it. There was a point where it would say something like "Not included in the count, and shown separately.", but instead it should be "Not included in the count, shown separately." or "Included in the count, and shown separately." See the screenshot to see what I'm talking about here, it was a minor grammatical error but I had to fix it. Yay for dynamically compiling sentences for tooltips!

2.4.3-1.0 (my coupe de gracie!)

- The click functions for toggling bags/backpack now work properly.
- A toggle has been added for whether or not counts should be coloured.
- Counts for different types of bags can now be separated (with neat little icons!), thaks to Frayol for that awesome idea.
- Did some general cleaning up, and obsessing over every last line of code!
- Not drycoded, this one's actually had all of its features tested (as the screenshot shows), huzzah!

2.4.3-0.9

- Thought I'd upload a quick fix for the default bags not toggling properly.
- More to come tomorrow!
- Drycoded, but should be okay (simple change).

2.4.3-0.8

- The original solution to trying to figure out how to deal with different bag mods didn't work, it was buggy and any fixes I might've had would've only been more complicated and I didn't want to bloat the mod like that. Thankfully, Frayol suggested a really simple and elegant solution that had just passed me by; left and right clicking for different types of bag mods. So that's in there now, thanks to Frayol.

2.4.3-0.7

- I've allowed some time for possible bug reports to come in, since I've had none I'm going to upgrade this from a test version to a standard one.

2.4.3-0.7-Test

- I've hopefully got the toggle bag issue sorted out that rears its head with some bag mods.
- Drycoded. It'll be upgraded from test to a normal version after confirmation of the fix.

2.4.3-0.6

- Changed the backpack toggle to work with all bags instead, which really makes most sense. I did that originally with the thought in mind that everyone probably uses some form of bag mod or another, s'not the case though! So Bagsy now toggles all bags on click, which is much more useful to those without bag mods.

2.4.3-0.5

- Added options to include or disclude class bags (such as soul shard bags, ammo pouches, and things of the sort) and profession bags (such as herbalism bags, ore bags, enchanting bags, and the like) from the overall count.

2.4.3-0.4

- The colour has been removed from the toc name, as this caused issues with alphabetical categorisation.

2.4.3-0.3

- I've got a new direction with the tooltips, it took me a while to decide on this. It was discussed with a few people too and it was generally and mutually decided that the new direction I'm taking them in is better. So this is the New Unification of Tooltip Styles for my plugins. NUTS v1! I'm pretty much going to model all my DataBroker plugins after this layout, to try to keep them as easy to understand at a glance as possible. The basic idea is: Keybinds at the bottom, the most important information at the top, and all the straggler-lines cushioned in the middle. Credit where credit is due, too; this all started because of a suggestion by Nyte, so kudos for Nyte for giving me reason to think about all this! This is far too long for a changelog update, I know... but necessary!
- I've corrected the toc-version, I am scared and confused by toc-versions.

2.4.3-0.2

- First release on WoWI.
  Comments - Bagsy
Post A Reply Comment Options
Old 11-07-2009, 05:16 AM  
Kerecha
A Murloc Raider
 
Kerecha's Avatar

Forum posts: 8
File comments: 148
Uploads: 0
im missing one small thing in the bagdisplay.

I sometimes use 2 more more of the same proffbag (like 1x32 mining and 2x32 herbing) i then get a display of 32m 32h 32h i would love to be able to get 32h 64m instead to save some space,
Kerecha is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-31-2009, 05:51 AM  
Wizardling
A Kobold Labourer
 
Wizardling's Avatar

Forum posts: 0
File comments: 80
Uploads: 0
Unhappy Replicate Bagsy, or anything similar?

I wish I knew how to write an addon, because Bagsy does EXACTLY what I want in a LDB bag addon. Sadly it fails to recognise some of my bags, e.g. 32 slot inscription :-( and it looks as if it will never be updated.

It's a damn shame that here we have the high water mark of LDB bag addons, and nothing else does it all. Or if I've missed an addon that will display free and total space for regular, profession and class bags, has click to open, colours numbers depending on free space, and is as well written as Bagsy, I'd LOVE to know about it!
Wizardling is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-31-2009, 10:33 AM  
shinx
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Re: Re: Doesn't recognise my 32 slot inscription bag

Bagsy Doesn´t work with DockingStation can you please fix this?
shinx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-10-2009, 02:32 PM  
Quagm1re
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Re: Doesn't recognise my 32 slot inscription bag

Quote:
Originally posted by Wizardling
Any chance of an update to the best LDB bag plugin? :-)
FIX FOR INSCRIPTION BAGS
  1. Open Bagsy.lua in a text editor, such as Notepad.
  2. Go to line 7, which should say "local craft = 8 + 32 + 64 + 128 + 512 + 1024".
  3. Change line 7 to say "local craft = 8 + 16 + 32 + 64 + 128 + 512 + 1024". Basically, you are adding a "16", since that is the ItemFamily for Inscription bags.
  4. Save your changes and restart WoW. You can now view Inscription bags separately.
Quagm1re is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-31-2009, 01:54 AM  
Wizardling
A Kobold Labourer
 
Wizardling's Avatar

Forum posts: 0
File comments: 80
Uploads: 0
Question Doesn't recognise my 32 slot inscription bag

Any chance of an update to the best LDB bag plugin? :-)
Wizardling is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-12-2008, 02:06 AM  
DaemonSambe
A Kobold Labourer

Forum posts: 0
File comments: 96
Uploads: 0
Docking Station

I've been using a new LDB Display system, Docking Station. However, Bagsy and Attrition are both unable to be used by DockingStation because of some problems with plugin creation. I don't know LUA or i'd fix my own copy. Could you please take a look at Docking Station and the author's comments? I don't know which of you is doing things properly or not or whatever, but i'd like to get the mods working.

Regards

---
DaemonSambe is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-21-2008, 12:11 AM  
Lullah
A Murloc Raider

Forum posts: 5
File comments: 11
Uploads: 0
Hey Esha

I just found an error in regards to Bagsy (as well as Attrition) in conflict with XRS. If I disable both mods, I get no lua error and XRS will be functioning normally.

If I use both Attrition and Bagsy along with XRS, I get an error message when the game loads that says:

Quote:
Interface\Addons\XRS\XRS.lua:11: Cannot find a library instance of Crayon-2.0.
I'm not sure if this is XRS' problem or Bagsy/Attrition's problem but I'd love it if you can offer some insight on what's going on!
Lullah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-02-2008, 02:10 PM  
Vytae
A Murloc Raider

Forum posts: 6
File comments: 62
Uploads: 0
been a busy day thus far and I can confirm that bagsy does work for me as well. Thanks again
Vytae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-02-2008, 06:12 AM  
VagrantEsha
Premium Member
 
VagrantEsha's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 20
File comments: 206
Uploads: 32
Hooray! Glad to hear that, indeed I am.
VagrantEsha is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-02-2008, 04:08 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
Interface Author - Click to view interfaces

Forum posts: 10
File comments: 109
Uploads: 4
Did a very quick test before starting work and both left and right clicks work as intended with the default bags. In addition the right click is now also working correctly with BaudBag as it opens all the bags there too (I have a couple of bag groups). Many thanks for that.
Frayol is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-01-2008, 02:11 PM  
VagrantEsha
Premium Member
 
VagrantEsha's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 20
File comments: 206
Uploads: 32
I see it, I think. It was a change in 1.1, so I'm going to upload a drycoded fix which may not help at all, or may fix it.

Thanks for bearing with me guys, I really appreciate it.

[Edit.]

@Vytae & Frayol

There's a new version up now, and I think I've found the cause of the problem. It was actually a reversion iissue (i.e.: I closed the file at some point without saving, or at some point I performed an undo, saved, and then closed the file for whatever reason) by the looks of it.

@Vytae

I feel like such an arse for putting you through all that, and I really have to say I'm sorry. Were I still playing, I would've spotted that myself and I really want to thank you for the patience you've shown. I very much appreciate it. Once you said that you'd removed the settings, I knew it had to be Bagsy and I went over it with a fine tooth comb to see what it could've been.

I had actually looked at the code before, but I kept overlooking it because it was a reversion and my mind didn't *click* with that. I didn't see it because I was automatically not expecting an issue to be there, and technically the code was correct from a 1.0 perspective but it didn't work with a small change I made in 1.1. I hope you enjoy using Bagsy in the future though, and I'll try not to do that again.

This was a bit of a facepalm moment for me, as I really can't believe I overlooked that so many times. But when one isn't expecting a bug to be there, the mind just white-washes over it. A typo or bad function I would've caught much, much more quickly. I need to be more observant, frankly. So once again, thanks for your patience.

Last edited by VagrantEsha : 09-01-2008 at 02:25 PM.
VagrantEsha is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-01-2008, 12:44 PM  
Vytae
A Murloc Raider

Forum posts: 6
File comments: 62
Uploads: 0
Quote:
Originally posted by Frayol
@Vytae - You are not being a buzzkill at all. In fact I failed to test without BaudBag running so my post only really related to BaudBag working fine. My mistake in not testing fully.

I have now tested fully and found that the issue does exist exactly as described. In order to rule out settings I wiped my addons and WTF folders then ran with nothing, but Fortress and Bagsy. Right-clicking only opens the backpack. I then zapped the folders clean again and tried with Carousel instead of Fortress, same result. Sorry to say that it looks like the issue lies within Bagsy.
same thing here.... backed up my entire wtf folder and addons folder and ran with only fortress and bagsy and reproduced the issue. I did not test any other data broker display unfortunately.
Vytae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-01-2008, 05:43 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
Interface Author - Click to view interfaces

Forum posts: 10
File comments: 109
Uploads: 4
@Vytae - You are not being a buzzkill at all. In fact I failed to test without BaudBag running so my post only really related to BaudBag working fine. My mistake in not testing fully.

I have now tested fully and found that the issue does exist exactly as described. In order to rule out settings I wiped my addons and WTF folders then ran with nothing, but Fortress and Bagsy. Right-clicking only opens the backpack. I then zapped the folders clean again and tried with Carousel instead of Fortress, same result. Sorry to say that it looks like the issue lies within Bagsy.
Frayol is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-01-2008, 12:24 AM  
VagrantEsha
Premium Member
 
VagrantEsha's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 20
File comments: 206
Uploads: 32
@Lullah

Alt + Right-click the Bagsy block, that'll colour the numbers. There's actually an option to turn the colouring of numbers on/off that's accessed by doing so.

@Vytae

The first thing I'd like to do here is reassure you, the reason I asked so many questions is because I do believe you're having problems and frankly (like most people who can figure out DataBroker) you seem too smart to have overlooked anything silly, that's why I jumped to the big questions in regards to which bag mods you were using if any, and such!

As it stands though, Bagsy clearly still has a problem if you're not using any bag mods, but it's a problem I didn't see when I uploaded 1.0, and in 1.1 I didn't even touch the bag line (I only changed two tooltip output lines and the placement of the icons). Once we've figured out what's actually going on with it, I'll get it fixed for you, too.

First things first, I'm going to break down how it works (removing any unncessary code from the example):

Code:
function ldb_obj.OnClick(_, which)
	local toggle = is_backpack_open() and "Close" or "Open"
	_G[which == "RightButton" and toggle.."AllBags" or toggle.."Backpack"]()
end
It uses toggle to build the function which is called, toggle just supplies Open or Closed to prepend the function name depending on the state of the backpack. So if the backpack is closed, and left-click is used, the function called is OpenBackpack(). If the bags are open, and right-click is used, the function called is CloseAllBags(). And vice versa.

There's only one thing that can be happening here, and that's that for some bizarre reason which I can't begin to comprehend, Fortress is actually interpreting right mouse clicks as left mouse clicks.

I trust that you tried running just Fortress & Bagsy alone for the purposes of testing, so I have another test for you. If the problem isn't in the code, then it must be in the settings. So here's what we're going to do...

The WTF folder in your World of Warcraft folder contains all your settings, so with Warcraft shut down, rename that folder to WTF_Backup (or similar). Then try running the game, you're going to lose all your settings temporarily but that won't matter, as long as you can get at Bagsy and try clicking on it, then that's all that's important. Try clicking on Bagsy at that time, and see whether the issue persists. If it doesn't then it's a settings problem somewhere.

To get your settings back, go back to your Warcraft folder with Warcraft shut down, there's a new WTF folder there. The new WTF folder are the settings that were created on the last run, we don't need those so delete that folder and then rename WTF_Backup to WTF. That way you'll get all your settings back.

Let me know what your findings are. If the issues prove to be settings-related then I have a few ideas on how we can proceed. If not then I'm completely stumped, but I'll keep looking into it anyway. But this is something we need to find out.
VagrantEsha is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-31-2008, 11:19 PM  
Lullah
A Murloc Raider

Forum posts: 5
File comments: 11
Uploads: 0
Hey Esha

I just encountered a small problem, not really sure what's the cause of it...hopefully you (or someone else) can provide insight!

Everything works splendidly with Bagsy and I use Fortress for the display addon. I noticed my Bagsy doesn't look exactly like the one in your screenshot. Instead of colored numbers stating how much bag space I have left, mine is just white.
Lullah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




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.