Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
case: string
tier: string
seed: int64
engine: string
delivery_ready: bool
renderer: string
outcome: string
ticks: int64
seconds: double
steps: int64
final_hash: string
rules: string
frames: int64
wall_seconds: double
frame_aligned: bool
passed: bool
video: string
video_bytes: int64
case_id: string
native_hz: int64
gym_seed: int64
terminated: bool
options: struct<engine_seed: int64, difficulty: double, resolved_from_tier: string>
  child 0, engine_seed: int64
  child 1, difficulty: double
  child 2, resolved_from_tier: string
verifier: struct<reward: double, win: bool, outcome: string, boss_damage: double, seconds: double, d: double,  (... 17 chars omitted)
  child 0, reward: double
  child 1, win: bool
  child 2, outcome: string
  child 3, boss_damage: double
  child 4, seconds: double
  child 5, d: double
  child 6, player_hp: int64
truncated: bool
engine_seed: int64
format: string
contract: string
game: string
packets: list<item: string>
  child 0, item: string
controller: string
source_sha256: struct<web/engine/core.js: string, web/games/battlecity_remake/arena.js: string, web/games/battlecit (... 975 chars omitted)
  child 0, web/engine/core.js: string
  child 1, web/games/battlecity_remake/arena.js: string
  child 2, web/games/battlecity_remake/bc_kit.js: string
  child 3, web/games/battlecity_remake/specs/bc_brick_front.spec.js: string
  child 4, web/games/battlecity_remake/specs/bc_river_ice.spec.js: string
  child 5, web/games/battlecity_remake/specs/bc_steel_fort.spec.js: string
  child 6, web/games/battlecity_remake/specs/bc_river_delta.spec.js: string
  child 7, web/games/battlecity_remake/specs/bc_jungle_ambush.spec.js: string
  child 8, web/games/battlecity_remake/specs/bc_steel_maze.spec.js: string
  child 9, web/games/battlecity_remake/body_tank.js: string
  child 10, web/engine/boss_kit.js: string
  child 11, web/games/battlecity_remake/bosses/wave.js: string
  child 12, web/engine/case.js: string
  child 13, web/engine/juice.js: string
  child 14, web/engine/art_kit.js: string
  child 15, web/engine/renderer.js: string
  child 16, web/games/battlecity_remake/art/scenes.js: string
  child 17, web/games/battlecity_remake/draw.js: string
  child 18, web/games/battlecity_remake/game.js: string
  child 19, web/games/battlecity_remake/scripted.js: string
  child 20, web/engine/sessions.js: string
  child 21, web/games/battlecity_remake/index.html: string
  child 22, web/engine/bridge.js: string
