General

Note

id:
general
endian:
le
imports:
  1. net

Type packet

params

  1. id:
    id
    type:
    u4

Sequence

  1. [switch-on:id]

    Type Cases
    0 handshake
    1 disconnect_notify

Type handshake

Sequence

  1. [u4] network_version

  2. [net::padding(4)]

  3. [u2:net::service_id] service_id

  4. [net::padding(2)]

  5. [u4] process_id

  6. [u2] port

  7. [net::padding(35)]

Type disconnect_notify

Sequence

  1. [u4:disconnect_reason] reason

  2. if: reason == disconnect_reason::wrong_game_version or reason == disconnect_reason::wrong_server_version

    [u4] version

Enum packet_id

0:
handshake
1:
disconnect_notify

Enum disconnect_reason

0:
unknown_server_error

Unspecified disconnect reason.

1:
wrong_game_version

The client’s [`handshake::network_version`] did not match the server’s [`handshake::network_version`]. The message contains the server network version number.

2:
wrong_server_version

Unused for client-server.

3:
connection_on_invalid_port

Connection attempt on invalid port, server emulators probably won’t send this as they usually won’t have server-server communication using LU’s protocol.

4:
duplicate_login

There was another login with your account and your session has been closed in favor of the new login.

5:
server_shutdown

The server is shutting down.

6:
unable_to_load_map

No server hosting this map is available.

7:
invalid_session_key

The provided [`world::client_validation::session_key`] is incorrect.

8:
account_not_in_pending_list

Server did not expect a [`world::client_validation`] at this time.

9:
character_not_found

The provided [`world::character_login_request::char_id`] was not a valid character ID of this account.

10:
character_corruption

The character seems to be corrupted in the database.

11:
kick

You were kicked from the server.

12:
save_failure

Error saving or loading progress.

13:
free_trial_expired

The account’s time-limited free trial expired, unused.

14:
play_schedule_time_up

The parental controls for this account prevent it from further play.