Comments (3)
Hmm, I've mainly used replay_actions to look at stats over many replays. It's quite possible there's a bug in the termination condition for a single replay. It probably also doesn't do what you are expecting it to do. It just outputs which actions are popular. This was mainly useful for figuring out the action space, not for training agents. It should be a good example of how to parse through a large number of replays though. You can then do whatever you want with the observations.
from pysc2.
It'd be nice if replay_actions was split between the replay parser and the analysis so it could let you do more than collect stats about actions. It'd be good to have that as one option, but it would be nice for it to be easy to write your own that just took observations and could do whatever it wants with them, but without having to deal with starting up the game, doing the parallelism stuff, etc. This would be analogous to bin/agent.py which lets you pass in an agent of your own.
from pysc2.
Hi tewalds,
@tewalds
I am having the same problem as xuhuazhe using replay_actions.py also the scrapper version from cole_maclean as well.
The replay info will show up, but not for the actions:
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 - 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 newest SC2 version 4.1.3 with a replay produced in the same version.
You mentioned you are only using replay_actions.py to see statistics, If i understand it correctly, this script should allow us to see how many units one player have at a given time? can it?
Thank you for your help!
from pysc2.
Related Issues (20)
- Proper Camera Width for human plays
- How to get the unit_type of the self-designed unit?
- RuntimeError: SC2_x64 HOT 2
- Could not open details for the replay: /tmp/sc-nb_eul9t/StarCraft II/TempReplayInfo.SC2Replay
- Support for Version 5.0.X Replays? HOT 1
- Raw Unit Y-Axis Assumes Square
- "InvalidMapData" HOT 4
- Replay dataset sizes for versions. HOT 1
- How to fast restart game in multiplayer mode
- Error in transformation action: argument is out of range
- How
- In pysc2, How can I use auto attack? Now it seems disable.
- pysc2.lib.protocol.ProtocolError: `actions` called while in state: Status.ended, valid: (Status.in_game) HOT 2
- TypeError: __init__() got an unexpected keyword argument 'extra_ports' HOT 1
- can i run it in Offline?
- try to run the first time, but failed. HOT 2
- TypeError: Descriptors cannot not be created directly. HOT 4
- Colors.py Error fix HOT 1
- Not Rendering with Nvidia GPU HOT 1
- How could I watch the StarCraft II replays?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysc2.