to
{'format': Value('string'), 'case_id': Value('string'), 'game': Value('string'), 'contract': Value('string'), 'rules': Value('string'), 'native_hz': Value('int64'), 'gym_seed': Value('int64'), 'engine_seed': Value('int64'), 'options': {'engine_seed': Value('int64'), 'difficulty': Value('float64'), 'resolved_from_tier': Value('string')}, 'controller': Value('string'), 'packets': List(Value('string')), 'steps': Value('int64'), 'ticks': Value('int64'), 'seconds': Value('float64'), 'outcome': Value('string'), 'terminated': Value('bool'), 'truncated': Value('bool'), 'verifier': {'reward': Value('float64'), 'win': Value('bool'), 'outcome': Value('string'), 'boss_damage': Value('float64'), 'seconds': Value('float64'), 'd': Value('float64'), 'player_hp': Value('int64')}, 'final_hash': Value('string'), 'source_sha256': {'web/engine/core.js': Value('string'), 'web/games/battlecity_remake/arena.js': Value('string'), 'web/games/battlecity_remake/bc_kit.js': Value('string'), 'web/games/battlecity_remake/specs/bc_brick_front.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_river_ice.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_steel_fort.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_river_delta.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_jungle_ambush.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_steel_maze.spec.js': Value('string'), 'web/games/battlecity_remake/body_tank.js': Value('string'), 'web/engine/boss_kit.js': Value('string'), 'web/games/battlecity_remake/bosses/wave.js': Value('string'), 'web/engine/case.js': Value('string'), 'web/engine/juice.js': Value('string'), 'web/engine/art_kit.js': Value('string'), 'web/engine/renderer.js': Value('string'), 'web/games/battlecity_remake/art/scenes.js': Value('string'), 'web/games/battlecity_remake/draw.js': Value('string'), 'web/games/battlecity_remake/game.js': Value('string'), 'web/games/battlecity_remake/scripted.js': Value('string'), 'web/engine/sessions.js': Value('string'), 'web/games/battlecity_remake/index.html': Value('string'), 'web/engine/bridge.js': Value('string')}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              case: string
              tier: string
              seed: int64
              engine: string
              delivery_ready: bool
              renderer: string
              outcome: string
              ticks: int64
              seconds: double
              steps: int64
              final_hash: string
              rules: string
              frames: int64
              wall_seconds: double
              frame_aligned: bool
              passed: bool
              video: string
              video_bytes: int64
              case_id: string
              native_hz: int64
              gym_seed: int64
              terminated: bool
              options: struct<engine_seed: int64, difficulty: double, resolved_from_tier: string>
                child 0, engine_seed: int64
                child 1, difficulty: double
                child 2, resolved_from_tier: string
              verifier: struct<reward: double, win: bool, outcome: string, boss_damage: double, seconds: double, d: double,  (... 17 chars omitted)
                child 0, reward: double
                child 1, win: bool
                child 2, outcome: string
                child 3, boss_damage: double
                child 4, seconds: double
                child 5, d: double
                child 6, player_hp: int64
              truncated: bool
              engine_seed: int64
              format: string
              contract: string
              game: string
              packets: list<item: string>
                child 0, item: string
              controller: string
              source_sha256: struct<web/engine/core.js: string, web/games/battlecity_remake/arena.js: string, web/games/battlecit (... 975 chars omitted)
                child 0, web/engine/core.js: string
                child 1, web/games/battlecity_remake/arena.js: string
                child 2, web/games/battlecity_remake/bc_kit.js: string
                child 3, web/games/battlecity_remake/specs/bc_brick_front.spec.js: string
                child 4, web/games/battlecity_remake/specs/bc_river_ice.spec.js: string
                child 5, web/games/battlecity_remake/specs/bc_steel_fort.spec.js: string
                child 6, web/games/battlecity_remake/specs/bc_river_delta.spec.js: string
                child 7, web/games/battlecity_remake/specs/bc_jungle_ambush.spec.js: string
                child 8, web/games/battlecity_remake/specs/bc_steel_maze.spec.js: string
                child 9, web/games/battlecity_remake/body_tank.js: string
                child 10, web/engine/boss_kit.js: string
                child 11, web/games/battlecity_remake/bosses/wave.js: string
                child 12, web/engine/case.js: string
                child 13, web/engine/juice.js: string
                child 14, web/engine/art_kit.js: string
                child 15, web/engine/renderer.js: string
                child 16, web/games/battlecity_remake/art/scenes.js: string
                child 17, web/games/battlecity_remake/draw.js: string
                child 18, web/games/battlecity_remake/game.js: string
                child 19, web/games/battlecity_remake/scripted.js: string
                child 20, web/engine/sessions.js: string
                child 21, web/games/battlecity_remake/index.html: string
                child 22, web/engine/bridge.js: string
              to
              {'format': Value('string'), 'case_id': Value('string'), 'game': Value('string'), 'contract': Value('string'), 'rules': Value('string'), 'native_hz': Value('int64'), 'gym_seed': Value('int64'), 'engine_seed': Value('int64'), 'options': {'engine_seed': Value('int64'), 'difficulty': Value('float64'), 'resolved_from_tier': Value('string')}, 'controller': Value('string'), 'packets': List(Value('string')), 'steps': Value('int64'), 'ticks': Value('int64'), 'seconds': Value('float64'), 'outcome': Value('string'), 'terminated': Value('bool'), 'truncated': Value('bool'), 'verifier': {'reward': Value('float64'), 'win': Value('bool'), 'outcome': Value('string'), 'boss_damage': Value('float64'), 'seconds': Value('float64'), 'd': Value('float64'), 'player_hp': Value('int64')}, 'final_hash': Value('string'), 'source_sha256': {'web/engine/core.js': Value('string'), 'web/games/battlecity_remake/arena.js': Value('string'), 'web/games/battlecity_remake/bc_kit.js': Value('string'), 'web/games/battlecity_remake/specs/bc_brick_front.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_river_ice.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_steel_fort.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_river_delta.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_jungle_ambush.spec.js': Value('string'), 'web/games/battlecity_remake/specs/bc_steel_maze.spec.js': Value('string'), 'web/games/battlecity_remake/body_tank.js': Value('string'), 'web/engine/boss_kit.js': Value('string'), 'web/games/battlecity_remake/bosses/wave.js': Value('string'), 'web/engine/case.js': Value('string'), 'web/engine/juice.js': Value('string'), 'web/engine/art_kit.js': Value('string'), 'web/engine/renderer.js': Value('string'), 'web/games/battlecity_remake/art/scenes.js': Value('string'), 'web/games/battlecity_remake/draw.js': Value('string'), 'web/games/battlecity_remake/game.js': Value('string'), 'web/games/battlecity_remake/scripted.js': Value('string'), 'web/engine/sessions.js': Value('string'), 'web/games/battlecity_remake/index.html': Value('string'), 'web/engine/bridge.js': Value('string')}}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

GameDojo

GameDojo: Benchmarking Real-Time Interactive Agents in Video Games

Paper (arXiv) Project Page GitHub Model Daily Paper

Tsinghua University University of Chinese Academy of Sciences National University of Singapore 香港大學 · The University of Hong Kong University of Macau

Kuan Zhang1,*, Zhihao Yang2,*, Yukun Chen2,*, Xingyiliang Yin3, Mingyu Ouyang4, Yue Su5, Xiangnan Wu2, Jiaming Li2, Longze Chen2, Run Luo4, Zirong Chen1, Lu Wang1,†, Yiming Li1,†

1 Tsinghua University 2 University of the Chinese Academy of Sciences 3 University of Macau 4 National University of Singapore 5 University of Hong Kong

* Equal contribution † Co-corresponding authors

Overview

GameDojo-Data is a 600-hour corpus of gameplay trajectories from GameDojo. It covers 120 boss encounters across 20 game environments, with 60 encounters each in 2D and 3D. Each encounter is recorded at Easy, Medium, and Hard difficulty. The trajectories support imitation learning from visual observations and keyboard and mouse actions across different game mechanics.

To-do

  • Release the benchmark environments, training interfaces and PPO example, and evaluation harness.
  • Release the 600-hour GameDojo-Data trajectory dataset.

Download and launch

Clone the complete environment bundle with Git. Use Python 3.12 and install Node.js if you need symbolic observations in shared web games. Minecraft RGB rendering needs an OpenGL context.

git clone https://huggingface.co/datasets/THUSI-Lab/GameDojo GameDojo
cd GameDojo
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r environments/requirements-games.txt
python -m playwright install chromium

To play in your browser, start the launcher.

python -m http.server 8766 --bind 127.0.0.1 --directory environments/games/web

Open the local launcher. For Minecraft, run python environments/games/prototype/bossbench/play_server.py in a second terminal with the virtual environment active and open the Minecraft page. See the environment setup guide for more options.

Train a visual policy

Run the included single-encounter PPO example from this checkout with the virtual environment active. The example trains with the game clock paused.

python -m pip install 'stable-baselines3==2.9.2'
python examples/ppo.py --case doom/cyberdemon --tier easy train --steps 10000 --output runs/doom-ppo.zip
python examples/ppo.py --case doom/cyberdemon --tier easy eval --checkpoint runs/doom-ppo.zip --episodes 5

The example uses RGB observations, compact actions, and progress rewards. It reports win rate and mean progress on separate evaluation seeds. Custom trainers can use bossbench.make_training_env with PYTHONPATH=environments/games/prototype.

Evaluate agents

From the environment checkout, run a no-op smoke check or point the harness at an OpenAI-compatible vision-language model endpoint.

python environments/run_model.py --case doom/cyberdemon --tier normal --policy noop --max-steps 1
python environments/run_model.py --case doom/cyberdemon --tier normal \
  --policy chat --base-url http://127.0.0.1:8000/v1 --model gamedojo-4b \
  --format lumine --time paused --seeds 1-3 --out runs/eval

Set OPENAI_API_KEY if your endpoint requires authentication. Select --format semantic for semantic actions and --time realtime for inference-latency-aware interaction. Runs save per-episode outcomes, progress, and JSON and CSV summaries. Run python environments/run_model.py --help for the available settings.

Code license

Original GameDojo environment, training, and evaluation code is available for non-commercial scientific research under the GameDojo Non-Commercial Research License. The original games and their intellectual property belong to the respective original game companies and rights holders. See the third-party notices.

Collection

We use coding agents to write encounter-specific behavior-tree controllers from environment source code, internal state information, and task instructions. These controllers play the encounters in parallel across simulator instances. We verify episode outcomes using the environment state.

Coverage

Corpus statistic Value
Gameplay collected 600 hours
Game environments 20
Boss encounters 120
Difficulty levels per encounter 3
Mean gameplay per encounter and difficulty 100 minutes
Balanced subset used for GameDojo-4B 240 hours

GameDojo-4B training subset

We sample 40 minutes per encounter at each difficulty to form the 240-hour subset. We use the subset for supervised fine-tuning of Qwen3.5-4B. The resulting GameDojo-4B checkpoint generates keyboard and mouse actions through the GameDojo CUA interface.

Availability

The trajectory files are pending release on the Hub.

Citation

@article{zhang2026gamedojo,
  title   = {GameDojo: Benchmarking Real-Time Interactive Agents in Video Games},
  author  = {Zhang, Kuan and Yang, Zhihao and Chen, Yukun and Yin, Xingyiliang and Ouyang, Mingyu and Su, Yue and Wu, Xiangnan and Li, Jiaming and Chen, Longze and Luo, Run and Chen, Zirong and Wang, Lu and Li, Yiming},
  journal = {arXiv preprint arXiv:2611.30771},
  year    = {2026}
}

We also invite you to explore and cite Gamer, GameScaling, and Survey: Towards Generalist Game Agents.

Downloads last month
94

Models trained or fine-tuned on THUSI-Lab/GameDojo

Collection including THUSI-Lab/GameDojo

Paper for THUSI-Lab/GameDojo