User(s) browsing this thread: 1 Guest(s)
Post Reply 
 
Thread Rating:
  • 0 Votes - 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.)
Post: #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 File(s)
.zip  create_char.zip (Size: 296.43 KB / Downloads: 5)
Find all posts by this user
Quote this message in a reply
07-30-2009, 08:56 PM
Post: #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.

[Image: morphsig1.png]
[Image: ubd8457.png]
http://twitter.com/johnkussack [twitter]
Find all posts by this user
Quote this message in a reply
07-31-2009, 03:37 AM (This post was last modified: 07-31-2009 04:31 AM by Morpheus.)
Post: #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

[Image: morphsig1.png]
[Image: ubd8457.png]
http://twitter.com/johnkussack [twitter]
Find all posts by this user
Quote this message in a reply
07-31-2009, 05:53 AM
Post: #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.
Find all posts by this user
Quote this message in a reply
07-31-2009, 05:57 AM
Post: #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
Quote this message in a reply
Post Reply 


Forum Jump: