Quantcast
Download
(920 Kb)
Download
Updated: 09/06/19 08:47 AM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Wrathstone (4.3)
Murkmire (4.2)
Wolfhunter (4.1)
Summerset (4.0)
Updated:09/06/19 08:47 AM
Created:09/11/18 09:42 AM
Monthly downloads:159
Total downloads:1,593
Favorites:12
MD5:
5.1.5
Rulebased Inventory
Version: 1.6.1
by: TaxTalis [More]
YOU ARE USING THIS ADDON AT YOUR OWN RISK!
I will not be hold responsible for any damage or inconvenience this addon might cause for any reason.
This said, I have tested this addon on my main account for quite some time and try to do everything I can to make your experience with this addon as good and as safe as possible.

The main documentation is located at the addon's folder, there are all possible terms and functions for rules noted and it is quite impossible to go without it. In future the Wiki might be used.
I admit, this is not an addon for everyone. There is no interface defining the rules for you by clicking buttons, you have to insert them by text.
A wrongly defined (but valid) rule may cause severe damage when fencing, destroying or deconstructing as the items will never return after such an action was taken.

Needed libraries
  • LibStub
  • LibAsync
  • LibAddonMenu-2.0
  • LibCustomMenu
Supported addons
  • FCOIS
  • CraftStore
  • AutoCategory
  • Master Merchant
  • Tamriel Trade Centre


About Rulebased Inventory
After installing it, it does nothing. It’s simple as that.
You have to define rules for different tasks which then are executed automatically.
Tasks to define rules for are:
  • Move from Backpack to Bank (starts when opening the Bank UI)
  • Move from Bank to Backpack (starts when opening the Bank UI)
  • Sell at Store and Fence (starts when opening the Store or Fence UI)
  • Launder (starts when opening the Fence UI)
  • Junk (is checked continuously (“on update”) for each item on the backpack)
  • Destroy (is checked continuously (“on update”) for each item on the backpack)
  • Deconstruct (starts when opening the deconstruct tab of an Crafting Station UI)
  • Notification (is checked continuously (“on update”) for each new item)
Currencies and Homebank are not supported. Please see features in development.



Key Features
  • take actions on specific amounts of an item, not only on a whole stack (e.g. keep only 100 lockpicks in inventory)
  • check if your current character is the first one of a defined list in need of an item for research or a recipe to learn (so you can "hand down" a recipe if your main crafter doesn't need it to your secondary and further) (CraftStore needed)
  • save profiles and load them on multiple characters
  • a notification will include pricing from MM and TTC, count of vouchers for masterwrits and the count you have in backpack, bank and craftbag
  • ...


Features and fixes in development
  • event-based deconstruct
  • event-based refine
  • Homebank
  • Guildbank
Example rules "MasterCrafter"

Please see the wiki for rules I use, as example.
Needed libraries
  • LibAsync
  • LibAddonMenu-2.0
  • LibCustomMenu

Cumulative change log for version 1.6.1
  • removed libstub (thank's Beartram!)

Cumulative change log for version 1.6.0
  • removed rulestring-colorization for output as it didn't work correctly anyway and furthermore could cause a game crash

Cumulative change log for version 1.5.2
  • Updated for API 100028
  • Source is now available at https://gitlab.com/taxtalis/rulebased-inventory, wiki there might be used in the future

Cumulative change log for version 1.5.1
  • Fixed an error with writworthy integration when ttc was not found

Cumulative change log for version 1.5.0
  • Updated for API 100027
  • renamed 'schematic' (derived from constant's name SPECIALIZED_ITEMTYPE_RECIPE_ENCHANTING_SCHEMATIC_FURNISHING) to 'praxis' (ingame name)
  • added writworthy integration with wwMatCost and wwMatCostPerVoucher (thx to ziggr)
  • added functions itemsetname and itemsetnamematch to filter for setnames

Cumulative change log for version 1.4.2
  • fixed usage of AutoCategory function

Cumulative change log for version 1.4.1
  • added general option for a message when starting a task
  • added support for AutoCategory
  • added function: autocategory("category1",...)
  • fixed multiple bugs which occurred on a full bag
  • fixed test of deconstruct
  • fixed test of notification not using an unsaved rule
  • fixed an issue where in bagCache the count of an item would not be updated

Cumulative change log for version 1.2.2
  • added filters for events to not listen to unnecessary ones
  • rewrite of action- and event-queue
  • rewrite of action execution
  • rewrite of bagCache and generation of actions from task
  • rewrites for integration of LibAsync to reduce runtime per frame for less lag
  • API bump for Murkmire

Cumulative change log for version 0.10.1
  • dropped library because of instability: LibLoadedAddons
  • functions fcoismarker and fcoismarkermatch now support the custom names for fcois markers
  • safe rule switch for deconstruct now has the tooltip it deserves
  • events (junk/notification/destroy) now only are accepted when items were added to the bag to reduce lag
  • fixed notification to try to notify about already again empty slots (like loot containers directly extracted by other addons)
  • optimized events (junk/notification/destroy) to only create a cache of the whole bag if necessary to further reduce lag

Cumulative change log for version 0.8.0
  • tasks are only executed if a rule was defined
  • output now shows intricate and ornate symbols
  • added itemdata: fcoisismarked (replaces fcoislocked)
  • added itemdata: fcoismarker
  • added function: fcoismarker
  • added function: fcoismarkermatch

Cumulative change log for version 0.6.1
  • fixed variables leaking into global namespace (thanks Votan!)
  • added German translation
  • added itemdata: tags
  • added function: itemtag
  • added function: itemtagmatch
  • added itemdata: reagenttraits
  • added function: reagenttrait
  • added function: reagenttraitmatch
  • minimum delay and timeout lowered

-Version 0.4.2 was initial release-
Archived Files (11)
File Name
Version
Size
Uploader
Date
1.6.0
920kB
TaxTalis
08/31/19 04:02 PM
1.5.2
922kB
TaxTalis
08/14/19 09:25 AM
1.5.1
920kB
TaxTalis
05/25/19 02:57 AM
1.5.0
920kB
TaxTalis
05/24/19 10:07 AM
1.4.2
914kB
TaxTalis
10/27/18 09:00 AM
1.4.1
914kB
TaxTalis
10/26/18 02:36 PM
1.2.2
911kB
TaxTalis
10/12/18 01:27 PM
0.10.1
910kB
TaxTalis
09/26/18 12:27 PM
0.8.0
911kB
TaxTalis
09/16/18 01:58 PM
0.6.1
909kB
TaxTalis
09/15/18 07:08 AM
0.4.2
903kB
TaxTalis
09/11/18 10:06 AM


Post A Reply Comment Options
Unread 09/03/19, 03:02 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
You‘re just too kind! Thanks, Baertram, I will make these changes as soon as possible!

Originally Posted by Baertram
Hey TaxTalis,

also as ifnormation for you:
Where possible please remove LiBStub dependencies as LibStub is not needed anymore due to the txt files tag ## AddOnVersion: which handles the "only load newest version" internally in ZOs code since Murkmire patch.

So for your addon's "RulebasedInventory.txt" manifest file please change any ## OptionalDependsOn: LibStub or ## DependsOn: LibStub to remove the LibStub (This should btw never be in your addon's manifest txt but only in the manifest txt files of libraries which really need LibStub!).

Your new line would be this:
Code:
## DependsOn: LibAsync LibAddonMenu-2.0 LibCustomMenu
And in your addons code remove all usages of LibStub to use the global variables of the libraries instead.

Your libraries used, Global variable / Info about LibStub
LibCustomMenu, Non needed/LibStub not needed anymore!
LibAddonMenu-2.0, LibAddonMenu2 / LibStub still needed internally but will be called via LibAddonMenu-2.0.txt ## OptionalDependsOn: LibStub on it's own!
LibAsync, LibAsync / LibStub not needed anymore

In your file mdoules/menu.lua change this:
Code:
	local LAM2 = LibStub:GetLibrary("LibAddonMenu-2.0")
to this:
Code:
	local LAM2 = LibAddonMenu2
In your file RulebasedInventory.lua change this:
Code:
local async = LibStub("LibAsync")
to this:
Code:
local async = LibAsync
Report comment to moderator  
Reply With Quote
Unread 09/02/19, 09:05 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2353
File comments: 2609
Uploads: 57
Hey TaxTalis,

also as ifnormation for you:
Where possible please remove LiBStub dependencies as LibStub is not needed anymore due to the txt files tag ## AddOnVersion: which handles the "only load newest version" internally in ZOs code since Murkmire patch.

So for your addon's "RulebasedInventory.txt" manifest file please change any ## OptionalDependsOn: LibStub or ## DependsOn: LibStub to remove the LibStub (This should btw never be in your addon's manifest txt but only in the manifest txt files of libraries which really need LibStub!).

Your new line would be this:
Code:
## DependsOn: LibAsync LibAddonMenu-2.0 LibCustomMenu
And in your addons code remove all usages of LibStub to use the global variables of the libraries instead.

Your libraries used, Global variable / Info about LibStub
LibCustomMenu, Non needed/LibStub not needed anymore!
LibAddonMenu-2.0, LibAddonMenu2 / LibStub still needed internally but will be called via LibAddonMenu-2.0.txt ## OptionalDependsOn: LibStub on it's own!
LibAsync, LibAsync / LibStub not needed anymore

In your file mdoules/menu.lua change this:
Code:
	local LAM2 = LibStub:GetLibrary("LibAddonMenu-2.0")
to this:
Code:
	local LAM2 = LibAddonMenu2
In your file RulebasedInventory.lua change this:
Code:
local async = LibStub("LibAsync")
to this:
Code:
local async = LibAsync
Last edited by Baertram : 09/02/19 at 09:10 AM.
Report comment to moderator  
Reply With Quote
Unread 08/14/19, 09:23 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
Yep, I did stumble across this myself just now. Sorry, I messed up the structure of the zip file :/

Should be corrected by now. Sadly the three files in the addon directory need to be deleted manually. Minion seems to only take care of the folders.


These files need to be deleted from the addon folder (if not done by minion):
Modules\
Localization\
RulebasedInventory.lua
RulebasedInventory.txt
RulebasedInventory_Documentation.pdf
Last edited by TaxTalis : 08/14/19 at 09:46 AM.
Report comment to moderator  
Reply With Quote
Unread 08/14/19, 08:36 AM  
Balmeri

Forum posts: 0
File comments: 2
Uploads: 0
It turns out the issue was the files were in the root Addons folder without the RulebasedInventory folder. I'm not sure if it was like this before I deleted and reinstalled with minion, but for whatever reason Minion seems to just dump the files in the root directory, so the addon doesn't show up properly. Once I manually recreated the RulebasedInventory folder and put the files and the Localization folder inside it, the addon shows up again. But now even though the addon shows up in the list of addons in game, the settings don't show up and the addon doesn't work.

Edit: I missed the "Modules" subfolder which was still floating up in the root folder. Once I moved that in and reloaded all is fine. I'm still not sure why Minion is putting the files in the root directory though.
Last edited by Balmeri : 08/14/19 at 08:47 AM.
Report comment to moderator  
Reply With Quote
Unread 08/14/19, 08:06 AM  
Balmeri

Forum posts: 0
File comments: 2
Uploads: 0
For some reason with Scalebreaker this addon has suddenly refused to appear in the list of addons, either at character select screen or once logged into a character. I allow out of date addons, it's just nowhere in the list as if the game is blocking it. It shows up fine in Minion. I've even tried reinstalling in minion, but it still refuses to appear in game. Anyone else with this issue?
Last edited by Balmeri : 08/14/19 at 08:08 AM.
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 07:27 AM  
ovinnik

Forum posts: 21
File comments: 80
Uploads: 0
Originally Posted by TaxTalis
Originally Posted by ovinnik
Originally Posted by TaxTalis
Originally Posted by ovinnik
Originally Posted by TaxTalis
Originally Posted by ovinnik
Hey,

I'm getting this error after updating:

Going back to the previous version for now.
I'm sorry you're getting an error, seems to be in the new established integration of writworthy but I cannot reproduce it in any way, could you please check if all libraries are up to date and have you tired disabling all other addons and libs to see if it really is RbI or if some other addon interferes? If this does not help do a complete reinstall of RbI and maybe it's used libs? Without getting the error to play with it it's hard to fix it.
I only changed very few lines of code and everything runs smoothly for me (otherwise I wouldn't have it uploaded in the firstplace )

But I have an idea and will try.
No worries! It happens. Or else I'm particularly prone to making RbI behave strangely.

Everything is up to date, yes. The error appears to go away once I disable WritWorthy. Odd that you can't reproduce it. Perhaps it's due to some setting?

In any case, I'd rather have WW deactivated by default if that means RbI can do its job.
Patch should be up any minute and then WW can be enabled without the need of ttc for RbI to work - but how do you get prices for WW then or are you only using it's crafting part and don't use the cost-per-voucher and craftcost functionality?
Ah, so it was that. I use WW mainly for auto-crafting, yes. Am more concerned with earning writs than with cost-benefit ratio at the moment.

And thank you!
Your welcome, hopefully the patch gets approved soon and it works for you.
You see, we all use different addons and have different styles of playing and thus are using different addons in different constellations to aid us on our journey. I for myself have TTC enabled on all characters - WritWorthy just on a single one. Therefor this error (and hopefully the fix) would not have come to light if not for you, so thank you too for helping making RbI a little less buggy
Words of wisdom. I can confirm that there are no more errors now. Thanks again!
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 03:14 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
Originally Posted by ovinnik
Originally Posted by TaxTalis
Originally Posted by ovinnik
Originally Posted by TaxTalis
Originally Posted by ovinnik
Hey,

I'm getting this error after updating:

Going back to the previous version for now.
I'm sorry you're getting an error, seems to be in the new established integration of writworthy but I cannot reproduce it in any way, could you please check if all libraries are up to date and have you tired disabling all other addons and libs to see if it really is RbI or if some other addon interferes? If this does not help do a complete reinstall of RbI and maybe it's used libs? Without getting the error to play with it it's hard to fix it.
I only changed very few lines of code and everything runs smoothly for me (otherwise I wouldn't have it uploaded in the firstplace )

But I have an idea and will try.
No worries! It happens. Or else I'm particularly prone to making RbI behave strangely.

Everything is up to date, yes. The error appears to go away once I disable WritWorthy. Odd that you can't reproduce it. Perhaps it's due to some setting?

In any case, I'd rather have WW deactivated by default if that means RbI can do its job.
Patch should be up any minute and then WW can be enabled without the need of ttc for RbI to work - but how do you get prices for WW then or are you only using it's crafting part and don't use the cost-per-voucher and craftcost functionality?
Ah, so it was that. I use WW mainly for auto-crafting, yes. Am more concerned with earning writs than with cost-benefit ratio at the moment.

And thank you!
Your welcome, hopefully the patch gets approved soon and it works for you.
You see, we all use different addons and have different styles of playing and thus are using different addons in different constellations to aid us on our journey. I for myself have TTC enabled on all characters - WritWorthy just on a single one. Therefor this error (and hopefully the fix) would not have come to light if not for you, so thank you too for helping making RbI a little less buggy
Last edited by TaxTalis : 05/25/19 at 03:15 AM.
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 03:09 AM  
ovinnik

Forum posts: 21
File comments: 80
Uploads: 0
Originally Posted by TaxTalis
Originally Posted by ovinnik
Originally Posted by TaxTalis
Originally Posted by ovinnik
Hey,

I'm getting this error after updating:

Going back to the previous version for now.
I'm sorry you're getting an error, seems to be in the new established integration of writworthy but I cannot reproduce it in any way, could you please check if all libraries are up to date and have you tired disabling all other addons and libs to see if it really is RbI or if some other addon interferes? If this does not help do a complete reinstall of RbI and maybe it's used libs? Without getting the error to play with it it's hard to fix it.
I only changed very few lines of code and everything runs smoothly for me (otherwise I wouldn't have it uploaded in the firstplace )

But I have an idea and will try.
No worries! It happens. Or else I'm particularly prone to making RbI behave strangely.

Everything is up to date, yes. The error appears to go away once I disable WritWorthy. Odd that you can't reproduce it. Perhaps it's due to some setting?

In any case, I'd rather have WW deactivated by default if that means RbI can do its job.
Patch should be up any minute and then WW can be enabled without the need of ttc for RbI to work - but how do you get prices for WW then or are you only using it's crafting part and don't use the cost-per-voucher and craftcost functionality?
Ah, so it was that. I use WW mainly for auto-crafting, yes. Am more concerned with earning writs (Edit: writ vouchers*) than with cost-benefit ratio at the moment.

And thank you!
Last edited by ovinnik : 05/25/19 at 03:18 AM.
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 03:00 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
Originally Posted by ovinnik
Originally Posted by TaxTalis
Originally Posted by ovinnik
Hey,

I'm getting this error after updating:

Going back to the previous version for now.
I'm sorry you're getting an error, seems to be in the new established integration of writworthy but I cannot reproduce it in any way, could you please check if all libraries are up to date and have you tired disabling all other addons and libs to see if it really is RbI or if some other addon interferes? If this does not help do a complete reinstall of RbI and maybe it's used libs? Without getting the error to play with it it's hard to fix it.
I only changed very few lines of code and everything runs smoothly for me (otherwise I wouldn't have it uploaded in the firstplace )

But I have an idea and will try.
No worries! It happens. Or else I'm particularly prone to making RbI behave strangely.

Everything is up to date, yes. The error appears to go away once I disable WritWorthy. Odd that you can't reproduce it. Perhaps it's due to some setting?

In any case, I'd rather have WW deactivated by default if that means RbI can do its job.
Patch should be up any minute and then WW can be enabled without the need of ttc for RbI to work - but how do you get prices for WW then or are you only using it's crafting part and don't use the cost-per-voucher and craftcost functionality?
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 02:53 AM  
ovinnik

Forum posts: 21
File comments: 80
Uploads: 0
Originally Posted by TaxTalis
Originally Posted by ovinnik
Hey,

I'm getting this error after updating:

Going back to the previous version for now.
I'm sorry you're getting an error, seems to be in the new established integration of writworthy but I cannot reproduce it in any way, could you please check if all libraries are up to date and have you tired disabling all other addons and libs to see if it really is RbI or if some other addon interferes? If this does not help do a complete reinstall of RbI and maybe it's used libs? Without getting the error to play with it it's hard to fix it.
I only changed very few lines of code and everything runs smoothly for me (otherwise I wouldn't have it uploaded in the firstplace )

But I have an idea and will try.
No worries! It happens. Or else I'm particularly prone to making RbI behave strangely.

Everything is up to date, yes. The error appears to go away once I disable WritWorthy. Odd that you can't reproduce it. Perhaps it's due to some setting?

In any case, I'd rather have WW deactivated by default if that means RbI can do its job.
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 02:28 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
Originally Posted by ovinnik
Hey,

I'm getting this error after updating:

Going back to the previous version for now.
I'm sorry you're getting an error, seems to be in the new established integration of writworthy but I cannot reproduce it in any way, could you please check if all libraries are up to date and have you tired disabling all other addons and libs to see if it really is RbI or if some other addon interferes? If this does not help do a complete reinstall of RbI and maybe it's used libs? Without getting the error to play with it it's hard to fix it.
I only changed very few lines of code and everything runs smoothly for me (otherwise I wouldn't have it uploaded in the firstplace )

But I have an idea and will try.
EDIT: wilde guess: You do not use TTC right? Well at least I get this error when using writworthy without ttc, so I think I know how to fix this. Will push in a couple of minutes.
Last edited by TaxTalis : 05/25/19 at 02:45 AM.
Report comment to moderator  
Reply With Quote
Unread 05/25/19, 12:56 AM  
ovinnik

Forum posts: 21
File comments: 80
Uploads: 0
Hey,

I'm getting this error after updating:

user:/AddOns/LibAsync/LibAsync.lua:36: user:/AddOns/RulebasedInventory/Modules/Item.lua:283: operator / is not supported for nil / number
stack traceback:
user:/AddOns/RulebasedInventory/Modules/Item.lua:283: in function 'RbI.GetItemData'
user:/AddOns/RulebasedInventory/Modules/BagCache.lua:137: in function 'CreateCacheRow'
user:/AddOns/LibAsync/LibAsync.lua:219: in function '(anonymous)'
(tail call): ?
[C]: in function 'pcall'
user:/AddOns/LibAsync/LibAsync.lua:22: in function 'DoCallback'
user:/AddOns/LibAsync/LibAsync.lua:50: in function 'DoJob'
user:/AddOns/LibAsync/LibAsync.lua:101: in function 'async.Scheduler'
(tail call): ?
stack traceback:
[C]: in function 'error'
user:/AddOns/LibAsync/LibAsync.lua:36: in function 'DoCallback'
user:/AddOns/LibAsync/LibAsync.lua:50: in function 'DoJob'
user:/AddOns/LibAsync/LibAsync.lua:101: in function 'async.Scheduler'
(tail call): ?
Going back to the previous version for now.
Report comment to moderator  
Reply With Quote
Unread 04/17/19, 06:29 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
Re: Praxis

Originally Posted by Chivana
Hi, I think s_type "praxis" (enchanting furniture plans) is missing.
I think you are right. I lately noticed there is no way to filter for set names!
Hope to provide these features to you sooner than the optimized rewrite I have in mind since last year, which I still have not begun.


EDIT: Update includes functions to filter for setnames, now you can deconstruct sets you don't want, too!
@ziggr, your writworthy integration is now live, thanks!
@Chivana, sorry I missed that, the constant is called "SPECIALIZED_ITEMTYPE_RECIPE_ENCHANTING_SCHEMATIC_FURNISHING" so I derived the name "schematic" for what is ingame called "praxis". I have now renamed this.
Last edited by TaxTalis : 05/24/19 at 10:16 AM.
Report comment to moderator  
Reply With Quote
Unread 04/14/19, 10:21 PM  
Chivana

Forum posts: 0
File comments: 23
Uploads: 0
Praxis

Hi, I think s_type "praxis" (enchanting furniture plans) is missing.
Report comment to moderator  
Reply With Quote
Unread 03/18/19, 09:55 AM  
TaxTalis
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 86
Uploads: 1
Thanks for the info!
Can you specify this more? When does it lag, in which constellation and so on?

Originally Posted by baratox
-
Since the ESO's interface update, there is big lag issues with some mods and their compatibility with MM.

When used with MM :

little lags (-20fps sometimes) :
research assistant

lags (-30fps sometimes) :
rulebased inventory (lag when MM add "sales records" from guilds in chat)

playable but slower loading :
raidnotifier (10 minutes of loading, while it freeze 5 seconds on monster kills, and randoms -10fps)
Last edited by TaxTalis : 03/18/19 at 09:55 AM.
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.