GithubHelp home page GithubHelp logo

soygema / startcraft_pysc2_minigames Goto Github PK

View Code? Open in Web Editor NEW
131.0 17.0 14.0 25.55 MB

Startcraft II Machine Learning research with DeepMind pysc2 python library .mini-games and agents.

License: Apache License 2.0

Python 100.00%
python starcraft2 deepmind machinelearning pysc2-library pysc2 pysc2-mini-games blizzard starcraft reinforcement-learning

startcraft_pysc2_minigames's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

startcraft_pysc2_minigames's Issues

Play Instructions

How would non-coders play your mini-game? I can not find instructions in wiki or readme file.

actions_to_choose structure

DQN Implementation Issue description

Context

Context

  • MACOS with PySC2
  • Agent development DQN Agent
  • Agent code here

Problem

Describe the problem you finded :

  • Function _Functions.Hallucination_Whatever is currently not available .
    The agent currently makes the Hallucination 3 times and crashes, so the assumption is that it is actually able to make it until it has no energy .

  • Documentation consulted so far :

    • pysc2/lib/features.py ----> line 535 " If a specific action is available, the general will also be available " so there is an assumption that general actions are possible as far as Hallucination is .
    • docs/environment.md----> line 388 Specifies the arguments for calling the valid actions , so the arguments in hallucination are _NOT_QUEUED

Issue resolution

  • define the actions_to_choose function in such a way that the agent doesn´t crash and learns

Trace error

Error showed in screen

FunctionCall(function=<_Functions.Hallucination_Adept_quick: 248>, arguments=[[0]]) FunctionCall(function=<_Functions.Hallucination_Adept_quick: 248>, arguments=[[0]]) FunctionCall(function=<_Functions.Hallucination_Adept_quick: 248>, arguments=[[0]]) Traceback (most recent call last): File "DQN_Agent.py", line 196, in <module> training_game() File "DQN_Agent.py", line 188, in training_game log_interval=1e4, verbose=2) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rl/core.py", line 168, in fit observation, r, done, info = env.step(action) File "DQN_Agent.py", line 94, in step obs = super(Environment, self).step([action]) File "/Applications/StarCraft II/pysc2/pysc2/lib/stopwatch.py", line 197, in _stopwatch return func(*args, **kwargs) File "/Applications/StarCraft II/pysc2/pysc2/env/sc2_env.py", line 449, in step self._controllers, self._features, self._obs, actions)) File "/Applications/StarCraft II/pysc2/pysc2/lib/run_parallel.py", line 54, in run funcs = [f if callable(f) else functools.partial(*f) for f in funcs]

Editing mini games

Hi,
I want to use some of your minimaps in my research but with some customization like changing the number of units in the team, adding different units and so on. I believe this can be done by editing the .SC2Map file. Is that right? If so, how can i edit those files in linux? Any help is appreciated.

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.