What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] AdvancedItemFilter RELOADED !

Status
Not open for further replies.
2015-12-18 18:00:51,042 [5] DEBUG CustomLogger (null) - [OpenInventoryPanel] The InventoryPanel is not opened. Now opening it.
2015-12-18 18:00:52,792 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:54,317 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:55,691 [5] INFO CustomLogger (null) - [LatencyTracker] LowestLatency: 125
2015-12-18 18:00:55,692 [5] INFO CustomLogger (null) - [LatencyTracker] HighestLatency: 125
2015-12-18 18:00:55,842 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:57,366 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:57,540 [5] INFO CustomLogger (null) - [LatencyTracker] AverageLatency: 123
2015-12-18 18:00:58,891 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:01:00,417 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:01:01,941 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:01:01,943 [5] DEBUG CustomLogger (null) - [CloseBlockingWindows] LokiPoe.Gui.IsLeftPanelShown || LokiPoe.Gui.IsRightPanelShown. Closing them.
2015-12-18 18:01:02,073 [5] ERROR CustomLogger (null) - [Tick] Exception during execution:
Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.MissingMemberException: 'EvaluableItem' object has no attribute 'item'
at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
at IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at _Scripting_(Object[] )
at AdvancedItemFilter.Python.ConditionParserPython.EvaluateCondition(Item i, String cond, RuleType type, Boolean onlyEvaluating) in c:\#INSTALL\POE\EB\EOB CommandBeta\Plugins\AdvancedItemFilter\Python\ConditionParserPython.cs:line 74
at AdvancedItemFilter.MyItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter) in c:\#INSTALL\POE\EB\EOB CommandBeta\Plugins\AdvancedItemFilter\MyItemEvaluator.cs:line 1034
at Loki.Bot.ItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter)
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.?????????????????????????????????????????(Item , Object )
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.????????????????????????????????????????(Item )
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.?????????????????????????????????????????()
at Loki.Bot.Logic.Bots.OldGrindBot.SellTask.d<Z: Yvg#(\\36{BZ7`4mEvJs'.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Loki.Bot.TaskManager.3KCefNN\*y1!dOx}\*1nD\,ocC|\,.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.WX8SD@Ia#TSolnaW\])TIlKBc.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Buddy.Coroutines.Coroutine.RYQEs0MEF'$>_'rBABxHUVJs).`H;3|\,f`<i_L~Y"sg/U {W_8$.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
at Buddy.Coroutines.Coroutine.Resume()
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.Tick()
at Loki.Bot.BotManager.?????????????????????????????????????????(IBot )

I had a similar error. Any ideas?
 
May be wrong, but i believe you need to increase the MaxWithdrawTabs located in OldGrindBot.

Cj6AMYU.png
ill try that thanks mate

Edit: Nah I'm still getting the error heres a snippit of my log
[WaitForStashTabContents] Waiting for a page control to become visible.
[WaitForStashTabContents] Waiting for a page control to become visible.
[WaitForStashTabContents] Waiting for a page control to become visible.
[WaitForStashTabContents] Waiting for a page control to become visible.
[CheckForRecipeItemsTask] Fail to switch to the tab: leveling

Leveling is the name of the last tab in my stash. It was previously Gems and Jewels and it had the same issue but said Gems and Jewels instead of Leveling. Does anyone have any insight into my issue? I have a full 16 pages of random rare crap now that I have to make chaos recipes out of myself lol
 
Last edited:
2015-12-18 18:00:51,042 [5] DEBUG CustomLogger (null) - [OpenInventoryPanel] The InventoryPanel is not opened. Now opening it.
2015-12-18 18:00:52,792 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:54,317 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:55,691 [5] INFO CustomLogger (null) - [LatencyTracker] LowestLatency: 125
2015-12-18 18:00:55,692 [5] INFO CustomLogger (null) - [LatencyTracker] HighestLatency: 125
2015-12-18 18:00:55,842 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:57,366 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:00:57,540 [5] INFO CustomLogger (null) - [LatencyTracker] AverageLatency: 123
2015-12-18 18:00:58,891 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:01:00,417 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:01:01,941 [5] DEBUG CustomLogger (null) - [IdentifyItemsTask] The item been identified successfully
2015-12-18 18:01:01,943 [5] DEBUG CustomLogger (null) - [CloseBlockingWindows] LokiPoe.Gui.IsLeftPanelShown || LokiPoe.Gui.IsRightPanelShown. Closing them.
2015-12-18 18:01:02,073 [5] ERROR CustomLogger (null) - [Tick] Exception during execution:
Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.MissingMemberException: 'EvaluableItem' object has no attribute 'item'
at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
at IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at _Scripting_(Object[] )
at AdvancedItemFilter.Python.ConditionParserPython.EvaluateCondition(Item i, String cond, RuleType type, Boolean onlyEvaluating) in c:\#INSTALL\POE\EB\EOB CommandBeta\Plugins\AdvancedItemFilter\Python\ConditionParserPython.cs:line 74
at AdvancedItemFilter.MyItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter) in c:\#INSTALL\POE\EB\EOB CommandBeta\Plugins\AdvancedItemFilter\MyItemEvaluator.cs:line 1034
at Loki.Bot.ItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter)
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.?????????????????????????????????????????(Item , Object )
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.????????????????????????????????????????(Item )
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.?????????????????????????????????????????()
at Loki.Bot.Logic.Bots.OldGrindBot.SellTask.d<Z: Yvg#(\\36{BZ7`4mEvJs'.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Loki.Bot.TaskManager.3KCefNN\*y1!dOx}\*1nD\,ocC|\,.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.WX8SD@Ia#TSolnaW\])TIlKBc.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Buddy.Coroutines.Coroutine.RYQEs0MEF'$>_'rBABxHUVJs).`H;3|\,f`<i_L~Y"sg/U {W_8$.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
at Buddy.Coroutines.Coroutine.Resume()
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.Tick()
at Loki.Bot.BotManager.?????????????????????????????????????????(IBot )

I had a similar error. Any ideas?

Find the property with "item.item." remove one of the item. call and you're heaven :)
 

Weird, never happend to me... so it's basically the last tab not being reached ?
 
Can we get something like player.Level? We could make filters for leveling stuff and stash items good for this. Would make gearing fresh chars much easier. I know I could do something like this:
Code:
public int PlayerLevel { get { return Player.Level; } }
And use it as item.PlayerLevel <= 30 but my OCD doesn't allow it.
 
Can we get something like player.Level? We could make filters for leveling stuff and stash items good for this. Would make gearing fresh chars much easier. I know I could do something like this:
Code:
public int PlayerLevel { get { return Player.Level; } }
And use it as item.PlayerLevel <= 30 but my OCD doesn't allow it.

hmmm I can yes :) and without item. ! damn sorcery is good.
 
I believe there was a typo which was fixed in last nights build.

This is working fine for me.

Code:
item.IsRare and item.IsTalisman

By "working" you mean bot picks up rare talismans and sells them?

I've tried to paste this
Code:
  {
    "Enabled": true,
    "Type": 0,
    "Rule": "item.IsRare and item.IsTalisman",
    "ShouldLog": false
  },

and bot sells rare talismans, while i would like to keep them. Tried to change "Type": 0 to "Type": 2 - same result.
I wish there was at least a normal guide for this.
http://puu.sh/jLy2K/d36a0f47da.txt guide in the OP is effing useless, it doesn't even mention how to enable stash/sell/pickup.
 
By "working" you mean bot picks up rare talismans and sells them?

No. By working i mean it picks up rare talismans then stores them into my stash tab i have designated for only talismans.

I've tried to paste this
Code:
  {
    "Enabled": true,
    "Type": 0,
    "Rule": "item.IsRare and item.IsTalisman",
    "ShouldLog": false
  },

and bot sells rare talismans, while i would like to keep them. Tried to change "Type": 0 to "Type": 2 - same result.
I wish there was at least a normal guide for this.
http://puu.sh/jLy2K/d36a0f47da.txt guide in the OP is effing useless, it doesn't even mention how to enable stash/sell/pickup.

First off you shouldnt be trying to edit AIF via notepad. Technically you can, but there is already a really simple GUI set up for adding / removing / editing. You were changing type 0 to type 2 .... but do you what the type numbers actually stand for? Type 0 = Pickup, Type 1 = ID, Type 2 = Keep, Type 3 = Sell

So if you want to continue editing via notepad, you would need 2 rules. One telling the bot to pick up the item (Type 0) and then one telling the bot to keep the item (Type 2).

But again, using the GUI is the best solution. Here is how you would use the GUI for picking up and saving rare talismans:

Settings > Advanced Item Filter > Custom Rules
pXbwSrN.png


In the first blank box under "Create Rules" add your rule "item.IsRare and item.IsTalisman"
The second blank box is a drop down menu. Select "Pickup"
Now click "Create Rule"
Repeat the above but the second time around in the drop down box, select "Keep", then create rule.

You can use the "Validate Rule" button to see if your rule is valid by putting an item in the upper left section of your bags then clicking the button. It will either return true, false, or spit a whole lot of errors at you (thus letting you know the rule isnt valid).

You can go down to the "Rules" area and use the drop down menu to look through all your current rules that you have set up. The "E" checkbox on the left side is a toggle to enable or disable the rule.

Nw1P9dB.png


Make sure you save any changes you make.
 
First off you shouldnt be trying to edit AIF via notepad. Technically you can, but there is already a really simple GUI set up for adding / removing / editing. You were changing type 0 to type 2 .... but do you what the type numbers actually stand for? Type 0 = Pickup, Type 1 = ID, Type 2 = Keep, Type 3 = Sell

I was using notepad++ if it matters. And got it working, after additional tinkering.
And this
Type 1 = ID, Type 2 = Keep, Type 3 = Sell
,
was exactly what i was looking for in the guide. A little clarification that wouldn't hurt anyone.

I didn't find it, so just looked on values for T1 uniques and figured out that "2" must be the "stash" value + they all have another one with Type "0", so it must mean pick + stash. Just wasn't sure which was which.
Your pics are helpful too, thank you.
 
Hi toNyx, i had some weird errors appear for me regarding stashing of currency. Kind of fixed it but i have no idea how. In case you want to take a look it, i attached the log :)
 

Attachments

Hi toNyx, i had some weird errors appear for me regarding stashing of currency. Kind of fixed it but i have no idea how. In case you want to take a look it, i attached the log :)

It's your filters obviously :) check it
 
Code:
item.IsNormal and item.FullName == "Agate Amulet"
item.IsTalisman

Thanks Tony,

For adding the rules, do we actually need to add to pick up, and keep? or if we put it as a keep rule, will that auto pick up the item?
 
Thanks Tony,

For adding the rules, do we actually need to add to pick up, and keep? or if we put it as a keep rule, will that auto pick up the item?


{
"Enabled": true,
"Type": 2,
"Rule": "item.IsNormal and item.FullName == "Agate Amulet"",
"ShouldLog": false
},
{
"Enabled": true,
"Type": 0,
"Rule": "item.IsNormal and item.FullName == "Agate Amulet"",
"ShouldLog": false
}


there you go :)
 
how i put this

{
"Enabled": true,
"Type": 2,
"Rule": "item.IsNormal and item.FullName == "Agate Amulet"",
"ShouldLog": false
},
{
"Enabled": true,
"Type": 0,
"Rule": "item.IsNormal and item.FullName == "Agate Amulet"",
"ShouldLog": false
}

ando how i put for take all talisman?
 
Something very strange is happening, maybe its related to the API changes, not sure.

The bot is switching tabs at supersonic speed and just does that infinitely. This didn't happen before.

Attached a log, to fix it I have to close and reopen EB.
 

Attachments

how i put this

{
"Enabled": true,
"Type": 2,
"Rule": "item.IsNormal and item.FullName == "Agate Amulet"",
"ShouldLog": false
},
{
"Enabled": true,
"Type": 0,
"Rule": "item.IsNormal and item.FullName == "Agate Amulet"",
"ShouldLog": false
}

ando how i put for take all talisman?

go to your .json file, open with notepad. (save it as a backup in case you do something wrong... as i encountered a single "," can ruin the entire thingie)

Ctrl+f and look for "jewel"(your bot picks up rare jewels and stashes them, so we can work on that)
Copy the entire thing =

{
"Enabled": true,
"Type": 2,
"Rule": "item.IsRare and item.IsJewel",
"ShouldLog": false
},

and paste it beneath it.(careful with the punctuation... make them look the same :D)

now replace the "Jewel" with "Talisman".

go again Ctrl+f and you will see 2 other thingies way down, and do the same thing :)

At least that's how i did it, and it works.
 
Status
Not open for further replies.
Back
Top