pysc2 | StarCraft II Learning Environment | Machine Learning library
kandi X-RAY | pysc2 Summary
kandi X-RAY | pysc2 Summary
Disclaimer: This is not an official Google product. If you use the StarCraft II Machine Learning API and/or PySC2 in your research, please cite the StarCraft II Paper. You can reach us at pysc2@deepmind.com.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Transforms an observation into a named numpy array
- Unpack an RGB image
- Unpack a plane
- Unpack the layer
- Return a human readable representation of the run configuration
- Send a request
- Read from the server
- Send a single request
- Compute the difference between two messages
- Update the game cache
- Computes the diffs
- Launch a remote agent
- Get the action sklearn action sklearn
- Generate a CSV
- Run functions in parallel
- Start the agent
- Create a dummy observation
- Connect a remote controller
- Select minerals from a collection
- Create a sc_pb Interface object
- Creates a ReplayObservationStream from a replay
- Run the game loop
- Transform an action to an Action
- Launch a new SC2 instance
- Draw the minimap
- Get index
pysc2 Key Features
pysc2 Examples and Code Snippets
usage: __main__.py [-h] [--nogui] [--search PLAYERS] [--history] [-l] [-p]
...
PURPOSE: front-end interface to easily and reliably match against opponents
and run Starcraft2 opponents.
...
version: 1.0.0
...
4.4.0
base-version: 65895
data-h
[
# feature layer 的 state
"height_map", "visibility_map", "creep", "power", "player_id", "player_relative", "unit_type", "selected", "unit_hit_points", "unit_hit_points_ratio", "unit_energy", "unit_energy_ratio", "unit_shields", "unit_shields_ratio",
Copyright 2017 Islam Elnabarawy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unl
Community Discussions
Trending Discussions on pysc2
QUESTION
I am trying to run the Deepmind Environment for Starcraft II, following this tutorial
After running:
...ANSWER
Answered 2018-Nov-30 at 03:02This might be obvious for some, but it took me 25 minutes, so I'll put it here.
The SC2 websocket is up once you completely installed and started the game.
Not only the battlenet interface.
QUESTION
I am trying to run various codes I found in the internet with pysc2
Starcraft DeepMind AI agents. I often run into KeyError: 'SOME-VALUE-HERE'
invoked by obs.observation["SOME-VALUE-HERE"]
.
For example this agent and this agent crash on KeyError: 'minimap'
invoked by obs.observation['minimap']
.
Other example is KeyError: 'screen'
invoked by observation["screen"]
when running Siraj Raval's enjoy_mineral_shards script.
It is very frustrating as I have not found anybody else running to this error and I really struggle with debugging in pysc2
environment. Any help?
ANSWER
Answered 2018-Jul-15 at 20:08The codes were run with pysc2
version 2.0.1
. One needs to downgrade to version 1.2
(relevant for mentioned examples).
QUESTION
I am trying to set up Starcraft II for Deep Reinforcement Learning, following this Tutorial.
At some point I am adviced to download the maps:
Get the maps
PySC2 has many maps pre-configured, but they need to be downloaded into the SC2 Maps directory before they can be played.
Download the ladder maps and the mini games and extract them to your StarcraftII/Maps/ directory.
Thing is I am not able to locate my Maps directory. Any advice or hints are welcome.
...ANSWER
Answered 2018-Jul-07 at 15:26Create one yourself
So the thing is, I could not find it, since there is none. The easy solution in hindsight is to create one:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pysc2
You can use pysc2 like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page