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

Server / client scope of every property and file

Built from the code by tools/bfheroes/mod_scope.py on every wiki build (see Server-side vs client-side mods for what the scopes mean and how they are derived). 2501 template commands: 177 server, 756 client, 1568 shared.

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 yetper linea script file: each line takes its own command's scope
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).
Where the per-property table went

Every command's scope is now a badge in the shared reference table, next to its argument types and its owner classes: CON commands across the games (one row per command, per game). Find one name in every game with the unified reference search.

What decided each scope#

BasisCommands
bf2-rs reads670
default726
name207
retail behaviour9
retail reads236
retail registry412
rule241

Files by extension#

The dedicated server mounts only the _server archives (ServerArchives.con); the game client mounts the _server and the _client archives. A game cell holds the scope and the number of files in the retail server / client archives.

NameBF22142HeroesNotes
(no extension)shared 12 / 12shared 11 / 0shared 11 / 0in the server archives, which the clients mount too
.aiserver 133 / 133server 90 / 0server 2 / 0AI templates and strategies: bots run on the server only
.bafshared 3471 / 3470shared 2880 / 0shared 2664 / 0in the server archives, which the clients mount too
.bmpshared 1 / 0in the server archives, which the clients mount too
.bundledmeshclient 0 / 506client 0 / 306client 0 / 485only in the client archives: the dedicated server does not mount them
.collisionmeshshared 1450 / 1186shared 1225 / 0shared 384 / 0collision: the server simulates, the clients predict and pick
.conper line 2578 / 2219per line 2794 / 0per line 7257 / 0template scripts: each line's scope is its property's (the table)
.datclient 0 / 56client 0 / 133client 0 / 8only in the client archives: the dedicated server does not mount them
.dbshared 3 / 3in the server archives, which the clients mount too
.ddsclient 0 / 2230client 0 / 2864client 0 / 3815only in the client archives: the dedicated server does not mount them
.descshared 68 / 68shared 43 / 0in the server archives, which the clients mount too
.dfmshared 2 / 0shared 2 / 0in the server archives, which the clients mount too
.dfxclient 0 / 5client 0 / 5only in the client archives: the dedicated server does not mount them
.difclient 0 / 358client 0 / 552client 0 / 291only in the client archives: the dedicated server does not mount them
.eaxshared 2 / 2client 0 / 2in the server archives, which the clients mount too; only in the client archives: the dedicated server does not mount them
.flashared 1 / 1in the server archives, which the clients mount too
.flagshared 25 / 0shared 1 / 0in the server archives, which the clients mount too
.fontclient 0 / 2client 0 / 2client 0 / 1only in the client archives: the dedicated server does not mount them
.fxclient 0 / 101client 0 / 105client 0 / 111only in the client archives: the dedicated server does not mount them
.htmclient 0 / 3only in the client archives: the dedicated server does not mount them
.incper line 178 / 177per line 154 / 0per line 267 / 0included template scripts
.jpgclient 0 / 15client 0 / 84only in the client archives: the dedicated server does not mount them
.logshared 25 / 0in the server archives, which the clients mount too
.mbshared 3 / 0in the server archives, which the clients mount too
.mfxclient 0 / 3client 0 / 3client 0 / 3only in the client archives: the dedicated server does not mount them
.occclient 0 / 54client 0 / 33client 0 / 7only in the client archives: the dedicated server does not mount them
.oggclient 0 / 4363client 0 / 4350client 0 / 87only in the client archives: the dedicated server does not mount them
.ollllshared 1 / 0in the server archives, which the clients mount too
.pngclient 0 / 1072client 0 / 1840client 0 / 2592only in the client archives: the dedicated server does not mount them
.sfkshared 1 / 0in the server archives, which the clients mount too
.skeshared 9 / 9shared 75 / 0shared 8 / 0in the server archives, which the clients mount too
.skinnedmeshclient 0 / 24client 0 / 18client 0 / 1810only in the client archives: the dedicated server does not mount them
.skinweightsshared 3 / 0in the server archives, which the clients mount too
.staticmeshclient 0 / 1105client 0 / 1353client 0 / 416only in the client archives: the dedicated server does not mount them
.swatchshared 42 / 0in the server archives, which the clients mount too
.swfclient 0 / 5only in the client archives: the dedicated server does not mount them
.tacshared 1 / 1shared 1 / 0shared 1 / 0in the server archives, which the clients mount too
.taishared 3 / 3shared 4 / 0shared 4 / 0in the server archives, which the clients mount too
.tgaclient 0 / 786client 0 / 1289client 0 / 4257only in the client archives: the dedicated server does not mount them
.tweakper line 2143 / 1856per line 2102 / 0per line 1508 / 0template scripts: each line's scope is its property's (the table)
.txtshared 3 / 3shared 284 / 0shared 140 / 0in the server archives, which the clients mount too
.wavclient 0 / 1017client 0 / 513client 0 / 958only in the client archives: the dedicated server does not mount them
.xmlshared 10 / 0in the server archives, which the clients mount too

Level files#

A level's server.zip and client.zip are mounted the same way in the three games.

NameBF22142HeroesNotes
staticobjects.consharedsharedsharedboth sides build the statics from their own copy (collision on the server, drawing on the clients)
gameplayobjects.conserverserverserverthe placements (spawners, control points, spawn points) sit in if v_arg1 == host: the server places them, clients see them over the network
gamelogicsettings.conserverserverserverHeroes game-mode settings the server runs
init.consharedsharedsharedthe level's settings: both sides run it
heightdata.rawsharedsharedsharedthe terrain: the server collides with it, the clients draw it
terraindata.rawsharedsharedsharedthe terrain: the server collides with it, the clients draw it
ai/serverserverserverAI: bots run on the server only
sky.conclientclientclientthe sky, sun and fog the clients draw
overgrowth/clientclientclientgrass and undergrowth the clients draw
lightmaps/clientclientclientlightmaps the clients draw
hud/clientclientclientthe minimap and HUD images
sounds.conclientclientclientambient sounds the clients play

Generated by tools/devwiki/xref.py from tools/bfheroes/mod_scope.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.