From 36d3941bfe2099ab010bff028634a2eae9d6b398 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 21 Dec 2020 11:56:21 +0000 Subject: [PATCH] Document that multiple login packets can be sent in a single session Signed-off-by: Graham --- share/doc/protocol/login.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/share/doc/protocol/login.md b/share/doc/protocol/login.md index 2ac56d3177..39ceaf41cd 100644 --- a/share/doc/protocol/login.md +++ b/share/doc/protocol/login.md @@ -15,6 +15,16 @@ | 23 | 4 | `REQUEST_WORLDLIST` | Request world list | | 24 | Variable byte | `CHECK_WORLD_SUITABILITY` | Request most suitable world number | +A curious oddity is that Old School RuneScape server processes upstream login +packets in a loop, rather than only permitting a single login packet to be sent +during the handshake process, which is how most current private servers are +currently implemented. + +For example, it is possible to send an `INIT_GAME_CONNECTION` packet followed +by an `INIT_JS5REMOTE_CONNECTION` packet. The connection will successfully +switch to JS5 mode, even though this is not the normal sequence of packets sent +by the client. + ### 14 (`INIT_GAME_CONNECTION`) | Data type | Description |