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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Where do I go to edit GoToFirstTab Coroutine?

Klacid

Member
Joined
May 29, 2014
Messages
173
It's the only thing keeping my bots from being completely autonomous, I need some help good sirs. :c

I basically need more attempts and less time passed between each attempt.
 
You can't, you have to make your own.
That coroutine is not fully exposed, because the api needs to work for everyone, and not just you.

Edit, How is it the only thing keeping your bot from being autonomous.. that does not make sense. The bot IS autonomous, of you are doing it correctly.
 
You can't, you have to make your own.
That coroutine is not fully exposed, because the api needs to work for everyone, and not just you.

Edit, How is it the only thing keeping your bot from being autonomous.. that does not make sense. The bot IS autonomous, of you are doing it correctly.

I get some lag every now and then and stashing isn't quite as responsive during those small intervals since it spams left arrow, I believe. Since the stash doesn't respond quickly it errors out and waits for another attempt, since I have up to 28 stash tabs in between depending on what was last stored it could land between stash tabs 2-29 and run out of attempts before it hits first stash tab, which means the bot stops itself completely afterwards.

What I want to do is to edit the amount of attempts to say 10, so that it could fail once every 3 stash movements on average and still get to first tab before stopping on me and waiting for a resume. Likewise, 30 seconds is too long a wait for something that inevitably happens to my client and takes less than 2 seconds to resolve itself, so I could set it about there so that there isn't so much downtime between attempts. I have high latency, not low FPS so the only way to resolve it on my end without editing the bot is by getting faster internet.

The bot is autonomous but needs babysitting on my end currently because when the GoToFirstTab.Coroutine runs out of attempts I have to manually restart it.
 
Last edited:
I get some lag every now and then and stashing isn't quite as responsive during those small intervals since it spams left arrow, I believe. Since the stash doesn't respond quickly it errors out and waits for another attempt, since I have up to 28 stash tabs in between depending on what was last stored it could land between stash tabs 2-29 and run out of attempts before it hits first stash tab, which means the bot stops itself completely afterwards.

What I want to do is to edit the amount of attempts to say 10, so that it could fail once every 3 stash movements on average and still get to first tab before stopping on me and waiting for a resume. Likewise, 30 seconds is too long a wait for something that inevitably happens to my client and takes less than 2 seconds to resolve itself, so I could set it about there so that there isn't so much downtime between attempts. I have high latency, not low FPS so the only way to resolve it on my end without editing the bot is by getting faster internet.

The bot is autonomous but needs babysitting on my end currently because when the GoToFirstTab.Coroutine runs out of attempts I have to manually restart it.
I'm at work so I skimmed through this.
What you want to do is,
Things you are saving, add it to the end of the tabs, things you are processing add it to the beggining of your tabs.
Inside BasicGrindBot, three's an option called Max Stash Tabs, set that to like whatever amount of tabs you are processing.
There's really no reason to be checking all tabs, unless you are running my sorting plugin ( which isn't public ), or a custom one, where you need to either ask the maker to add blacklist tabs and somehow optimize this.
If you are lagging, try a different gateway, if that cannot be resolved. The default coroutine handles lag and errors very, very efficiently.
Since you say you lag, all the more reason not to do things faster, because you probability or getting errors due to lag greatly increases.
The way the game works, is the info is loaded on each tab change. So, if you are lagging, you will need to wait for the information (memory) to be valid, which is what the delays in the coroutine does.
I concur with your faster internet strategy, but sometimes that's not feasible.
If you can pm me or link me the error log of when this happens, and/or the code you are working on, I'll be more then glad to help. As I've been through this problem, so have made a "faster" method, but still prefer the default coroutine, because it does all the necessary dirty work to make sure things don't error.
 
I'm at work so I skimmed through this.
What you want to do is,
Things you are saving, add it to the end of the tabs, things you are processing add it to the beggining of your tabs.
Inside BasicGrindBot, three's an option called Max Stash Tabs, set that to like whatever amount of tabs you are processing.
There's really no reason to be checking all tabs, unless you are running my sorting plugin ( which isn't public ), or a custom one, where you need to either ask the maker to add blacklist tabs and somehow optimize this.
If you are lagging, try a different gateway, if that cannot be resolved. The default coroutine handles lag and errors very, very efficiently.
Since you say you lag, all the more reason not to do things faster, because you probability or getting errors due to lag greatly increases.
The way the game works, is the info is loaded on each tab change. So, if you are lagging, you will need to wait for the information (memory) to be valid, which is what the delays in the coroutine does.
I concur with your faster internet strategy, but sometimes that's not feasible.
If you can pm me or link me the error log of when this happens, and/or the code you are working on, I'll be more then glad to help. As I've been through this problem, so have made a "faster" method, but still prefer the default coroutine, because it does all the necessary dirty work to make sure things don't error.


Thanks, I'll try the processing method though it might not work still since I process a bunch of tabs. I use AIF with lots of currency tabs and I leave about 5 stashes in between for Uniques and Quality Gems since I don't check it for days at a time; my job requires me to leave my home regularly, I just resume the bots remotely using Teamviewer but it's too awkward to actually sort my Uniques with.

I'm not coding anything, just looking if I could edit the Coroutine itself, unfortunate that I can't.

My lag isn't necessarily bad. In fact, I don't really lag in the traditional sense, just that when the Coroutine moves through the stash sometimes a tab will take a little more than half a second to load its contents which already errors out the Coroutine. Just increasing the wait limit between presses a little bit when moving through tabs would help.
 
