BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
generated from the code
On this page

Unified reference

BF22142Heroes

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.

Scope badges
serveronly the server reads it: a mod on the server alone takes effect, players need nothingclientonly the game client reads it (drawing, sound, HUD): every player who should see it needs the modsharedthe server and every client read it: both need the same files, or the clients' view jumpsyesthe game has it; nobody has classified its scope yet
BF22142HeroesA game column holds that game's badge and the argument types its program registers; an empty cell means the game does not know the name. The Notes column gives the reason (how the scopes are worked out).

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).

TableRowsBF2 (server / client / shared / yes)2142Heroes
CON commands across the games25111550 (123 / 529 / 898 / 0)1571 (139 / 588 / 844 / 0)2050 (54 / 655 / 1306 / 35)
Console commands22351746 (376 / 949 / 0 / 421)1417 (351 / 686 / 0 / 380)1183 (87 / 603 / 0 / 493)
File types4332 (1 / 17 / 11 / 0)33 (1 / 16 / 13 / 0)34 (1 / 16 / 14 / 0)
Python functions, methods, events208111 (111 / 0 / 0 / 0)151 (151 / 0 / 0 / 0)185 (185 / 0 / 0 / 0)
Network events, data blocks and networkables12488 (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.

TablePageOld columnsNow
Template commands across the games/modding/reference/allCommand, BF2, 2142, Heroes, bf2-rsmerged: shared layout, scope badge per game, owner classes
Scope of every property/modding/server-vs-client/tableProperty, Scope, Games, Whymerged into the table above; the file-type tables became one shared table
Template class properties/modding/referenceProperty, Args, Default, Effect, 2142, Heroes, bf2-rsshared layout; each row links its cross-game row
Console commands/reference/consoleCommand, Kind, BF2, 2142, Heroesshared layout with BF2's registry scope; template objects moved into the cross-game table
Python host API, methods and events/python/apiFunction, Family, BF2, 2142, Heroes, Signature / Event, idsmerged: shared layout, server badge per game with the original address or the event id
Format pages' per-game tables/assetsfree-form (Step, bf2-rs / BF2, 2142, Heroes 1.126)not merged yet
Network events and data blocks/engine/net/blocksprose and the notes' BF2 catalog onlymerged: a row per event class and data block, each game's id and wire fields, the bf2-rs reader
Parity tableshttps://bf2.us/play/heroes/parity.htmlthe 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.

Source: tools/devwiki/xref.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.