Skip to content

Conversation

@piroxiljin
Copy link

There is an issue with receiving of the observation object (#301).

Particularly, received data is converted to unit pool in the sc2_proto_to_pods.cc file. And the conversion function checks that received data is correct and all units are in known state.

For some reason the game sets flag has_cloak and send CloakState as CloakedUnknown.
Conversion routine did not take it into account and returned status failure. So that, unit pool stays not initialized.

This request adds new cloak state CloakedUnknown and updates the conversion routine, so it returns success in such case,

For some reason the game sets flag has_cloak and send CloakState as CloakedUnknown.
Conversion routine did not take it into account and returned status failure.

Now unit cloak state can have value CloakedUnknown and conversion routine returns success.
peter-cudmore added a commit to peter-cudmore/s2client-api that referenced this pull request Jul 12, 2019
Cloak now works properly
@minchopaskal
Copy link

minchopaskal commented Oct 28, 2019

Aren't * _ proto _ * files supposed to be auto-generated by gRPC

@piroxiljin
Copy link
Author

@minchopaskal you should be right
I was unsure if I have a correct tools and able to find a proper way to regenerate it from scratch. I have decided just to fix obvious error to play with api. And as we see at #316 there still are many issues which I miss.

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.

2 participants