Thanks, I'll try the processing method though it might not work still since I process a bunch of tabs. I use AIF with lots of currency tabs and I leave about 5 stashes in between for Uniques and Quality Gems since I don't check it for days at a time; my job requires me to leave my home regularly, I just resume the bots remotely using Teamviewer but it's too awkward to actually sort my Uniques with.

I'm not coding anything, just looking if I could edit the Coroutine itself, unfortunate that I can't.

My lag isn't necessarily bad. In fact, I don't really lag in the traditional sense, just that when the Coroutine moves through the stash sometimes a tab will take a little more than half a second to load its contents which already errors out the Coroutine. Just increasing the wait limit between presses a little bit when moving through tabs would help.
That's weird, with Pushedx's help, tony and I got rid of that issue by doing a

Code:
while (Stash.CurrentTabInventory == null || !Stash.CurrentTabInventory.IsValid)
                    await Coroutine.Sleep(20);

Which does a wait, until we have valid memory, which means stash is loaded.
This is in AIF so that's a weird issue. We had similar issues, but the above code fixed it. If you can get me a log I'll check it out.
I'm using teamviewer too to access my 10 pcs at home while I'm at work lol, it's better then chrome remote desktop IMHO due to it's ability to choose which monitor.
 
That's weird, with Pushedx's help, tony and I got rid of that issue by doing a

Code:
while (Stash.CurrentTabInventory == null || !Stash.CurrentTabInventory.IsValid)
                    await Coroutine.Sleep(20);

Which does a wait, until we have valid memory, which means stash is loaded.
This is in AIF so that's a weird issue. We had similar issues, but the above code fixed it. If you can get me a log I'll check it out.
I'm using teamviewer too to access my 10 pcs at home while I'm at work lol, it's better then chrome remote desktop IMHO due to it's ability to choose which monitor.


Yeah, TeamViewer is great but I always wait to get home before I actually sort things :P.

Actually just had the bot break on me by GoToFirstTab again so I got a log, but it looks like it didn't break the usual way of stopping while on the way to the first tab after stashing but rather while withdrawing.

Apparently the file is too large to be uploaded so I'll just post the part where it breaks.

