Hardline Dreams - A Python Matrix Online Server Project

Full Version: MS_ClaimCharacterNameRequest
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
1.

MS_ClaimCharacterNameRequest
Code:
0a 03 00 07 00 6d 78 6f 65 6d 75 00
.  .  .  .  .  m  x  o  e  m  u  .

MS_ClaimCharacterNameReply
Code:
0b 0f 00 00 00 00 00 44 87 1f 00 00 00 00 00 07 00 6d 78 6f 65 6d 75 00
.  .  .  .  .  .  .  D  .  .  .  .  .  .  .  .  .  m  x  o  e  m  u  .

2. (repeat the same)

MS_ClaimCharacterNameRequest
Code:
0a 03 00 07 00 6d 78 6f 65 6d 75 00
.  .  .  .  .  m  x  o  e  m  u  .

MS_ClaimCharacterNameReply
Code:
0b 0f 00 00 00 00 00 44 87 1f 00 00 00 00 00 07 00 6d 78 6f 65 6d 75 00
.  .  .  .  .  .  .  D  .  .  .  .  .  .  .  .  .  m  x  o  e  m  u  .

Therea are 3 bytes that varried..i bet this could be a "character ID" or something.

Will add a third create here soon and attached the 3 files for that too.

EDIT : Yes i was right, i see this at character delete procedure.
yeah we knew it yesterday.

We though on 4 bytes, including the preluding 00 but delete responses point to 3 bytes.

BTW your info is almost complete but not exactly xD.

I will answer with the full structure & error codes that are on this and delete procedures...when i reach pc @ home.
ClaimCharacterNameRequest
Client -> Margin

0a 03 00 <charnameLenght+1 1byte> 00 <charname Nbytes> 00

Margin -> Client
ERROR: 0b 0f 00 <errorCode1 1 byte> 00 00 <errorCode2 1 byte> 00 00 00 00 00 00 00 00 <charnameLenght+1 1byte> 00 <charname Nbytes> 00
charNameExist:
errorCode1 = 01
errorCode2 = 11
charsLimitReached
errorCode1 = 00
errorCode2 = 11

SUCCESS: 0b 0f 00 00 00 00 00 <charID 3 bytes> 00 00 00 00 00 <charnameLenght+1 1byte> 00 <charname Nbytes> 00
It would probably be better to treat the name length as a uint16 and the name as a c string.
Even though the character name would always fit within 1 byte the game probably transmits all strings the same way and that wouldn't always be the case.

rajkosto

yes, it is an uint16, morpheus just telling it the stupid way
most strings are just uint16 size (including null) and then null temrinated string