AOS REVIVALMenuJoin Discord
Server guide 06

Match Lobby rules ([game_rules])

The [game_rules] table uses the exact rule names of the retail Match Lobby. The server sends the client-visible switches to every player and enforces the same rules itself, so a modified client cannot use a disabled class or tool.

Checked BattleSpades 0.1.0-beta.1Reference

How to write rules

  • Switches accept true/false or "ON"/"OFF".
  • Percentage sliders accept a string such as "200%" or the multiplier 2.0.
  • Only the listed values are accepted. Anything else, or an unknown rule name, stops the server at startup with the list of allowed values — so the client and server can never disagree.
  • The RULE_ prefix is optional in lower case: enable_blocks = true is the same as RULE_ENABLE_BLOCKS = true.
  • A [modes.<code>] override (see the configuration reference) beats a rule for that mode only.
  • Disabled classes and tools are removed from the loadout menus and rejected by the server even if a modified client sends them.
Example: a snipers-only, fast-respawn serverTXT
[game_rules]
RULE_RESPAWN_TIMES = 5
RULE_SPAWN_PROTECTION_TIME = "2"
RULE_WEAPON_DAMAGE = "100%"
RULE_BLOCK_HEALTH = "200%"

RULE_ENABLE_CLASS_COMMANDO = false
RULE_ENABLE_CLASS_MINER = false
RULE_ENABLE_CLASS_ENGINEER = false
RULE_ENABLE_CLASS_ROCKETEER = false
RULE_ENABLE_CLASS_SPECIALIST = false
RULE_ENABLE_CLASS_MEDIC = false
# RULE_ENABLE_CLASS_MARKSMAN stays true

All rules

“Default if omitted” is what the server uses without the key; “Sample config” is what the shipped config.toml sets.

General21 rules

RuleAccepted valuesDefault if omittedSample config
RULE_ENABLE_BLOCKSPlayers can build blocks.falsetruetruetrue
RULE_ENABLE_FLARE_BLOCKSFlare block tool. BattleSpades ships it off because this retail build shows the tool as a fake first prefab tile when it is on.falsetruetruefalse
RULE_ENABLE_PREFABSPlayers can place prefab structures.falsetruetruetrue
RULE_ENABLE_GRAVESTONESDead players leave gravestones.falsetruetruetrue
RULE_ENABLE_CORPSE_EXPLOSIONCorpse explosion effect (retail lobby switch).falsetruetruetrue
RULE_ENABLE_SNIPER_BEAMSniper beam effect (retail lobby switch).falsetruetruetrue
RULE_ENABLE_DEATH_CAMShow the killer camera after death.falsetruetruetrue
RULE_ENABLE_MINI_MAPShow the minimap.falsetruetruetrue
RULE_ENABLE_SPECTATORSAllow joining the spectator team.falsetruetruetrue
RULE_ENABLE_FALL_ON_WATER_DAMAGEFalling into water hurts. Land fall damage is [game] fall_damage.falsetruetruetrue
RULE_ENABLE_COLOUR_PICKERPlayers can pick custom block colours.falsetruetruetrue
RULE_ONE_HIT_KILLAny damage kills.falsetruefalsefalse
RULE_POINTS_FROM_TEABAGGINGAward points for teabagging.falsetruefalsefalse
RULE_RESPAWN_TIMESRespawn delay in seconds. BattleSpades uses 5 when this and [game] respawn_time are both missing; retail defaulted to 10. Retail default: 10.05101520253035404550556055
RULE_BLOCK_HEALTHBlock durability multiplier.50%100%200%100%100%
RULE_WEAPON_DAMAGEWeapon damage multiplier.50%100%200%100%100%
RULE_SPAWN_PROTECTION_TIMESpawn protection in seconds; ends early when the protected player attacks. Off when omitted; the sample config sets 3. Retail default: 3.OFF123OFF3
RULE_CHARACTER_BLOCK_WALLETSBlock wallet size multiplier.50%100%200%100%100%
RULE_CHARACTER_SPEEDMovement speed multiplier.50%100%150%200%100%100%
RULE_CRATES_SPAWN_TIMESeconds between supply-crate respawns.10152025303540455055602525
RULE_VOTES_REQUIRED_FOR_KICKhidden in lobby UIShare of votes needed to pass a kick vote (hidden in the lobby UI).25%50%75%50%50%

Classes7 rules

RuleDefaultSample config
RULE_ENABLE_CLASS_COMMANDOAllow the commando class.truetrue
RULE_ENABLE_CLASS_MARKSMANAllow the marksman class.truetrue
RULE_ENABLE_CLASS_MINERAllow the miner class.truetrue
RULE_ENABLE_CLASS_ENGINEERAllow the engineer class.truetrue
RULE_ENABLE_CLASS_ROCKETEERAllow the rocketeer class.truetrue
RULE_ENABLE_CLASS_SPECIALISTAllow the specialist class.truetrue
RULE_ENABLE_CLASS_MEDICAllow the medic class.truetrue

