Unified reference
One place to look up a name in all three games. Type a template property, a console command, a Python host function or an event: the search shows which games have it and, per game, who reads it - the server, the game client, or both. That is also the answer to "is my mod server-side or client-side?": a mod that only touches server lines works from the server alone.
The shared tables#
Every reference table below uses the same columns (Name, Owner, BF2, 2142, Heroes, Notes) and the same badges, and every row has its own link (# plus the lower-case name).
| Table | Rows | BF2 (server / client / shared / yes) | 2142 | Heroes |
|---|---|---|---|---|
| CON commands across the games | 2511 | 1550 (123 / 529 / 898 / 0) | 1571 (139 / 588 / 844 / 0) | 2050 (54 / 655 / 1306 / 35) |
| Console commands | 2235 | 1746 (376 / 949 / 0 / 421) | 1417 (351 / 686 / 0 / 380) | 1183 (87 / 603 / 0 / 493) |
| File types | 43 | 32 (1 / 17 / 11 / 0) | 33 (1 / 16 / 13 / 0) | 34 (1 / 16 / 14 / 0) |
| Python functions, methods, events | 208 | 111 (111 / 0 / 0 / 0) | 151 (151 / 0 / 0 / 0) | 185 (185 / 0 / 0 / 0) |
| Network events, data blocks and networkables | 124 | 88 (18 / 48 / 22 / 0) | 92 (17 / 50 / 25 / 0) | 101 (17 / 59 / 23 / 2) |
The template class pages (CON property reference) show the same row layout for one class, without the owner column, and link each property to its cross-game row.
Where the tables came from#
The tables this reference replaces, with the columns each one used to have. The ones marked not merged yet are the next slices.
| Table | Page | Old columns | Now |
|---|---|---|---|
| Template commands across the games | /modding/reference/all | Command, BF2, 2142, Heroes, bf2-rs | merged: shared layout, scope badge per game, owner classes |
| Scope of every property | /modding/server-vs-client/table | Property, Scope, Games, Why | merged into the table above; the file-type tables became one shared table |
| Template class properties | /modding/reference | Property, Args, Default, Effect, 2142, Heroes, bf2-rs | shared layout; each row links its cross-game row |
| Console commands | /reference/console | Command, Kind, BF2, 2142, Heroes | shared layout with BF2's registry scope; template objects moved into the cross-game table |
| Python host API, methods and events | /python/api | Function, Family, BF2, 2142, Heroes, Signature / Event, ids | merged: shared layout, server badge per game with the original address or the event id |
| Format pages' per-game tables | /assets | free-form (Step, bf2-rs / BF2, 2142, Heroes 1.126) | not merged yet |
| Network events and data blocks | /engine/net/blocks | prose and the notes' BF2 catalog only | merged: a row per event class and data block, each game's id and wire fields, the bf2-rs reader |
| Parity tables | https://bf2.us/play/heroes/parity.html | the dashboard (outside the wiki) | not merged yet |
How a scope is decided#
Template commands and file types take the verdict of tools/bfheroes/mod_scope.py (retail registries, the dedicated server's own reads, bf2-rs's readers; the guide walks through the steps). Other console commands are classified from Battlefield 2's registries alone: a command only the game client (BF2.exe, RendDX9.dll) registers is client, one only the dedicated server (bf2_w32ded.exe) registers is server. Battlefield 2142's the same way: a command BF2142.exe, its RendDX9.dll or AIDLL.dll registers and none of the Linux dedicated server's and AI library's console classes has (all 2,299 of them are named) is client. Battlefield Heroes shipped no server program, so a Heroes command takes 2142's verdict for the same name, else BF2's, and its Notes say so. A command both programs of a game register takes the side bf2-rs acts on it, when that is one side: the dedicated server's console host routes sound, renderer, controlMap and the other client-side systems to no effect and the ai* objects to bf2-ai (crates/bf2-runtime owners.rs), or the command is handled (its full name, or a dispatcher's match arm on object and method) only in server or only in client crates. Otherwise it stays yes. Python functions, methods and events are server in every game: only the machine that hosts the game runs the game scripts (the Python layer).
Generated by tools/devwiki/xref.py.
tools/devwiki/xref.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.