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

ClientEvent callbacks do not work #324

Closed
minchopaskal opened this issue Oct 28, 2019 · 3 comments
Closed

ClientEvent callbacks do not work #324

minchopaskal opened this issue Oct 28, 2019 · 3 comments

Comments

@minchopaskal
Copy link

Each bot i try to run, even an empty one doesn't seem to call the ClientEvent callbacks.
It's weird since Observer()->getMinerals() for example, returns the right amount of minerals,
but getUnits(Unit::Alliance::Self) always returns 0.
If I make a unt(for example a drone) idle the OnUnitIdle isn't called.
Is the library still supported or am I missing something crucial?

@alkurbatov
Copy link
Contributor

alkurbatov commented Oct 29, 2019

Hi, @minchopaskal the library is broken in many places at this moment. To fix the callbacks you need to merge #306
Another option is to use this fork:
https://github.com/alkurbatov/cpp-sc2

@minchopaskal
Copy link
Author

Thank you! Would you say your fork would be sufficient for a school project, since I'm not chasing an AI capable of competing?

@alkurbatov
Copy link
Contributor

The fork is very similar to this API (mostly bug fixes and a couple of features). So it might be what you need.

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