|
Download environments/README.md from THUSI-Lab/GameDojo: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/datasets/THUSI-Lab/GameDojo/resolve/refs%2Fpr%2F4/environments/README.md
- Command line
-
hf download hf://datasets/THUSI-Lab/GameDojo@refs/pr/4/environments/README.md
-
curl -L -o README.md https://huggingface.co/datasets/THUSI-Lab/GameDojo/resolve/refs%2Fpr%2F4/environments/README.md
2.33 kB
| # GameDojo environments | |
| GameDojo contains 120 boss encounters across 20 games. The environment package provides browser play, Gymnasium interfaces, scripted reference controllers, and a model evaluation harness. | |
| ## Setup | |
| From this directory, install Python 3.12 dependencies and a Chromium browser for RGB observations. Install Node.js and put `node` on `PATH` to use the symbolic back end for the shared web games. Minecraft RGB observations require a working OpenGL context through ModernGL. | |
| ```sh | |
| python -m pip install -r requirements-games.txt | |
| python -m playwright install chromium | |
| ``` | |
| ## Play in a browser | |
| Serve the game launcher at `http://127.0.0.1:8766/`. | |
| ```sh | |
| python -m http.server 8766 --bind 127.0.0.1 --directory games/web | |
| ``` | |
| Start the Minecraft play server in another terminal. Its page is available directly at `http://127.0.0.1:8765/`. | |
| ```sh | |
| python games/prototype/bossbench/play_server.py | |
| ``` | |
| ## Train and evaluate | |
| Set `PYTHONPATH=games/prototype` when importing `bossbench`. The `BENCH_CASES` registry in `bossbench.scope` lists the official encounters. Use `bossbench.make_policy_env` for 200 ms keyboard and mouse actions, `bossbench.make_compact_env` for discrete semantic actions, and `bossbench.make_training_env` for the step-damage reward wrapper. | |
| ```sh | |
| python check_games.py --game terraria_remake --out terraria-check.json | |
| python run_model.py --case doom/cyberdemon --tier normal --policy noop --max-steps 1 | |
| ``` | |
| `run_model.py` accepts `--format lumine` for CUA or `--format semantic` for semantic actions, and `--time paused` or `--time realtime`. For model evaluation, use `--policy chat` and set `--base-url` and `--model` to your OpenAI-compatible endpoint and model. Run `python run_model.py --help` for the available options. | |
| ## Copyright and license | |
| All copyrights, trademarks, and other intellectual property rights in the original games, including their titles, characters, artwork, and audio, remain exclusively with their respective original game companies and rights holders. | |
| Original GameDojo materials in this directory are available for non-commercial scientific research under the [GameDojo Non-Commercial Research License](LICENSE). See the [third-party notices](THIRD_PARTY_NOTICES.md) and the [project copyright and use statement](https://gamedojo-benchmark.github.io/). | |