RUGENDOCS
Creating content

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.

FAIR
Plays everywhere, including ranked.
UNBALANCED
Casual only, and only when both players accept.
BLOCKED
Never playable online, and never uploaded.

How the verdict is reached

  1. BLOCKED if either character has a block flag (below), or fails rugen verify with broken.
  2. 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.
  3. 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.
  4. 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

FlagRuleSeverity
extreme_constslife > 3000 or < 1, attack > 250, defence > 250block
high_constslife > 1500, attack > 150, defence > 150warn

States -2 and -3

FlagRuleSeverity
regenLifeAdd with a positive valueblock if always, warn if gated
life_lockAny LifeSetblock if always, warn if gated
no_koAssertSpecial NoKO / GlobalNoKOblock if always, warn if gated
permanent_invulnNotHitBy / HitByblock if always (no flag if gated)
invisibleAssertSpecial Invisibleblock if always
round_stallAssertSpecial TimerFreeze or RoundNotOverblock if always
no_pushPlayerPush value = 0block if always
pause_loopPause or SuperPauseblock if always
power_regenPowerAdd with a positive valuewarn if always

Anywhere

FlagRuleSeverity
one_hit_killOne HitDef does 700 or more damage (throws include their custom state’s damage)block
heavy_hitOne HitDef does 400 or morewarn
target_life_setAny TargetLifeSetblock
target_life_addTargetLifeAdd of -600 or lessblock
long_pausePause / SuperPause time of 600 or moreblock
long_invulnNotHitBy / HitBy time of 300 or more in a normal movewarn
enemy_redirectA controller that changes state, life, power, variables or position with redirectid pointing at an enemy, P2, a target or a player idblock (other redirectid uses: warn)

Custom states (throws)

A custom state is a state you put the opponent into with HitDef p2stateno or TargetState.

FlagRuleSeverity
custom_state_killThe custom state uses LifeSet, or its negative LifeAdds add up to 600 or moreblock
custom_state_varsThe 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 .def and everything its [Files] names (sprite, anim, cmd, cns, st, st0 .. st9, pal1 .. pal12) plus the stcommon file it uses, with lower-case paths. The sprite file counts by its decoded sprites (so converting to .rgc keeps 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 .rgc content 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 point stcommon at it, so every player gets the same states.

Checklist before publishing

  1. rugen check MyChar: no unsupported controllers, no warnings.
  2. rugen verify MyChar: verified.
  3. Constants within life 1500 and attack / defence 150.
  4. Nothing ungated in states -2 / -3 that heals, freezes, hides or protects.
  5. No single hit of 400 damage or more; no pause of 600 ticks or more.
  6. Throws deal damage, not LifeSet.
  7. Publish one final version: every edit changes the fingerprint.

Something wrong on this page? Edit it on GitHub.

SEARCH !!

    ↑↓ to move, Enter to open