2015-07-04 18:56:57,310 [54] INFO CustomLogger (null) - [Start] Now creating the BotThread.
2015-07-04 18:56:57,332 [30] DEBUG CustomLogger (null) - [BasicGrindBot] Start
2015-07-04 18:56:57,332 [30] DEBUG CustomLogger (null) - [Start] PlayerMover.Instance: Loki.Bot.v3.DefaultPlayerMover.
2015-07-04 18:56:57,333 [30] DEBUG CustomLogger (null) - [Start] MsBetweenTicks: 10.
2015-07-04 18:56:57,333 [30] DEBUG CustomLogger (null) - [Start] InputEventMsDelay: 0.
2015-07-04 18:56:57,333 [30] DEBUG CustomLogger (null) - [Start] LowFpsMode: False.
2015-07-04 18:56:57,334 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ResurrectTask] This task handles resurrection..
2015-07-04 18:56:57,334 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ClearCursorTask] This task places any item left on the cursor into the inventory..
2015-07-04 18:56:57,334 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [AssignMoveSkillTask] A task to handle assigning the Move skill if it's not already on the skill bar..
2015-07-04 18:56:57,335 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [HandleBlockingChestsTask] This task will handle breaking any blocking chests that interfere with movement..
2015-07-04 18:56:57,335 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [HandleDoorsTask] This task handles opening doors..
2015-07-04 18:56:57,335 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [CombatTask (Leash 50)] This task executes routine logic for combat..
2015-07-04 18:56:57,336 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TownRunTask] A task to go back to town during the middle of a bot run..
2015-07-04 18:56:57,336 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [LootItemTask (Leash 50)] This task handles looting items..
2015-07-04 18:56:57,336 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [OpenChestTask (Leash 50)] This task handles opening chests..
2015-07-04 18:56:57,336 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [LootItemTask (Leash -1)] This task handles looting items..
2015-07-04 18:56:57,337 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [MergeInventoryTask] A task to handle merging the inventory into full stacks..
2015-07-04 18:56:57,337 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [IdTask] A task to identify items in inventory..
2015-07-04 18:56:57,337 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [SellTask] A task to vendor items in the inventory..
2015-07-04 18:56:57,337 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [StashTask] This task will stash all applicable items in town..
2015-07-04 18:56:57,338 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [WithdrawTask] A task to withdraw items from stash when we are in town..
2015-07-04 18:56:57,338 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [HandleInventoryItemsTask] A task to manage inventory items that are not stashed..
2015-07-04 18:56:57,338 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [SortInventoryTask] A task to sort the main inventory by moving items towards the top left corner..
2015-07-04 18:56:57,338 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ReturnToGrindZoneTask] This task will return the bot to the previous grind zone after a town run..
2015-07-04 18:56:57,338 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TagWaypointTask] This task will tag a waypoint if it is not already unlocked..
2015-07-04 18:56:57,339 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [UseLooseCandleTask] This task will use the Loose Candle when the grind zone is set to The Archives..
2015-07-04 18:56:57,339 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [UnblockCorruptedAreaTransitionTask] This task will use the Loose Grate and Sarcophagus covers for corrupted area transitions..
2015-07-04 18:56:57,339 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TakeCorruptedAreaTask] A task to take corrupted areas..
2015-07-04 18:56:57,339 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TravelToGrindZoneTask] This task will travel to the grind zone configured..
2015-07-04 18:56:57,339 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TravelThroughBossAreasTask-BossFarm] This task will travel though the local area transitions in boss zones..
2015-07-04 18:56:57,340 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [OpenChestTask (Leash -1)] This task handles opening chests..
2015-07-04 18:56:57,340 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [CombatTask (Leash -1)] This task executes routine logic for combat..
2015-07-04 18:56:57,341 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TravelThroughBossAreasTask-PassThrough] This task will travel though the local area transitions in boss zones..
2015-07-04 18:56:57,341 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ExplorationCompleteTask (Early)] A task to execute exploration complete logic..
2015-07-04 18:56:57,341 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ExploreTask] This task handles exploring an area..
2015-07-04 18:56:57,342 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ExplorationCompleteTask] A task to execute exploration complete logic..
2015-07-04 18:56:57,342 [30] DEBUG CustomLogger (null) - [AddAtBack] Now adding [FallbackTask] This task is the last task executed. It should not execute..
2015-07-04 18:56:57,342 [30] DEBUG CustomLogger (null) - [AdvancedItemFilter] Start
2015-07-04 18:56:57,342 [30] DEBUG CustomLogger (null) - [Replace] Now replacing [IdentifyItemsTask].
2015-07-04 18:56:57,342 [30] DEBUG CustomLogger (null) - [AddAtFront] Now adding [CheckForRecipeItemsTask] Record recipe items at start of the bot only, never after.
2015-07-04 18:56:57,343 [30] DEBUG CustomLogger (null) - [AddTask] CheckForRecipeItemsTask Sucessfully added at front of the list
2015-07-04 18:56:57,343 [30] DEBUG CustomLogger (null) - [AddTask] RecipeWithdrawTask Sucessfully added after CheckForRecipeItemsTask
2015-07-04 18:56:57,343 [30] DEBUG CustomLogger (null) - [AddTask] RecipeSellTask Sucessfully added after RecipeWithdrawTask
2015-07-04 18:56:57,343 [30] DEBUG CustomLogger (null) - [AddTask] SignalRecipeExecutionTask Sucessfully added after HandleInventoryItemsTask
2015-07-04 18:56:57,344 [30] DEBUG CustomLogger (null) - [AddTask] StashToSpecificTabTask Sucessfully added before StashTask
2015-07-04 18:56:57,344 [30] DEBUG CustomLogger (null) - [Alerter] Start
2015-07-04 18:56:57,346 [30] DEBUG CustomLogger (null) - [Alerter] Next masters will be alerted:
2015-07-04 18:56:57,346 [30] DEBUG CustomLogger (null) - Catarina, Master of the Dead
2015-07-04 18:56:57,347 [30] DEBUG CustomLogger (null) - Elreon, Loremaster
2015-07-04 18:56:57,347 [30] DEBUG CustomLogger (null) - Haku, Armourmaster
2015-07-04 18:56:57,347 [30] DEBUG CustomLogger (null) - Tora, Master of the Hunt
2015-07-04 18:56:57,347 [30] DEBUG CustomLogger (null) - Vagan, Weaponmaster
2015-07-04 18:56:57,347 [30] DEBUG CustomLogger (null) - Vorici, Master Assassin
2015-07-04 18:56:57,348 [30] DEBUG CustomLogger (null) - Zana, Master Cartographer
2015-07-04 18:56:57,348 [30] INFO CustomLogger (null) - [ChanceItem] Starting
2015-07-04 18:56:57,348 [30] DEBUG CustomLogger (null) - [AddAtFront] Now adding [DoChanceItemTask] DoChanceItemTask.
2015-07-04 18:56:57,348 [30] DEBUG CustomLogger (null) - [FlaskHelper] Start
2015-07-04 18:56:57,349 [30] DEBUG CustomLogger (null) - [GemLeveler] Start
2015-07-04 18:56:57,349 [30] DEBUG CustomLogger (null) - [GemLeveler] Now resetting task state.
2015-07-04 18:56:57,349 [30] DEBUG CustomLogger (null) - [MapRunner] Start
2015-07-04 18:56:57,349 [30] DEBUG CustomLogger (null) - [Replace] Now replacing [MapExplorationTask].
2015-07-04 18:56:57,350 [30] DEBUG CustomLogger (null) - [Replace] Now replacing [MapExplorationCompleteTask].
2015-07-04 18:56:57,350 [30] DEBUG CustomLogger (null) - [Remove] Now removing [TagWaypointTask].
2015-07-04 18:56:57,351 [30] DEBUG CustomLogger (null) - [Remove] Now removing [ExplorationCompleteTask (Early)].
2015-07-04 18:56:57,351 [30] DEBUG CustomLogger (null) - [Remove] Now removing [UnblockCorruptedAreaTransitionTask].
2015-07-04 18:56:57,351 [30] DEBUG CustomLogger (null) - [Remove] Now removing [TakeCorruptedAreaTask].
2015-07-04 18:56:57,351 [30] DEBUG CustomLogger (null) - [Remove] Now removing [TravelThroughBossAreasTask-BossFarm].
2015-07-04 18:56:57,352 [30] DEBUG CustomLogger (null) - [Remove] Now removing [TravelThroughBossAreasTask-PassThrough].
2015-07-04 18:56:57,352 [30] DEBUG CustomLogger (null) - [Remove] Now removing [ReturnToGrindZoneTask].
2015-07-04 18:56:57,352 [30] DEBUG CustomLogger (null) - [Remove] Now removing [UseLooseCandleTask].
2015-07-04 18:56:57,352 [30] DEBUG CustomLogger (null) - [Remove] Now removing [TravelToGrindZoneTask].
2015-07-04 18:56:57,352 [30] DEBUG CustomLogger (null) - [Scheduler] Start
2015-07-04 18:56:57,353 [30] INFO CustomLogger (null) - [Scheduler] BotTimeLimit: 03:39:37.1350000
2015-07-04 18:56:57,353 [30] INFO CustomLogger (null) - [Scheduler] BotIdleTimeLimit: 00:34:52.8100000
2015-07-04 18:56:57,353 [30] DEBUG CustomLogger (null) - [StuckDetection] Start
2015-07-04 18:56:57,353 [30] DEBUG CustomLogger (null) - [Totemizer] Start
2015-07-04 18:56:57,354 [30] DEBUG CustomLogger (null) - [ChanceItems] Now resetting task state.
2015-07-04 18:56:57,354 [30] DEBUG CustomLogger (null) - [RecipeWithdrawTask] Now resetting task state.
2015-07-04 18:56:57,354 [30] DEBUG CustomLogger (null) - [RecipeSellTask] Now resetting task state.
2015-07-04 18:56:57,354 [30] DEBUG CustomLogger (null) - [HandleBlockingChestsTask] Now resetting task state.
2015-07-04 18:56:57,355 [30] DEBUG CustomLogger (null) - [SellTask] Now resetting task state.
2015-07-04 18:56:57,355 [30] DEBUG CustomLogger (null) - [WithdrawTask] Now resetting task state.
2015-07-04 18:56:57,355 [30] DEBUG CustomLogger (null) - [Start] The plugin AdvancedItemFilter is enabled.
2015-07-04 18:56:57,355 [30] DEBUG CustomLogger (null) - [Start] The plugin Alerter is enabled.
2015-07-04 18:56:57,356 [30] DEBUG CustomLogger (null) - [Start] The plugin ChanceItems is enabled.
2015-07-04 18:56:57,356 [30] DEBUG CustomLogger (null) - [Start] The plugin FlaskHelper is enabled.
2015-07-04 18:56:57,356 [30] DEBUG CustomLogger (null) - [Start] The plugin GemLeveler is enabled.
2015-07-04 18:56:57,356 [30] DEBUG CustomLogger (null) - [Start] The plugin MapRunner is enabled.
2015-07-04 18:56:57,356 [30] DEBUG CustomLogger (null) - [Start] The plugin Scheduler is enabled.
2015-07-04 18:56:57,357 [30] DEBUG CustomLogger (null) - [Start] The plugin StuckDetection is enabled.
2015-07-04 18:56:57,357 [30] DEBUG CustomLogger (null) - [Start] PlayerMover.Instance: Loki.Bot.v3.DefaultPlayerMover.
2015-07-04 18:56:57,373 [30] DEBUG CustomLogger (null) - [StashToSpecificTabTask] Found specific items in inventory, stashing them in given tabs :
2015-07-04 18:56:57,375 [30] DEBUG CustomLogger (null) - [ARRAYDEBUG] Array contains 0 item(s)
2015-07-04 18:56:57,376 [30] DEBUG CustomLogger (null) - [ARRAYDEBUG] Array contains 0 item(s)
2015-07-04 18:56:57,376 [30] DEBUG CustomLogger (null) - [ARRAYDEBUG] Array contains 0 item(s)
2015-07-04 18:56:57,376 [30] DEBUG CustomLogger (null) - [ARRAYDEBUG] Array contains 0 item(s)
2015-07-04 18:56:57,377 [30] DEBUG CustomLogger (null) - [StashToSpecificTabTask][TabName : Jews, Fuse, Chromes] - Chromatic Orb x1
2015-07-04 18:56:57,378 [30] DEBUG CustomLogger (null) - [FastMoveToStash] Fast moving Chromatic Orb from {0, 1}.
2015-07-04 18:56:57,431 [30] DEBUG CustomLogger (null) - [FastMoveToStash] Waiting for fast move.
2015-07-04 18:56:57,648 [30] DEBUG CustomLogger (null) - [FastMoveToStash] Waiting for fast move.
2015-07-04 18:56:57,866 [30] DEBUG CustomLogger (null) - [StashToSpecificTabTask] Successfully moved Chromatic Orb to the tab called "Jews, Fuse, Chromes"
2015-07-04 18:56:57,886 [30] INFO CustomLogger (null) - [WithdrawTask] We do not need to withdraw any currency items. Skipping this task until an area change or restart.
2015-07-04 18:56:57,887 [30] DEBUG CustomLogger (null) - [OpenInventoryPanel]
2015-07-04 18:57:00,196 [30] DEBUG CustomLogger (null) - [PlaceInventoryItemsHelper] Attempting to place the item Alteration Shard at (4, 5).
2015-07-04 18:57:02,033 [30] INFO CustomLogger (null) - Chaos Set Complete
2015-07-04 18:57:02,034 [30] DEBUG CustomLogger (null) - [ChaosSet] Helms: [ 3 ] (Max)
2015-07-04 18:57:02,035 [30] DEBUG CustomLogger (null) - [ChaosSet] Body: [ 2 ] (Max)
2015-07-04 18:57:02,035 [30] DEBUG CustomLogger (null) - [ChaosSet] Gloves: [ 3 ] (Max)
2015-07-04 18:57:02,036 [30] DEBUG CustomLogger (null) - [ChaosSet] Boots: [ 3 ] (Max)
2015-07-04 18:57:02,036 [30] DEBUG CustomLogger (null) - [ChaosSet] Belts: [ 8 ]
2015-07-04 18:57:02,036 [30] DEBUG CustomLogger (null) - [ChaosSet] Two Hand Weapons: [ 2 ] (Max)
2015-07-04 18:57:02,037 [30] DEBUG CustomLogger (null) - [ChaosSet] Rings: [ 2 ]
2015-07-04 18:57:02,037 [30] DEBUG CustomLogger (null) - [ChanceSet] Amulets: [ 6 ]
2015-07-04 18:57:02,038 [30] DEBUG CustomLogger (null) - [ChaosSet] Is Ready For Selling = True
2015-07-04 18:57:02,038 [30] INFO CustomLogger (null) - [SignalRecipeExecutionTask][DEBUG] Do we have a Chaos set to sell ? True
2015-07-04 18:57:02,039 [30] INFO CustomLogger (null) - [SignalRecipeExecutionTask] Now setting ExecuteSellingRecipesLogic = true.
2015-07-04 18:57:03,080 [30] ERROR CustomLogger (null) - [RecipeWithdrawTask] WithdrawItemsCoroutine returned GoToFirstTabFailed.
2015-07-04 18:57:03,081 [30] INFO CustomLogger (null) - [Stop] Now requesting the BotThread to stop.
2015-07-04 18:57:03,082 [30] DEBUG CustomLogger (null) - [CloseBlockingWindows] LokiPoe.Gui.IsLeftPanelShown || LokiPoe.Gui.IsRightPanelShown. Closing them.
2015-07-04 18:57:03,109 [30] DEBUG CustomLogger (null) - [BasicGrindBot] OnStop
2015-07-04 18:57:03,110 [30] DEBUG CustomLogger (null) - [AdvancedItemFilter] Stop
2015-07-04 18:57:03,111 [30] DEBUG CustomLogger (null) - [Alerter] Stop
2015-07-04 18:57:03,111 [30] DEBUG CustomLogger (null) - [ChanceItems] Stoping
2015-07-04 18:57:03,111 [30] DEBUG CustomLogger (null) - [FlaskHelper] Stop
2015-07-04 18:57:03,112 [30] DEBUG CustomLogger (null) - [GemLeveler] Stop
2015-07-04 18:57:03,112 [30] DEBUG CustomLogger (null) - [MapRunner] Stop
2015-07-04 18:57:03,113 [30] DEBUG CustomLogger (null) - [Scheduler] Stop
2015-07-04 18:57:03,113 [30] DEBUG CustomLogger (null) - [StuckDetection] Stop
2015-07-04 18:57:03,113 [30] DEBUG CustomLogger (null) - [Totemizer] Stop
2015-07-05 01:42:53,032 [1] INFO CustomLogger (null) - [Start] Now creating the BotThread.
2015-07-05 01:42:53,053 [55] DEBUG CustomLogger (null) - [BasicGrindBot] Start
2015-07-05 01:42:53,054 [55] DEBUG CustomLogger (null) - [Start] PlayerMover.Instance: Loki.Bot.v3.DefaultPlayerMover.
2015-07-05 01:42:53,055 [55] DEBUG CustomLogger (null) - [Start] MsBetweenTicks: 10.
2015-07-05 01:42:53,055 [55] DEBUG CustomLogger (null) - [Start] InputEventMsDelay: 0.
2015-07-05 01:42:53,056 [55] DEBUG CustomLogger (null) - [Start] LowFpsMode: False.
2015-07-05 01:42:53,056 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ResurrectTask] This task handles resurrection..
2015-07-05 01:42:53,057 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ClearCursorTask] This task places any item left on the cursor into the inventory..
2015-07-05 01:42:53,057 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [AssignMoveSkillTask] A task to handle assigning the Move skill if it's not already on the skill bar..
2015-07-05 01:42:53,058 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [HandleBlockingChestsTask] This task will handle breaking any blocking chests that interfere with movement..
2015-07-05 01:42:53,058 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [HandleDoorsTask] This task handles opening doors..
2015-07-05 01:42:53,058 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [CombatTask (Leash 50)] This task executes routine logic for combat..
2015-07-05 01:42:53,059 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TownRunTask] A task to go back to town during the middle of a bot run..
2015-07-05 01:42:53,059 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [LootItemTask (Leash 50)] This task handles looting items..
2015-07-05 01:42:53,059 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [OpenChestTask (Leash 50)] This task handles opening chests..
2015-07-05 01:42:53,060 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [LootItemTask (Leash -1)] This task handles looting items..
2015-07-05 01:42:53,060 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [MergeInventoryTask] A task to handle merging the inventory into full stacks..
2015-07-05 01:42:53,060 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [IdTask] A task to identify items in inventory..
2015-07-05 01:42:53,060 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [SellTask] A task to vendor items in the inventory..
2015-07-05 01:42:53,060 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [StashTask] This task will stash all applicable items in town..
2015-07-05 01:42:53,061 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [WithdrawTask] A task to withdraw items from stash when we are in town..
2015-07-05 01:42:53,061 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [HandleInventoryItemsTask] A task to manage inventory items that are not stashed..
2015-07-05 01:42:53,061 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [SortInventoryTask] A task to sort the main inventory by moving items towards the top left corner..
2015-07-05 01:42:53,061 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ReturnToGrindZoneTask] This task will return the bot to the previous grind zone after a town run..
2015-07-05 01:42:53,062 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TagWaypointTask] This task will tag a waypoint if it is not already unlocked..
2015-07-05 01:42:53,062 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [UseLooseCandleTask] This task will use the Loose Candle when the grind zone is set to The Archives..
2015-07-05 01:42:53,062 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [UnblockCorruptedAreaTransitionTask] This task will use the Loose Grate and Sarcophagus covers for corrupted area transitions..
2015-07-05 01:42:53,062 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TakeCorruptedAreaTask] A task to take corrupted areas..
2015-07-05 01:42:53,063 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TravelToGrindZoneTask] This task will travel to the grind zone configured..
2015-07-05 01:42:53,063 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TravelThroughBossAreasTask-BossFarm] This task will travel though the local area transitions in boss zones..
2015-07-05 01:42:53,063 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [OpenChestTask (Leash -1)] This task handles opening chests..
2015-07-05 01:42:53,063 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [CombatTask (Leash -1)] This task executes routine logic for combat..
2015-07-05 01:42:53,063 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [TravelThroughBossAreasTask-PassThrough] This task will travel though the local area transitions in boss zones..
2015-07-05 01:42:53,064 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ExplorationCompleteTask (Early)] A task to execute exploration complete logic..
2015-07-05 01:42:53,064 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ExploreTask] This task handles exploring an area..
2015-07-05 01:42:53,064 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [ExplorationCompleteTask] A task to execute exploration complete logic..
2015-07-05 01:42:53,065 [55] DEBUG CustomLogger (null) - [AddAtBack] Now adding [FallbackTask] This task is the last task executed. It should not execute..
2015-07-05 01:42:53,065 [55] DEBUG CustomLogger (null) - [AdvancedItemFilter] Start
2015-07-05 01:42:53,065 [55] DEBUG CustomLogger (null) - [Replace] Now replacing [IdentifyItemsTask].
2015-07-05 01:42:53,065 [55] DEBUG CustomLogger (null) - [AddAtFront] Now adding [CheckForRecipeItemsTask] Record recipe items at start of the bot only, never after.
2015-07-05 01:42:53,065 [55] DEBUG CustomLogger (null) - [AddTask] CheckForRecipeItemsTask Sucessfully added at front of the list
2015-07-05 01:42:53,066 [55] DEBUG CustomLogger (null) - [AddTask] RecipeWithdrawTask Sucessfully added after CheckForRecipeItemsTask
2015-07-05 01:42:53,066 [55] DEBUG CustomLogger (null) - [AddTask] RecipeSellTask Sucessfully added after RecipeWithdrawTask
2015-07-05 01:42:53,066 [55] DEBUG CustomLogger (null) - [AddTask] SignalRecipeExecutionTask Sucessfully added after HandleInventoryItemsTask
2015-07-05 01:42:53,067 [55] DEBUG CustomLogger (null) - [AddTask] StashToSpecificTabTask Sucessfully added before StashTask
2015-07-05 01:42:53,067 [55] DEBUG CustomLogger (null) - [Alerter] Start
2015-07-05 01:42:53,070 [55] DEBUG CustomLogger (null) - [Alerter] Next masters will be alerted:
2015-07-05 01:42:53,071 [55] DEBUG CustomLogger (null) - Catarina, Master of the Dead
2015-07-05 01:42:53,071 [55] DEBUG CustomLogger (null) - Elreon, Loremaster
2015-07-05 01:42:53,071 [55] DEBUG CustomLogger (null) - Haku, Armourmaster
2015-07-05 01:42:53,071 [55] DEBUG CustomLogger (null) - Tora, Master of the Hunt
2015-07-05 01:42:53,072 [55] DEBUG CustomLogger (null) - Vagan, Weaponmaster
2015-07-05 01:42:53,072 [55] DEBUG CustomLogger (null) - Vorici, Master Assassin
2015-07-05 01:42:53,072 [55] DEBUG CustomLogger (null) - Zana, Master Cartographer
2015-07-05 01:42:53,072 [55] INFO CustomLogger (null) - [ChanceItem] Starting
2015-07-05 01:42:53,073 [55] DEBUG CustomLogger (null) - [AddAtFront] Now adding [DoChanceItemTask] DoChanceItemTask.
2015-07-05 01:42:53,073 [55] DEBUG CustomLogger (null) - [FlaskHelper] Start
2015-07-05 01:42:53,076 [55] DEBUG CustomLogger (null) - [GemLeveler] Start
2015-07-05 01:42:53,076 [55] DEBUG CustomLogger (null) - [GemLeveler] Now resetting task state.
2015-07-05 01:42:53,077 [55] DEBUG CustomLogger (null) - [MapRunner] Start
2015-07-05 01:42:53,077 [55] DEBUG CustomLogger (null) - [Replace] Now replacing [MapExplorationTask].
2015-07-05 01:42:53,077 [55] DEBUG CustomLogger (null) - [Replace] Now replacing [MapExplorationCompleteTask].
2015-07-05 01:42:53,078 [55] DEBUG CustomLogger (null) - [Remove] Now removing [TagWaypointTask].
2015-07-05 01:42:53,078 [55] DEBUG CustomLogger (null) - [Remove] Now removing [ExplorationCompleteTask (Early)].
2015-07-05 01:42:53,078 [55] DEBUG CustomLogger (null) - [Remove] Now removing [UnblockCorruptedAreaTransitionTask].
2015-07-05 01:42:53,079 [55] DEBUG CustomLogger (null) - [Remove] Now removing [TakeCorruptedAreaTask].
2015-07-05 01:42:53,079 [55] DEBUG CustomLogger (null) - [Remove] Now removing [TravelThroughBossAreasTask-BossFarm].
2015-07-05 01:42:53,079 [55] DEBUG CustomLogger (null) - [Remove] Now removing [TravelThroughBossAreasTask-PassThrough].
2015-07-05 01:42:53,079 [55] DEBUG CustomLogger (null) - [Remove] Now removing [ReturnToGrindZoneTask].
2015-07-05 01:42:53,080 [55] DEBUG CustomLogger (null) - [Remove] Now removing [UseLooseCandleTask].
2015-07-05 01:42:53,080 [55] DEBUG CustomLogger (null) - [Remove] Now removing [TravelToGrindZoneTask].
2015-07-05 01:42:53,080 [55] DEBUG CustomLogger (null) - [Scheduler] Start
2015-07-05 01:42:53,080 [55] INFO CustomLogger (null) - [Scheduler] BotTimeLimit: 03:38:05.2070000
2015-07-05 01:42:53,081 [55] INFO CustomLogger (null) - [Scheduler] BotIdleTimeLimit: 01:10:54.6230000
2015-07-05 01:42:53,081 [55] DEBUG CustomLogger (null) - [StuckDetection] Start
2015-07-05 01:42:53,081 [55] DEBUG CustomLogger (null) - [Totemizer] Start
2015-07-05 01:42:53,081 [55] DEBUG CustomLogger (null) - [ChanceItems] Now resetting task state.
2015-07-05 01:42:53,082 [55] DEBUG CustomLogger (null) - [RecipeWithdrawTask] Now resetting task state.
2015-07-05 01:42:53,082 [55] DEBUG CustomLogger (null) - [RecipeSellTask] Now resetting task state.
2015-07-05 01:42:53,082 [55] DEBUG CustomLogger (null) - [HandleBlockingChestsTask] Now resetting task state.
2015-07-05 01:42:53,082 [55] DEBUG CustomLogger (null) - [SellTask] Now resetting task state.
2015-07-05 01:42:53,083 [55] DEBUG CustomLogger (null) - [WithdrawTask] Now resetting task state.
2015-07-05 01:42:53,083 [55] DEBUG CustomLogger (null) - [Start] The plugin AdvancedItemFilter is enabled.
2015-07-05 01:42:53,083 [55] DEBUG CustomLogger (null) - [Start] The plugin Alerter is enabled.
2015-07-05 01:42:53,083 [55] DEBUG CustomLogger (null) - [Start] The plugin ChanceItems is enabled.
2015-07-05 01:42:53,083 [55] DEBUG CustomLogger (null) - [Start] The plugin FlaskHelper is enabled.
2015-07-05 01:42:53,084 [55] DEBUG CustomLogger (null) - [Start] The plugin GemLeveler is enabled.
2015-07-05 01:42:53,084 [55] DEBUG CustomLogger (null) - [Start] The plugin MapRunner is enabled.
2015-07-05 01:42:53,084 [55] DEBUG CustomLogger (null) - [Start] The plugin Scheduler is enabled.
2015-07-05 01:42:53,084 [55] DEBUG CustomLogger (null) - [Start] The plugin StuckDetection is enabled.
2015-07-05 01:42:53,085 [55] DEBUG CustomLogger (null) - [Start] PlayerMover.Instance: Loki.Bot.v3.DefaultPlayerMover.
2015-07-05 01:42:53,095 [55] DEBUG CustomLogger (null) - [InteractWith] Now attempting to highlight 807.
2015-07-05 01:42:53,195 [55] DEBUG CustomLogger (null) - [InteractWith] Now attempting to interact with 807.
2015-07-05 01:42:53,224 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,261 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,292 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,328 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,358 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,394 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,424 [55] DEBUG CustomLogger (null) - [FinishCurrentAction] Waiting for the action to finish Interaction.
2015-07-05 01:42:53,443 [55] DEBUG CustomLogger (null) - [WaitForStashPanel]
2015-07-05 01:42:53,444 [55] DEBUG CustomLogger (null) - [WaitForStashPanel] We have been waiting 00:00:00.0000369 for the stash panel to open.
2015-07-05 01:42:53,560 [55] DEBUG CustomLogger (null) - [WaitForStashPanel] We have been waiting 00:00:00.1160008 for the stash panel to open.
2015-07-05 01:42:53,676 [55] DEBUG CustomLogger (null) - [WaitForStashPanel] We have been waiting 00:00:00.2325862 for the stash panel to open.
2015-07-05 01:42:56,991 [55] ERROR CustomLogger (null) - [RecipeWithdrawTask] WithdrawItemsCoroutine returned GoToFirstTabFailed.
2015-07-05 01:42:56,991 [55] INFO CustomLogger (null) - [Stop] Now requesting the BotThread to stop.
2015-07-05 01:42:56,992 [55] DEBUG CustomLogger (null) - [CloseBlockingWindows] LokiPoe.Gui.IsLeftPanelShown || LokiPoe.Gui.IsRightPanelShown. Closing them.
2015-07-05 01:42:57,022 [55] DEBUG CustomLogger (null) - [BasicGrindBot] OnStop
2015-07-05 01:42:57,023 [55] DEBUG CustomLogger (null) - [AdvancedItemFilter] Stop
2015-07-05 01:42:57,023 [55] DEBUG CustomLogger (null) - [Alerter] Stop
2015-07-05 01:42:57,024 [55] DEBUG CustomLogger (null) - [ChanceItems] Stoping
2015-07-05 01:42:57,024 [55] DEBUG CustomLogger (null) - [FlaskHelper] Stop
2015-07-05 01:42:57,025 [55] DEBUG CustomLogger (null) - [GemLeveler] Stop
2015-07-05 01:42:57,025 [55] DEBUG CustomLogger (null) - [MapRunner] Stop
2015-07-05 01:42:57,025 [55] DEBUG CustomLogger (null) - [Scheduler] Stop
2015-07-05 01:42:57,025 [55] DEBUG CustomLogger (null) - [StuckDetection] Stop
2015-07-05 01:42:57,026 [55] DEBUG CustomLogger (null) - [Totemizer] Stop
 
Yeah, TeamViewer is great but I always wait to get home before I actually sort things :P.

Actually just had the bot break on me by GoToFirstTab again so I got a log, but it looks like it didn't break the usual way of stopping while on the way to the first tab after stashing but rather while withdrawing.

Apparently the file is too large to be uploaded so I'll just post the part where it breaks.
That's weird, What version of AIF are you running.

Code:
2015-07-04 18:57:03,080 [30] ERROR CustomLogger (null) - [RecipeWithdrawTask] WithdrawItemsCoroutine returned GoToFirstTabFailed.
2015-07-04 18:57:03,081 [30] INFO  CustomLogger (null) - [Stop] Now requesting the BotThread to stop.
Ok Do this,
For AIF, find RecipeWithDrawTask.cs inside the Tasks Folder
I'm running a fork of the release version so my lines are different.
But Find something like this


Edit, re-read the code, sec i'll post proper code.

Ok find this code
Code:
var wierr = await Coroutines.WithdrawItemsCoroutine(ShouldWithdrawFromTab, ShouldWithdrawItem, ContinueWithdrawing);
            if (wierr != Coroutines.WithdrawItemsCoroutineError.None)
            {
                Main.Log.ErrorFormat("[{0}] WithdrawItemsCoroutine returned {1}.", Name,wierr);
                BotManager.Stop();
            }
            else
            {
                var stillNeed = _needs.FirstOrDefault(n => n.Value);

                if (stillNeed.Key != null)
                {
                    Main.Log.DebugFormat("[{0}] Seems like we had a problem withdrawing ({1} : {2})", Name, stillNeed.Key, stillNeed.Value);
                    return true;
                }

                Main.Log.InfoFormat("[{0}] Withdrawing has completed.", Name);
                Reset();
            }

Change to
Code:
            int retryAttempts = 5;
            for (int i = 0; i < retryAttempts; i++)
            {
                // Add clearcursor so we don't have any items on it before process
                await GenericTasks.ClearCursorTask();

                var wierr = await Coroutines.WithdrawItemsCoroutine(ShouldWithdrawFromTab, ShouldWithdrawItem, ContinueWithdrawing);
                if (wierr != Coroutines.WithdrawItemsCoroutineError.None)
                {
                    Main.Log.ErrorFormat("[{0}] WithdrawItemsCoroutine returned {1}., retry #{2}", Name, wierr, i);
                }
                else
                {
                    var stillNeed = _needs.FirstOrDefault(n => n.Value);

                    if (stillNeed.Key != null)
                    {
                        Main.Log.DebugFormat("[{0}] Seems like we had a problem withdrawing ({1} : {2})", Name, stillNeed.Key, stillNeed.Value);
                        return true;
                    }

                    Main.Log.InfoFormat("[{0}] Withdrawing has completed.", Name);
                    Reset();
                    break;
                }

                if (i != retryAttempts) continue;

                Main.Log.ErrorFormat("[{0}] WithdrawItemsCoroutine returned {1}., retry #{2}, Stop Bot", Name, wierr, i);
                BotManager.Stop();
                
            }

