Bug - Auto path finding interfering with manually recorded script file assign to training area

bot v = phbot v27.9.2 but i see this happening older versions as well.

issue not always happens.
this from the same configuration file in use.
originally this is what the script field looks like in the json file.

However occasionally, bot decides to auto generate the script instead of using the recorded one.
Here is what it ends up showing in json file when this issue happens. notice that the script field is completely different.

The training coordinates are exactly same except the z coords please see below screenshot compared to the recorded script

So what i am guessing is happening is that the bot does auto path finding to the training area. although it shouldn’t because there is a script associated with.

This is a problem because the script contains python plug in calls, quests etc. compared to the Auto path generated script.

Possible easy solution - can we just simply have an option to disable autopath finding? by doing so we know for sure that the manually associated script will never get interfered by auto path finding.

another alternative solution is perhaps but will require extra work.

  • if a target area contains a manual script than
  • create a list/dictionary of commands that are not walk, wait or teleport along with the nearest coordinates
  • create the auto path
  • find the closest xy in newly auto created script and add the command .

this will ensure path finding will work in if not all, most cases without causing troubles i would say.
only potential issue i can think of is if the bot disconnects half way to the script after a command is executed but there are work arounds for that such as “return to town when connected” option.

Did you move the script at any point or was it unaccessible at any point? It only does path finding if the script path isn’t set.

no it has always been there. same script is used by so many other characters at the same time. if it was a script issue it would have been happening on all other chars at the same time as well but never seen it happening that often.

i also dont have any plugin running that contains any training area modifications.

Try this and see if it’s any different.

1 Like

Hi @Ryan maybe a bit too soon, but so far so good. I haven’t see a single transport in town full of quest items. You see i have this reverse script that gets used once a certain time is passed in mirror. on the way back, it delivers the quest items for the job exp than teleports back to samarkand and disconnects.

previously, on some occasion bot was just taking the entire transport back to samarkand since thats where the reverse script ended. so i would see my transport along with full of quest items in it. whenever the bot was generating the auto path. Whatever you did its no longer seems to be happening. thanks so much. (I hope I haven’t spoken too soon)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.