Online-fair characters
What the online fairness analysis looks for in your CNS, which patterns make a matchup BLOCKED or UNBALANCED, how gated code avoids flags, and how fingerprints and packages work.
Online, each player brings their own character. Before every match, rugen judges the pair FAIR, UNBALANCED or BLOCKED from a static analysis of both characters’ states. This page is the creator’s view of those rules: what to avoid so your character can be played everywhere. The player’s view is Bring your own character.
How the verdict is reached
- BLOCKED if either character has a block flag (below), or fails
rugen verifywithbroken. - UNBALANCED if the power scores differ by more than 1.6x, or life, attack or defence of one is at least twice the other’s.
- Community ratings (once both fighters have 10 or more rated games): a rating gap above 200 makes it UNBALANCED; a gap of 100 or less clears an UNBALANCED that came only from the power score.
- Otherwise FAIR.
Server operators can change the thresholds; these are the defaults.
Always versus gated
States -2 and -3 run every frame, so the analysis watches them closely. A controller there counts as always when nothing in its triggers ties it to a situation: it only uses “generic” triggers such as
Alive, Life, LifeMax, Time, GameTime, RoundState, RoundNo,
RoundsExisted, Random, Power, PowerMax, IsHelper, MatchNo,
MatchOver, TeamSide, TicksPerSecond, Win, Lose, Facing, Const,
P2Life, NumEnemy, AILevel, PalNo, ID, Name, DrawGame, IsHomeTeam.
A controller is gated as soon as it depends on a situation: a state
number, move type, animation, command, a variable, or a redirection.
Controllers that can never fire (trigger1 = 0) are ignored.
; always: regenerates life every frame -> BLOCKED (regen)
[State -2, regen]
type = LifeAdd
trigger1 = Life < LifeMax
value = 1
; gated: only during a taunt, tracked in a variable -> warning only
[State -2, taunt heal]
type = LifeAdd
trigger1 = var(20) = 1 && StateNo = 195
value = 1
Cheat flags
Block flags make every matchup BLOCKED. Warn flags appear as reasons, raise the power score a little and do not block on their own.
Constants
| Flag | Rule | Severity |
|---|---|---|
extreme_consts | life > 3000 or < 1, attack > 250, defence > 250 | block |
high_consts | life > 1500, attack > 150, defence > 150 | warn |
States -2 and -3
| Flag | Rule | Severity |
|---|---|---|
regen | LifeAdd with a positive value | block if always, warn if gated |
life_lock | Any LifeSet | block if always, warn if gated |
no_ko | AssertSpecial NoKO / GlobalNoKO | block if always, warn if gated |
permanent_invuln | NotHitBy / HitBy | block if always (no flag if gated) |
invisible | AssertSpecial Invisible | block if always |
round_stall | AssertSpecial TimerFreeze or RoundNotOver | block if always |
no_push | PlayerPush value = 0 | block if always |
pause_loop | Pause or SuperPause | block if always |
power_regen | PowerAdd with a positive value | warn if always |
Anywhere
| Flag | Rule | Severity |
|---|---|---|
one_hit_kill | One HitDef does 700 or more damage (throws include their custom state’s damage) | block |
heavy_hit | One HitDef does 400 or more | warn |
target_life_set | Any TargetLifeSet | block |
target_life_add | TargetLifeAdd of -600 or less | block |
long_pause | Pause / SuperPause time of 600 or more | block |
long_invuln | NotHitBy / HitBy time of 300 or more in a normal move | warn |
enemy_redirect | A controller that changes state, life, power, variables or position with redirectid pointing at an enemy, P2, a target or a player id | block (other redirectid uses: warn) |
Custom states (throws)
A custom state is a state you put the opponent into with HitDef
p2stateno or TargetState.
| Flag | Rule | Severity |
|---|---|---|
custom_state_kill | The custom state uses LifeSet, or its negative LifeAdds add up to 600 or more | block |
custom_state_vars | The custom state writes variables (VarSet, VarAdd, VarRangeSet, ParentVarSet, ParentVarAdd) | warn |
The power score
Besides flags, the analysis estimates how strong the character is, with Kung Fu Man at 100. It combines durability (life x defence), offense (attack and an estimated combo damage), mobility (walk, run and jump speeds), and tools (projectiles, supers, unblockable moves, throws, invulnerability). Two characters within 1.6x of each other are FAIR on this count. If your character is meant to be strong, expect UNBALANCED pairings with weak ones, and that is fine for casual play.
Fingerprints and packages
- Fingerprint (
rugen-fp-2). A sha256 over the character’s gameplay files: the.defand everything its[Files]names (sprite,anim,cmd,cns,st,st0..st9,pal1..pal12) plus thestcommonfile it uses, with lower-case paths. The sprite file counts by its decoded sprites (so converting to.rgckeeps the fingerprint) and the sound file does not count. Folder name, container (folder, zip, rar,.rgc), readmes and unreferenced files do not matter; any change in a referenced text file, palette or sprite makes a new fingerprint, and with it a new identity with no community rating. - Package. When an opponent does not have your character, rugen uploads
its
.rgccontent file. The server opens it, recomputes the fingerprint and the profile, and rejects anything that does not match what the client claimed. - Paths must stay inside the character folder. Files referenced with
..or absolute paths cannot be packaged. - If your character relies on a custom
common1.cns, ship it in the character folder and pointstcommonat it, so every player gets the same states.
Checklist before publishing
rugen check MyChar: no unsupported controllers, no warnings.rugen verify MyChar:verified.- Constants within life 1500 and attack / defence 150.
- Nothing ungated in states -2 / -3 that heals, freezes, hides or protects.
- No single hit of 400 damage or more; no pause of 600 ticks or more.
- Throws deal damage, not LifeSet.
- Publish one final version: every edit changes the fingerprint.
Something wrong on this page? Edit it on GitHub.