From The Mana World
Line 9: Line 9:
|fields=
|fields=
{{packet field |  0 |  2 | Packet ID    }}
{{packet field |  0 |  2 | Packet ID    }}
{{packet field |  2 |  2 | Error Code }}
{{packet field |  2 |  4 | Account ID }}
{{packet field |  6 |  4 | Session ID (Part 1) }}
{{packet field |  10 |  4 | Session ID (Part 2) }}
{{packet field |  14 |  2 | Client Protocol Version }}
{{packet field |  16 |  1 | Gender }}


|description=
|description=
Sent by the server to indicate a server problem
Sent to the Character Server immediately after connecting. After this packet is sent to the server, it immediately replies with a 4-byte packet containing whatever was sent as the Account ID. The client shall perform a read of 4 bytes and ignore (or verify) the returned value.


===Error Codes ===
===Note===
* '''0x0000''' - Authentication failed.
* Client Protocol Version must be set to "1"; it was previously "0" for the old client.
* '''0x0001''' - No servers available.
* Gender of "Male" is defined as "1", and "Female" is defined as "0".
* '''0x0002''' - This account is already logged in (if logging in); Someone else is trying to log into your account (if logged in).
* '''0x0003''' - Speed hack detected.
* '''0x0008''' - Duplicated login.
* '''Other''' - Unknown connection error.
}}

Revision as of 05:38, 2 February 2013

{{packet |nicename=Character Server Connection Request |id=0x0065 |mode={{{mode}}} |length=4 |define= CMSG_CHAR_SERVER_CONNECT |sent= |parsed=src/net/tmwa/generalhandler.cpp:125 |fields=

0 2 Packet ID 2 4 Account ID 6 4 Session ID (Part 1) 10 4 Session ID (Part 2) 14 2 Client Protocol Version 16 1 Gender

|description= Sent to the Character Server immediately after connecting. After this packet is sent to the server, it immediately replies with a 4-byte packet containing whatever was sent as the Account ID. The client shall perform a read of 4 bytes and ignore (or verify) the returned value.

Note

  • Client Protocol Version must be set to "1"; it was previously "0" for the old client.
  • Gender of "Male" is defined as "1", and "Female" is defined as "0".