Characters & stages
Drop MUGEN characters and stages into chars/ and stages/ as zips, rars or folders. rugen converts them on launch into compact .rgc and .rgs content files.
rugen loads existing M.U.G.E.N and Ikemen GO content unchanged: .def,
.cns, .cmd, .air, .sff, .snd, .act and .fnt files work as they
are. You do not need to unpack or convert anything yourself: rugen packs each
character and stage into one compact content file on launch (see
Content files).
Adding a character
- Download a character as a
.zipor.rararchive (or unpack it into a folder). - Put the archive or folder into
chars/. - Start rugen. It converts the character into
chars/<id>.rgc, and it shows up on the select screen.
The character’s id is the file name without extension: chars/G6_Naruto.rar
(and the chars/G6_Naruto.rgc made from it) is G6_Naruto, chars/kfm/ is kfm. Ids are what you type on the command
line, for example rugen play kfm G6_Naruto. Run rugen list to see every
id rugen found.
Adding a stage
Stages work the same way: .zip / .rar archives or folders in stages/.
When stages/ is empty, the bundled training stage is used. A stage called
training is the default for quick matches.
Content files: .rgc and .rgs
On launch, anything new in chars/ or stages/ is converted into one
rugen content file: .rgc for a fighter, .rgs for a stage. The game
plays it in place; nothing is unpacked.
Why convert at all?
MUGEN content was made for a 2000s engine that reads a folder of files and decodes every sprite when it needs it. rugen could do the same, but then it would pay for it every single launch and every fight:
- Loading. A
.sffholds sprites in old formats (PCX, RLE, PNG), often with duplicates and hundreds of near-identical palettes. Decoding them takes seconds for a big fighter. A.rgcstores them ready to use: a fighter loads in about a tenth of a second, so the select screen and a fight start right away. - Disk. An archive plus its extracted copy was 150–180 MB per fighter; the content file is 25–75 MB. 90 fighters is 4 GB instead of 15.
- One file. One fighter is one file: easy to copy, share, delete, and the only thing the game trusts (archives and folders are never played from directly, which also keeps stray files out of the picture).
- Online. The fingerprint that matches you with an opponent is taken
from the decoded pixels, so it is computed once at conversion, not at
every match. Verified packages travel as
.rgcfiles too.
How long it takes
Conversion is the only slow step and it happens once per fighter, in the background: the title screen opens right away, unready fighters show dimmed with a progress ring, and picking one moves it to the front of the queue. Measured with rugen 0.7.0 on two very different machines:
| Fighter (source) | Modern 6-core laptop | 2012 dual-core (one core busy) | Peak memory |
|---|---|---|---|
| G6_Sasuke_Rinnegan (folder) | 1.7 s | ~6 s | 300 MB |
| G6_Sasuke_Kid (105 MB zip) | 2.9 s | ~10 s | 360 MB |
| Goku (folder, 81 MB of sprites) | 3.5 s | ~12 s | 500 MB |
Most of the time goes into encoding sounds to Opus and compressing the sprites. Older rugen versions (up to 0.6.5) took 20–30 s and over 2 GB of memory for the same fighters; files made by them still load unchanged. A folder you keep editing converts again only for the files that changed.
| Inside | Stored as |
|---|---|
Sprites (.sff) | Pixel-exact, every sprite its own zstd frame; duplicates and identical palettes stored once. |
Loose .png images | Lossless WebP (when smaller; otherwise kept as PNG). |
Sounds (.snd) | Opus (sounds Opus cannot shrink keep their WAV bytes). |
| Everything else | Byte for byte: .def, .cns, .cmd, .air, palettes, readmes… |
The files get much smaller than the old extracted cache. Measured on the characters used to test rugen:
| Before (archive + extracted cache) | .rgc | |
|---|---|---|
| G6 Naruto | 147.8 MB | 23.1 MB |
| G6 Sasuke Rinnegan | 179.9 MB | 30 MB |
(0.7.0 compresses a little less tightly than earlier versions, about 10 % larger files, in exchange for converting six to eight times faster.)
What happens to the source depends on what you dropped in:
| You drop in | rugen does |
|---|---|
A .zip / .rar | Writes chars/<id>.rgc next to it, reads it back to check it, then moves the archive to chars/originals/ (never scanned). |
| A folder | Leaves it alone: it is your working copy. The conversion goes to cache/rgc/ and is redone whenever a file in the folder changes. |
A .rgc / .rgs | Uses it as it is. |
Stages work the same way, with stages/<id>.rgs and stages/originals/.
A folder wins over a content file with the same name.
To delete the archives instead of keeping them in originals/:
[content]
keep_originals = false # default true; folders are never moved or deleted
Converting and exporting by hand
rugen convert chars/MyHero # writes MyHero.rgc, the source is untouched
rugen convert MyStage.zip --stage # writes MyStage.rgs
rugen export chars/MyHero.rgc # back to a MUGEN folder: ./MyHero/
rugen convert makes a shareable file without touching the source.
rugen export gives the MUGEN folder back for tools such as Fighter
Factory: sprites identical, sounds as decoded WAV, images as PNG. See the
CLI reference.
Fingerprints
Online, a character is known by its fingerprint (rugen-fp-2). It
covers the gameplay files and the decoded sprite pixels, but not the
container or how sprites and sounds are compressed: a folder, its zip and
its .rgc have the same fingerprint, and two machines converting the same
character get the same value. Sounds are not part of it. See
Bring your own character.
The cache
cache/ only holds derived data and can be deleted any time; it is rebuilt
on demand:
- a small manifest per character and stage (the verification verdict, the card portrait for online play), keyed by its contents;
cache/rgc/: the conversions of folders (working copies);cache/logic/: logic compiled again for a content file made by another engine version;cache/net/: fighters and stages downloaded from online opponents, never mixed intochars/. See Bring your own character.
Extracted copies left by older versions are removed once their content has a valid content file.
Custom select art
A character may ship a large render called rugen_art.webp or
rugen_art.png (at the top of the character’s files or one folder down). rugen copies
it into the cache and uses it on the select screen instead of the small
portrait.
Verification
Each character is verified the first time it is used: loaded, inspected for unsupported controllers and missing sprites, then run through two 3000-frame headless matches. The select screen shows the result as a mark:
| Mark | Verdict | Meaning |
|---|---|---|
| green | verified | Loads and plays cleanly. |
| yellow | warn | Plays, but uses something rugen does not support yet or is missing files. |
| red | broken | Crashes, does not load or gets stuck. Cannot be picked. |
rugen verify <char> (or --all) runs the check by hand and prints the
details. rugen play refuses broken characters unless you pass --force.
Even a character that slips through cannot ruin a match: the engine caps helpers, explods, projectiles and sounds per tick, sanitizes non-finite positions, and if a character still panics mid-match it is disabled and loses while the other player keeps playing.
Platforms and arenas in stages
rugen adds two optional stage sections on top of MUGEN’s format:
[Platform] (raised surfaces players can stand on) and [Arena]
(Smash-style stocks and blast zones). Old characters need no changes.
See Game modes: Arena and
Compatibility status.
Something wrong on this page? Edit it on GitHub.