RUGENDOCS
Engine & contributing

Contributing

Where the code lives, the commit convention, the checks to run and how to report a character that misbehaves.

rugen is split into three repositories under the rugen-dev organisation:

RepositorySend changes about
rugen-engineThe game: formats, CNS, simulation, rendering, audio, netplay client, menus, themes, CLI.
rugen-serverThe online hub, matchmaking, relay, packages, deploy/.
rugen-docsThis website. Every page has an “Edit it on GitHub” link at the bottom.

Commit convention

Commits follow Conventional Commits as type(scope): subject. For example:

feat(sim): support the Width state controller
fix(net): keep the relay token when switching to WebSocket
docs(online): explain spectator seats
refactor(cns): split the Pratt parser into its own module
chore(ci): cache cargo registry
  • type: feat, fix, docs, refactor, perf, test, build, ci, chore, …
  • scope: the area touched, usually the crate (formats, cns, sim, net, render, audio, content, ui, proto, fair, app) or a feature (online, matchup, server, site).
  • subject: imperative, lower case, no trailing period.

Before you send a change

For the engine and the server:

cargo fmt --all --check
cargo clippy --workspace --all-targets
cargo test --workspace

The simulation must stay deterministic: read the determinism rules before touching sim or cns. In short: no mul_add, transcendentals from libm, no HashMap iteration, no I/O.

For the docs:

npm install
npm run build      # builds, indexes search and checks every internal link

Compatibility bugs

When a character behaves differently from MUGEN 1.1 / Ikemen GO:

  1. Run rugen check <char> and rugen verify <char> and include the output.
  2. Say where to get the character (do not attach third-party content unless its license allows it).
  3. Describe what it does in MUGEN or Ikemen GO and what it does in rugen. A recorded replay (--record file.json) helps.

Ikemen GO’s source is the reference for semantics: when in doubt, match it, then diff frame by frame.

Something wrong on this page? Edit it on GitHub.

SEARCH !!

    ↑↓ to move, Enter to open