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#
| Word | Meaning | Page |
|---|---|---|
| template | the description of a kind of thing (a jeep, a rifle, a sound), made by script lines; objects are created from it | the object system |
| active template | the template that property lines act on: the one last created or selected | the object system |
| component | a part of a template with its own properties, created by name: a weapon's fire, ammo and deviation, a vehicle's armor | the object system |
| bundle | a template with children, each at its own position: a vehicle is a tree of bundles | engine, gearbox, wheels |
| con script | a file of console lines (object.method arguments); templates, levels and settings are all con scripts | the CON system |
| class id, interface id | the numbers by which the engine knows its classes and asks an object for an interface; there are no class names at run time | the object system |
| tick | one step of the simulation, 1/30 s, the same on the server and on every client | the frame and the tick |
| frame | one pass of the main loop; a frame runs zero or more ticks and draws once | the frame and the tick |
| physics node | a body's state: transform, velocities, mass, the forces of the tick | physics |
| response | a body's collision response: rigid, soldier or static | physics |
| root | the top object of a tree; a vehicle's parts put their forces on the root's node | engine, gearbox, wheels |
| collision type | which version of a collision mesh a query wants: 0 projectiles, 1 vehicles, 2 soldiers | collision queries |
| sub-geometry | a mesh's version for one damage state: intact, wrecked | collision queries |
| engine speed ("rpm") | a unitless number from -1 to 1.2, not revolutions | engine, gearbox, wheels |
| deviation | how far a shot strays: a sum of parts, spread as a Gaussian, not a cone | weapons |
| Sound template | a sound as an object template; many are made automatically as S_<owner>_<suffix> | the sound engine |
| heightmap cluster | a level's grid of heights: the primary heightmap and the secondary ones around it | terrain |
| pyramid of maximum heights | levels of maxima over the heightmap that let a ray skip the cells it passes over | collision |
| material | one byte a terrain sample or mesh face: friction, sound, effects and the bots' cost read it | terrain |
| undergrowth, overgrowth | grass and small plants made near the camera; trees and bushes placed at load, which collide | terrain |
| lightmap, simple shadow map | baked light of static things; two small maps a level that light soldiers | shadows and lighting |
| light factor | how bright a soldier is drawn, from the simple shadow map, a roof ray and his height | shadows and lighting |
| HUD node, HUD variable | a picture, text or bar made by the HUD's scripts; a named value a node shows and a function writes | the HUD of Battlefield 2 |
| projectile; point, rotational point, mesh | a bullet, rocket or grenade as an object; its three physics types | projectiles |
| armor | the component that holds a thing's hit points: soldiers, vehicles and breakable objects alike | damage and armor |
| material pair, damage modifier | the projectile's material against the struck one, and the factor their cell gives | damage and armor |
| hot spot | the inner fifth of an explosion's radius, where its damage is full | damage and armor |
| wreck | a destroyed vehicle while its wreck health bleeds away; also a soldier who is down | spawners and wrecks |
| object spawner | the level object that makes a vehicle and the next one when it is gone | spawners and wrecks |
| player control object, seat | the object a player controls in a vehicle; it owns weapons and cameras | seats and cameras |
| floating bundle, wing, rotational bundle | the parts that make a boat float, an aircraft fly and a turret turn | boats and aircraft |
| speed state, pose ramp | one of seven movement states derived from the stance; the 0.25 or 0.5 s between two | stances |
| animation system, bundle, trigger | a script of animations, the groups that play together, and the tree that picks them | animation |
| ragdoll | a downed soldier's body as particles and constraints | animation |
| kit, supply object | what a soldier holds, as an object; anything that heals, repairs or resupplies in a radius | kits and supplies |
| voice, priority, stealing | one of the device's playing slots; the number that ranks samples; a louder sample taking a quieter one's voice | voices and space |
| obstruction | how much an object between the listener and a sound muffles it | voices and space |
| radio voice, filter, variant | commander, squad leader or grunt; the noise bed of a seat; one of a line's recordings | radio |
| target object, seeker, re-lock time | a heat or laser source; the component that picks one; the wait before a new target is taken | missiles and flares |
The network's words#
| Word | Meaning | Page |
|---|---|---|
| bit stream | a packet's payload: values written with the width each needs, least significant bit first | packets |
| notify window | the 6-bit sequence and 32-bit mask that tell each side which packets arrived | packets |
| player action | one tick of a player's input: six axes, 41 buttons | the control block |
| game event | a reliable, ordered message with a type and fields | network reference |
| data block | a larger piece of state sent reliably (the server's info, a player's data) | network reference |
| ghost | a client's copy of a server object | ghosts |
| networkable | a component of an object that has state to send; a ghost has up to 12 | ghosts |
| dirty mask | 32 bits a networkable, one per field that changed and must be sent | ghosts |
| scope | the set of objects a connection is sent; the scope pass decides it and gives each a priority | ghosts |
| control object | the object a player steers: his soldier, or the vehicle part he sits in | the control block |
| control block | the server's full state of a player's control object, with the number of the last action it applied | the control block |
| prediction, replay, correction | the 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 correction | the control block |
| connection type | a row of a table that gives a connection its packet rate and size | ghosts |
| demo | the packet stream of one more connection, written to a file | demos |
The rules' words#
| Word | Meaning | Page |
|---|---|---|
| game status, phase | where a round is: pre-game, playing (phases 0 to 3), end of round | server rules |
| tickets, ticket limit | a team's count that ends the round at 0; limits are counts at which the script is told | server rules |
| bleed | the ticket loss of the team that holds less of the map | server rules |
| control point | a place with an owner, a flag and a radius | server rules |
| spawn group, spawn point | where a player may appear; a group belongs to a team or a squad | server rules |
| kit | what a soldier carries: his weapons and items | the CON system |
| host function | a function the engine offers the game's Python scripts | Python API |
| game mode | a set of objects a level places and a Python script that scores them (gpm_cq, gpm_ti, gpm_ctf ..) | game modes |
| Titan, missile silo | 2142'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 point | game modes |
| heat | one short round of Heroes' team elimination; a team's tickets are its heats left | game modes |
| bot, behaviour, urgency | a player driven by the AI library; one of 13 things a bot can do; the number by which the most pressing behaviour is chosen | bots |
| strategic area | a rectangle of a level the bots' strategy counts and orders attacks and defences by | bots |
Heroes' words#
| Word | Meaning | Page |
|---|---|---|
| ability | an item with an ability ammo component: selected like a weapon, counts seconds | abilities |
| widget | a one-key item on the item bar | widgets |
| item bar | the HUD's ten slots with their cooldown sweeps and no-use marks | the HUD |
| HUD variable | a name a HUD node is bound to and a function writes every frame | the HUD |
| speed factor | what a speed effect multiplies a hero's speed by | classes |
The project's words#
| Word | Meaning | Page |
|---|---|---|
| the original | the games' own programs, as shipped; "retail" in the code's comments | |
| address citation | bf2_w32ded.exe!0x0062a420: the program and the address of the original's function a piece of Rust answers for | codebase |
| ported | Rust code cites the function's address | parity numbers |
| tested: strict, generous | strict: a test written from the original's code names the function; generous: any proof | parity numbers |
proof classes a1 .. g | the kinds of proof behind a tested function, strongest first | parity numbers |
| twin | the same function in another of the three games, "up to the struct layout" | parity numbers |
| oracle | the original's own function called in-process on crafted inputs, compared with ours | test rigs |
| differential | the same inputs to our server and the original server, outputs compared | test rigs |
| vehicle replay | recorded drives through our server against the original's, every node, every tick | test rigs |
| scenario | a scripted run of real servers and clients with asserts | test rigs |
| 24 bits, 53 bits | the precision the x87 rounds to: 24 on a client, 53 on a dedicated server | float precision |
| store, spill | where a value leaves the x87 register for memory and becomes a float | float precision |
| SAME, DIFFERS, MENDED, NOT WIRED, not settled | the 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 say | classes, the HUD |
| a reading | what a worker read the original's listing to do; it counts as held once a test or an oracle holds it | classes |
| filed difference | a place where the port is known to differ from the original and the mend has not landed | classes |
| sweep, row | a pass over every thing of one kind (HUD variables, widgets, abilities) and its line for one of them | reading the notes |
| test red, mutation | a test seen failing before the port or the mend; one statement changed on purpose to see a test fail | how a port is made |
| emulator rows | results of one statement of the original run in a CPU emulator, which a test holds the port to | how a port is made |
| played | shown in a client by a scenario: on a page (the browser client) or in the desktop program | how a port is made |
| invariant | a claim every scenario run is held to: no panic, no hang, no correction storm .. | scenarios |
| VOID | a run that says nothing about the game because the test itself failed | scenarios |
| sweep (generated), the wall, soak | scenarios generated from the game's data; one scenario per fault once found; runs that judge growth | sweeps and soak |
| trap, fault as a result | an import of the original that the oracle's host refuses; a crash inside a call recorded and passed over | the 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.