Repository map
What every directory holds and how the pieces connect.
3 min read
At a glance#
| Area | Where it lives | Main commands |
|---|---|---|
| Simulation accuracy | scenarios/, crates/sim-runner, crates/realgame, bakkesmod-plugin/, crates/compare, vendor/rocketsim | just run, just real-run, just real-compare |
| Training | tasks/, crates/rlenv, crates/rlenv-py, python/physlab_rl | just train, just train-match |
| Evaluation | python/physlab_rl | just eval-match, just eval-bots, just league-match |
| Visualizations | apps/web/ (the Command Center), crates/cli (streams to RLViser) | just web-dev, just view, just watch |
| GPU simulator | gpu-sim/ | just gpu-test, just gpu-validate |
How the pieces connect#
Everything runs on RocketSim, an open-source copy of Rocket League's physics, kept with our patches
in vendor/rocketsim.
Simulation accuracy plays a scenario (
scenarios/**/*.json: start state, inputs, duration) in RocketSim and in the real game. Each run records a trace (recordings/*.jsonl, one line per tick), andphyslab comparemeasures how far the two drift apart. Fixes become RocketSim patches.Training steps thousands of patched RocketSim arenas set up by a task (
tasks/*.json: random start states, rewards, episode rules) and writes runs (runs/: metrics and checkpoints). Evaluation games can be exported as scenarios to replay.The GPU simulator runs the same scenarios and writes the same traces, so
physlab comparechecks it against RocketSim too.
The scenario and trace types live in crates/scenario-schema. A trace's first line records where
it came from; units are in the field names (_uu, _uu_s, _rad_s; 50 uu = 1 m).
What's committed#
- the Rust workspace
- bakkesmod-plugin/ the plugin that runs scenarios in the real game (C++)
- physics experiments
- tasks/ training task files
- the experimental GPU simulator, its own Python project
- apps/web/ this site and the Command Center
- alchemy.run.ts,
packages/infra/Cloudflare deploys with Alchemy: the site (public, at rocket-ml.ethanshoe.dev) and the R2 bucket forruns/ - tools/oxlint/ this repo's own lint rules
- shoemaker.config.ts generates the TypeScript tooling configs (
bun run shoemaker:sync) - scripts/ PowerShell helpers: plugin build, game launch, ball suite
- .github/workflows/ CI, and the site deploy
- justfile every command; run
justto list them - Cargo.toml the Rust workspace
- pyproject.toml the Python project for training
- package.json the TypeScript workspace (
apps/*,packages/*), with sharedtsconfig.json,oxlint.config.tsandoxfmt.config.ts - README.md
- …
Created locally#
These are gitignored: each machine makes its own.
- collision_meshes/ arena meshes from your own game (how to get them)
- recordings/ traces from simulator and real-game runs
- reports/ results of
physlab compare - runs/ training runs: metrics and checkpoints (mirrored to R2 with
just runs-push) - target/ Rust build output
- .venv/ the Python environment from
just py-sync - .external/ local copies of the external projects
- tmp/ downloaded tools and scratch output
Who uses which crate#
| Crate | Used by |
|---|---|
scenario-schema | every other crate |
sim-runner | rlenv, realgame, cli |
compare | realgame, cli |
realgame | cli |
rlenv | rlenv-py, cli |
rlenv-py | python/physlab_rl |
cli | the justfile, the Command Center, gpu-sim |
After changing rlenv, sim-runner, scenario-schema or vendor/rocketsim, run just py-sync so
training picks up the rebuilt extension.