BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
On this page

Glossary: the words this wiki uses

BF22142Heroes

Refractor 2 has its own vocabulary, and so does a project that checks a port against it function by function. Each word below has one sentence and the page where it is explained.

The engine's words#

WordMeaningPage
templatethe description of a kind of thing (a jeep, a rifle, a sound), made by script lines; objects are created from itthe object system
active templatethe template that property lines act on: the one last created or selectedthe object system
componenta part of a template with its own properties, created by name: a weapon's fire, ammo and deviation, a vehicle's armorthe object system
bundlea template with children, each at its own position: a vehicle is a tree of bundlesengine, gearbox, wheels
con scripta file of console lines (object.method arguments); templates, levels and settings are all con scriptsthe CON system
class id, interface idthe numbers by which the engine knows its classes and asks an object for an interface; there are no class names at run timethe object system
tickone step of the simulation, 1/30 s, the same on the server and on every clientthe frame and the tick
frameone pass of the main loop; a frame runs zero or more ticks and draws oncethe frame and the tick
physics nodea body's state: transform, velocities, mass, the forces of the tickphysics
responsea body's collision response: rigid, soldier or staticphysics
rootthe top object of a tree; a vehicle's parts put their forces on the root's nodeengine, gearbox, wheels
collision typewhich version of a collision mesh a query wants: 0 projectiles, 1 vehicles, 2 soldierscollision queries
sub-geometrya mesh's version for one damage state: intact, wreckedcollision queries
engine speed ("rpm")a unitless number from -1 to 1.2, not revolutionsengine, gearbox, wheels
deviationhow far a shot strays: a sum of parts, spread as a Gaussian, not a coneweapons
Sound templatea sound as an object template; many are made automatically as S_<owner>_<suffix>the sound engine
heightmap clustera level's grid of heights: the primary heightmap and the secondary ones around itterrain
pyramid of maximum heightslevels of maxima over the heightmap that let a ray skip the cells it passes overcollision
materialone byte a terrain sample or mesh face: friction, sound, effects and the bots' cost read itterrain
undergrowth, overgrowthgrass and small plants made near the camera; trees and bushes placed at load, which collideterrain
lightmap, simple shadow mapbaked light of static things; two small maps a level that light soldiersshadows and lighting
light factorhow bright a soldier is drawn, from the simple shadow map, a roof ray and his heightshadows and lighting
HUD node, HUD variablea picture, text or bar made by the HUD's scripts; a named value a node shows and a function writesthe HUD of Battlefield 2
projectile; point, rotational point, mesha bullet, rocket or grenade as an object; its three physics typesprojectiles
armorthe component that holds a thing's hit points: soldiers, vehicles and breakable objects alikedamage and armor
material pair, damage modifierthe projectile's material against the struck one, and the factor their cell givesdamage and armor
hot spotthe inner fifth of an explosion's radius, where its damage is fulldamage and armor
wrecka destroyed vehicle while its wreck health bleeds away; also a soldier who is downspawners and wrecks
object spawnerthe level object that makes a vehicle and the next one when it is gonespawners and wrecks
player control object, seatthe object a player controls in a vehicle; it owns weapons and camerasseats and cameras
floating bundle, wing, rotational bundlethe parts that make a boat float, an aircraft fly and a turret turnboats and aircraft
speed state, pose rampone of seven movement states derived from the stance; the 0.25 or 0.5 s between twostances
animation system, bundle, triggera script of animations, the groups that play together, and the tree that picks themanimation
ragdolla downed soldier's body as particles and constraintsanimation
kit, supply objectwhat a soldier holds, as an object; anything that heals, repairs or resupplies in a radiuskits and supplies
voice, priority, stealingone of the device's playing slots; the number that ranks samples; a louder sample taking a quieter one's voicevoices and space
obstructionhow much an object between the listener and a sound muffles itvoices and space
radio voice, filter, variantcommander, squad leader or grunt; the noise bed of a seat; one of a line's recordingsradio
target object, seeker, re-lock timea heat or laser source; the component that picks one; the wait before a new target is takenmissiles and flares

The network's words#

WordMeaningPage
bit streama packet's payload: values written with the width each needs, least significant bit firstpackets
notify windowthe 6-bit sequence and 32-bit mask that tell each side which packets arrivedpackets
player actionone tick of a player's input: six axes, 41 buttonsthe control block
game eventa reliable, ordered message with a type and fieldsnetwork reference
data blocka larger piece of state sent reliably (the server's info, a player's data)network reference
ghosta client's copy of a server objectghosts
networkablea component of an object that has state to send; a ghost has up to 12ghosts
dirty mask32 bits a networkable, one per field that changed and must be sentghosts
scopethe set of objects a connection is sent; the scope pass decides it and gives each a priorityghosts
control objectthe object a player steers: his soldier, or the vehicle part he sits inthe control block
control blockthe server's full state of a player's control object, with the number of the last action it appliedthe control block
prediction, replay, correctionthe client runs its input at once; on a control block it takes the server's state and runs the unseen actions again; a visible jump is a correctionthe control block
connection typea row of a table that gives a connection its packet rate and sizeghosts
demothe packet stream of one more connection, written to a filedemos

The rules' words#

WordMeaningPage
game status, phasewhere a round is: pre-game, playing (phases 0 to 3), end of roundserver rules
tickets, ticket limita team's count that ends the round at 0; limits are counts at which the script is toldserver rules
bleedthe ticket loss of the team that holds less of the mapserver rules
control pointa place with an owner, a flag and a radiusserver rules
spawn group, spawn pointwhere a player may appear; a group belongs to a team or a squadserver rules
kitwhat a soldier carries: his weapons and itemsthe CON system
host functiona function the engine offers the game's Python scriptsPython API
game modea set of objects a level places and a Python script that scores them (gpm_cq, gpm_ti, gpm_ctf ..)game modes
Titan, missile silo2142's flying fortress whose hit points are its team's tickets; the ground weapon that fires at it for the team that holds its control pointgame modes
heatone short round of Heroes' team elimination; a team's tickets are its heats leftgame modes
bot, behaviour, urgencya player driven by the AI library; one of 13 things a bot can do; the number by which the most pressing behaviour is chosenbots
strategic areaa rectangle of a level the bots' strategy counts and orders attacks and defences bybots

Heroes' words#

WordMeaningPage
abilityan item with an ability ammo component: selected like a weapon, counts secondsabilities
widgeta one-key item on the item barwidgets
item barthe HUD's ten slots with their cooldown sweeps and no-use marksthe HUD
HUD variablea name a HUD node is bound to and a function writes every framethe HUD
speed factorwhat a speed effect multiplies a hero's speed byclasses

The project's words#

WordMeaningPage
the originalthe games' own programs, as shipped; "retail" in the code's comments
address citationbf2_w32ded.exe!0x0062a420: the program and the address of the original's function a piece of Rust answers forcodebase
portedRust code cites the function's addressparity numbers
tested: strict, generousstrict: a test written from the original's code names the function; generous: any proofparity numbers
proof classes a1 .. gthe kinds of proof behind a tested function, strongest firstparity numbers
twinthe same function in another of the three games, "up to the struct layout"parity numbers
oraclethe original's own function called in-process on crafted inputs, compared with ourstest rigs
differentialthe same inputs to our server and the original server, outputs comparedtest rigs
vehicle replayrecorded drives through our server against the original's, every node, every ticktest rigs
scenarioa scripted run of real servers and clients with assertstest rigs
24 bits, 53 bitsthe precision the x87 rounds to: 24 on a client, 53 on a dedicated serverfloat precision
store, spillwhere a value leaves the x87 register for memory and becomes a floatfloat precision
SAME, DIFFERS, MENDED, NOT WIRED, not settledthe verdicts of a sweep: read and equal; read and another number (filed); was different and is mended; nothing of ours writes it; not read far enough to sayclasses, the HUD
a readingwhat a worker read the original's listing to do; it counts as held once a test or an oracle holds itclasses
filed differencea place where the port is known to differ from the original and the mend has not landedclasses
sweep, rowa pass over every thing of one kind (HUD variables, widgets, abilities) and its line for one of themreading the notes
test red, mutationa test seen failing before the port or the mend; one statement changed on purpose to see a test failhow a port is made
emulator rowsresults of one statement of the original run in a CPU emulator, which a test holds the port tohow a port is made
playedshown in a client by a scenario: on a page (the browser client) or in the desktop programhow a port is made
invarianta claim every scenario run is held to: no panic, no hang, no correction storm ..scenarios
VOIDa run that says nothing about the game because the test itself failedscenarios
sweep (generated), the wall, soakscenarios generated from the game's data; one scenario per fault once found; runs that judge growthsweeps and soak
trap, fault as a resultan import of the original that the oracle's host refuses; a crash inside a call recorded and passed overthe oracle

How it is tested#

This page explains; it holds no code of its own. A word's meaning here is the one the notes use. The wiki's test checks that every link and anchor on it leads to a page of the build and that its diagrams are the ones the script draws.

In the code#

This page names no crate of its own. How the codebase is organised maps the crates by area, and docs/release/LAYOUT.md in the tree has one line for every folder and crate.

Source: docs/dev/guide/glossary.md · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.