generated from the code
Network: every page
Packets bit by bit, the three streams, ghosts, the control block and prediction, demos.
6 pages.
- Packets, bit by bit: The Refractor 2 network protocol from the socket up - the bit stream and its primitives, the datagram header, the notify window, and the three streams of every packet's payload.
- Ghosts: how objects reach the client: Object replication in Refractor 2 - ghost records, networkables and their dirty masks, the scope pass, a packet's entries, and how a lost packet is made good without sending it again.
- The control block and prediction: How a player's own soldier or vehicle stays in step with the server - player actions up, the control block down, the replay of unacknowledged actions, the block's cadence per game, and what a weapon key costs in Heroes.
- Prediction, step by step: one key press there and back: One player action followed from the key press to the server's answer and the client's replay - the action, the packet, the server's single apply, the control block, the replay with its flags - with a stepper to walk through it and what ..
- Lag compensation: hitting what you saw: How a Refractor 2 server tests a shot against where a soldier was when the shooter fired - the ping average, the compensation time with its cap of 0.3 s, the ring of sixteen past transformations on every soldier, the lookup that blends ..
- Demos: recording and playback: How the BattleRecorder works - a demo is the packet stream of one more connection of the server, written to a file, and playback feeds the same packets to a client game without a connection.
Source:
tools/devwiki/build.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.