Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocking functions forward and back do not execute on first run #22

Closed
beamer159 opened this issue May 4, 2022 · 2 comments
Closed
Assignees

Comments

@beamer159
Copy link

My run function looks like this:

@Override
public void run() {
    forward(500);
}

When I create a battle and boot my robot, in the first battle, the robot does not move forward. Restarting the battle does not replicate the error. Stopping the battle and starting a new battle without unbooting and rebooting the robot does not replicate the error. However, stopping the battle, starting a new battle, unbooting the robot, and booting it again does replicate the error.

This behavior does not occur for blocking functions turnRight and turnLeft

Video demonstrating the issue:

Animation

@flemming-n-larsen
Copy link
Contributor

@beamer159: Nice finding. 👍

I have a LameBot doing the same, but with some additional System.out.println().

I can reproduce this strange issue and confirm this bug for the JVM version of the Bot API. It does not seem to occur for the .Net version.

@flemming-n-larsen
Copy link
Contributor

flemming-n-larsen commented May 25, 2022

@beamer159

This issue should be fixed with current Release 0.13.2. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants