Addon Information
Works with 3.2
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)
CobraA1's Portal Bug Reports Feature Requests
Author:
Version:
1.2.3
Date:
11-13-2009 09:35 AM
Size:
84.56 Kb
Downloads:
14,433
Favorites:
196
MD5:
Pictures
Click to enlarge
Adding an item to the Shopping List
Click to enlarge
Adding an item to the Selling List
Click to enlarge
Adjusting the stock quantity of an item
Reagent Restocker   Popular! (More than 5000 hits)
== Overview ==
Reagent Restocker is a simple addon for automatically purchasing items, selling unwanted items, and repairing.

Unlike many other similar addons, Reagent Restocker supports drag and drop and has a full GUI for editing buy/sell lists. Even thuogh it may be more useful to some classes than others, Reagent Restocker works for all classes.

This addon is of particular use to:

* classes that use multiple reagents (Mages, Druids, etc.),
* characters that like to have a stock of vials, flux, etc. on hand,
* characters that always like to keep stocked on items like potions in their bank,
* characters that do a lot of farming.
* anybody who wants to keep a constant supply of some item buyable from a vendor.

== News ==
Version 2.0 is in the planning stages:
* Upgrade to latest Ace 3.0 libraries.
* Move from Waterfall UI to Ace 3.0 UI.
* Tweaks to UI layout to better fit the Interface menu in WoW.
* Likely to happen during a major holiday, when there is more time for side projects.
* Possibly new features like support for guild bank and alts. But no gauruntees.

New author: CobraA1. Please report all bugs!

== Usage ==
To start using Reagent Restocker, type

/rr

at the command line.

/rrstock and /reagentrestocker also work. If you are using Raid Roll, Regeant Restocker will not use /rr.

/rrbuy and /rrsell add items to the sell and buy lists (thanks g3gg0)

== Versioning ==

Reagent Restocker now uses a versioning system similar to many Linux programs:

First digit is major revision.
Second digit is a minor revision number, and is odd for dev versions, even for stable.
Third digit is build number. Incremented when a new revision is released, but has not changed beta/stable status.

== previous development ==
Reagent Restocker began as a project to learn about WoW addons/LUA, and evolved in to what I found to be a handy tool.

I welcome any suggestions and feedback - especially bug reports!
  Change Log - Reagent Restocker
== v1.2.2 ==
* Attempt to fix some icons not showing up.
* Added option to use a single LDB object instead of one per item.

== v1.2.1 ==
* Detect Raid Roll, and do not override its slash command if it has set one.
* Added /rrstock to the slash commands. Same as /rr.
* Remember, you can always use /reagentrestocker to open reagent restocker.

== v1.2.0 ==
* Minor graphical adjustments.
* No more crashes reported, only minor graphical complaints, so releasing as stable!

== v1.1.8 beta ==
* Waterfall was acting up, so I jailed it.
* In other words, it runs in its own environment now and doesn't pollute the global namespace.
* Hopefully this should be the final fix for incompatibilities with other addons.

== v1.1.7 beta ==
* If you come to a fork in the road, take it. Or, in this case, if you modify a library, fork it.

== v1.1.6 beta ==
* With a new day for a fresh set of eyes - a some "if" statements and "function" closures in my code were closing in weird places. May have been responsible for flaky behavior and performance issues. Fixed.

== v1.1.5 beta ==
* More LDB fixes.

== v1.1.4 beta ==
* Bug/performance fixes.

== v1.1.3 beta ==
* Minor UI and LDB bug fixes.

== v1.1.2 beta ==
* Fix Broker2FuBar compatibility.
* Add some text to LDB feed.
* Increase intensity of colors at user request.

== v1.1.1 beta ==
* LDB support added.
* Increased visibility of resize handles.
* Fixed a fix.

== v1.1.0 beta ==

* Give Cheeken credit in TOC.
* Hopefully fix vendor discount bug.
* Versioning set to be more Linux-like. This is still a beta release, so odd second number.
* Drag and drop support now added! Easier, and more reliable since no dependency on the name.
* Rquired modifications to the Waterfall library. Consider the library branched . . .
* Wider area for longer description viewing. May adjust more in the future.
* Formatting of news and changelog adjusted to be more Wiki-like.

== v1.0 beta ==

* Added MIT license to code.
* (gonna publish to curse.com)
* Added /rrbuy and /rrsell to add items to the sell and buy lists (thanks g3gg0).
* Per the advice of rerunx5, replaced LibStub with Ace 3.0 LibStub.
* Updated Waterfall library.
* Updated Ace 2 libraries.
* Updated TOC.

== v0.9d ==

* First change with new author (CobraA1).
* Increased maximum shopping quantities; should allow players to fill some of the more specialized bags.
* Changelog and news now included as text files in the addon.
* Note that I have not updated the interface version yet - I want to make sure most of the known bugs are fixed first.

== v0.9 ==

* Improved interface (thanks to the excellent Waterfall library)
* Added ability to turn overstocking on and off
* Fixed problem finding items with hyphens (-) in them


== v0.8 ==

* This update will delete your settings, but it will also work with the 2.3.2 update
* Improved bag-movement "AI"
* Improved reporting
* Cleaned things up a bit; should be less prone to bugs


== v0.7 ==

* Improved bank logic
* Multiple bug fixes


== v0.6 ==
The Bad News: Due to a significant code rewrite, v0.6 will reset your settings. You will have to re-enter them.

The Good News: Reagent Restocker now has limited bank support. Enable the appropriate options and Shopping List items will be pulled from or deposited into your bank. Also a few other handy features were added, such as auto-population of the Selling List.
  Optional Files - Reagent Restocker
Sorry, there are currently no optional files available.
  Archived Versions - Reagent Restocker
File Name
Version
Size
Author
Date
1.2.2
84kB
CobraA1
11-07-2009 01:01 AM
1.2.1
84kB
CobraA1
10-21-2009 09:50 AM
1.2.0
84kB
CobraA1
10-20-2009 08:48 PM
1.1.8 beta
83kB
CobraA1
10-17-2009 02:27 AM
1.1.7 beta
82kB
CobraA1
10-14-2009 11:38 PM
1.1.6 beta
82kB
CobraA1
10-13-2009 05:44 PM
1.1.5 beta
82kB
CobraA1
10-12-2009 08:31 PM
1.1.4 beta
82kB
CobraA1
10-12-2009 06:27 PM
1.1.3 beta
82kB
CobraA1
10-12-2009 09:34 AM
1.1.2 beta
81kB
CobraA1
10-11-2009 11:28 PM
1.1.1 beta
104kB
CobraA1
10-11-2009 08:25 PM
1.1.0 beta
190kB
CobraA1
10-10-2009 11:42 PM
1.0 beta
80kB
CobraA1
10-06-2009 09:46 AM
0.9d
77kB
CobraA1
10-05-2009 10:05 PM
0.9c
78kB
CobraA1
02-26-2008 01:51 PM
  Comments - Reagent Restocker
Post A Reply Comment Options
Old 10-17-2009, 02:52 AM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
. . . and I relseased 1.1.8 beta, which required a lot of research to get right, but hopefully it solves the problems with other addons for good.

So far, in my testing, this fixes the strange errors with other addons.

In a nutshell, I shoved the Waterfall library I was using into its own namespace, hiding it from the global namespace and making it only accessible as a library. This prevents the other addons from picking its functions up from the global namespace and using them.

So far, it seems to be working. But man, that was a tough fix. I had to really research and figure out exactly how LUA's environments work.

Library authors: Watch the global environment, try not to pollute it. Especially if there are several versions of the same library floating around, you never know what version the users' addons are expecting. You may even be risking name clashes with other libraries.

Addon authors: Watch your library accesses. Make sure you're not mistakenly pulling library functions from the global namespace. The library functions should be accessed by calling the library itself. If it helps, you should be able to pull library functions into the local environment.

