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

Yielding to the event loop when running story mode. Fixes hive bots. #95

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

tarehart
Copy link
Contributor

No description provided.

except Exception as e:
print(e)
sm = SetupManager()
return sm
Copy link
Contributor

@azeemba azeemba Jun 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind elaborating on why sharing the SetupManager helps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows this loop to hit the active setup manager instance: https://github.com/RLBot/RLBotGUI/blob/master/rlbot_gui/gui.py#L621-L623

Which does this

if sm is not None and sm.has_started:
sm.try_recieve_agent_metadata()
, which facilitates hive mind assembly :)

Copy link
Contributor

@azeemba azeemba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@tarehart tarehart merged commit 08d54b7 into master Jun 24, 2020
@tarehart tarehart deleted the yield branch June 24, 2020 03:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants