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

Network events, data blocks and networkables

BF22142Heroes

Stream 1 of every packet carries game events, reliable and ordered, in both directions; a data block is a larger blob (the server settings, the level to load, the map list) cut into 63-byte DataBlockEvent chunks (see the engine overview); the ghost stream carries the networkables, the state of every ghosted object. This page lists every event class, data block and networkable kind the bf2-net tables know, one row per name, with each game's id and wire fields, generated on every build from crates/bf2-net/src (read only) and BF2's event catalog in notes/subsystems/network-events.md.

Event classes per game: BF2 63, 2142 69, Heroes 75 (Heroes: the ids bf2-rs cites a registration of in BFHeroes.exe 1.126). Server to client / client to server / both ways: BF2 25 / 16 / 22, 2142 28 / 16 / 25, Heroes 35 / 16 / 23.

Direction badges
clientserver to client: the server sends it, every client runs itserverclient to server: a client sends it, the server runs itsharedboth ways: the server and the clients run it (a request and its answer, or a relay)yesregistered, but neither side's handler acts on it (or nobody has worked out who does)
BF22142HeroesA game column holds that game's badge, id and wire fields; an empty cell means the game does not register the name. The Notes column names the readers and the handlers that decide the badge.
The badges on this page

A badge says which side runs the event or block: client when the server sends it to the clients, server when a client sends it to the server, shared when both run it (a client's request the server answers or relays, like a radio message or a vote). An event's badge comes from the original programs' handler tables: a received event runs its class's executeClient on a client and executeServer on a server, and a side whose handler does nothing never receives it (tools/devwiki/net_dirs.py reads them: BF2's server and client, 2142's Linux server, Heroes 1.126). yes means the game registers it but neither handler acts. Notes names the bf2-rs reader per game (the table or codec in crates/bf2-net/src), the original program's reader or registration, and the handlers that run it.

Data blocks#

The kind is the header's first field (DataBlockEvent with its header bit set); the chunks follow. A game cell names the payload type bf2-rs decodes it with.

NameBF22142HeroesNotes
ServerInfoclient kind 0 · datablock.rs ServerInfoclient kind 0 · bf2142.rs ServerInfo2142client kind 0 · bfh_server_info.rs decodeServer → client server settings, bit stream ([super::ServerInfo]).
ClientInfoserver kind 1 · datablock.rs ClientInfoserver kind 1 · datablock.rs ClientInfoserver kind 1 · bfh_join.rs client_info_blockClient → server player info, bit stream ([super::ClientInfo]); creates the player (0x00449510).
LoadLevelclient kind 2 · join.rs LoadLevelclient kind 2 · join.rs LoadLevelclient kind 2 · join.rs LoadLevelServer → client level to load, bit stream ([crate::join::LoadLevel]; writer 0x005479c0, client reader BF2.exe!0x0054b330).
MapListclient kind 5 · datablock.rs MapListclient kind 5 · datablock.rs MapListclient kind 5 · datablock.rs MapListServer → client map list, little-endian struct ([super::MapList]).
ClientStringserver kind 6 · datablock.rsClient → server text handed to Python event 0x26 (the event PostRemote(6, 18) RemoteConsoleCommand also dispatches, 0x0044b6d0) by 0x00449d60; the client sender was not traced.
DemoDownloadclient kind 9 · datablock.rsServer → client demo download notice after an auto-recorded demo was uploaded: len8 URL, len8 map name (writer 0x0055f670, reader 0x0055f500, sent by GameServer::sendDemoDownloadInfo 0x00448840; decoded by bf2_demo::autorecord::DemoDownloadInfo).

Game events#

A game cell: the event's id in that game and its fields in wire order. An event's id is bits_for_max(largest registered id) bits wide, 7 in all three games.

NameBF22142HeroesNotes
ChallengeEventclient id 1: challenge bytes[10], mod name len8client id 1: challenge bytes[10], mod name len8BF2: codecs.rs Challenge, bf2_w32ded.exe!0x00537af0, run by BF2.exe!0x0053aa00 (client); 2142: codecs.rs Challenge, run by bf2142ded!0x08069c50 (client)
ChallengeResponseEventserver id 2: response bytes[73], challenge_xor u32, build u32, GameSpy product s32server id 2: response bytes[73], challenge_xor u32, build u32, GameSpy product s32server id 2: response bytes[73], challenge_xor u32, build u32, GameSpy product s32BF2: codecs.rs ChallengeResponse, bf2_w32ded.exe!0x00537c90, run by bf2_w32ded.exe!0x00537c10 (server); 2142: codecs.rs ChallengeResponse, run by bf2142ded!0x08069fb0 (server); Heroes: codecs.rs ChallengeResponse, BFHeroes.exe@bfh126!0x00462c90, run by BFHeroes.exe@bfh126!0x004edfd5 (server)
ConnectionTypeEventserver id 3: type: ranged [0, 6]server id 3: type: ranged [0, 6]server id 3: type: ranged [0, 6]BF2: codecs.rs ConnectionType, bf2_w32ded.exe!0x00538700, run by bf2_w32ded.exe!0x005387c0 (server); 2142: codecs.rs ConnectionType, run by bf2142ded!0x0806cf50 (server); Heroes: codecs.rs ConnectionType, BFHeroes.exe@bfh126!0x00462cdb, run by BFHeroes.exe@bfh126!0x004ee1fa (server)
DataBlockEventshared id 4: bool header; header: kind u32, size u32; chunk: len8shared id 4: bool header; header: kind u32, size u32; chunk: len8shared id 4: bool header; header: kind u32, size u32; chunk: len8BF2: codecs.rs DataBlock, bf2_w32ded.exe!0x005388c0, run by BF2.exe!0x0053b920 (client) and bf2_w32ded.exe!0x00538ac0 (server); 2142: codecs.rs DataBlock, run by bf2142ded!0x0806f7b0 (client) and bf2142ded!0x0806f850 (server); Heroes: codecs.rs DataBlock, BFHeroes.exe@bfh126!0x00462d25, run by BFHeroes.exe@bfh126!0x004ee3a4 (client) and BFHeroes.exe@bfh126!0x004ee3fe (server)
CreatePlayerEventclient id 5: f_0c u3, f_0d u4, f_0e bool, f_30 u8, f_32 u16, f_34 u16, f_0f bool, name bytes[32]client id 5: f_0c u3, f_0d u4, f_0e bool, f_30 u8, f_32 u16, f_34 u16, f_0f bool, name bytes[32]client id 5: f_0c u3, f_0d u4, f_0e bool, f_30 u8, f_32 u16, f_34 u16, f_0f bool, name bytes[32]BF2: codecs.rs CreatePlayer, bf2_w32ded.exe!0x00538b30, run by BF2.exe!0x0053bd00 (client); 2142: codecs.rs CreatePlayer, run by bf2142ded!0x0806eba0 (client); Heroes: codecs.rs CreatePlayer, BFHeroes.exe@bfh126!0x00462d70, run by BFHeroes.exe@bfh126!0x004ee7b0 (client)
CreateObjectEventclient id 6: template u32, id u16, f_2c u2, bool multi: 1 → count u8; 0 → bool [position vec3], bool ...client id 6: template u32, id u16, f_2c u2, bool multi: 1 → count u8; 0 → bool [position vec3], bool ...client id 6: template u32, id u16, f_2c u2, bool multi: 1 → count u8; 0 → bool [position vec3], bool ...BF2: codecs.rs CreateObject, bf2_w32ded.exe!0x005394c0, run by BF2.exe!0x0053c5e0 (client); 2142: codecs.rs CreateObject, run by bf2142ded!0x0806e1c0 (client); Heroes: codecs.rs CreateObject, BFHeroes.exe@bfh126!0x00462dbb, run by BFHeroes.exe@bfh126!0x004ef021 (client)
DestroyObjectEventclient id 7: id u16client id 7: id u16 + 2142's own field (see the codec)client id 7: id u16BF2: codecs.rs DestroyObject, bf2_w32ded.exe!0x00539b20, run by BF2.exe!0x0053c980 (client); 2142: codecs.rs DestroyObject, run by bf2142ded!0x0806fc40 (client); Heroes: codecs.rs DestroyObject, BFHeroes.exe@bfh126!0x00462dfe, run by BFHeroes.exe@bfh126!0x004ef27c (client)
DestroyPlayerEventclient id 8: player u8client id 8: player u8client id 8: player u8BF2: codecs.rs DestroyPlayer, bf2_w32ded.exe!0x00539a10, run by BF2.exe!0x0053c900 (client); 2142: codecs.rs DestroyPlayer, run by bf2142ded!0x0806fea0 (client); Heroes: codecs.rs DestroyPlayer, BFHeroes.exe@bfh126!0x00462e41, run by BFHeroes.exe@bfh126!0x004ef164 (client)
EnterVehicleEventclient id 9: player u8, object u16, flag boolclient id 9: player u8, object u16, flag boolclient id 9: player u8, object u16, flag boolBF2: codecs.rs EnterVehicle, bf2_w32ded.exe!0x00539c30, run by BF2.exe!0x0053caf0 (client); 2142: codecs.rs EnterVehicle, run by bf2142ded!0x08070630 (client); Heroes: codecs.rs EnterVehicle, BFHeroes.exe@bfh126!0x00462e8b, run by BFHeroes.exe@bfh126!0x004ef3c9 (client)
ExitVehicleEventclient id 10: player u8, flag boolclient id 10: player u8, flag boolclient id 10: player u8, flag boolBF2: codecs.rs ExitVehicle, bf2_w32ded.exe!0x00539dc0, run by BF2.exe!0x0053cc40 (client); 2142: codecs.rs ExitVehicle, run by bf2142ded!0x08070c30 (client); Heroes: codecs.rs ExitVehicle, BFHeroes.exe@bfh126!0x00462ed5, run by BFHeroes.exe@bfh126!0x004ef4e5 (client)
PostRemoteEventshared id 11: u4 u32 u32 len8shared id 11: u4 u32 u32 len8shared id 11: u4 u32 u32 len8BF2: generic.rs SPECS, bf2_w32ded.exe!0x00539f80, run by BF2.exe!0x0053cdf0 (client) and bf2_w32ded.exe!0x0053a180 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42b070, run by bf2142ded!0x08076e70 (client) and bf2142ded!0x08076f00 (server); Heroes: 2142's layout (generic_2142.rs), BFHeroes.exe@bfh126!0x00462f1f, run by BFHeroes.exe@bfh126!0x004edb36 (client) and BFHeroes.exe@bfh126!0x004edbac (server)
ChangePlayerNameEventshared id 12: u8 bytes[32]shared id 12: u8 bytes[32]shared id 12: u8 bytes[32]BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053a380, run by BF2.exe!0x0053d190 (client) and bf2_w32ded.exe!0x0053a4d0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x41ff90, run by bf2142ded!0x0806ab10 (client) and bf2142ded!0x0806aba0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00462f63, run by BFHeroes.exe@bfh126!0x004ef5f5 (client) and BFHeroes.exe@bfh126!0x004ef64e (server)
HandleDropEventclient id 13: u8 u16 u16 vec3client id 13: u8 u16 u16 vec3client id 13: u8 u16 u16 vec3BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053a980, run by BF2.exe!0x0053d5c0 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x426490, run by bf2142ded!0x08071a80 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00462ff8, run by BFHeroes.exe@bfh126!0x004ef984 (client)
HandlePickupEventclient id 14: u8 u16 u16client id 14: u8 u16 u16 u8 u8 u8 u8 u8 u8 u8 u8 u1 u32client id 14: u8 u16 u16BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053a630, run by BF2.exe!0x0053d470 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x426b80, run by bf2142ded!0x08072120 (client); Heroes: bfh_events.rs SPECS_BFH_126, BFHeroes.exe@bfh126!0x00462fae, run by BFHeroes.exe@bfh126!0x004ef881 (client)
StringBlockEventshared id 15: bool header; header: f_0d u8; chunk: len8shared id 15: bool header; header: f_0d u8; chunk: len8shared id 15: bool header; header: f_0d u8; chunk: len8BF2: codecs.rs StringBlock, bf2_w32ded.exe!0x0053aad0, run by BF2.exe!0x0053d930 (client) and bf2_w32ded.exe!0x0053ac90 (server); 2142: codecs.rs StringBlock, run by bf2142ded!0x0807f2e0 (client) and bf2142ded!0x0807f370 (server); Heroes: codecs.rs StringBlock, BFHeroes.exe@bfh126!0x0046303b, run by BFHeroes.exe@bfh126!0x004efb79 (client) and BFHeroes.exe@bfh126!0x004efbd4 (server)
JoinSquadEventserver id 16: u8 u8 u8server id 16: u8 u8 u8server id 16: u8 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053ad00, run by bf2_w32ded.exe!0x0053ae40 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x428710, run by bf2142ded!0x08073de0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463086, run by BFHeroes.exe@bfh126!0x004efd48 (server)
LeaveSquadEventserver id 17: u8 u8 u8 u1server id 17: u8 u8 u8 u1server id 17: u8 u8 u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053af20, run by bf2_w32ded.exe!0x0053aea0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x429540, run by bf2142ded!0x08074c40 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004630d0, run by BFHeroes.exe@bfh126!0x004efd8d (server)
CommanderEventshared id 19: cnt(9) u8 s16shared id 19: u4 u8 s16shared id 19: u4 u8 s16BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053b0d0, run by BF2.exe!0x0053df20 (client) and bf2_w32ded.exe!0x0053b400 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x421250, run by bf2142ded!0x0806c060 (client) and bf2142ded!0x0806c0c0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x0046311a, run by BFHeroes.exe@bfh126!0x004f001b (client) and BFHeroes.exe@bfh126!0x004f004e (server)
RadioMessageEventshared id 20: u8 u8 u2 u8 cnt(19) cnt(4)shared id 20: u16 u8 u2 u8 u5 u3shared id 20: u16 u8 u2 u8 u5 u3BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053bc10, run by BF2.exe!0x0053eaf0 (client) and bf2_w32ded.exe!0x0053beb0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42c1d0, run by bf2142ded!0x08078010 (client) and bf2142ded!0x08078110 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463164, run by BFHeroes.exe@bfh126!0x004f12f7 (client) and BFHeroes.exe@bfh126!0x004f1369 (server)
KilledByEventclient id 21: u8 u8 u1 u16 u32 u32 u8 dAclient id 21: u8 u8 u1 u16 u32 u32 u8 dA u10client id 21: Heroes' own layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053bfe0, run by BF2.exe!0x0053ec20 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x428ee0, run by bf2142ded!0x08074a40 (client); Heroes: generic_2142.rs read_fields (Heroes branch), BFHeroes.exe@bfh126!0x0046281b, run by BFHeroes.exe@bfh126!0x004f14c6 (client)
ChangeSquadNameEventshared id 22: u8 u8 u8 len8shared id 22: u8 u8 u8 len8shared id 22: u8 u8 u8 len8BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053c280, run by BF2.exe!0x0053f0d0 (client) and bf2_w32ded.exe!0x0053c450 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x4206e0, run by bf2142ded!0x0806b060 (client) and bf2142ded!0x0806b110 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004631f1, run by BFHeroes.exe@bfh126!0x004f1a03 (client) and BFHeroes.exe@bfh126!0x004f1a60 (server)
SetPrivateSquadEventshared id 23: u8 u8 u1shared id 23: u8 u8 u1shared id 23: u8 u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053c570, run by BF2.exe!0x0053f370 (client) and bf2_w32ded.exe!0x0053c6e0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42f760, run by bf2142ded!0x0807b8c0 (client) and bf2142ded!0x0807b910 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x0046323c, run by BFHeroes.exe@bfh126!0x004f1c1c (client) and BFHeroes.exe@bfh126!0x004f1c42 (server)
IssueSquadOrderEventshared id 24: custom layoutshared id 24: custom layoutshared id 24: custom layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053c9e0, run by BF2.exe!0x0053fb30 (client) and bf2_w32ded.exe!0x0053cd60 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x427a00, run by bf2142ded!0x08073090 (client) and bf2142ded!0x080731d0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463286, run by BFHeroes.exe@bfh126!0x004f21c2 (client) and BFHeroes.exe@bfh126!0x004f2100 (server)
InviteEventserver id 25: u8 u8 u8 u1server id 25: u8 u8 u8 u1server id 25: u8 u8 u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053cf60, run by bf2_w32ded.exe!0x0053d0d0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x427130, run by bf2142ded!0x08072580 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004632c9, run by BFHeroes.exe@bfh126!0x004f238c (server)
RankEventclient id 26: cnt(2) cnt(32) u32 u8client id 26: u2 u7 u32 u8client id 26: u2 u7 u32 u8 u12 u3BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053b630, run by BF2.exe!0x0053e480 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42c440, run by bf2142ded!0x08078610 (client); Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x00463313, run by BFHeroes.exe@bfh126!0x004f0d44 (client)
SetAcceptOrderEventshared id 27: u8 u8 u1 u8 u8shared id 27: u8 u8 u1 u8 u8shared id 27: u8 u8 u1 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053c780, run by BF2.exe!0x0053f5c0 (client) and bf2_w32ded.exe!0x0053c950 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42e2a0, run by bf2142ded!0x0807a1f0 (client) and bf2142ded!0x0807a250 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x0046335d, run by BFHeroes.exe@bfh126!0x004f1daf (client) and BFHeroes.exe@bfh126!0x004f1de0 (server)
SetSquadLeaderEventshared id 28: u8 u8 u8shared id 28: u8 u8 u8shared id 28: u8 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053ad00, run by BF2.exe!0x0053e860 (client) and bf2_w32ded.exe!0x0053bbb0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x428710, run by bf2142ded!0x0807bda0 (client) and bf2142ded!0x0807bdf0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004633a7, run by BFHeroes.exe@bfh126!0x004f1101 (client) and BFHeroes.exe@bfh126!0x004f1127 (server)
SpottedEventserver id 29: u16 u16 u32 u32 u8 u32 u32server id 29: u16 u16 u32 u32 u8 u32 u32server id 29: u16 u16 u32 u32 u8 u32 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053d140, run by bf2_w32ded.exe!0x0053d2f0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x430680, run by bf2142ded!0x0807ccd0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004633f1, run by BFHeroes.exe@bfh126!0x004f2535 (server)
ArtilleryEventshared id 30: custom layoutshared id 30: custom layoutshared id 30: custom layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053d750, run by BF2.exe!0x00540500 (client) and bf2_w32ded.exe!0x0053d8c0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x41df10, run by bf2142ded!0x080686f0 (client) and bf2142ded!0x080689b0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463434, run by BFHeroes.exe@bfh126!0x004f2a8c (client) and BFHeroes.exe@bfh126!0x004f2bb1 (server)
CreateKitEventclient id 31: u32 u16 vec3 u4 u4client id 31: u32 u16 vec3 u4 u8 u8 u8 u8client id 31: u32 u16 vec3BF2: generic.rs SPECS, bf2_w32ded.exe!0x00539250, run by BF2.exe!0x0053bfa0 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x422770, run by bf2142ded!0x0806d7f0 (client); Heroes: bfh_events.rs SPECS_BFH_126, BFHeroes.exe@bfh126!0x00463477, run by BFHeroes.exe@bfh126!0x004eebbb (client)
StickyProjectileEventclient id 32: custom layoutclient id 32: custom layoutclient id 32: custom layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053df70, run by bf2_w32ded.exe!0x0053de00 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x4321b0, run by bf2142ded!0x0807e9c0 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004634ba, run by BFHeroes.exe@bfh126!0x004f31ec (client)
TitanEventshared id 33: custom layoutshared id 33: custom layout2142: generic_2142.rs SPECS_2142, bf2142ded!0x433e70, run by bf2142ded!0x08080ce0 (client) and bf2142ded!0x08080d40 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004634fd, run by BFHeroes.exe@bfh126!0x004f2e0c (client) and BFHeroes.exe@bfh126!0x004f2e39 (server)
AmbientEffectAreaEventclient id 34: u16 u8 u16 u32 u32 u32client id 34: u16 u8 u16 u32 u32 u32client id 34: u16 u8 u16 u32 u32 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053ea00, run by BF2.exe!0x00541670 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x41d8d0, run by bf2142ded!0x08068290 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463540, run by BFHeroes.exe@bfh126!0x004f3cfa (client)
VoipOnOffEventshared id 35: u8 u1shared id 35: u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053f4a0, run by BF2.exe!0x00541eb0 (client) and bf2_w32ded.exe!0x0053f620 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x435d90, run by bf2142ded!0x08082f60 (client) and bf2142ded!0x08083040 (server)
CommanderCamEventserver id 36: vec3server id 36: vec3server id 36: vec3BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053f360, run by bf2_w32ded.exe!0x0053f3b0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x420ac0, run by bf2142ded!0x0806b770 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463583, run by BFHeroes.exe@bfh126!0x004f407a (server)
SupplyDropEventserver id 37: u32 u32 u32server id 37: u32 u32 u32server id 37: u32 u32 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053f920, run by bf2_w32ded.exe!0x0053fa30 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x4336c0, run by bf2142ded!0x08080340 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004635c6, run by BFHeroes.exe@bfh126!0x004f421a (server)
VoipPlayerMuteEventshared id 38: u1 u8 u8shared id 38: u1 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053f670, run by BF2.exe!0x005420d0 (client) and bf2_w32ded.exe!0x0053f840 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x4362b0, run by bf2142ded!0x08083330 (client) and bf2142ded!0x08083410 (server)
VoteEventshared id 39: u8 u8 u8 u8 u8 u8 u8 u8 u8 u32shared id 39: u8 u8 u8 u8 u8 u8 u8 u8 u8 u32shared id 39: u8 u8 u8 u8 u8 u8 u8 u8 u8 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053fab0, run by BF2.exe!0x00542660 (client) and bf2_w32ded.exe!0x0053fd20 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x436870, run by bf2142ded!0x08083c20 (client) and bf2142ded!0x08083c60 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463609, run by BFHeroes.exe@bfh126!0x004f4425 (client) and BFHeroes.exe@bfh126!0x004f444b (server)
ToggleFreeCameraEventserver id 40: noneserver id 40: noneserver id 40: noneBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053ecb0, run by bf2_w32ded.exe!0x0053ed50 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x434430, run by bf2142ded!0x08081190 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463653, run by BFHeroes.exe@bfh126!0x004f3d99 (server)
MedalEventclient id 41: u32 u8 u4client id 41: u32 u8 u4 u12client id 41: u32 u8 u4 u12BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053eda0, run by BF2.exe!0x00541920 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x4299e0, run by bf2142ded!0x08075580 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x0046369d, run by BFHeroes.exe@bfh126!0x004f3ec9 (client)
UnlockEventclient id 42: cnt(2) u8 u4 u4 u4 u4 u4 u4 u4 u4 u4 u4 u4 u4 u4 u4client id 42: custom layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053efa0, run by BF2.exe!0x00541bf0 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x435170, run by bf2142ded!0x080824e0 (client)
MissileInitEventclient id 43: u16 u8 u4 u1client id 43: u16 u8 u4 u1client id 43: u16 u8 u4 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053e240, run by BF2.exe!0x00540eb0 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x429fd0, run by bf2142ded!0x08075a00 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004636e7, run by BFHeroes.exe@bfh126!0x004f361e (client)
FieldUnlockEventshared id 44: custom layout2142: generic_2142.rs SPECS_2142, bf2142ded!0x425d10, run by bf2142ded!0x08071060 (client) and bf2142ded!0x08071240 (server)
UAVEventserver id 45: u32 u32 u8 u1server id 45: u32 u32 u8 u1server id 45: u32 u32 u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053d3c0, run by bf2_w32ded.exe!0x0053d500 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x434520, run by bf2142ded!0x080814a0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463731, run by BFHeroes.exe@bfh126!0x004f2714 (server)
ContentCheckEventserver id 46: 3 × bytes[16] hashesserver id 46: 3 × bytes[16] hashesserver id 46: 3 × bytes[16] hashesBF2: codecs.rs ContentCheck, bf2_w32ded.exe!0x00540a40, run by bf2_w32ded.exe!0x00540970 (server); 2142: codecs.rs ContentCheck, run by bf2142ded!0x0806d090 (server); Heroes: codecs.rs ContentCheck, BFHeroes.exe@bfh126!0x00463774, run by BFHeroes.exe@bfh126!0x004f9970 (server)
TargetDirectionEventserver id 47: u16 u8 u32 u32 u32 u32 u32 u32server id 47: u16 u8 u32 u32 u32 u32 u32 u32server id 47: u16 u8 u32 u32 u32 u32 u32 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053e670, run by bf2_w32ded.exe!0x0053e920 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x433a00, run by bf2142ded!0x080808b0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004637bf, run by BFHeroes.exe@bfh126!0x004f3a69 (server)
EndOfRoundEventclient id 48: u32 u32 u32client id 48: u32 u32 u32client id 48: Heroes' own layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x0053fd40, run by BF2.exe!0x005429d0 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x424de0, run by bf2142ded!0x08070210 (client); Heroes: generic_2142.rs read_fields (Heroes branch), BFHeroes.exe@bfh126!0x00461fcb, run by BFHeroes.exe@bfh126!0x004f513b (client)
PythonCommandEventshared id 49: custom layoutshared id 49: custom layoutshared id 49: custom layoutBF2: generic.rs SPECS, bf2_w32ded.exe!0x005400a0, run by BF2.exe!0x00542d10 (client) and bf2_w32ded.exe!0x005402d0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42b570, run by bf2142ded!0x08077540 (client) and bf2142ded!0x080777a0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463802, run by BFHeroes.exe@bfh126!0x004f9400 (client) and BFHeroes.exe@bfh126!0x004f9512 (server)
RequestEventserver id 50: u8 u8 cnt(4)server id 50: u8 u8 u3server id 50: u8 u8 u3BF2: generic.rs SPECS, bf2_w32ded.exe!0x00540590, run by bf2_w32ded.exe!0x005406e0 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42d7b0, run by bf2142ded!0x080794d0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463845, run by BFHeroes.exe@bfh126!0x004f98b7 (server)
ChangePcoTeamEventclient id 51: u16 u2client id 51: u16 u22142: generic_2142.rs SPECS_2142, bf2142ded!0x41fad0, run by bf2142ded!0x0806a6c0 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x0046388f, run by BFHeroes.exe@bfh126!0x004f9f2e (client)
DropVehicleEventserver id 51: u32 u32 u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053d5a0, run by bf2_w32ded.exe!0x0053d6e0 (server)
SiloSyncEventclient id 52: u16 u8client id 52: u16 u82142: generic_2142.rs SPECS_2142, bf2142ded!0x430180, run by bf2142ded!0x0807c500 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004638d9, run by BFHeroes.exe@bfh126!0x004fb5d2 (client)
VoipSessionEventshared id 54: u16shared id 54: u16BF2: generic.rs SPECS, bf2_w32ded.exe!0x00540820, run by BF2.exe!0x00543430 (client) and bf2_w32ded.exe!0x00540930 (server); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x4364a0, run by bf2142ded!0x08083700 (client) and bf2142ded!0x08083760 (server)
KickBanEventclient id 55: u8 u1 u8client id 55: u8 u1 u8client id 55: u8 u1 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x0053b950, run by BF2.exe!0x0053e740 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x428a80, run by bf2142ded!0x08074490 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463923, run by BFHeroes.exe@bfh126!0x004f1078 (client)
BeginRoundEventclient id 56: u32 u32client id 56: u32 u32 s8BF2: generic.rs SPECS, bf2_w32ded.exe!0x00531e20, run by BF2.exe!0x005427a0 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x41ed30, run by bf2142ded!0x08069a90 (client)
CreateSpawnGroupEventclient id 57: u8 u4 u1 u1 u1 u8 u8 u16client id 57: u8 u4 u1 u1 u1 u8 u8 u16client id 57: u8 u4 u1 u1 u1 u8 u8 u16BF2: generic.rs SPECS, bf2_w32ded.exe!0x00540ba0, run by BF2.exe!0x00543900 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x423f70, run by bf2142ded!0x0806f330 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x004639b7, run by BFHeroes.exe@bfh126!0x004f9c89 (client)
RemoveSpawnGroupEventclient id 58: u8 u16client id 58: u8 u16client id 58: u8 u16BF2: generic.rs SPECS, bf2_w32ded.exe!0x00540e80, run by BF2.exe!0x00543a80 (client); 2142: generic_2142.rs SPECS_2142, bf2142ded!0x42d090, run by bf2142ded!0x08079170 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463a01, run by BFHeroes.exe@bfh126!0x004f9db8 (client)
AutoControllerFireEventshared id 59: custom layoutshared id 59: custom layout2142: generic_2142.rs SPECS_2142, bf2142ded!0x41e780, run by bf2142ded!0x08069410 (client) and bf2142ded!0x08069590 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463a4b, run by BFHeroes.exe@bfh126!0x004fa165 (client) and BFHeroes.exe@bfh126!0x004fa0a6 (server)
UpdateTriggerEventclient id 59: u32 u16 vec3 vec3 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x00541160, neither execute slot acts, only a server sends it: its delivery confirms the trigger's ghost to the connection (bf2_w32ded.exe!0x005410e0 -> confirmGhost bf2_w32ded.exe!0x004449c0)
GrapplingHookContainerCreateEventclient id 60: u8 u16 u8 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x00541a10, run by BF2.exe!0x005445b0 (client)
SetBeaconEventshared id 60: custom layoutshared id 60: custom layout2142: generic_2142.rs SPECS_2142, bf2142ded!0x42e9b0, run by bf2142ded!0x0807aac0 (client) and bf2142ded!0x0807ab20 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463a95, run by BFHeroes.exe@bfh126!0x004fa490 (client) and BFHeroes.exe@bfh126!0x004fa505 (server)
GrapplingHookContainerUpdateEventshared id 61: u8 u8 u32 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x00541c60, run by BF2.exe!0x005447e0 (client) and bf2_w32ded.exe!0x00541eb0 (server)
UAVWarningEventclient id 61: u1client id 61: u12142: generic_2142.rs SPECS_2142, bf2142ded!0x434b60, run by bf2142ded!0x08081c50 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463ad8, run by BFHeroes.exe@bfh126!0x004ede3f (client)
GrapplingHookContainerDetachEventshared id 62: u8 vec3BF2: generic.rs SPECS, bf2_w32ded.exe!0x00542260, run by BF2.exe!0x00544b10 (client) and bf2_w32ded.exe!0x00542160 (server)
UpdateKitEventserver id 62: u4server id 62: u42142: generic_2142.rs SPECS_2142, bf2142ded!0x435ac0, run by bf2142ded!0x08082cc0 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463b22, run by BFHeroes.exe@bfh126!0x004eeccf (server)
GrapplingHookCreateEventclient id 63: u16 u8 u32 vec3 vec3BF2: generic.rs SPECS, bf2_w32ded.exe!0x005417e0, run by BF2.exe!0x00544360 (client)
SelectKitEventserver id 63: u4 u8 u8 u8 u8 u12142: generic_2142.rs SPECS_2142, bf2142ded!0x42db50, run by bf2142ded!0x08079d90 (server)
GrapplingHookUpdateEventshared id 64: u16 u8 dA dA u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x00541230, run by BF2.exe!0x00543ee0 (client) and bf2_w32ded.exe!0x005414e0 (server)
ReloadUpdateEventclient id 64: u16 u32client id 64: u16 u322142: generic_2142.rs SPECS_2142, bf2142ded!0x42cc40, run by bf2142ded!0x08078de0 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463b6c, run by BFHeroes.exe@bfh126!0x004fac86 (client)
PlayerTearGassedEventserver id 65: u8 u32 u32 u32BF2: generic.rs SPECS, bf2_w32ded.exe!0x00542300, run by bf2_w32ded.exe!0x00542440 (server)
SquadRadarEventshared id 65: custom layoutshared id 65: custom layout2142: generic_2142.rs SPECS_2142, bf2142ded!0x430f00, run by bf2142ded!0x0807d410 (client) and bf2142ded!0x0807d540 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00464583, run by BFHeroes.exe@bfh126!0x004ebc16 (client) and BFHeroes.exe@bfh126!0x004ebe67 (server)
RefreshUnlocksEventserver id 66: u322142: generic_2142.rs SPECS_2142, bf2142ded!0x42c8c0, run by bf2142ded!0x080788b0 (server)
SetNightVisionEventserver id 66: u8 u1BF2: generic.rs SPECS, bf2_w32ded.exe!0x005424c0, run by bf2_w32ded.exe!0x005425e0 (server)
CommanderToolEventshared id 67: u32 u32shared id 67: u32 u322142: generic_2142.rs SPECS_2142, bf2142ded!0x421a20, run by bf2142ded!0x0806c7e0 (client) and bf2142ded!0x0806c830 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463bb6, run by BFHeroes.exe@bfh126!0x004fadad (client) and BFHeroes.exe@bfh126!0x004fae00 (server)
MissileSiloFireEventclient id 68: u16 u16client id 68: u16 u162142: generic_2142.rs SPECS_2142, bf2142ded!0x42a8e0, run by bf2142ded!0x080763e0 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463c00, run by BFHeroes.exe@bfh126!0x004faf7c (client)
VerifyPlayerTeamEventshared id 68: u8 u8 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x005426a0, run by BF2.exe!0x00545210 (client) and bf2_w32ded.exe!0x00542830 (server)
CommanderToolsUpdateEventshared id 69: u32 u32 u32 u32 u32 u32shared id 69: u32 u32 u32 u32 u32 u322142: generic_2142.rs SPECS_2142, bf2142ded!0x421d80, run by bf2142ded!0x0806cc50 (client) and bf2142ded!0x0806cc80 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463c4a, run by BFHeroes.exe@bfh126!0x004fb253 (client) and BFHeroes.exe@bfh126!0x004fb2ae (server)
FixPlayerTeamEventshared id 69: u8 u8 u8 u8BF2: generic.rs SPECS, bf2_w32ded.exe!0x00542920, run by BF2.exe!0x00545480 (client) and bf2_w32ded.exe!0x00542ae0 (server)
EntitlementEventclient id 70: u8 u4client id 70: u8 u42142: generic_2142.rs SPECS_2142, bf2142ded!0x425550, run by bf2142ded!0x080708b0 (client); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463c94, run by BFHeroes.exe@bfh126!0x004fb420 (client)
JoinAsSpectatorEventshared id 71: u8 u1 u8 u8shared id 71: u8 u1 u8 u82142: generic_2142.rs SPECS_2142, bf2142ded!0x4281c0, run by bf2142ded!0x08073980 (client) and bf2142ded!0x08073a00 (server); Heroes: generic_2142.rs SPECS_2142, BFHeroes.exe@bfh126!0x00463cde, run by BFHeroes.exe@bfh126!0x004fb775 (client) and BFHeroes.exe@bfh126!0x004fb7b7 (server)
CustomizeEventshared id 72: custom codecHeroes: bfh_events.rs CUSTOMIZE_EVENT_ID, BFHeroes.exe@bfh126!0x00464ae6, run by BFHeroes.exe@bfh126!0x004f01f1 (client) and BFHeroes.exe@bfh126!0x004f0228 (server)
MissionEventclient id 73: custom codecHeroes: bfh_events.rs MISSION_EVENT_ID, BFHeroes.exe@bfh126!0x00463d28, run by BFHeroes.exe@bfh126!0x004fda13 (client)
RoadKillEventclient id 75: u3Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x00463d71, run by BFHeroes.exe@bfh126!0x004fb945 (client)
VIPStatusEventclient id 76: u2Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x00463dbb, run by BFHeroes.exe@bfh126!0x004fbb4a (client)
UpdateItemUseCountEventclient id 77: s15 s16Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x0046078a, run by BFHeroes.exe@bfh126!0x00500254 (client)
PrestigeLevelEventclient id 78: u8 u8 u8Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x00463e4b, run by BFHeroes.exe@bfh126!0x004f0f02 (client)
ClientSettingsEventserver id 79: custom codecHeroes: bfh_events.rs CLIENT_SETTINGS_EVENT_ID, BFHeroes.exe@bfh126!0x00463e95, run by BFHeroes.exe@bfh126!0x004fbbe1 (server)
DamageEventyes id 80: u16 u8 u8 u32 u1 u8Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x00463ed9, no side's handler acts
TriggerInGameEventclient id 81: u7 u8 s11Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x00463f1c, run by BFHeroes.exe@bfh126!0x004fba66 (client)
RefreshEntitlementEventserver id 82: custom codecHeroes: bfh_events.rs REFRESH_ENTITLEMENT_EVENT_ID, BFHeroes.exe@bfh126!0x00460797, run by BFHeroes.exe@bfh126!0x00500660 (server)
RefreshEntitlementResponseEventclient id 83: custom codecHeroes: bfh_events.rs REFRESH_ENTITLEMENT_RESPONSE_EVENT_ID, BFHeroes.exe@bfh126!0x0046079b, run by BFHeroes.exe@bfh126!0x005004d1 (client)
GiveItemEventclient id 84: s32 s32 u1Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x0046079f, run by BFHeroes.exe@bfh126!0x00501d18 (client)
DynamicVehicleSpawnSyncEventclient id 85: custom codecHeroes: bfh_events.rs DYNAMIC_VEHICLE_SPAWN_SYNC_EVENT_ID, BFHeroes.exe!0x00470e56, the server sends it to a spawning player (ServerGameLogic::spawnPlayer BFHeroes.exe!0x00501d61), the client's reader applies it (BFHeroes.exe!0x005a5fbb)
EquipAssetEventshared id 86: u8 u14 u4Heroes: bfh_events.rs SPECS_BFH, BFHeroes.exe@bfh126!0x0046406e, run by BFHeroes.exe@bfh126!0x004eea11 (client) and BFHeroes.exe@bfh126!0x004eea3a (server)
HeroesGateObjectSyncEventclient id 87: custom codecHeroes: bfh_events.rs HEROES_GATE_OBJECT_SYNC_EVENT_ID, BFHeroes.exe@bfh126!0x004640b8, the server sends it to a joining client (BFHeroes.exe@bfh126!0x00530015), the client's reader applies it (BFHeroes.exe@bfh126!0x004fcb45)

Networkables (ghost states)#

A ghosted object's state is its networkables' writes one after the other (at most 12 per object, in the object's component order), each a dirty mask and the fields whose bit is set; the server sends them in the ghost stream (updates, and the control block of the player's own vehicle or soldier). One row per networkable kind; a game cell lists every field its layout can write, in wire order, with the field notation below (a|b: two widths or codecs the layout picks between, usually the control block's and the ghost update's). Field names are the record offsets the writers read (u38 = +0x38) unless the meaning is known; x_* fields are new in 2142 or Heroes.

Kinds per game: BF2 19, 2142 19, Heroes 22. Generated from crates/bf2-net/src/netstate.rs, netstate_2142.rs, bfh_soldier.rs, bfh_ctf_ghost.rs and the typed codecs of networkables.rs / ghost_2142.rs.

NameBF22142HeroesNotes
SimpleObjectNetworkableclient mask u19, position dA, u38 dA, u5c dA|dC, rotation quat14, u80 dA, u8c dA, u44 dA, u68 dA, u50 dA, u74 dA, u9c bool, ub0 bool, hit_points cnt(n), u9d u2, uac cnt(7), ua0_plus_one cnt(8), ua4_plus_one cnt(8), ua8_plus_one cnt(8), ub4 cnt(15), ub8 boolclient mask u25, x_titan bool, position dA, u38 dA, u5c dA|dC, rotation quat14, u80 dA, u8c dA, u44 dA, u68 dA, u50 dA, u74 dA, u9c bool, ub0 bool, hit_points cnt(n), x_emp u4, x_team_change u8, u9d u2, uac cnt(7), ua0_plus_one cnt(8), ua4_plus_one cnt(8), ua8_plus_one cnt(8), ub4 cnt(15), ub8 bool, x_ub9 bool, x_child0..15 cnt(8)|bool, x_launcher boolclient x_bwo bool, mask u25, x_titan bool, position dA, u38 dA, u5c dA|dC, rotation quat14, u80 dA, u8c dA, u44 dA, u68 dA, u50 dA, u74 dA, u9c bool, ub0 bool, hit_points cnt(n), x_emp u4, x_team_change u8, u9d u2, uac cnt(7), ua0_plus_one cnt(8), ua4_plus_one cnt(8), ua8_plus_one cnt(8), ub4 cnt(15), ub8 bool, x_ub9 bool, x_child0..15 cnt(8)|bool, x_launcher boolBF2: netstate.rs simple_object, writer bf2_w32ded.exe!0x005e0ff0; 2142: netstate_2142.rs simple_object, writer bf2142ded!0x08253020; Heroes: netstate_2142.rs simple_object, writer BFHeroes.exe@bfh126!0x007a699d
RotationalBundleNetworkableclient mask u7, yaw u16|12, pitch u16|12, roll u16|12, yaw_speed u16|12, pitch_speed u16|12, roll_speed u16|12, u20 u16client mask u12, yaw u16|12, pitch u16|12, roll u16|12, yaw_speed u16|12, pitch_speed u16|12, roll_speed u16|12, u20 u16, x_3c u16|12, x_40 u16|12, x_44 u16|12, x_rotation quat14client mask u12, yaw u16|12, pitch u16|12, roll u16|12, yaw_speed u16|12, pitch_speed u16|12, roll_speed u16|12, u20 u16, x_3c u16|12, x_40 u16|12, x_44 u16|12, x_rotation quat14BF2: netstate.rs rotational_bundle, writer bf2_w32ded.exe!0x005e3960; 2142: netstate_2142.rs rotational_bundle, writer bf2142ded!0x0824f020; Heroes: netstate_2142.rs rotational_bundle
FreeCameraNetworkableclient mask u3, position dC, rotation quat16, u34 s9client mask u3, position dC, rotation quat16, u34 s9client mask u3, position dC, rotation quat16, u34 s9BF2: netstate.rs free_camera, writer bf2_w32ded.exe!0x005e4a40; 2142: BF2's layout, netstate.rs free_camera; Heroes: BF2's layout, netstate.rs free_camera
SoldierNetworkableclient mask u21, u5c u8, u60 u1, u54 cnt(4), u58 cnt(4), u254_points block(9), position dA, u14 dA, u20 dA, u2c dA, u38 dA, u44 u16|10, u48 u16|10, u4c u16|10, u50 u16|10, u80 cnt(3), u84 cnt(1), u7d bool, u7e bool, u7f bool, u64 u16|10, u68 u16|10, u98 bool, u78 u7|u5, u7c bool, u6c_plus_one cnt(n), u70 u2, u74 u7, u88 cnt(0xff), u8c u12, u90 u16, u94 u12, u9c cnt(0xf)client mask u21, u5c u8, u60 u1, x_emp u4, u54 cnt(4), u58 cnt(4), u254_points block(9), position dA, u14 dA, u20 dA, u2c dA, u38 dA, u44 u16|10, u48 u16|10, u4c u16|10, u50 u16|10, u80 cnt(3), u84 cnt(1), u7d bool, u7e bool, u7f bool, u64 u16|10, u68 u16|10, u98 bool, u78 u7|u5, u7c bool, u70 u2, u74 u7, u8c u12client x_bwo bool, mask u23, x_extra8 u8, u5c u8, u60 u1, x_emp u4, x_speed5 u5, x_duck bool, u54 cnt(6), u58 cnt(6), u254_points block(9), x_opt_y bool, position dA2|dA, x_vel_2d bool, u14 dA2|dA, u20 dA, u2c dA, u38 dA, x_angle_bits [12, 32], u44 u12+, u48 u12+, u4c u12+, u50 u12+, u80 cnt(3), x_zoom1 cnt(3), x_zoom2 cnt(3), u84 cnt(1), x_fire1 cnt(1), x_fire2 cnt(1), u7f bool, x_hidden1 bool, x_hidden2 bool, u7d bool, u7e bool, u64 u10, u68 u10, u98 bool, u78 u7|u5, u7c bool, u6c_plus_one cnt(n), x_item1_plus_one cnt(n), x_item2_plus_one cnt(n), u70 u2, u74 u7, u88 cnt(0xff), u8c u12, u9c cnt(0xf)BF2: netstate.rs soldier, writer bf2_w32ded.exe!0x005ddd00; 2142: netstate_2142.rs soldier, writer bf2142ded!0x08258280; Heroes: netstate_2142.rs soldier → bfh_soldier.rs layout, writer BFHeroes.exe@bfh126!0x007a0e48
SpringNetworkableclient mask u1, u0c dB, u18 dB, u24_small bool, u24 u16client mask u1, u0c dB, u18 dB, u24_small bool, u24 u16client mask u1, u0c dB, u18 dB, u24_small bool, u24 u16BF2: netstate.rs spring, writer bf2_w32ded.exe!0x005e7250; 2142: BF2's layout, netstate.rs spring; Heroes: BF2's layout, netstate.rs spring
ItemNetworkableclient mask u5, position dA, u24 s9, u2c bool, u30 s5client mask u5, position dA, u24 s9, u2c bool, u30 s5client mask u5, position dA, u24 s9, u2c bool, u30 s5BF2: netstate.rs item, writer bf2_w32ded.exe!0x005e5fa0; 2142: BF2's layout, netstate.rs item; Heroes: BF2's layout, netstate.rs item, writer BFHeroes.exe@bfh126!0x007ab444
KitNetworkableclient no fieldsclient mask u1, position dAclient mask u1, position dABF2: netstate.rs layout; 2142: netstate_2142.rs kit, writer bf2142ded!0x0824b280; Heroes: netstate_2142.rs kit
PlayerControlObjectNetworkableclient mask u4, u08_plus_one cnt(8), u0c_plus_one cnt(8), u10_plus_one cnt(8), u20 bool, player block(11)client mask u4, u08_plus_one cnt(8), u0c_plus_one cnt(8), u10_plus_one cnt(8), u20 bool, player block(11)client mask u4, u08_plus_one cnt(8), u0c_plus_one cnt(8), u10_plus_one cnt(8), u20 bool, player block(11)BF2: netstate.rs pco, writer bf2_w32ded.exe!0x005e7790; 2142: BF2's layout, netstate.rs pco; Heroes: BF2's layout, netstate.rs pco
ControlPointNetworkableclient mask u7, team s4, u0c bool, u10 u16, u14 u16, u18 s4, u19 s4, u1c s4, u20 s4client mask u6, team s4, u0c bool, u10 u16, u14 u16, u18 s4, u19 s4, u1c s4client mask u7, team s4, u0c bool, u10 u16, u14 u16, u18 s4, u19 s4, u1c s4, x_1a0 u12BF2: netstate.rs layout; 2142: netstate_2142.rs control_point, writer bf2142ded!0x08241210; Heroes: netstate_2142.rs control_point, writer BFHeroes.exe@bfh126!0x007ae88f
EngineNetworkableclient mask u11, u0c cnt(n), u1c u16, u20 u16, u18 u16, u24 u12, u28 u12, u14 u12, u2c u16, u30 bool, u31 bool, u38 bool, u34 u16, u3c u8, gear_dir s3client mask u11, u0c cnt(n), u1c u16, u20 u16, u18 u16, u24 u12, u28 u12, u14 u12, u2c u16, u30 bool, u31 bool, u38 bool, u34 u16, u3c u8, gear_dir s3client mask u11, u0c cnt(n), u1c u16, u20 u16, u18 u16, u24 u12, u28 u12, u14 u12, u2c u16, u30 bool, u31 bool, u38 bool, u34 u16, u3c u8, gear_dir s3BF2: netstate.rs engine, writer bf2_w32ded.exe!0x005ea9b0; 2142: BF2's layout, netstate.rs engine; Heroes: BF2's layout, netstate.rs engine
TargetObjectNetworkableclient mask u5, position dA, u14 bool, u15 u8client mask u5, position dA, u14 bool, u15 u8client mask u5, position dA, u14 bool, u15 u8BF2: netstate.rs target_object, writer bf2_w32ded.exe!0x005eb7c0; 2142: BF2's layout, netstate.rs target_object; Heroes: BF2's layout, netstate.rs target_object
TriggerableTargetNetworkableclient mask u4, position dA, u14 dA, u20_plus_one cnt(0x41), u24_plus_one cnt(0x41)BF2: netstate.rs triggerable_target, writer bf2_w32ded.exe!0x005e06d0
GenericProjectileNetworkableclient mask u5, position dA, rotation quat12, u24 bool, u28 s16, u2c dB, u48 bool, u4c u16, hit_points cnt(n)client mask u6, position dA, rotation quat12, u24 bool, u28 s16, u2c dB, u48 bool, u4c u16, hit_points cnt(n), x_launcher boolclient mask u6, position dA, rotation quat12, u24 bool, u28 s16, u2c dB, u48 bool, u4c u16, hit_points cnt(n), x_launcher boolBF2: netstate.rs projectile, writer bf2_w32ded.exe!0x005e8360; 2142: netstate_2142.rs projectile, writer bf2142ded!0x082475c0; Heroes: netstate_2142.rs projectile
OverheadCameraNetworkableclient mask u4, u18 u8, u1c u8, position dC, u20 s8, u24 boolclient mask u4, u18 u8, u1c u8, position dC, u20 s8, u24 boolclient mask u4, u18 u8, u1c u8, position dC, u20 s8, u24 boolBF2: netstate.rs overhead_camera, writer bf2_w32ded.exe!0x005e58a0; 2142: BF2's layout, netstate.rs overhead_camera; Heroes: BF2's layout, netstate.rs overhead_camera
DestroyableObjectNetworkableclient mask u2, hit_points cnt(n), position dAclient mask u3, hit_points cnt(n), position dA, x_impact u10, x_child0..15 boolclient mask u3, hit_points cnt(n), position dA, x_impact u10, x_child0..15 boolBF2: netstate.rs layout; 2142: netstate_2142.rs destroyable, writer bf2142ded!0x082422f0; Heroes: netstate_2142.rs destroyable
DestroyableWindowsBundleNetworkableclient windows u(n)client windows u(n)client windows u(n)BF2: netstate.rs layout; 2142: BF2's layout, netstate.rs layout; Heroes: BF2's layout, netstate.rs layout
Playerclient mask u28, flag_08, value_34, block_0c, flag_54, flag_55, bits_58, slots, flags_a4, value_ae, value_a8, value_20_plus_one, value_30, value_b0, value_b1, value_38, block_3c, flag_b3, flag_b4, byte_b5, value_b8_plus_one, flag_40, block_41, flag_19c, value_bcclient mask u30, values the record's fields per set bitclient mask u30, values the record's fields per set bitBF2: networkables.rs PlayerState; 2142: ghost_2142.rs PlayerState2142; Heroes: ghost_2142.rs PlayerState2142
SpawnGroupclient mask u6, u06 bool, team u4, u04 bool, u05 bool, map_x u8, map_y u8, u0c_plus_one u8client mask u6, u06 bool, team u4, u04 bool, u05 bool, map_x u8, map_y u8, u0c_plus_one u8client mask u6, u06 bool, team u4, u04 bool, u05 bool, map_x u8, map_y u8, u0c_plus_one u8BF2: netstate.rs layout; 2142: BF2's layout, netstate.rs layout; Heroes: BF2's layout, netstate.rs layout
ScoreManagerclient mask u32, values a player's score fields per set bit (s18, bool, s3, s12)client mask u32, values a player's score fields per set bit (s18, bool, s3, s12)client mask u32, values a player's score fields per set bit (s18, bool, s3, s12)BF2: networkables.rs ScoreManagerState; 2142: networkables.rs ScoreManagerState; Heroes: networkables.rs ScoreManagerState
MechLegsNetworkableclient mask u3, state u4, movement_input bool, sprint boolclient mask u3, state u4, movement_input bool, sprint bool2142: BF2's layout, netstate.rs mech_legs, writer bf2142ded!0x0824bbf0; Heroes: BF2's layout, netstate.rs mech_legs
CtfObjectNetworkableclient mask u2, carrier s8Heroes: bfh_ctf_ghost.rs layout
CtfPointNetworkableclient no fieldsHeroes: bfh_ctf_ghost.rs layout
HeroesGateObjectNetworkableyes not decodedHeroes: BFHeroes.exe@bfh126 RTTI class; bf2-rs reads no state of it

Field notation#

NotationOn the wire
uNunsigned, N bits
sNsign and magnitude, N bits
bytes[N]N raw bytes
boolone bit
u(n) / uN+a width from the object (n), or N bits and more in a control block
len8a byte length, then that many bytes
vec3three raw 32-bit floats
cnt(M)a ranged value in bits_for_max(M) bits (cnt(n): M from the template or the object)
dAa position through delta codec A (step 1000; the event stream always sends it raw)
dB, dC, dA2a vector through delta codec B, C or Heroes' A2 against the ghost stream's reference
quatNa rotation as a quaternion of N-bit unit floats
block(N)a block of its length in N bits (a ragdoll's points, a vehicle occupant's state)
custom layout / typed codeca layout with branches, decoded by its own code (named in Notes)

Generated by tools/devwiki/refs_net.py from crates/bf2-net/src and tools/devwiki/net_dirs.tsv.

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