Net:0x0069: Difference between revisions
From The Mana World
LunaticEdit (talk | contribs) m moved Packet::0x0069 to Packet:0x0069: Typo |
m Update packet links. |
||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 4: | Line 4: | ||
|mode={{{mode}}} | |mode={{{mode}}} | ||
|length=-1 | |length=-1 | ||
|alignment=red | |||
|define=SMSG_LOGIN_DATA | |define=SMSG_LOGIN_DATA | ||
|sent= | |sent={{tmwa location|src/login/login.cpp}} | ||
|parsed= | |parsed={{mana location|src/net/tmwa/loginhandler.cpp|114}} | ||
|fields= | |fields= | ||
{{packet field | 0 | 2 | Packet ID }} | {{packet field | 0 | 2 | Packet ID }} | ||
{{packet field | 2 | 2 | Packet Length (47 + (32 * ServerCount)) }} | {{packet field | 2 | 2 | Packet Length (47 + (32 * ServerCount) + 0) }} | ||
{{packet field | 4 | 4 | Session ID (Part 1) }} | {{packet field | 4 | 4 | Session ID (Part 1) }} | ||
{{packet field | 8 | 4 | Account ID }} | {{packet field | 8 | 4 | Account ID }} | ||
| Line 16: | Line 17: | ||
{{packet field | 20 | 26 | ''Unused'' - Currently set to account.lastlogin for some reason. }} | {{packet field | 20 | 26 | ''Unused'' - Currently set to account.lastlogin for some reason. }} | ||
{{packet field | 46 | 1 | Character Sex }} | {{packet field | 46 | 1 | Character Sex }} | ||
{{packet field | <br/><hr/> | <br/><hr/> | <strong>WorldInfo | {{packet field | <br/><hr/> | <br/><hr/> | <strong>WorldInfo Sub-packet</strong> (Repeated for each world)<hr/> }} | ||
{{packet field | X+0 | 4 | Address }} | {{packet field | X+0 | 4 | Address }} | ||
{{packet field | X+4 | 2 | Port }} | {{packet field | X+4 | 2 | Port }} | ||
| Line 22: | Line 23: | ||
{{packet field | X+26 | 4 | Online Users (Count) }} | {{packet field | X+26 | 4 | Online Users (Count) }} | ||
{{packet field | X+30 | 2 | ''Unused'' }} | {{packet field | X+30 | 2 | ''Unused'' }} | ||
|description= | |description=[[File:LoginProcessFlow.svg|frame|Login Process Flow]] | ||
Sent by the server to | Sent in response to [[Net:0x0064|Login Request]]. | ||
This packet is sent to the client by the server to define the character sex, the account and session IDs, as well as provide a list of worlds the player can connect to. | |||
Upon receiving this packet, the client shall: | |||
# Disconnect from the login server | |||
# Connect to the user-specified character server | |||
# Immediately send [[Net:0x0065|Character Server Connection Request]]. | |||
}} | }} | ||
Latest revision as of 23:53, 1 July 2013
Login Data
| Packet ID: | 0x0069 |
|---|---|
| Packet Length: | -1 |
| Client Defined: | SMSG_LOGIN_DATA |
| Sent Location(s): | src/login/login.cpp |
| Parsed Location(s): | src/net/tmwa/loginhandler.cpp:114 |
Fields
| Offset | Length | Contents |
|---|---|---|
| 0 | 2 | Packet ID |
| 2 | 2 | Packet Length (47 + (32 * ServerCount) + 0) |
| 4 | 4 | Session ID (Part 1) |
| 8 | 4 | Account ID |
| 12 | 4 | Session ID (Part 2) |
| 16 | 4 | Unused - Always set to 0x00000000 |
| 20 | 26 | Unused - Currently set to account.lastlogin for some reason. |
| 46 | 1 | Character Sex |
| | | WorldInfo Sub-packet (Repeated for each world) |
| X+0 | 4 | Address |
| X+4 | 2 | Port |
| X+6 | 20 | Server Name |
| X+26 | 4 | Online Users (Count) |
| X+30 | 2 | Unused |
Description

Sent in response to Login Request. This packet is sent to the client by the server to define the character sex, the account and session IDs, as well as provide a list of worlds the player can connect to.
Upon receiving this packet, the client shall:
- Disconnect from the login server
- Connect to the user-specified character server
- Immediately send Character Server Connection Request.