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.
Sadly AIF still count's though every tab at every h/o visit. :(
It consumes a lot of time and I fear that you can get flagged really fast because of that.
 
Sadly AIF still count's though every tab at every h/o visit. :(
It consumes a lot of time and I fear that you can get flagged really fast because of that.

CommunityLib now offers users to specify the tabs it should cache, consider limiting them to atleast tabs holding currency, recipe items (gems & gear), the rest is optional.
You can enter them into CommunityLib's GUI, 1 per line

You cannot specify Public/Remove-Only tabs, CommunityLib will log an error if it encounters that situation

Feel free to join us on discord ! we love talking Keepo
 
Last edited:
Thanks for latest update! New comlib helps alot with not rotating trough all tabs each run.

But,

I have a problem with the bot entering a endless loop after completing a Chaos recpie. After stashing the 2 chaos, it tries to complete another full set (which I only have some items for, not all). It tries to search for the remaining items but instead loops between tabs.

Setup:
Clean install with newest AIF+Comlib.
I have 60+ tabs
I use premium stashtabs with names (not public).
I use Currency-stashtab for normal currency.
I've set the chaos recpie to use a specific tab and count items on start/stop.
Not using blacklist of tabs (maybe I should?)
Amount of pieces to keep is set to default.
CommunityLib is set the cache the Currency and Chaos recpie tabs.

Full log also attached.View attachment 201299

Code:
Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at AdvancedItemFilter.Tasks.RecipeTask.<Logic>d__15.MoveNext() in C:\Users\xxx\Downloads\Pencil\3rdParty\_CONFIGS_\Default\AdvancedItemFilter\Content\Tasks\RecipeTask.cs:line 144
--- 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.yG}fh@`\,;\./v!E6@2E{5J"b4#.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`1.GetResult()
   at OldGrindBot.OldGrindBot.<MainCoroutine>d__28.MoveNext() in C:\Users\xxx\Downloads\Pencil\3rdParty\_CONFIGS_\Default\OldGrindBot\Content\BasicGrindBot.cs:line 1139
--- 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.Bx_<\[ktk6$\]vik7=BEEt8>UF!.VBkdbP8>\.>B~cTRvbG4e)>(x\..MoveNext()
   --- End of inner exception stack trace ---
   at Buddy.Coroutines.Coroutine.????????????????????????????????????????(Boolean )
   at Buddy.Coroutines.Coroutine.?????????????????????????????????????????(Boolean )
   at Buddy.Coroutines.Coroutine.Resume()
   at OldGrindBot.OldGrindBot.Tick() in C:\Users\xxx\Downloads\Pencil\3rdParty\_CONFIGS_\Default\OldGrindBot\Content\BasicGrindBot.cs:line 386
   at Loki.Bot.BotManager.?????????????????????????????????????????(IBot )

Thanks!

Will take a look later today ;) Thanks for the report.
 
Each time i create tules in custom for Perandus coin, i get vot stops and i have to close it and restart. If i dont remove it in created rule , it auto stops. any other way in notepad i can add? i did open highend i just need a code to add, anyone willing to type it up for Perandus coin?
 
Each time i create tules in custom for Perandus coin, i get vot stops and i have to close it and restart. If i dont remove it in created rule , it auto stops. any other way in notepad i can add? i did open highend i just need a code to add, anyone willing to type it up for Perandus coin?

You know that I added logging in the bot? I still didnt finish my sorcery year in pudlard so. Can't warp to your home to fix
 
You know that I added logging in the bot? I still didnt finish my sorcery year in pudlard so. Can't warp to your home to fix

Code:
Now reloading the BaseItemTypes cache.
[CustomItemRules] The rule "Perandus Coin" has returned an error.
[CustomItemRules] Please consider pasting this part of the log on the following thread : [url]http://bit.ly/AIFReloaded[/url]
[CustomItemRules] The error is : Microsoft.Scripting.SyntaxErrorException: unexpected token 'Coin'
   at IronPython.Runtime.ThrowingErrorSink.Add(SourceUnit sourceUnit, String message, SourceSpan span, Int32 errorCode, Severity severity)
   at IronPython.Compiler.Parser.ReportSyntaxError(Int32 start, Int32 end, String message, Int32 errorCode)
   at IronPython.Compiler.Parser.ReportSyntaxError(Token t, IndexSpan span, Int32 errorCode, Boolean allowIncomplete)
   at IronPython.Compiler.Parser.ReportSyntaxError(TokenWithSpan t, Int32 errorCode)
   at IronPython.Compiler.Parser.EatEndOfInput()
   at IronPython.Compiler.Parser.ParseTestListAsExpression()
   at IronPython.Compiler.Parser.ParseTopExpression()
   at IronPython.Runtime.PythonContext.ParseAndBindAst(CompilerContext context)
   at IronPython.Runtime.PythonContext.CompilePythonCode(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink)
   at IronPython.Runtime.FunctionCode.FromSourceUnit(SourceUnit sourceUnit, PythonCompilerOptions options, Boolean register)
   at IronPython.Modules.Builtin.eval(CodeContext context, String expression, PythonDictionary globals, Object locals)
   at IronPython.Modules.Builtin.eval(CodeContext context, String expression)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`3.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   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:\Da\3rdParty\_CONFIGS_\Default\AdvancedItemFilter\Content\Python\ConditionParserPython.cs:line 78
[CustomItemRules] To avoid any further issues, bot will stop now, plaese verify your file.
[Stop] Now force stopping the BotThread.
[Stop] BotThread.Abort() failed.System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort()
   at Loki.Bot.BotManager.Stop(Boolean force)

[Tick] Exception during execution:System.Threading.ThreadAbortException: Thread was being aborted.
   at AdvancedItemFilter.Python.ConditionParserPython.EvaluateCondition(Item i, String cond, RuleType type, Boolean onlyEvaluating) in C:\Da\3rdParty\_CONFIGS_\Default\AdvancedItemFilter\Content\Python\ConditionParserPython.cs:line 96
   at AdvancedItemFilter.MyItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter) in C:\Da\3rdParty\_CONFIGS_\Default\AdvancedItemFilter\Content\MyItemEvaluator.cs:line 400
   at Loki.Bot.ItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter)
   at OldGrindBot.AreaStateCache.OnTick() in C:\Da\3rdParty\_CONFIGS_\Default\OldGrindBot\Content\v3.cs:line 681
   at OldGrindBot.AreaStateCache.Tick() in C:\Da\3rdParty\_CONFIGS_\Default\OldGrindBot\Content\v3.cs:line 554
   at OldGrindBot.OldGrindBot.Tick() in C:\Da\3rdParty\_CONFIGS_\Default\OldGrindBot\Content\BasicGrindBot.cs:line 298
   at Loki.Bot.BotManager.********‪*‏‎​*****‫‎****​‬‫‪*(IBot )

Never mind, found answer in highend loot threat. ty
 
Last edited:
New version is up, should fix most of the errors.

@Leekhoa01 be sure to insert the tabs that needs to be cached into ComunityLib settings (1 per line) like currency tabs and such
 
Sadly I'm not intelligent enough to understand how to add a custom filter to my existing one. I'm confused by the "type" and the number associated with it. What is that?

I want to add Sorcerer Boots to my existing filter (white ones) - what to do?


"Enabled": true,
"Type": ???,
"Rule": "item.IsNormal and item.FullName == "Sorcerer Boots"",
"ShouldLog": false

Is it ok like this? What is Type? And how to find out which item is which type?^^

Any help is appreciated, thanks in advance!
 
Sadly I'm not intelligent enough to understand how to add a custom filter to my existing one. I'm confused by the "type" and the number associated with it. What is that?

I want to add Sorcerer Boots to my existing filter (white ones) - what to do?


"Enabled": true,
"Type": ???,
"Rule": "item.IsNormal and item.FullName == "Sorcerer Boots"",
"ShouldLog": false

Is it ok like this? What is Type? And how to find out which item is which type?^^

Any help is appreciated, thanks in advance!

I create a wonderful GUI to deal with those, and people edit the file. I quit.

the rule is good, tho "Sorcerer Boots" if you edit the file.

Type is 0 Pickup, 1 Id and so on... as in the GUI.
 
i create a wonderful gui to deal with those, and people edit the file. I quit.

The rule is good, tho "sorcerer boots" if you edit the file.

Type is 0 pickup, 1 id and so on... As in the gui.

:d :d :d :d
 
If you are using StashBuddy for chancing, you don't need to add the rule to AdvancedItemFilter, just add the Sorcerer Boots to the chancing table.
 
Thanks for the new update toNyX! It solved with problems with the Chaos recipe. Much appreciated!
 
Problem with custom rule file.

The plugin logs:
[RulesManager] File successfully saved at location "C:\Users\User\Desktop\Unicorns\exilebuddy static\AIF.json"

But the content of the json file is only the word "null". No rules are saved.

Edit: Creating the json file manually with a simple rule, then loading it via the plugin settings then save it via plugin settings works. So starting from scratch from the plugin settings doesn't work apparently.
 
Last edited:
Problem with custom rule file.

The plugin logs:
[RulesManager] File successfully saved at location "C:\Users\User\Desktop\Unicorns\exilebuddy static\AIF.json"

But the content of the json file is only the word "null". No rules are saved.

Edit: Creating the json file manually with a simple rule, then loading it via the plugin settings then save it via plugin settings works. So starting from scratch from the plugin settings doesn't work apparently.

hmmmm will take a look into this but it seems weird lol
 
Status
Not open for further replies.
Back
Top