Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 430 forks source link

How to detect that the opponent computer says 'gg' and accept that? #82

Open liuruoze opened 6 years ago

liuruoze commented 6 years ago

When training the agent, we find that sometimes the opponent says 'gg' which means we win. Is there a way for the agent to accept this surrender now? Thank you !

Dentosal commented 6 years ago

When ResponseObservation has ChatReceived event (with gg message), use DebugCommand with DebugEndGame {end_result: DeclareVictory }.

liuruoze commented 6 years ago

@Dentosal , hi, can you receive gg message now ? We have tried it and find that the message received is always empty.