Equipment21 rules

RuleDefaultSample config
RULE_ENABLE_EQUIPMENT_CLASSIC_SPADEAllow the classic spade equipment.truetrue
RULE_ENABLE_EQUIPMENT_CLASSIC_GRENADEAllow the classic grenade equipment.truetrue
RULE_ENABLE_EQUIPMENT_SPADEAllow the spade equipment.truetrue
RULE_ENABLE_EQUIPMENT_GRENADEAllow the grenade equipment.truetrue
RULE_ENABLE_EQUIPMENT_ANTIPERSONNEL_GRENADEAllow the antipersonnel grenade equipment.truetrue
RULE_ENABLE_EQUIPMENT_SNOWBLOWERAllow the snowblower equipment.truetrue
RULE_ENABLE_EQUIPMENT_PICKAXEAllow the pickaxe equipment.truetrue
RULE_ENABLE_EQUIPMENT_LANDMINEAllow the landmine equipment.truetrue
RULE_ENABLE_EQUIPMENT_ROCKET_TURRETAllow the rocket turret equipment.truetrue
RULE_ENABLE_EQUIPMENT_GLIDE_JETPACKAllow the glide jetpack equipment.truetrue
RULE_ENABLE_EQUIPMENT_JUMP_JETPACKAllow the jump jetpack equipment.truetrue
RULE_ENABLE_EQUIPMENT_JETPACKAllow the jetpack equipment.truetrue
RULE_ENABLE_EQUIPMENT_SUPER_SPADEAllow the super spade equipment.truetrue
RULE_ENABLE_EQUIPMENT_DRILL_CANNONAllow the drill cannon equipment.truetrue
RULE_ENABLE_EQUIPMENT_DYNAMITEAllow the dynamite equipment.truetrue
RULE_ENABLE_EQUIPMENT_MEDPACKAllow the medpack equipment.truetrue
RULE_ENABLE_EQUIPMENT_CHEMICALBOMBAllow the chemicalbomb equipment.truetrue
RULE_ENABLE_EQUIPMENT_RADAR_STATIONAllow the radar station equipment.truetrue
RULE_ENABLE_EQUIPMENT_C4Allow the c4 equipment.truetrue
RULE_ENABLE_EQUIPMENT_DISGUISEAllow the disguise equipment.truetrue
RULE_ENABLE_EQUIPMENT_PARACHUTE_NORMALhidden in lobby UIAllow the parachute normal equipment.truetrue

Weapons28 rules

RuleDefaultSample config
RULE_ENABLE_WEAPON_KNIFEAllow the knife weapon.truetrue
RULE_ENABLE_WEAPON_MINIGUNAllow the minigun weapon.truetrue
RULE_ENABLE_WEAPON_RPGAllow the rpg weapon.truetrue
RULE_ENABLE_WEAPON_TRIPLE_BARREL_RPGAllow the triple barrel rpg weapon.truetrue
RULE_ENABLE_WEAPON_PISTOLAllow the pistol weapon.truetrue
RULE_ENABLE_WEAPON_SNIPER_RIFLEAllow the sniper rifle weapon.truetrue
RULE_ENABLE_WEAPON_SNIPER_RIFLE2Allow the sniper rifle2 weapon.truetrue
RULE_ENABLE_WEAPON_RIFLEAllow the rifle weapon.truetrue
RULE_ENABLE_WEAPON_DOUBLE_BARREL_SHOTGUNAllow the double barrel shotgun weapon.truetrue
RULE_ENABLE_WEAPON_PUMP_ACTION_SHOTGUNAllow the pump action shotgun weapon.truetrue
RULE_ENABLE_WEAPON_SMGAllow the smg weapon.truetrue
RULE_ENABLE_WEAPON_CLASSIC_SHOTGUNAllow the classic shotgun weapon.falsefalse
RULE_ENABLE_WEAPON_CLASSIC_SMGAllow the classic smg weapon.falsefalse
RULE_ENABLE_WEAPON_TOMMYGUNAllow the tommygun weapon.truetrue
RULE_ENABLE_WEAPON_SNUB_PISTOLAllow the snub pistol weapon.truetrue
RULE_ENABLE_WEAPON_CROWBARAllow the crowbar weapon.truetrue
RULE_ENABLE_WEAPON_MOLOTOVAllow the molotov weapon.truetrue
RULE_ENABLE_WEAPON_RIOTSTICKAllow the riotstick weapon.truetrue
RULE_ENABLE_WEAPON_RIOTSHIELDhidden in lobby UIAllow the riotshield weapon.truetrue
RULE_ENABLE_WEAPON_MACHETEAllow the machete weapon.truetrue
RULE_ENABLE_WEAPON_AUTOPISTOLAllow the autopistol weapon.truetrue
RULE_ENABLE_WEAPON_GRENADE_LAUNCHERAllow the grenade launcher weapon.truetrue
RULE_ENABLE_WEAPON_STICKY_GRENADEAllow the sticky grenade weapon.truetrue
RULE_ENABLE_WEAPON_MINE_LAUNCHERAllow the mine launcher weapon.truetrue
RULE_ENABLE_WEAPON_ASSAULTRIFLEAllow the assaultrifle weapon.truetrue
RULE_ENABLE_WEAPON_LIGHTMACHINEGUNAllow the lightmachinegun weapon.truetrue
RULE_ENABLE_WEAPON_AUTOSHOTGUNAllow the autoshotgun weapon.truetrue
RULE_ENABLE_WEAPON_BLOCKSUCKERAllow the blocksucker weapon.truetrue

Team Deathmatch1 rules

RuleAccepted valuesDefault if omittedSample config
RULE_TDM_SCORE_TARGETTeam kills needed to win Team Deathmatch (OFF = clock only).OFF510152025303540455060708090100200200200

CTF and Classic CTF5 rules

RuleAccepted valuesDefault if omittedSample config
RULE_CTF_ENABLE_SHOOT_WITH_INTELIntel carriers may shoot.falsetruefalsefalse
RULE_CTF_ENABLE_INTEL_RETURN_ON_TOUCHTouching your dropped intel returns it.falsetruefalsefalse
RULE_CTF_SCORE_TARGETCaptures needed to win.1234567891055
RULE_CTF_ENABLE_INTEL_AUTO_RETURNDropped intel returns home automatically.falsetruetruetrue
RULE_CTF_ENABLE_INTEL_IN_OWN_BASE_TO_SCOREhidden in lobby UIYour intel must be home to score (hidden rule).falsetruefalsefalse

Zombie4 rules

RuleAccepted valuesDefault if omittedSample config
RULE_ZOMBIE_NOOF_ROUNDSRounds per map.1234533
RULE_NOOF_FIRST_INFECTED_ZOMBIESPlayers infected at the start of a round.1234522
RULE_CLASS_SPEEDClass speed multiplier in Zombie mode.50%100%200%100%100%
RULE_ZOMBIE_CLASS_DAMAGEZombie class damage multiplier.50%100%200%100%100%

VIP3 rules

RuleAccepted valuesDefault if omittedSample config
RULE_VIP_NOOF_ROUNDSRounds per map.1234533
RULE_VIP_HEALTHVIP health multiplier.50%100%200%100%100%
RULE_ENABLE_SUDDEN_DEATHSudden death when the clock runs out.falsetruetruetrue

Multi-Hill2 rules

RuleAccepted valuesDefault if omittedSample config
RULE_MULTIHILL_MAX_ACTIVE_BASESHills active at once.1234511
RULE_BASE_ACTIVE_TIMESeconds a hill stays active.306090120180240300360420480540600240240

Territory Control2 rules

RuleAccepted valuesDefault if omittedSample config
RULE_TC_MAX_ACTIVE_BASESTerritories in play.234555
RULE_CAPTURE_RATECapture speed multiplier.50%100%200%100%100%

Diamond Mine4 rules

RuleAccepted valuesDefault if omittedSample config
RULE_DIAMOND_MAX_ACTIVE_BASESDrop-off bases active at once.1234511
RULE_DIA_SCORE_TARGETDiamonds needed to win.510152025303540455055601515
RULE_MAX_ACTIVE_DIAMONDSDiamonds on the map at once.1234522
RULE_DIAMOND_LIFETIMESeconds a dropped diamond lasts.1020304050606060

Demolition1 rules

RuleAccepted valuesDefault if omittedSample config
RULE_BUILD_STATE_LENGTHDemolition build phase in seconds (OFF = none).OFF1020304050607080901001101203030

Occupation3 rules

RuleAccepted valuesDefault if omittedSample config
RULE_OCC_SCORE_TARGETPoints needed to win Occupation (OFF = clock only).OFF3691530456075901503030
RULE_MAX_ACTIVE_BOMBSBombs active at once.12311
RULE_BOMB_FUSE_TIMEBomb fuse in seconds.51015201010

Common questions

Why does RULE_RESPAWN_TIMES differ from [game] respawn_time?

respawn_time is the older name. It is used only when RULE_RESPAWN_TIMES is not in [game_rules]; the sample config sets the rule.

Can I use values the lobby did not offer, such as a 7-second respawn?

Not through [game_rules] — only retail slider values are accepted. Some mode settings can be tuned more freely with [modes.<code>] overrides.