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

Programs not paused when a bot is backing up after building. #641

Closed
Mrocza opened this issue Sep 24, 2015 · 2 comments
Closed

Programs not paused when a bot is backing up after building. #641

Mrocza opened this issue Sep 24, 2015 · 2 comments

Comments

@Mrocza
Copy link

@Mrocza Mrocza commented Sep 24, 2015

After building certain structures the bot is backing up a little. During that time it calculates variables and possibly executes some functions.
The folowing program will display two diferent messages while it should not:

build(ResearchCenter);
object item = radar(ResearchCenter);
float dist = distance(position,item.position);
message(dist);
wait(1);
dist = distance(position,item.position);
message(dist);
@krzys-h krzys-h added this to the alpha-0.1.7 milestone Sep 24, 2015
@krzys-h
Copy link
Member

@krzys-h krzys-h commented Sep 24, 2015

Will be fixed soon

@krzys-h krzys-h self-assigned this Sep 24, 2015
@krzys-h
Copy link
Member

@krzys-h krzys-h commented Sep 30, 2015

I can confirm that this reports different values, but I cannot confirm that it's caused by build() exiting too early. The values are different because the function exits as soon as brakes are enabled, but breaking takes some time. It works like that for all the functions in the game that don't slow down gracefully to increase precision (for example move does this, but goto does not), so I wouldn't consider this as a bug.

@krzys-h krzys-h closed this Sep 30, 2015
@krzys-h krzys-h removed this from the alpha-0.1.7 milestone Sep 30, 2015
@krzys-h krzys-h removed their assignment Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants