Online play
The ONLINE hub, accounts with usernames, rooms and room codes, quick match, ranked with Elo and seasons, spectating, fleeing a match, and playing with other rugen versions. Matches connect peer to peer by default, with TURN and the server relay as fallbacks.
ONLINE is always on the title screen. Online matches go through a rugen-server: a small hub anyone can host (see Hosting rugen-server). The server does matchmaking, judges the matchup, verifies results and signs them; the match itself connects the two players directly, peer to peer whenever it can (see How a match connects).
The ONLINE hub
ONLINE opens one screen for everything: your servers on the left, the
selected server on the right. Each row shows the server’s name, an
OFFICIAL or UNVERIFIED tag, players online, rooms and ping. The
panel shows its message of the day, ONLINE, ROOMS, PING and
YOUR RATING (a grey -- until you have played ranked there), and the
buttons QUICK MATCH, RANKED, ROOMS and LEADERBOARD.
- + ADD SERVER, the last row, asks for an address and saves it to your
favourites. Type
https://host(a server behind HTTPS) orip:port(a server without a proxy, for example203.0.113.5:8080). - Del on a row removes that server from your list (your account there stays; add it again to play on it). The official server is always listed.
- LAN / DIRECT IP, under the list, opens direct matches without a server (see Direct matches).
- A server that is offline, or runs another version of rugen, is greyed out with the reason (see Mixed versions).
The list is also in rugen.toml:
[net]
server = "https://rugen.example.com" # default server
servers = ["https://friends.example.org", "203.0.113.5:8080"] # favourites
Problems are said in plain words. Small ones appear as a toast in the footer (an error toast offers RETRY and DISMISS), for example CAN’T REACH RUGEN.EXAMPLE.COM: THE SERVER IS OFFLINE OR THE ADDRESS IS WRONG. CHECK YOUR INTERNET, THEN RETRY. Anything you have to decide on opens a dialog in the middle of the screen. Raw network errors only go to the log.
The key hints in the footer follow your bindings: each shortcut (P for PROFILE, W for WATCH, C for CREATE, …) moves to a spare letter when a player binding already uses it, and is hidden when none is free.
The focus looks the same on every online screen (hub, lobby, room, create, join, profile, leaderboard, dialogs, matchup) and follows the keyboard, gamepad or mouse hover alike: a focused button fills (red over a hard ink shadow in Shonen Ink, a vermilion plaque in a brass edge in Dojo); a focused server card, account card or list row gets a strong tint, a thick coloured bar and an edge; a focused text field or choice gets a thick edge. The server or account currently chosen is marked by a shadow panel, so it never looks focused when it is not.
Official and community servers
The official server’s address and Ed25519 public key are built into the game. A server only counts as OFFICIAL after it signs a random challenge from your game with that key; a server that claims to be official without proving it is tagged UNVERIFIED. Every other server is a COMMUNITY server: it works fully, and when it signs its statements the game shows its own key fingerprint.
- Only the official server’s ranked, Elo, seasons and leaderboard are the global ranking. A community server’s ratings carry its name wherever a rating shows.
- Matchup verdicts and ranked results are signed. An OFFICIAL stamp needs the official key; a bad signature is rejected.
- The official server publishes a signed truth feed: the global cheat
blocklist and the community character ratings. The game verifies it,
caches it in
cache/official_truth.json, and marks blocked fighters in the roster and on the matchup cards (BLOCKED BY THE OFFICIAL SERVER). Community servers pull the same feed and enforce its blocklist in their verdicts.
Accounts
Every server keeps its own account for you; offline play needs none. PROFILE, on the title menu (or P in the hub), lists one card per server and the selected server’s account.
- CREATE ACCOUNT: a username (3-16 letters, digits,
_or-, unique on that server ignoring case) and a password (at least 6 characters). No e-mail is asked. Passwords are hashed with Argon2id on the server; your game only keeps the login key inprofile.json, never the password. - CLAIM THIS ACCOUNT: an anonymous account (the key-only accounts of rugen 0.5 and earlier) gets a username and password and keeps its rating and history. Ranked asks you to claim first.
- LOG IN with the same username and password on your other devices.
- Signed in, the page shows how many devices are logged in, and CHANGE PASSWORD (logs your other devices out), LOG OUT (this device only) and LOG OUT EVERYWHERE.
- The ✓ next to a name means it is a server username, not a free-form guest name: you see it in the lobby, rooms, matchup, ranked queue and leaderboard.
- LINK WEBSITE shows a six-character code for rugen.dev: see Linking rugen.dev.
Entering a server where you have no account opens its PROFILE page first. Servers that do not have usernames yet (older servers) keep working anonymously: just enter them.
Linking rugen.dev
Your account on the official server can be linked to your rugen.dev login so the site shows your profile, rating and matches, and can seat you in the tournaments it announces. No password leaves the game: the link is a short code.
- Sign in on rugen.dev and open Settings › Link (
rugen.dev/settings/link). - In the game, PROFILE › select the official server › LINK WEBSITE. The game asks the server for a code and shows it large: six characters from the room-code alphabet, with a countdown.
- Type the code on the site. A code works once and for ten minutes; REFRESH asks for a new one (the old one stops working the moment the new one arrives). Esc goes back to the account.
Only named accounts (a username) can be linked; servers older than this feature say THIS SERVER HAS NO WEBSITE LINKS YET.
Your fighters online: consent
Online play sends the fighter you bring (and, as player 1, the stage) to the server, which passes it to your opponent and to anyone watching. The first time you go online on a server, the game asks:
ONLINE PLAY SENDS YOUR FIGHTERS TO THE SERVER, YOUR OPPONENT AND VIEWERS. THEY’RE KEPT 3 DAYS, THEN DELETED. [I AGREE] [NOT NOW]
- I AGREE is remembered for that server (in
profile.json). The game asks again if the wording changes or if the server keeps fighters longer than it said (the number of days comes from the server). - NOT NOW still lets you play: nothing of yours is uploaded, so a match only runs when your opponent already has your fighter and stage (the matchup shows NOT SENT: NO ONLINE CONSENT). If they don’t, the matchup ends and says who lacks what. NOT NOW lasts until you quit; the game asks again the next time you start it.
- PROFILE shows each server’s ONLINE CONSENT under the server list
(select the server’s card): AGREED with the day and how long fighters
are kept, NOT GIVEN, or NOT NOW for this session. AGREE opens the
same dialog (answering it stays on PROFILE); WITHDRAW removes the
consent from
profile.jsonat once: nothing more of yours is uploaded to that server (the game does not ask again until you restart it), and what is already there is deleted when its days are up. - LAN / direct IP matches and offline play never ask: nothing goes through a server.
- Servers delete every fighter 3 days after it was sent (an operator can shorten or lengthen that; the dialog shows the server’s number).
On a server
| Entry | What it does |
|---|---|
| QUICK MATCH | Casual queue: the server pairs you with the closest opponent. |
| RANKED | Elo-rated queue with seasons and ping-aware matchmaking. On servers with usernames, it needs one. |
| ROOMS | The lobby, plus CREATE ROOM and JOIN BY CODE. |
| LEADERBOARD | The season’s ranking. |
Rooms
The lobby lists public rooms with their HOST (✓ when verified), RULES, SEATS and WATCHING counts; a running match shows LIVE, a locked room PASSWORD. JOIN and WATCH appear on the selected row; a full room shows FULL · WATCH ONLY. Private rooms are not listed: they need their code.
CREATE ROOM shows a preview of how others will see the room:
| Option | Choices |
|---|---|
| Room name | Up to 24 characters; defaults to <NAME>'S ROOM |
| Rounds | 1, 2 or 3 rounds to win (default 2) |
| Time | 60 S, 99 S or NO LIMIT |
| Mode | CLASSIC (one flat stage) or ARENA (platforms, pits and blast zones, see Arena) |
| Fighters | FREE PICK (each brings their own, the server judges the matchup) or MIRROR (the challenger plays the host’s fighter) |
| Fighter size | NONE, CHIBI, SMALL or NORMAL (default): both players fight with the room’s fighter size, whatever their own setting |
| Life | 1000 to 10000 in steps of 500 (← / →, default 5000): every fighter’s life in the room, whatever its own files and the players’ LIFE setting say. The room’s tags show LIFE 5000. |
| Who can join | ANYONE (listed in ROOMS) or CODE ONLY (not listed) |
| Spectators | OFF, 2, 4 or 6 seats |
| Password | Optional. Players type it even with the code. Stored on the server as an Argon2id hash. |
The stage comes from [net] stage. In the room, COPY CODE puts the
code on the clipboard; the host can KICK, and after a fight REMATCH
takes the focus.
Tournament brackets
FORMAT on CREATE ROOM makes a room a tournament: BRACKET 8 or BRACKET 16, single elimination. Everyone who joins (not as a spectator) is an entrant until the bracket is drawn; the host presses START THE BRACKET once at least two players are in. The server seeds the entrants by rating (1 v 8, 4 v 5, 2 v 7, 3 v 6), gives empty places to the top seeds as byes, and calls one match at a time: the two players’ matchup opens on its own (the higher seed is P1, the room’s rules apply), everyone else watches the bracket.

- The score is the rounds each side won, as both players report it.
- A match whose reports disagree, or whose matchup fails, is called once more. Then, or when a called match has not started after 3 minutes, it is a walkover: the player still in the room goes through, else the one who got further in the matchup, else the higher seed.
- A few seconds after each result the next match is called, up to the champion. START AGAIN runs a new bracket with whoever is still there.
- Brackets need this version: an older client cannot join a tournament room.
- A tournament announced on rugen.dev has no host: the site tells you the room code, you enter it with JOIN BY CODE (the room is also listed in ROOMS when public, hosted by the server itself) and take your seat in the bracket. The room says CALLED BY THE SERVER where START THE BRACKET would be: nobody starts or kicks, the bracket is drawn by the organiser and your match is called once your opponent is in the room too; one who never shows up within 3 minutes of your arrival is a walkover for you. The bracket is mirrored on the site.
Room codes
Codes are 5 characters from ACDEFGHJKLMNPQRTUVWXY34679: no characters
that look alike (no 0/O, 1/I, 5/S, 2/Z or 8/B).
- JOIN BY CODE takes lowercase too and ignores spaces; Ctrl
- V pastes. A room with a password asks for it.
- Codes made by older servers, which could contain
B,S,Z,2,5or8, still work. [net] roominrugen.tomlpre-fills the code.
Leaderboard
#, PLAYER, RATING, RECORD and LAST SEASON for the running season, with your own row pinned at the bottom. The official server’s board is the GLOBAL RANKING; a community server’s is THIS SERVER ONLY. The box in the top right corner names the season and how long it has left.

- SEASON ◀ ▶ (← / → anywhere on the board) steps back through the finished seasons the server kept: their final standings, frozen as the season ended, with each player’s FINAL TIER.
- LAST SEASON is a badge: the tier of the rating a player ended its last
finished season with (gold for GOLD and above). It also shows on your
PROFILE page (
S2 GOLD).
Per-fighter boards
The FIGHTERS tab (Tab switches between PLAYERS and FIGHTERS) ranks the players of one fighter by their rating with that fighter: each ranked match also moves both players’ ratings with the fighters they played (Elo, K = 32, against the other player’s rating with theirs). FIGHTER ◀ ▶ steps through the fighters that have a board this season, most played first; SEASON works as on the players’ board. Fighters are told apart by their content fingerprint, so two versions of one fighter have two boards. A player new to a fighter in a season starts from a soft reset of its rating with it last season, else from 1200.

Seasons
A ranked season lasts 90 days. When it ends, the server keeps its final standings (rating, record and position of everyone who played a ranked match), gives each of those players its badge, then soft-resets every rating halfway toward 1200 (1600 becomes 1400, 1000 becomes 1100) and starts every record again at 0-0. The reset is a pure function of the standings, tested on its own, so every server applies the same one.
Quick match and ranked
Both queues are ping-aware: the server measures each player’s round trip on the lobby WebSocket and pairs the lowest combined ping first, with a window that widens 60 → 120 → 200 ms → any after 30 s. Ranked also widens the Elo window over time.
- GOOD CONNECTIONS ONLY (OPTIONS → ONLINE, or
good_connections_only = true) caps it: you are only paired with opponents under 80 ms. - Quick match and ranked always play with the NORMAL fighter size and 5000 life.
- Ranked uses Elo with K = 32. Seasons roll every 90 days with a soft rating reset (see Seasons).
- Ranked only accepts FAIR matchups (see below). Casual rooms and quick match can play UNBALANCED ones if both players accept.
How a match connects
Once both players confirm, the game opens every path it can and plays on the fastest one that works:
- Direct (the default): peer to peer over UDP, with hole punching and authenticated checks. The shortest route, so the lowest ping.
- Cloudflare TURN: both players go through a TURN relay, when the server offers one (the official server uses Cloudflare Realtime TURN).
- Server relay: through the rugen-server, over UDP or, on HTTPS-only networks, a WebSocket.
The game picks the fastest working path when the match starts and keeps measuring the others. Mid-match it switches at once away from a path that goes quiet (0.8 s without traffic), and to a clearly better path once it has stayed better for 2 s. The server relay session stays open the whole match, for signalling and as the last fallback.
Privacy: DIRECT CONNECTION
A direct connection means your opponent’s game sees your IP address (it has to send packets to it). If you would rather it did not:
- OPTIONS > ONLINE > DIRECT CONNECTION OFF, or in
rugen.toml:
[net]
direct = false # always relayed (TURN or the server), private
Off on either side keeps the match relayed: without both players allowing it, no address is ever exchanged. IP addresses are never shown on screen and never logged. The matchup screen tells you which applies: DIRECT PEER-TO-PEER (YOUR OPPONENT’S GAME SEES YOUR IP) or RELAYED, PRIVATE (TURN OR THE SERVER).
Which networks connect directly
The game learns its public address from Cloudflare STUN and probes a second port to tell symmetric NATs (a new public port for every destination, common on mobile and CGNAT networks) apart from the others.
| Player A | Player B | Path |
|---|---|---|
| Same LAN | Direct (local addresses) | |
| IPv6 | IPv6 | Direct |
| Cone NAT (full, address- or port-restricted) | Cone NAT | Direct (hole punching) |
| Symmetric NAT | Full-cone or address-restricted NAT | Direct |
| Symmetric NAT | Port-restricted NAT | TURN (hole punching cannot meet) |
| Symmetric NAT | Symmetric NAT | TURN (direct is skipped after a short same-network try) |
Without TURN on the server, matches that cannot go direct use the server relay.
Security
Every direct packet (checks and game traffic) carries a counter and an HMAC tag computed with a per-match key that only the two players hold; anything that does not verify, or replays an old counter (64-packet replay window), is dropped before it is parsed. Spectators never see the signalling.
During the match
The corner shows 1-4 bars and a line such as DIRECT 34 MS D1:
| Part | Meaning |
|---|---|
DIRECT / TURN / RELAY | The path carrying the match right now. |
34 MS | Ping (round trip) on that path. |
D1 | Input delay in frames (see Netcode). |
CONNECTION UNSTABLE appears on interruptions, large frame advantage or deep rollbacks.
Leaving a match: flee
Online matches have no pause: Esc, START (or a pad’s Start or Select / Back) opens the MATCH MENU with RESUME and FLEE while the fight goes on (your fighter stands still meanwhile). START is a local key: it is never sent to the other player. FLEE asks FLEE THE MATCH? (focus on NO) and tells you what it costs:
- Fleeing counts as a loss: in ranked you lose rating as for any loss (RANKED: YOU LOSE RATING); in casual matches it is recorded as a flee.
- Your opponent wins: the fight freezes and dims under YOU WIN / YOUR OPPONENT FLED. An opponent who just drops (no traffic on any path for 8 s) gives OPPONENT DISCONNECTED instead.
- A loss you report against yourself counts at once. A win claimed because the other player fled or disconnected is never taken on the client’s word: the server waits 15 s for the other player’s report, then settles it only if its own relay saw that player leave (a goodbye, or 10 s of silence) while the winner was still there. Otherwise the match stays unresolved and no rating moves.
In a direct LAN / IP match the menu works too, but there is no server: the other player sees OPPONENT DISCONNECTED and nothing is recorded.
Before the fight, the matchup screen shows the connection line with the
server’s ping estimate and the delay it would give, for example
DIRECT PEER-TO-PEER (...) · ~120 MS · DELAY 1F, with HIGH PING added
above 200 ms.
The matchup: bring your own character
The two machines do not need the same characters. Every online match opens
a matchup: you pick a fighter from your own chars/ (in online mode,
player 1 also picks the stage, on the stage strip of the fighter pick; online
does not use the separate stage select yet), the server judges both at once and stamps
the pair FAIR, UNBALANCED or BLOCKED. Both players confirm, the
fighters’ files sync in the background, then VS and the fight.
On the online fighter pick, the opponent’s card shows the other player’s
name (ranked match or room) and BRINGS <FIGHTER> once they have
picked, WAITING FOR THEIR PICK… until then.
The matchup screen is a face-off: both fighters with their ratings, the verdict stamp, and mirrored stat bars (POWER, LIFE, ATTACK, DEFENCE, BEST HIT, COMBO, SUPERS, PROJECTILES, THROWS) with the stronger side in red, then each side’s transfer and state, the connection line, and CONFIRM (ACCEPT for an UNBALANCED pair), CHANGE FIGHTER and LEAVE.

The rules and the transfer process are on Bring your own character.
Watching live matches
The server keeps the input log of every match it starts: both players send their confirmed inputs on their relay session, and viewers read it from the server, so watching never costs a player any bandwidth and anyone can come in at any moment of the match.
- ROOMS lists the running quick and ranked matches (LIVE) next to the rooms; a room whose match is running shows WATCH (Enter, or the watch key), with no seat limit.
- In a tournament room, the live match’s box says LIVE · ENTER TO WATCH: Enter anywhere on the bracket opens it.
- A missing fighter or stage downloads first (the package sync, as for an opponent), then the match plays on your machine from frame 0. A late viewer fast-forwards silently (CATCHING UP with a bar), then follows 3 seconds behind the players; a red strip names both players and the delay. Esc leaves.
- The match is simulated with its own rules and seed, so it is the players’ match frame for frame; it needs the same game version as the players.
- A private room’s match is for the room’s members.
- A watch link from rugen.dev (
rugen://watch/CODE) opens the game straight on that room as a spectator: see Watch links.

Spectator seats
Rooms also keep their spectator seats for older clients: a spectator joins
before the match starts (WATCH in JOIN BY CODE while a seat is free)
and receives the host’s confirmed inputs through the server relay. From the
command line: rugen play <char> --server URL --room CODE --spectate.
Watch links
The site’s tournament and live pages carry rugen://watch/<room code>
links. Opened, they start the game (or rugen rugen://watch/CODE from a
terminal, see the CLI reference) on the official
server and join that room as a spectator: the consent and account steps
come first if they have not been answered yet, missing fighters download
as for any watched match, and a room that is gone leaves you in ROOMS with
the reason.
The desktop has to know that rugen:// belongs to the game once:
- Windows (zip): OPTIONS › ONLINE › REGISTER RUGEN:// LINKS writes
HKCU\Software\Classes\rugenfor your user, no administrator needed. Moving the game folder: register again. - Linux: the
.deb/.rpmdesktop entry already declaresx-scheme-handler/rugen. The tarball has the same OPTIONS row: it writes~/.local/share/applications/rugen-url.desktoppointing at the binary and runsxdg-mime defaultfor it. - macOS: the scheme needs an application bundle (
CFBundleURLTypesin itsInfo.plist); the bare binary in the tarball cannot register, so the row is absent there. Copy the code from the page and use JOIN BY CODE › WATCH instead.
Shareable replays
REPLAYS (next to LAN / DIRECT IP on the hub) shares the last online match you played on that server and plays matches others shared:
- SHARE gives the match an eight-character code, shown as
R7KQ-DX4Mand copied to the clipboard (COPY CODE copies it again). Only the inputs are uploaded: the server already holds them (its live log of the match, else the players’ reports). Sharing the same match again gives the same code. The server keeps it 30 days. - SAVE FILE writes the match as a local replay,
replays/<code>.json, forrugen replay(not for arena rooms, which only share by code). - WATCH → BY CODE: type or paste (Ctrl + V) a code, in any case, with or without the dash. Missing fighters download before it plays; it plays like a live match, from the first frame.
- RECENT lists the codes you shared or watched.

Results and replays
Both clients report the winner, last frame, world checksum and their confirmed input stream. A result only counts when the reports agree; otherwise the match is marked disputed and no rating changes. The server stores the input streams of ranked matches as replays (the latest 2000), and may re-simulate disputed ones (see Re-simulation).
Locally, every menu match is recorded into replays/; play one back with
rugen replay <file.json>.
Mixed versions
rugen 0.6 shares fighters as .rgc / .rgs content files with
rugen-fp-2 fingerprints (see
Content files); 0.5
sent another package format with other fingerprints. The two can never
share fighters, so 0.5 and 0.6 players never play each other. The game
speaks lobby API 5; rugen 0.5 spoke API 4.
| Situation | What happens |
|---|---|
| 0.6 game, 0.6 server | Everything works. The server serves API 4 and 5 side by side. |
| 0.5 game, 0.6 server | Works as before, against other 0.5 players only (anonymous accounts, rooms, queues, ranked). |
| 0.6 game, server that only serves API 4 (not updated) | Refused: the server is greyed out (NEEDS 0.5). |
| 0.6 game, server newer than 0.6 | Refused (NEWER): update rugen. |
| Quick match and ranked | The server only pairs players of the same version. |
| Rooms and spectating | Every public room is listed, but a room only takes players and spectators of its host’s version. 0.6 players see 0.5 rooms marked OLDER RUGEN · CAN’T JOIN; 0.5 players see 0.6 rooms last, named [0.6] .... |
| Accounts, ratings, seasons, leaderboard | Shared by both versions on the same server. Usernames and passwords need 0.6. |
The game explains a mismatch instead of failing: selecting such a server opens a dialog, for example RUGEN.EXAMPLE.COM RUNS AN OLDER RUGEN (0.5) · YOUR GAME IS 0.6. FIGHTERS ARE SHARED IN A NEW FORMAT THAT 0.5 SERVERS DON’T UNDERSTAND. ASK THE SERVER OWNER TO UPDATE, OR PICK ANOTHER SERVER. DETAILS adds the API numbers, such as (SERVER API 4, THIS GAME API 5), and OTHER SERVERS goes back to the list. Joining a room whose host runs the other version says THIS ROOM’S HOST RUNS AN OLDER RUGEN (0.5). BOTH PLAYERS NEED THE SAME VERSION.
From the command line
rugen play kfm --server https://rugen.example.com --room new # creates a room, prints the code
rugen play G6_Naruto --server https://rugen.example.com --room K7MQX # joins, brings Naruto
rugen play kfm --server https://rugen.example.com --room K7MQX --spectate # watches
rugen rugen://watch/K7MQX # the full game, straight to WATCH (official server)
Each command line player brings the character it names, goes through the
matchup on its own (confirms unless BLOCKED and prints the verdict), syncs
the files, fights and quits. --room without --server uses [net] server.
It never shows the consent dialog: it uploads only when the profile agreed
for that server, or with --consent yes (--consent no never uploads).
Direct matches (LAN / IP)
Without a server, direct matches still work. Here the players type each other’s address on purpose:
- In ONLINE: LAN / DIRECT IP (under the server list). Pick HOST (1P)
or JOIN (2P), give the other player YOUR ADDRESS (same network, or
a forwarded port), type THEIR ADDRESS and press START. Fighters
and stage come from
[net]inrugen.toml(p1,p2,stage). - Or set
[net] remote = "ip:port"andside = 1/2: the same screen then offers NETPLAY (RUGEN.TOML). - Or on the command line:
rugen play kfm kfm --net 5.6.7.8:7000 --port 7000 # host side (1P)
rugen play kfm kfm --net 1.2.3.4:7000 --port 7000 --p2 # joining side (2P)
Direct matches use UDP port 7000 by default ([net] port). Both sides
play with the host’s fighter size, movement and LIFE setting; with a
host or guest older than 0.6.4 both play each fighter’s own life.
Something wrong on this page? Edit it on GitHub.