But anyways, enough preaching. Please tell me if it works.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-15-2009, 11:31 PM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
Umm, YIKES!

. . . and sigh. I think I know what's going on.

Each addon is using its copy of Waterfall.

And each copy of waterfall is putting a bunch of stuff in the global namespace.

Normally, that's okay, because it's all the same library, all the same code.

But when my addon (which has modified code) loads its code, it puts in its own stuff, some of which is modified. So all of the other addons get that modified stuff, and stuff blows up.

Sigh - I'm gonna have to think of a different way to approach to this. I really don't want to give up drag and drop - that was many hours of code, and quite significant functionality. And not supported by Waterfall by default.

I'm reading an article on how to implement LUA namespaces, maybe that will help me to isolate my code and stay away from polluting the global namespace with modified code.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-15-2009, 06:37 PM  
Kazragore
A Murloc Raider

Forum posts: 5
File comments: 66
Uploads: 0
Yeah, I rolled back to 1.1.5, this works fine.
Kazragore is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-15-2009, 04:21 PM  
acapela
A Flamescale Wyrmkin
Interface Author - Click to view interfaces

Forum posts: 134
File comments: 621
Uploads: 3
Quote:
Originally posted by Kazragore
Error after login with 1.1.7.

Quartz Options Window doesn't work and from rr it's bugged.
yeah, something about this version of ReagentRestocker seems to be breaking Waterfall-1.0 menus. Aloft is also having this problem, as are all the "Ace2" addons that i run, which are many (at least: all that offer a Waterfall-1.0 configuration dialog). disabling ReagentRestocker (the whole addon) clears all of these problems.

strangely, Aloft's "Dewdrop" component still works (as driven by FuBar, etc, despite the fact that this also uses Waterfall-1.0; seems to be a function of how Waterfall-1.0 is driven).

i notice that Waterfall-1.0, as embedded by ReagentRestocker, apparently installs itself as "WaterfallRR-1.0". i don't know whether this could be causing some sort of conflict.

the following results from trying to open Aloft's waterfall menu (i.e. via Aloft console command "/aloft waterfall"; in this case, Waterfall-1.0 is actually installing from Baggins, the configuration dialogs for which are also "broken", in the same way, with basically identical LUA errors):

Code:
[2009/10/15 14:09:54-743-x1]: Waterfall-1.0-90130 (Baggins):287: attempt to index upvalue 'currentframe' (a nil value)
Waterfall-1.0-90130:4129: in function `Refresh'
Waterfall-1.0-90130:4256: in function `SetSelected'
Waterfall-1.0-90130:1704: in function `SetSelected'
Waterfall-1.0-90130 (Baggins):478: in function `Open'
Aloft-2.8.11.1359-enUS\AloftFu\AloftFu.lua:107: in function `OnClick'
FuBarPlugin-2.0-90009:975: in function <...oft\AloftFu\Libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:972>
FuBar-3.0.90012\FuBar.lua:1201: in function <FuBar\FuBar.lua:1199>

Locals:
self = <table> {
 linetables = <table> {}
 contents = <table> {}
 sections = <table> {}
 parent = <table> {}
 status = <table> {}
 scrollchild = <unnamed> {}
 scrollframe = <unnamed> {}
 numlines = 0
 selected = "."
 noFixScroll = true
 uid = "224EC870"
 scrollbar = <unnamed> {}
 scrollvalue = 0
 contentsFunc = <function> @ Baggins\libs\Waterfall-1.0\Waterfall-1.0.lua:286:
 frame = <unnamed> {}
 contentsArg1 = <table> {}
 sizer = <unnamed> {}
}
noupdate = nil
currentframe = <table> {
 controlcount = 0
 colorR = 0.26
 titlebar2 = <unnamed> {}
 sizer_se = <unnamed> {}
 sizer_e = <unnamed> {}
 colorB = 0.57
 colorG = 0.41
 children = <function> @ Baggins\libs\Waterfall-1.0\Waterfall-1.0.lua:391:
 closebutton = <unnamed> {}
 id = "Aloft"
 treeview = <table> {}
 titlebar = <unnamed> {}
 titletext = <unnamed> {}
 uid = "224EC4B0"
 title = <unnamed> {}
 mainpane = <table> {}
 childrenArg = <table> {}
 frame = <unnamed> {}
 lib = <table> {}
 sizer_s = <unnamed> {}
}
getArgs = <function> @ ReagentRestocker\libs\Waterfall-1.0\Waterfall-1.0.lua:141:

  ---
__________________
Current author/maintainer of Aloft (the nameplate addon)
http://www.wowinterface.com/download...AloftBeta.html


-----
Qui a coupé le fromage, we abstainia! Oy, Macadamia! <UUURP>

Last edited by acapela : 10-15-2009 at 04:25 PM.
acapela is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-15-2009, 12:28 PM  
Kazragore
A Murloc Raider

Forum posts: 5
File comments: 66
Uploads: 0
Error after login with 1.1.7.

Quartz Options Window doesn't work and from rr it's bugged.

[2009/10/15 18:24:30-555-x1]: Waterfall-1.0-90130 (Waterfall-1.0):287: attempt to index upvalue 'currentframe' (a nil value)
AceAddon-2.0-91096 (Ace2):983: in function <Ace2\AceAddon-2.0\AceAddon-2.0.lua:976>
<in C code>: ?
AceEvent-2.0-91097 (Ace2):260: in function `TriggerEvent'
AceEvent-2.0-91097 (Ace2):910: in function <Ace2\AceEvent-2.0\AceEvent-2.0.lua:903>

---

Last edited by Kazragore : 10-15-2009 at 12:28 PM.
Kazragore is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-15-2009, 02:26 AM  
Syrah
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Works perfectly now, thank you

Edit: oh, guess not, Quartz options are broken now.

Last edited by Syrah : 10-15-2009 at 05:44 PM.
Syrah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-14-2009, 11:48 PM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
Sigh, yeah, I had to modify the Waterfall library a bit to add that drag and drop support.

Quartz was loading Waterfall, and my addon couldn't access its own modified version.

I've "forked" the Waterfall library so the name of the library that my addon uses is slightly different, and that seems to work. Should be fixed in 1.1.7.

Humm, Decursive looks useful, might be a keeper .

Last edited by CobraA1 : 10-14-2009 at 11:49 PM.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-14-2009, 11:20 PM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
ooohhhhh . . . that might be it. Sigh. Yeah, Quartz is loading its own version of waterfall. Maybe RR is not picking it up. Time to get off my sorry ___ and change the Waterfall version.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-14-2009, 10:59 PM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
I'm not quite sure how Quartz and Decursive are messing with the drag and drop. All I can figure is that I'm using a standard template, and somehow they are messing with that template.

If it's not that, then I don't have a clue. There's not much in that section of the addon that should be affected by other addons.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-14-2009, 11:28 AM  
Syrah
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Unfortunately version 1.1.6 still has the same issue with Quartz and Decursive (drop target not showing)
Syrah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-13-2009, 12:25 PM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
okay - apparently some "if" statements and "function" closures were closing in totally wrong places. Also, some code was being called repeatedly that didn't need to be. May have been responsible for strange behavior and performance issues. As soon as the servers are back up, I'll test the new code and put it up.

Nothing like a good nights sleep to clear up your mind and allow you to see the code as it really is.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-13-2009, 04:06 AM  
Kogasu
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
I don't know if it will help you debug, but using v1.1.5 I notice that when I am fishing, I get a bite and auto-loot, and at that moment my comp freezes for a second or 2. Every catch. (60fps otherwise) I tested with RR on and off (ACP) and RR is indeed the culprit. At this time I do not get any errors, however 1.1.4 threw thousands of them. I wish you good luck in your efforts to debug it.


V1.1.4 error:
Date: 2009-10-12 21:44:25
ID: -4
Error occured in: Global
Count: 947
Message: ..\AddOns\ReagentRestocker\Core.lua line 1492:
attempt to index field '?' (a nil value)
Debug:
[C]: ?
ReagentRestocker\Core.lua:1492:
ReagentRestocker\Core.lua:1479
AddOns:
Swatter, v5.6.4424 (KangaII)
ACP, v3.2.0.20
AddonLoader, v2.0
AraBrokerMoney, vr11
AraBrokerSpecSwitcher, vr5
AutoMark, v1.0.3
Badapples, v
Baggins, v433
BagginsAnywhereBags, v1.0.73
Bartender4, v4.4.1
BigWigs, v3.0
BrokerEquipment, v30200.4-Beta
BrokeroRA2Targets, v0.1.016
BrokerSwitcher, v1.0
ButtonBin, v1.0.68
Critline, v2.2.2
DebugLib, v5.1.DEV.130
DownTimer, v0.1
EnsidiaFails, v
EventHorizon, v1.1.2
EventHorizonDruid, v
Fatality, v1.1.1
FishingAce, v0.4.5
GrimReaper, v2.0 $Revision: 76 $
HeadCount, v1.6.0
LibPeriodicTable31, vv3.2.0.224
MacroBank, v1.5
MagicLooter, v1.0.31
MagicLooterLootMenu, v1.0
OmniCC, v2.5.7
Opticon, v2.4.3-0.7
oRA2, v2.0.$Revision: 666 $
oRA2Leader, v2.0
oRA2Optional, v2.0
oRA2Participant, v2.0
pMinimap, v30200.1-Beta
RaidBuffStatus, v3.210
RatingBuster, v
ReagentRestocker, v1.1.3 beta
Recount, v
SlideBar, v5.6.4424 (KangaII)
sRaidFrames, vr656
StatBlockDurability, v2.1.2
StatBlockLatency, v2.1.2
Stubby, v5.6.4424 (KangaII)
TipTac, v09.08.27
TipTacItemRef, v09.08.13
UnderHood, v2.0
UnderHoodAuras, v2.0
UnderHoodBars, v2.0
UnderHoodComboPoints, v2.0
UnderHoodHideBlizzard, v2.0
UnderHoodIcons, v2.0
UnderHoodPortraits, v2.0
UnderHoodRunes, v2.0
UnderHoodTexts, v2.0
Yap, v30000.0
zimUtils, v30000.1
BlizRuntimeLib_enUS v3.2.2.30200 <us>
(ck=577)

Last edited by Kogasu : 10-13-2009 at 04:11 AM.
Kogasu is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-13-2009, 01:52 AM  
Kazragore
A Murloc Raider

Forum posts: 5
File comments: 66
Uploads: 0
Quote:
Originally posted by CobraA1
Okay, I've made a first stab at the performance issue. It's largely to the LDB code. I may have to look for another event (or events) as the basis for providing the LDB updates.

Kazragore: Can you provide the complete error text, and test against 1.1.4? Thanks.
This was the complete text, given by Buggrabber.
Kazragore is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-12-2009, 08:38 PM  
CobraA1
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 26
File comments: 36
Uploads: 0
Another shot at debugging, sigh . . . should be up to 1.1.5.
CobraA1 is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-12-2009, 06:50 PM  
Backwoods
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Quote:
Originally posted by CobraA1
Okay, I've made a first stab at the performance issue. It's largely to the LDB code. I may have to look for another event (or events) as the basis for providing the LDB updates.

Kazragore: Can you provide the complete error text, and test against 1.1.4? Thanks.
I'm getting the same error:

[2009/10/12 18:38:48-3-x1240]: ReagentRestocker-1.1.3 beta\Core.lua:1492: attempt to index field '?' (a nil value)

And that's it.
Backwoods 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.