Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

data/gameplay/

The world’s gameplay settings: the default damage formula, faction and relation, which stat is loot luck, PvP, the tick rate durations convert with, and the effect and damage caps. There is exactly one entry, manifold:config, which the engine declares; a game changes it with an .update.ron patch rather than declaring another.

Registrymanifold:gameplay-config
Filesdata/gameplay/*.ron, *.update.ron, *.final.ron
Sidesboth: the server and every client load it, and the handshake’s data hash covers it
Readsnothing
ContractGameplay framework, data stage

Entry

A record, written GameplayConfig(..); the name before the parentheses is optional.

FieldTypeRequiredDefaultDescription
idstringyesAlways manifold:config.
default_formulastringyesThe formula damage types use unless they name their own (manifold:damage-formula key).
default_factionstring or NonenononeThe faction of entities that resolve to none (manifold:faction key).
default_relationRelationnoNeutralHow factions the data does not relate regard each other.
loot_luck_statstring or Nonenono luckThe killer’s stat that is loot luck (manifold:stat key).
pvpPvpPolicynoOffWhether players may hurt each other.
ticks_per_secondu32no40Ticks per second, for durations written in seconds.
effect_capu16no32The most effect instances one entity holds.
damage_events_per_ticku32no4096The most damage events a world processes per tick; the rest wait.
drop_despawn_ticksu64no6000Ticks a shared drop without its own reserve stays reserved for its killer.

Example

No bundled file declares one yet. An entry the engine declares, which mods may patch:

GameplayConfig(id: "manifold:config", default_formula: "manifold:basic")

Types

Relation

How two sides regard each other.

VariantWrittenDescription
FriendlyFriendlyAllies: no friendly fire.
NeutralNeutralNeither.
HostileHostileEnemies.

PvpPolicy

PvP between players. Parties are always friendly.

VariantWrittenDescription
OffOffThe faction relations decide (a team game).
OptInOptInTwo players are hostile when both carry manifold:state.pvp.
RegionsRegions(TagQuery)Two players are hostile when both match the query; the game grants a region tag while a player is in an arena.

TagQuery

A tag query: which tag sets match. Every part written must hold; () matches everything.

A record: TagQuery(..) or (..).

FieldTypeRequiredDefaultDescription
alllist of tag-matchnononeEvery one of these tags.
anylist of tag-matchnononeAt least one of these tags.
nonelist of tag-matchnononeNone of these tags.
orlist of TagQuerynononeAt least one of these queries.
notTagQuerynononeThis query must not match.

Value forms used here: tag-match.