Situation: Bot running, switching from one mining profile to another mining profile. Bug: Loading a new mining profile while running another mining profile, while the bot is running, has trouble finding the new desired item. The bot will switch to the new profile, teleport, move to the new hotspot, and begin gathering, but the bot cannot locate the current item, giving the error "Couldn't Find desired item...picking first one..." To Reproduce: Load any mining profile, and start the bot. At any time while the mining profile is running (don't have to wait until it mines something), load a new mining profile using the Load Profile button or NeoProfileManager.Load() (bug occurs using either method). Wait until the bot starts a mining attempt, the error will appear. Stopping and starting the bot after this happens resolves the problem. Is there a way to command the bot to stop and start as a temporary workaround for a plugin? I appreciate any information you can provide. Thank you!
I know nothing about profiles but you might be able to NeoProfileManager.UpdateCurrentProfileBehavior() or ProfileBehavior.UpdateBehavior() or ResetCachedDone() ...probably not but it's the only thing I can think of
Thanks for the pointers; they didn't seem to change anything. There is a ton going on behind the scenes of the simple Stop / Start button of RB, so I am unable to emulate it at the moment. It looks like switching profiles adjusts everything in the profile except the current gather item, and I haven't been able to find a way to get in there and force the new item names. I think my project has hit a wall until I can completely update a profile without the user hitting stop/start.
Why not call TreeRoot.Stop() and TreeRoot.Start() within your plugin to automatically stop and start the bot yourself?
That's exactly what I was looking for! Thanks for pointing me in the right direction; that is the workaround I needed to keep developing. Thanks again!