OpenGA-light / README.md
Raywithyou's picture
Add files using upload-large-folder tool
93e8d6c verified
|
Raw History Blame Contribute Delete
13.2 kB
---
language:
- en
license: other
license_name: openga-mixed-licenses
license_link: LICENSE.md
tags:
- games
- multimodal
- reinforcement-learning
configs:
- config_name: spire-dash-light
data_files:
- split: examples
path: games/platformer/precision/spire-dash/episodes.jsonl
- config_name: loop-rider-light
data_files:
- split: examples
path: games/platformer/speed/loop-rider/episodes.jsonl
- config_name: glidewhistle-isles-light
data_files:
- split: examples
path: games/platformer/3d-collectathon/glidewhistle-isles/episodes.jsonl
- config_name: twin-keys-light
data_files:
- split: examples
path: games/platformer/puzzle/twin-keys/episodes.jsonl
- config_name: hollow-beacon-light
data_files:
- split: examples
path: games/platformer/metroidvania/hollow-beacon/episodes.jsonl
- config_name: night-courier-light
data_files:
- split: examples
path: games/platformer/auto-runner/night-courier/episodes.jsonl
- config_name: saltflat-sprint-light
data_files:
- split: examples
path: games/platformer/3d-lane-runner/saltflat-sprint/episodes.jsonl
- config_name: sky-tower-light
data_files:
- split: examples
path: games/platformer/vertical/sky-tower/episodes.jsonl
- config_name: rivet-warren-light
data_files:
- split: examples
path: games/shooter/twin-stick/rivet-warren/episodes.jsonl
- config_name: clocktower-volley-light
data_files:
- split: examples
path: games/shooter/rail/clocktower-volley/episodes.jsonl
- config_name: redrock-breach-light
data_files:
- split: examples
path: games/shooter/third-person/redrock-breach/episodes.jsonl
- config_name: sandline-duel-light
data_files:
- split: examples
path: games/melee/versus-fighter/sandline-duel/episodes.jsonl
- config_name: dockside-brawl-light
data_files:
- split: examples
path: games/melee/beat-em-up/dockside-brawl/episodes.jsonl
- config_name: tidebreak-blade-light
data_files:
- split: examples
path: games/melee/hack-and-slash/tidebreak-blade/episodes.jsonl
- config_name: antler-vale-light
data_files:
- split: examples
path: games/action-adventure/3d/antler-vale/episodes.jsonl
- config_name: stillwater-wing-light
data_files:
- split: examples
path: games/action-adventure/survival-horror/stillwater-wing/episodes.jsonl
- config_name: deep-delve-light
data_files:
- split: examples
path: games/action-adventure/roguelite/deep-delve/episodes.jsonl
- config_name: latchwork-rooms-light
data_files:
- split: examples
path: games/adventure/point-and-click/latchwork-rooms/episodes.jsonl
- config_name: ember-road-light
data_files:
- split: examples
path: games/rpg/jrpg/ember-road/episodes.jsonl
- config_name: fourfold-vault-light
data_files:
- split: examples
path: games/rpg/crpg/fourfold-vault/episodes.jsonl
- config_name: marsh-banners-light
data_files:
- split: examples
path: games/strategy/tactics/marsh-banners/episodes.jsonl
- config_name: hilltop-bulwark-light
data_files:
- split: examples
path: games/strategy/tower-defense/hilltop-bulwark/episodes.jsonl
- config_name: saltglass-hand-light
data_files:
- split: examples
path: games/strategy/card-battler/saltglass-hand/episodes.jsonl
- config_name: ridgewind-flight-light
data_files:
- split: examples
path: games/simulation/vehicle/ridgewind-flight/episodes.jsonl
- config_name: splice-circuit-light
data_files:
- split: examples
path: games/racing/top-down/splice-circuit/episodes.jsonl
- config_name: puffin-cup-light
data_files:
- split: examples
path: games/sports/arcade/puffin-cup/episodes.jsonl
- config_name: quarry-drop-light
data_files:
- split: examples
path: games/puzzle/falling-block/quarry-drop/episodes.jsonl
- config_name: foldkeeper-light
data_files:
- split: examples
path: games/puzzle/sokoban/foldkeeper/episodes.jsonl
- config_name: slingfeather-keep-light
data_files:
- split: examples
path: games/puzzle/physics/slingfeather-keep/episodes.jsonl
- config_name: lightwell-halls-light
data_files:
- split: examples
path: games/puzzle/first-person/lightwell-halls/episodes.jsonl
- config_name: pantry-raid-light
data_files:
- split: examples
path: games/arcade/maze-chase/pantry-raid/episodes.jsonl
- config_name: shardwall-light
data_files:
- split: examples
path: games/arcade/brick-breaker/shardwall/episodes.jsonl
- config_name: tidal-run-light
data_files:
- split: examples
path: games/arcade/cave-flyer/tidal-run/episodes.jsonl
- config_name: grove-drummer-light
data_files:
- split: examples
path: games/rhythm/tap/grove-drummer/episodes.jsonl
- config_name: rootstone-frontier-light
data_files:
- split: examples
path: games/sandbox/block-sandbox/rootstone-frontier/episodes.jsonl
---
# OpenGA light trajectories
Code, games and tools: [github.com/OpenGameAgent/OpenGameAgent](https://github.com/OpenGameAgent/OpenGameAgent).
Play the games: [opengameagent.github.io](https://opengameagent.github.io/).
Replay-admitted examples from 50 original Godot 4 games. This release contains **961 episodes**
across **35 games with data**. All listed configs end in `-light`; all are light samples. Empty games
have a directory and notices but no config. Larger-scale generation comes after human review.
Witness runs establish feasibility and are excluded from solver training data. This release makes no
claim of complete solver coverage or of a trained model's performance.
## Structure and loading
`dataset.json` records game commits, counts and the corresponding source release. Each game has
`games/<class>/<subgenre>/<name>/episodes.jsonl`, a compact episode index that Hugging Face Datasets
can load by config with split `examples`. This split is an inventory, **not a training/held-out assignment**;
respect the code repository's dataset registries and split rules before training.
Payload paths mirror the source game tree:
```text
games/<class>/<subgenre>/<name>/
episodes.jsonl
LICENSE, ASSETS-LICENSE.md, env/assets/sources.json
trajectory/
solve.json, RELEASE.json, raw/summary.json coverage and release receipts
raw/episodes/<id>/meta.json completion marker, reset, provenance, frame index
raw/episodes/<id>/steps.jsonl.zst one native-input record per decision
raw/frames/<id>-00000.tar PNGs; seekable shards, at most 256 MiB
video/<id>.mp4 optional human-viewable film
```
PNGs are already compressed. Uncompressed tar preserves direct byte-offset reads; shards are bounded
per episode so downloading one episode does not require unrelated games or episodes. The frame
index in `meta.json` contains each shard, member, offset and size. No images.jsonl scan is needed.
Index fields `reset_config_json` and `parameters_json` contain JSON strings to keep schemas consistent
across games. Private state and events are replay evidence, never model inputs.
Clone the matching code release and install `.[games]` plus the separately documented Godot/Xvfb runtime.
From the **code** checkout, use a local dataset mirror or a pinned Hugging Face revision:
```sh
python3 scripts/fetch_data.py --source ../dataset --game foldkeeper --episode EPISODE_ID
# Or, after publication:
python3 -m pip install huggingface_hub
python3 scripts/fetch_data.py --repo OpenGameAgent/OpenGA-light --revision v0.1 --game foldkeeper --episode EPISODE_ID
openga check replay games/puzzle/sokoban/foldkeeper --all --out .runtime/replay
```
Omit `--episode` to download one game's entire light set. The helper reads the code checkout's compact
index and retrieves only that selection; it also copies optional films. `openga export` can then create
public image/action rows. It excludes private replay state from model inputs.
```python
import io, json
from pathlib import Path
from PIL import Image
from toolkit.steps import read
raw = Path("games/puzzle/sokoban/foldkeeper/trajectory/raw")
episode = next((raw / "episodes").iterdir())
meta = json.loads((episode / "meta.json").read_text())
steps = list(read(episode / "steps.jsonl.zst"))
frame = meta["frames"][0]
with (raw / frame["shard"]).open("rb") as shard:
shard.seek(frame["offset"])
image = Image.open(io.BytesIO(shard.read(frame["size"]))).copy()
```
## Verification and limitations
The toolkit records real engine-native keyboard/mouse input at 60 Hz (one decision every 200 ms).
An admitted episode has a successful task verifier and a successful independent fresh headless replay
comparing state and per-tick events. Rendered replay is sampled by the recording pipeline; it is not
claimed for every episode. The assembler excludes unfinished/missing payloads, uncommitted recordings,
and recordings whose executable game/task source differs from the pinned release. Original recording
commits remain in metadata. `trajectory/RELEASE.json` lists withheld recordings and reasons;
`raw/summary.json` describes the packaged subset; `source-summary.json`, when present, preserves the
source generation report. `solve.json` distinguishes solved, partial, unsolved and witness-only tasks
and the starts tested. A replay pass is not proof of complete task coverage or generalization.
This is synthetic gameplay and may contain failed actions before eventual success. Some games have
no admitted solver episodes yet. Films may include brief help/reset/end screens around play; website
excerpts are separately selected. No external benchmark ROMs, real-game art, private agent sessions,
model weights, audio or witness training rows are included.
## Licenses
Game and toolkit code are Apache-2.0, including Cloverhop. Rendered assets and fonts retain the
CC0, CC-BY, OFL and other terms in each game's `ASSETS-LICENSE.md` and `env/assets/sources.json`.
Screenshots and films reproduce those assets; preserve the corresponding notices when redistributing.
Sky Tower's disclosed image-model backgrounds are CC0-1.0 with prompts in its source manifest.
This dataset is mixed-license; it is not a blanket Apache license for every depicted asset.
## Per-game inventory
Counts are regenerated from completed, admitted payloads on every assembly.
| Game | Config | Episodes | Decisions | Payload MiB |
|---|---|---:|---:|---:|
| Cloverhop | `no episodes` | 0 | 0 | 0.6 |
| Spire Dash | `spire-dash-light` | 32 | 962 | 35.2 |
| Loop Rider | `loop-rider-light` | 4 | 373 | 30.0 |
| Glidewhistle Isles | `glidewhistle-isles-light` | 4 | 298 | 101.9 |
| Twin Keys | `twin-keys-light` | 16 | 2068 | 236.2 |
| Hollow Beacon | `hollow-beacon-light` | 7 | 185 | 24.4 |
| Night Courier | `night-courier-light` | 58 | 14546 | 1047.1 |
| Saltflat Sprint | `saltflat-sprint-light` | 38 | 10433 | 1618.3 |
| Sky Tower | `sky-tower-light` | 7 | 507 | 203.4 |
| Prismwake Dispatch | `no episodes` | 0 | 0 | 0.2 |
| Iron Lantern | `no episodes` | 0 | 0 | 0.3 |
| Rivet Warren | `rivet-warren-light` | 42 | 3465 | 402.9 |
| Grassfire Night | `no episodes` | 0 | 0 | 0.3 |
| Clocktower Volley | `clocktower-volley-light` | 30 | 5047 | 404.7 |
| Bulkhead Nine | `no episodes` | 0 | 0 | 0.1 |
| Redrock Breach | `redrock-breach-light` | 6 | 350 | 128.8 |
| Sandline Duel | `sandline-duel-light` | 42 | 7267 | 1020.8 |
| Dockside Brawl | `dockside-brawl-light` | 42 | 15409 | 1516.2 |
| Tidebreak Blade | `tidebreak-blade-light` | 2 | 38 | 5.8 |
| The Hollow Weir | `no episodes` | 0 | 0 | 0.4 |
| Antler Vale | `antler-vale-light` | 5 | 280 | 56.2 |
| Stillwater Wing | `stillwater-wing-light` | 21 | 4026 | 1071.7 |
| Deep Delve | `deep-delve-light` | 4 | 741 | 101.6 |
| Latchwork Rooms | `latchwork-rooms-light` | 20 | 2556 | 241.0 |
| Ember Road | `ember-road-light` | 42 | 58474 | 5814.3 |
| Fourfold Vault | `fourfold-vault-light` | 55 | 20211 | 3896.2 |
| Pale Bastion | `no episodes` | 0 | 0 | 0.0 |
| Lowcandle Deep | `no episodes` | 0 | 0 | 0.3 |
| Loamhill Legions | `no episodes` | 0 | 0 | 0.0 |
| Marsh Banners | `marsh-banners-light` | 60 | 26932 | 4409.5 |
| Hilltop Bulwark | `hilltop-bulwark-light` | 37 | 20630 | 3831.7 |
| Saltglass Hand | `saltglass-hand-light` | 34 | 11698 | 1804.5 |
| Brickwater Bay | `no episodes` | 0 | 0 | 0.1 |
| Barleybrook Acres | `no episodes` | 0 | 0 | 0.2 |
| Ridgewind Flight | `ridgewind-flight-light` | 44 | 34403 | 4468.7 |
| Coastline Rush | `no episodes` | 0 | 0 | 0.1 |
| Pinwheel Rally | `no episodes` | 0 | 0 | 0.2 |
| Splice Circuit | `splice-circuit-light` | 14 | 4425 | 239.7 |
| Puffin Cup | `puffin-cup-light` | 1 | 3287 | 502.3 |
| Quarry Drop | `quarry-drop-light` | 30 | 5689 | 777.1 |
| Glintpond | `no episodes` | 0 | 0 | 0.1 |
| Foldkeeper | `foldkeeper-light` | 54 | 3902 | 511.7 |
| Slingfeather Keep | `slingfeather-keep-light` | 40 | 1869 | 163.5 |
| Lightwell Halls | `lightwell-halls-light` | 26 | 15199 | 1624.8 |
| Pantry Raid | `pantry-raid-light` | 32 | 9787 | 1297.8 |
| Shardwall | `shardwall-light` | 38 | 3930 | 467.1 |
| Tidal Run | `tidal-run-light` | 38 | 10589 | 1049.5 |
| Grove Drummer | `grove-drummer-light` | 30 | 9838 | 1863.9 |
| Rootstone Frontier | `rootstone-frontier-light` | 6 | 1120 | 164.2 |
| Kilnstead | `no episodes` | 0 | 0 | 0.1 |