UPDATE: I attached a new profile to a post reply. I think I've narrowed the exact circumstances down. Please test with if_while_bug.xml
I've come across a show stopper bug for me in my current profile project.
If you put a while loop inside an if statement when you reach the end of the if statement the bot freaks out, walks to a location (i guess before if statement?) and stands there.... doing nothing. forever. No code below that if statement is ever reached.
here are some examples.
Test_Profile_1 is a snippet of a profile that does not work. It's a pretty simple profile i start while in game in festering woods near an entrance to crypt of ancients. its supposed to simply walk inside... pause then exit the dungeon, then walks some waypoints around and then continue on its way.
What actually happens is after the few waypoints (that are inside the if statement) it stops. it never reaches the code after that if. i've tried raw moveto's outside of another if, etc. nothing gets executed.
Test_Profile_2 is a modified version where i moved the while outside and below the first if. just to demonstrate this works as expected. it continues on its way. unfortunately this does not work for me. I have to nest a while inside the if because i need him to clear the dungeon then walk specific waypoints to get away from the dungeon entrance (because the nav system is severely horrible right around all the dungeon entrances in festering woods).
I'm attaching a log that shows quite a few attempts by me to get it functioning.
This is a pretty major whopper of a problem, It would be great to get it fixed soon.
update: it's not limited to while loops... i changed the while to an if and nested if statements are triggering the same bug. attaching Test_Profile_3 with that setup
thanks
I've come across a show stopper bug for me in my current profile project.
If you put a while loop inside an if statement when you reach the end of the if statement the bot freaks out, walks to a location (i guess before if statement?) and stands there.... doing nothing. forever. No code below that if statement is ever reached.
here are some examples.
Test_Profile_1 is a snippet of a profile that does not work. It's a pretty simple profile i start while in game in festering woods near an entrance to crypt of ancients. its supposed to simply walk inside... pause then exit the dungeon, then walks some waypoints around and then continue on its way.
What actually happens is after the few waypoints (that are inside the if statement) it stops. it never reaches the code after that if. i've tried raw moveto's outside of another if, etc. nothing gets executed.
Test_Profile_2 is a modified version where i moved the while outside and below the first if. just to demonstrate this works as expected. it continues on its way. unfortunately this does not work for me. I have to nest a while inside the if because i need him to clear the dungeon then walk specific waypoints to get away from the dungeon entrance (because the nav system is severely horrible right around all the dungeon entrances in festering woods).
I'm attaching a log that shows quite a few attempts by me to get it functioning.
This is a pretty major whopper of a problem, It would be great to get it fixed soon.
update: it's not limited to while loops... i changed the while to an if and nested if statements are triggering the same bug. attaching Test_Profile_3 with that setup
thanks
Attachments
Last edited:






