[Plugin] ItemRuleExaminer 1.4 (Updated 2012-07-01)
I had some trouble with ItemRules, those files can be a little daunting and figuring out if you've gotten it right is sometimes harder than it needs to be. To help myself with that I wrote this plugin, which tries to match all the items in the inventory, equipped and on the ground against the current set of ItemRules, and prints the results to the terminal.
How to use:
* Install the plugin.
* Enter the game with a character.
* (optional)Set logging to Verbose.
* Turn plugin on.
* Wait a few seconds, this may take some time.
* Open the log-file in the log-directory where you installed DemonBuddy.
The plugin will now have listed all the items in your inventory, equipped and on the ground, complete with their stats and what the ItemRules think of them(Pickup/Keep/Sell/Salvage). If you set the logging to Verbose DemonBuddy will also have stated the description of the ItemRule that matched for each category(at least in DemonBuddy .146).
This is kind of a utility-plugin, so I don't imagine I will do much updates or support of it. Just putting it out there for whomever might find it useful!
Example output:
Changelog:
1.0 - Initial version.
1.1 - Should fix the exceptions that would happen in some circumstances.
1.2 - Trying to force DemonBuddy to update the items for the cases where nothing seems to happen.
1.3 - Fixed a couple of potential issues pointed out by GilesSmith.
1.4 - Filtering out invalid items in an attempt to be less spammy.
Edit: Added version 1.1, the problem you were having were probably because you were not logged in to a character when activating the plugin. That should be fixed now. I also clarified the instructions a bit in regards to how to get at *all* the data, since the log window isn't always able to hold all the text this plugin generates, using the actual log-file is much better.
Edit: Added version 1.2.
Edit: Added version 1.3.
Edit: Added version 1.4 and some example output.
I had some trouble with ItemRules, those files can be a little daunting and figuring out if you've gotten it right is sometimes harder than it needs to be. To help myself with that I wrote this plugin, which tries to match all the items in the inventory, equipped and on the ground against the current set of ItemRules, and prints the results to the terminal.
How to use:
* Install the plugin.
* Enter the game with a character.
* (optional)Set logging to Verbose.
* Turn plugin on.
* Wait a few seconds, this may take some time.
* Open the log-file in the log-directory where you installed DemonBuddy.
The plugin will now have listed all the items in your inventory, equipped and on the ground, complete with their stats and what the ItemRules think of them(Pickup/Keep/Sell/Salvage). If you set the logging to Verbose DemonBuddy will also have stated the description of the ItemRule that matched for each category(at least in DemonBuddy .146).
This is kind of a utility-plugin, so I don't imagine I will do much updates or support of it. Just putting it out there for whomever might find it useful!
Example output:
[15:35:26.765 V] [ItemRules] Matched Glittering Sanctified Quiver of Pain with rule: Pick up magic 61+
ickUp
[15:35:26.766 V] [ItemRules] Matched Glittering Sanctified Quiver of Pain with rule: Keep things with high gold find:Keep
[15:35:26.766 V] [ItemRules] Matched Glittering Sanctified Quiver of Pain with rule: Salvage magic 61+:Salvage
[15:35:26.766 N] [ItemRuleExaminer 1.4] Glittering Sanctified Quiver of Pain: PICKUP / KEEP / SALVAGE
[15:35:26.766 N] [ItemRuleExaminer 1.4] Glittering Sanctified Quiver of Pain (Armor-Quiver):
[15:35:26.767 N] [ItemRuleExaminer 1.4] Quality: Magic2
[15:35:26.767 N] [ItemRuleExaminer 1.4] Level: 62
[15:35:26.767 N] [ItemRuleExaminer 1.4] RequiredLevel: 60
[15:35:26.768 N] [ItemRuleExaminer 1.4] Dexterity: 83.00
[15:35:26.768 N] [ItemRuleExaminer 1.4] GoldFind: 12.99
[15:35:26.770 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.773 N] [ItemRuleExaminer 1.4]
[15:35:26.820 V] [Item Rules] Matched Flawless Square Ruby with rule: Pick up gems
ickUp
[15:35:26.821 V] [Item Rules] Matched Flawless Square Ruby with rule: Keep gems:Keep
[15:35:26.822 N] [ItemRuleExaminer 1.4] Flawless Square Ruby: PICKUP / KEEP
[15:35:26.822 N] [ItemRuleExaminer 1.4] Flawless Square Ruby (Gem-Unknown):
[15:35:26.822 N] [ItemRuleExaminer 1.4] Quality: Normal
[15:35:26.822 N] [ItemRuleExaminer 1.4] Level: 60
[15:35:26.826 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.829 N] [ItemRuleExaminer 1.4]
[15:35:26.855 V] [Item Rules] Matched Gold with rule: Pick up gold
ickUp
[15:35:26.857 N] [ItemRuleExaminer 1.4] 251 x Gold: PICKUP
[15:35:26.857 N] [ItemRuleExaminer 1.4] Gold (Misc-Unknown):
[15:35:26.857 N] [ItemRuleExaminer 1.4] Quality: Normal
[15:35:26.857 N] [ItemRuleExaminer 1.4] Level: 1
[15:35:26.861 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.865 N] [ItemRuleExaminer 1.4]
[15:35:26.874 V] [Item Rules] Matched {c:ffffff00}Plan: Exalted Dread Shield{/c} with rule: Pick up plans
ickUp
[15:35:26.875 V] [Item Rules] Matched {c:ffffff00}Plan: Exalted Dread Shield{/c} with rule: Keep plans:Keep
[15:35:26.875 N] [ItemRuleExaminer 1.4] {c:ffffff00}Plan: Exalted Dread Shield{/c}: PICKUP / KEEP
[15:35:26.875 N] [ItemRuleExaminer 1.4] {c:ffffff00}Plan: Exalted Dread Shield{/c} (Misc-Unknown):
[15:35:26.875 N] [ItemRuleExaminer 1.4] Quality: Normal
[15:35:26.876 N] [ItemRuleExaminer 1.4] Level: 46
[15:35:26.880 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.883 N] [ItemRuleExaminer 1.4]
[15:35:26.893 V] [ItemRules] Matched Sledge of Athskeleng with rule: Pick up legendary
ickUp
[15:35:26.895 V] [ItemRules] Matched Sledge of Athskeleng with rule: Keep legendary items:Keep
[15:35:26.895 V] [ItemRules] Matched Sledge of Athskeleng with rule: Sell magic 60-:Sell
[15:35:26.895 N] [ItemRuleExaminer 1.4] Sledge of Athskeleng: PICKUP / KEEP / SELL
[15:35:26.895 N] [ItemRuleExaminer 1.4] Sledge of Athskeleng (Weapon-Mace):
[15:35:26.896 N] [ItemRuleExaminer 1.4] Quality: Legendary
[15:35:26.896 N] [ItemRuleExaminer 1.4] Level: 59
[15:35:26.896 N] [ItemRuleExaminer 1.4] RequiredLevel: 58
[15:35:26.897 N] [ItemRuleExaminer 1.4] Dexterity: 81.00
[15:35:26.897 N] [ItemRuleExaminer 1.4] Sockets: 1
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponAttacksPerSecond: 0.90
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponMinDamage: 430.00
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponMaxDamage: 500.00
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponDamagePerSecond: 411.65
[15:35:26.898 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.898 N] [ItemRuleExaminer 1.4] MovementSpeed: 6.00
[15:35:26.901 N] [ItemRuleExaminer 1.4]
[15:35:26.948 V] [ItemRules] Matched Glittering Doom Pauldrons of Assault with rule: Pick up magic 61+
ickUp
[15:35:26.949 V] [ItemRules] Matched Glittering Doom Pauldrons of Assault with rule: Keep things with high gold find:Keep
[15:35:26.949 V] [ItemRules] Matched Glittering Doom Pauldrons of Assault with rule: Salvage magic 61+:Salvage
[15:35:26.949 N] [ItemRuleExaminer 1.4] Glittering Doom Pauldrons of Assault: PICKUP / KEEP / SALVAGE
[15:35:26.949 N] [ItemRuleExaminer 1.4] Glittering Doom Pauldrons of Assault (Armor-Shoulder):
[15:35:26.950 N] [ItemRuleExaminer 1.4] Quality: Magic2
[15:35:26.950 N] [ItemRuleExaminer 1.4] Level: 61
[15:35:26.950 N] [ItemRuleExaminer 1.4] RequiredLevel: 60
[15:35:26.951 N] [ItemRuleExaminer 1.4] Strength: 142.00
[15:35:26.951 N] [ItemRuleExaminer 1.4] Armor: 312.67
[15:35:26.951 N] [ItemRuleExaminer 1.4] ArmorTotal: 312.00
[15:35:26.952 N] [ItemRuleExaminer 1.4] GoldFind: 11.99
[15:35:26.953 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.966 N] [ItemRuleExaminer 1.4]

[15:35:26.766 V] [ItemRules] Matched Glittering Sanctified Quiver of Pain with rule: Keep things with high gold find:Keep
[15:35:26.766 V] [ItemRules] Matched Glittering Sanctified Quiver of Pain with rule: Salvage magic 61+:Salvage
[15:35:26.766 N] [ItemRuleExaminer 1.4] Glittering Sanctified Quiver of Pain: PICKUP / KEEP / SALVAGE
[15:35:26.766 N] [ItemRuleExaminer 1.4] Glittering Sanctified Quiver of Pain (Armor-Quiver):
[15:35:26.767 N] [ItemRuleExaminer 1.4] Quality: Magic2
[15:35:26.767 N] [ItemRuleExaminer 1.4] Level: 62
[15:35:26.767 N] [ItemRuleExaminer 1.4] RequiredLevel: 60
[15:35:26.768 N] [ItemRuleExaminer 1.4] Dexterity: 83.00
[15:35:26.768 N] [ItemRuleExaminer 1.4] GoldFind: 12.99
[15:35:26.770 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.773 N] [ItemRuleExaminer 1.4]
[15:35:26.820 V] [Item Rules] Matched Flawless Square Ruby with rule: Pick up gems

[15:35:26.821 V] [Item Rules] Matched Flawless Square Ruby with rule: Keep gems:Keep
[15:35:26.822 N] [ItemRuleExaminer 1.4] Flawless Square Ruby: PICKUP / KEEP
[15:35:26.822 N] [ItemRuleExaminer 1.4] Flawless Square Ruby (Gem-Unknown):
[15:35:26.822 N] [ItemRuleExaminer 1.4] Quality: Normal
[15:35:26.822 N] [ItemRuleExaminer 1.4] Level: 60
[15:35:26.826 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.829 N] [ItemRuleExaminer 1.4]
[15:35:26.855 V] [Item Rules] Matched Gold with rule: Pick up gold

[15:35:26.857 N] [ItemRuleExaminer 1.4] 251 x Gold: PICKUP
[15:35:26.857 N] [ItemRuleExaminer 1.4] Gold (Misc-Unknown):
[15:35:26.857 N] [ItemRuleExaminer 1.4] Quality: Normal
[15:35:26.857 N] [ItemRuleExaminer 1.4] Level: 1
[15:35:26.861 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.865 N] [ItemRuleExaminer 1.4]
[15:35:26.874 V] [Item Rules] Matched {c:ffffff00}Plan: Exalted Dread Shield{/c} with rule: Pick up plans

[15:35:26.875 V] [Item Rules] Matched {c:ffffff00}Plan: Exalted Dread Shield{/c} with rule: Keep plans:Keep
[15:35:26.875 N] [ItemRuleExaminer 1.4] {c:ffffff00}Plan: Exalted Dread Shield{/c}: PICKUP / KEEP
[15:35:26.875 N] [ItemRuleExaminer 1.4] {c:ffffff00}Plan: Exalted Dread Shield{/c} (Misc-Unknown):
[15:35:26.875 N] [ItemRuleExaminer 1.4] Quality: Normal
[15:35:26.876 N] [ItemRuleExaminer 1.4] Level: 46
[15:35:26.880 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.883 N] [ItemRuleExaminer 1.4]
[15:35:26.893 V] [ItemRules] Matched Sledge of Athskeleng with rule: Pick up legendary

[15:35:26.895 V] [ItemRules] Matched Sledge of Athskeleng with rule: Keep legendary items:Keep
[15:35:26.895 V] [ItemRules] Matched Sledge of Athskeleng with rule: Sell magic 60-:Sell
[15:35:26.895 N] [ItemRuleExaminer 1.4] Sledge of Athskeleng: PICKUP / KEEP / SELL
[15:35:26.895 N] [ItemRuleExaminer 1.4] Sledge of Athskeleng (Weapon-Mace):
[15:35:26.896 N] [ItemRuleExaminer 1.4] Quality: Legendary
[15:35:26.896 N] [ItemRuleExaminer 1.4] Level: 59
[15:35:26.896 N] [ItemRuleExaminer 1.4] RequiredLevel: 58
[15:35:26.897 N] [ItemRuleExaminer 1.4] Dexterity: 81.00
[15:35:26.897 N] [ItemRuleExaminer 1.4] Sockets: 1
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponAttacksPerSecond: 0.90
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponMinDamage: 430.00
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponMaxDamage: 500.00
[15:35:26.897 N] [ItemRuleExaminer 1.4] WeaponDamagePerSecond: 411.65
[15:35:26.898 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.898 N] [ItemRuleExaminer 1.4] MovementSpeed: 6.00
[15:35:26.901 N] [ItemRuleExaminer 1.4]
[15:35:26.948 V] [ItemRules] Matched Glittering Doom Pauldrons of Assault with rule: Pick up magic 61+

[15:35:26.949 V] [ItemRules] Matched Glittering Doom Pauldrons of Assault with rule: Keep things with high gold find:Keep
[15:35:26.949 V] [ItemRules] Matched Glittering Doom Pauldrons of Assault with rule: Salvage magic 61+:Salvage
[15:35:26.949 N] [ItemRuleExaminer 1.4] Glittering Doom Pauldrons of Assault: PICKUP / KEEP / SALVAGE
[15:35:26.949 N] [ItemRuleExaminer 1.4] Glittering Doom Pauldrons of Assault (Armor-Shoulder):
[15:35:26.950 N] [ItemRuleExaminer 1.4] Quality: Magic2
[15:35:26.950 N] [ItemRuleExaminer 1.4] Level: 61
[15:35:26.950 N] [ItemRuleExaminer 1.4] RequiredLevel: 60
[15:35:26.951 N] [ItemRuleExaminer 1.4] Strength: 142.00
[15:35:26.951 N] [ItemRuleExaminer 1.4] Armor: 312.67
[15:35:26.951 N] [ItemRuleExaminer 1.4] ArmorTotal: 312.00
[15:35:26.952 N] [ItemRuleExaminer 1.4] GoldFind: 11.99
[15:35:26.953 N] [ItemRuleExaminer 1.4] WeaponDamageType: None
[15:35:26.966 N] [ItemRuleExaminer 1.4]
Changelog:
1.0 - Initial version.
1.1 - Should fix the exceptions that would happen in some circumstances.
1.2 - Trying to force DemonBuddy to update the items for the cases where nothing seems to happen.
1.3 - Fixed a couple of potential issues pointed out by GilesSmith.
1.4 - Filtering out invalid items in an attempt to be less spammy.
Edit: Added version 1.1, the problem you were having were probably because you were not logged in to a character when activating the plugin. That should be fixed now. I also clarified the instructions a bit in regards to how to get at *all* the data, since the log window isn't always able to hold all the text this plugin generates, using the actual log-file is much better.
Edit: Added version 1.2.
Edit: Added version 1.3.
Edit: Added version 1.4 and some example output.
Attachments
Last edited: