google-deepmind / pysc2

StarCraft II Learning Environment
Apache License 2.0
7.96k stars 1.15k forks source link

Replays_action not working properly #144

Open EveLIn3 opened 6 years ago

EveLIn3 commented 6 years ago

Hi all,

I was trying to extract some information from replays using the replays_action.py, the game instance did come up as well as the replay info. But the time "froze" at 00:00 in the game and there is no action information as well.

The output looks like this: Getting replay list: D:\StarCraft II\Replays\gold1.SC2Replay 1 replays found.

[0] Starting up a new SC2 instance. [0] SC2 Started successfully. [0] Got replay: D:\StarCraft II\Replays\gold1.SC2Replay [0] --------------- Replay Info gold1.SC2Replay ---------------- [0] map_name: "\351\234\223\350\231\271\345\271\277\345\234\272 - \345\244\251\346\242\257\347\211\210" [0] player_info { [0] player_info { [0] player_id: 1 [0] race_requested: Terran [0] race_actual: Terran [0] } [0] player_result { [0] player_id: 1 [0] result: Victory [0] } [0] player_apm: 260 [0] } [0] player_info { [0] player_info { [0] player_id: 2 [0] race_requested: Protoss [0] race_actual: Protoss [0] } [0] player_result { [0] player_id: 2 [0] result: Defeat [0] } [0] player_mmr: 3103 [0] player_apm: 92 [0] } [0] game_duration_loops: 10538 [0] game_duration_seconds: 470.479248046875 [0] game_version: "4.1.3.61021" [0] data_build: 61021 [0] base_build: 60321 [0] data_version: "F486693E00B2CD305B39E0AB254623EB" [0] ------------------------------------------------------------ [0] Starting gold1.SC2Replay from player 1's perspective ============================================= Summary 100 secs ============================================ Replays: 0, Steps total: 0

Camera move: 0, Select pt: 0, Select rect: 0, Control group: 0

Maps: 1 {Neon Square - LDE: 1}

Races: 2 {Terran: 1, Protoss: 1}

Unit ids: 0 {}

Valid abilities: 0 {}

Made abilities: 0 {}

Valid actions: 0 {}

Made actions: 0 {}

Crashing replays: 0 []

Invalid replays: 0 [] ---------------------------------------------- Process stats ---------------------------------------------- [ 0] replay: gold1.SC2Replay, replays: 0, steps: 0, game loops: 0, last: start_replay, 9 s ago

I am using the latest SC2 ver 4.1.3 on Windows 10 with a replay produced in the same version. If I am understanding pysc2 correctly here, it should be simulating all the events in the replay and count say how many workers one player has at a specific time, as well as upgrade, etc. Does it?

Thank you in advance for your help.

lusensama commented 5 years ago

I'm encountering the exact same problem!