Repository map

What every directory holds and how the pieces connect.

3 min read

At a glance#

AreaWhere it livesMain commands
Simulation accuracyscenarios/, crates/sim-runner, crates/realgame, bakkesmod-plugin/, crates/compare, vendor/rocketsimjust run, just real-run, just real-compare
Trainingtasks/, crates/rlenv, crates/rlenv-py, python/physlab_rljust train, just train-match
Evaluationpython/physlab_rljust eval-match, just eval-bots, just league-match
Visualizationsapps/web/ (the Command Center), crates/cli (streams to RLViser)just web-dev, just view, just watch
GPU simulatorgpu-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), and physlab compare measures 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 compare checks 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 for runs/
  • 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 just to list them
  • Cargo.toml the Rust workspace
  • pyproject.toml the Python project for training
  • package.json the TypeScript workspace (apps/*, packages/*), with shared tsconfig.json, oxlint.config.ts and oxfmt.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#

CrateUsed by
scenario-schemaevery other crate
sim-runnerrlenv, realgame, cli
comparerealgame, cli
realgamecli
rlenvrlenv-py, cli
rlenv-pypython/physlab_rl
clithe 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.