TorchCraft / StarData

Starcraft AI Research Dataset
Other
567 stars 75 forks source link

Connect to State in a Replay #7

Closed andrewsilva9 closed 6 years ago

andrewsilva9 commented 6 years ago

Hello!

The python example looks very helpful for connecting to a State and gathering relevant information if I have a functional client and I'm stepping through a game, but is there a way to do this when iterating through replays? Can I initialize a State object in the first frame of a Replay somehow, and then step through the replay with that?

Thanks! (and sorry for contributing so many issues to the project)

ebetica commented 6 years ago

Yes, it works exactly the same way, except that you cannot send actions.

Sorry about the late reply

andrewsilva9 commented 6 years ago

Is it possible to use a State or Client without an actual functioning game client? It seems Client requires a connection to a hostname / port, which indicates an active game client?

ebetica commented 6 years ago

No there isn't, the starcraft replay files are simply a list of commands issued in the game, and require a game simulator. However, there is an existing C++ StarCraft client:

https://github.com/TorchCraft/TorchCraft/blob/master/docs/user/openbw.md

andrewsilva9 commented 6 years ago

Great, thanks!