Giter VIP home page Giter VIP logo

Comments (3)

tewalds avatar tewalds commented on May 14, 2024

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.

tewalds avatar tewalds commented on May 14, 2024

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.

EveLIn3 avatar EveLIn3 commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.