Where you can change retryAttempts= 5; to a retry amount of your choice.
 
Last edited:
Thanks! I changed the code and hopefully it won't bug out this way again.

I'll post a log when my original problem happens again. Strangely enough it hasn't errored out in that way since I posted this thread. @_@
 
In the upcoming version, the API should now be able to correctly detect when the stash page it's moving to is shown and fully loaded. This should help logic when it comes to the cases where there's higher latency issues, whether it's from your connection or the server. For example, during early testing since the Awakening release, I've seen cases where a stash tab took over 5 seconds to fully load. The API handled it correctly now, so hopefully the issue you described should be better handled in the future.

If not, I can also make the logic you're referring to try again a few times before returning the error code.
 
In the upcoming version, the API should now be able to correctly detect when the stash page it's moving to is shown and fully loaded. This should help logic when it comes to the cases where there's higher latency issues, whether it's from your connection or the server. For example, during early testing since the Awakening release, I've seen cases where a stash tab took over 5 seconds to fully load. The API handled it correctly now, so hopefully the issue you described should be better handled in the future.

If not, I can also make the logic you're referring to try again a few times before returning the error code.
Ya, pushedx has put in a lot of QoL into the bot, look forward to it, I've asked him to take his time, meaning take a year or so :P.
 
You would be the one losing out, Mr. 100/100. ;P

He's losing account every week h3h3 this noob :troll:
Well, tbh the game hasn't changed a lot itself, not a lot of "new" things.
MALACHAI'S FIGHT IS STUPID, FUCK YOU GGG
 
Back
Top