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%2F3/environments/README.md
- Command line
-
hf download hf://datasets/THUSI-Lab/GameDojo@refs/pr/3/environments/README.md
-
curl -L -o README.md https://huggingface.co/datasets/THUSI-Lab/GameDojo/resolve/refs%2Fpr%2F3/environments/README.md
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.
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/.
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/.
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.
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. See the third-party notices and the project copyright and use statement.