Users browsing this thread: 1 Guest(s)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MS_ClaimCharacterNameRequest
07-30-2009, 03:11 PM, (This post was last modified: 07-30-2009, 03:22 PM by Neo.)
#1
MS_ClaimCharacterNameRequest
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.


Attached Files
.zip   create_char.zip (Size: 296.43 KB / Downloads: 5)
Reply
07-30-2009, 08:56 PM,
#2
RE: MS_ClaimCharacterNameRequest
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.
Reply
07-31-2009, 03:37 AM, (This post was last modified: 07-31-2009, 04:31 AM by Morpheus.)
#3
RE: MS_ClaimCharacterNameRequest
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
Reply
07-31-2009, 05:53 AM,
#4
RE: MS_ClaimCharacterNameRequest
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.
Reply
07-31-2009, 05:57 AM,
#5
RE: MS_ClaimCharacterNameRequest
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
Reply


Forum Jump: