RUGENDOCS
Playing

Bring your own character

How online matchups work when both players bring different characters, the FAIR / UNBALANCED / BLOCKED rules, and how fighter files are uploaded, checked and downloaded.

Players do not need the same characters installed. Every online match, whether in a room, quick match or ranked, starts with a matchup: each player brings a fighter from their own chars/, the server judges the pair instantly, and the files travel to the other side before the fight.

The flow

  1. Pick. Each player picks a fighter from their own chars/ (player 1 also picks the stage). The client sends the fighter’s fingerprint, its fairness profile and a small card portrait.
  2. Verdict. The server answers at once with FAIR, UNBALANCED or BLOCKED and the reasons.
  3. Confirm. Both players see the other’s card and the verdict, then CONFIRM or CHANGE FIGHTER. Any change resets both confirmations, and so does a verdict that changes once the server has checked the files (“THE VERDICT CHANGED: CONFIRM AGAIN”).
  4. Sync. From pick time each fighter uploads in the background if the server does not have it yet (only once you agreed to send fighters to that server, see consent), and the opponent’s downloads into cache/net/. Instant when cached.
  5. Fight. Both clients report ready with the fingerprints, rules and game version; the server hands out the relay tickets once both agree. Then VS and the fight.

What the server looks at

Fingerprint (rugen-fp-2). A sha256 over the character’s gameplay files: the .def and everything its [Files] reference, plus the common states it falls back to, path-normalised, with the sprite file counted by its decoded pixels. It does not depend on the container (folder, zip, rar or .rgc), on junk files, on file order, on how sprites are compressed or on the sounds, so converting a character keeps it and two machines converting the same character get the same value. Any byte change in a referenced text file or palette, or any changed sprite, changes it.

Fairness profile. A static analysis of the CNS, done in an instant: life, attack, defence, damage, supers, projectiles, throws, invulnerability windows, cheat flags, and a power score where Kung Fu Man is about 100.

Community rating. Every verified result moves a community Elo per fingerprint, shown on the cards (“COMMUNITY: UNRATED” until it has games).

The verdicts

FAIR

Nothing below applies. The match can be played everywhere, including ranked. A small community rating gap also clears a power-score-only UNBALANCED: real matches have shown the fight is even.

UNBALANCED

The power-score ratio is above 1.6, or life, attack or defence is twice the other’s, or (once both fighters have 10 verified games) the community rating gap is above 200. Ranked refuses it. Casual rooms and quick match play it only when both players press ACCEPT UNBALANCED.

BLOCKED

A cheat-level flag on either side, or a character that fails rugen verify. Never playable: that player changes fighter. A blocked fighter is never uploaded (“BLOCKED: NEVER SHARED”).

The thresholds are the server defaults; operators can change them with RUGEN_FAIR_RATIO, RUGEN_FAIR_COMMUNITY_GAP and RUGEN_FAIR_MIN_GAMES (see Configuration).

Matchup screen: KFM Regen Edit against Kung Fu Man under a red BLOCKED stamp. Reason: state -2 LifeAdd regenerates life.
BLOCKED: this edit regenerates life in state -2. Its player has to change fighter.

Cheat flags

Flags come from the static analysis. Block flags make a matchup BLOCKED; warn flags show up as reasons but do not block on their own. States -2 and -3 run every frame, so most rules watch them.

FlagWhat it catchesSeverity
permanent_invulnNotHitBy / HitBy in state -2 / -3 with situation-free triggersblock
regenLifeAdd > 0 on itself in -2 / -3block (always) / warn (gated)
life_lockLifeSet on itself in -2 / -3block / warn
no_koAssertSpecial noko / globalnoko in -2 / -3block / warn
invisibleAssertSpecial invisible in -2 / -3, alwaysblock
round_stallAssertSpecial timerfreeze / roundnotover in -2 / -3, alwaysblock
no_pushPlayerPush value = 0 in -2 / -3, alwaysblock
pause_loopPause / SuperPause in -2 / -3, alwaysblock
long_pausePause / SuperPause time ≥ 600 anywhereblock
target_life_setTargetLifeSet anywhereblock
target_life_addTargetLifeAdd ≤ -600block
custom_state_killa custom (p2stateno / TargetState) state LifeSets the opponent or takes ≥ 600block
custom_state_varsa custom state writes the opponent’s variableswarn
enemy_redirecta modifying controller with redirectid aimed at an enemyblock
one_hit_killa single hit ≥ 700 damageblock
heavy_hita single hit ≥ 400 damagewarn
extreme_constslife > 3000, attack / defence > 250block
high_constslife > 1500, attack / defence > 150warn
long_invulnNotHitBy ≥ 300 frames in a movewarn
power_regenPowerAdd > 0 in -2 / -3, alwayswarn

“Always” means the controller’s triggers do not narrow it down to a situation, so it runs (nearly) every frame. “Gated” means its triggers tie it to a situation (a state, move type, animation or command), which only earns a warning.

Matchup screen with an UNBALANCED stamp between two fighters with very different power scores.
UNBALANCED: playable in casual rooms only when both players accept it.

Uploads and downloads

  • What travels. The fighter’s content file (its .rgc, or the stage’s .rgs: about 20 MB for a big character, see Content files). Uploads are resumable, in 2 MB chunks, and only happen when the server does not already hold that fingerprint.
  • The server re-checks. It opens the upload in place and recomputes the fingerprint and the profile from its content. If they differ from what the client claimed, the match fails and the account is flagged, so an edited character cannot pass as the original.
  • Where it lands. Downloads go to cache/net/ on the other machine, never into chars/. Next time the same fingerprint is instant.
  • Limits. Uploads are only accepted for a fighter the account declared in a live matchup, capped per package and per hour (per account and per IP).

The matchup screen shows both transfers (“UPLOADING YOURS”, “DOWNLOADING THEIRS”, “ALREADY THERE (CACHED)”).

Same files on both sides

Because the matchup syncs both fighters and the stage by fingerprint before the relay session exists, and both clients confirm the fingerprints, rules and game version they will run, both machines simulate byte-identical content. That is what lets rollback netcode work with characters only one player owns.

Something wrong on this page? Edit it on GitHub.

SEARCH !!

    ↑↓ to move, Enter to open