Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 21:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



NEW_ROLE packet length

Discussion on NEW_ROLE packet length within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2007
Posts: 6
Received Thanks: 0
NEW_ROLE packet length

Hi all, I'm making a source of my own mostly for academic purposes but I would like to make it a functional source.

I'm working with 5065 patch and I'm trying to get to the character creation screen.

I got the 1052(Auth Message Packet) from the client and then I send a Chat Packet from "SYSTEM" to "ALLUSERS" with the message "NEW_ROLE", but the client hangs.

Since all strings have a fixes length I would like to know what this specific packet length should be and that may help me fix the issue.

Here's what I send to the client after receiving the Auth Message Packet from the client:
Code:
Length:59 Type:1004	
3b 00 ec 03 ff ff ff 00 34 08 00 00 01 00 00 00 00 00 00 00 	; . . . . . . . 4 . . . . . . . . . . . 
00 00 00 00 04 06 53 59 53 54 45 4d 08 41 4c 4c 55 53 45 52 	. . . . . . S Y S T E M . A L L U S E R 
53 00 08 4e 45 57 5f 52 4f 4c 45 54 51 53 65 72 76 65 72    	S . . N E W _ R O L E T Q S e r v e r
EdP is offline  
Old 06/10/2014, 15:43   #2

 
jackpotsvr's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 328
Received Thanks: 43
is how new role packet should look like on 5017, and I think the packet structure

Isn't the packet length 59 a bit to long (for 'new_role' message obviously)?

-EDIT

Quote:
Originally Posted by EdP View Post
Code:
Length:59 Type:1004	
3b 00 ec 03 ff ff ff 00 34 08 00 00 01 00 00 00 00 00 00 00 	; . . . . . . . 4 . . . . . . . . . . . 
00 00 00 00 04 06 53 59 53 54 45 4d 08 41 4c 4c 55 53 45 52 	. . . . . . S Y S T E M . A L L U S E R 
53 00 08 4e 45 57 5f 52 4f 4c 45 54 51 53 65 72 76 65 72    	S . . N E W _ R O L E T Q S e r v e r
Also if I am not mistaken you sent the packet with (2100) decimal which is Chat Type dialog. Try sent it with (2101) which is Login Information.
jackpotsvr is offline  
Thanks
1 User
Old 06/10/2014, 15:52   #3
 
elite*gold: 0
Join Date: Aug 2007
Posts: 6
Received Thanks: 0
Thanks jackpotsvr, I'll give it a try! Does that mean that is inaccurate for this packet?
You seem to write shorts where it says is should be ints
Or am I seeing it wrong?
EdP is offline  
Old 06/10/2014, 15:55   #4

 
jackpotsvr's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 328
Received Thanks: 43
Quote:
Originally Posted by EdP View Post
Thanks jackpotsvr, I'll give it a try! Does that mean that is inaccurate for this packet?
You seem to write shorts where it says is should be ints
Or am I seeing it wrong?
I am doing the opposite but you can ignore it long as you program in C# or C++ which most of this community seem to do :>. It's because Java doesn't know unsigned values (for instane unsigned short 0-65536 where a Java short can only go from -32,768 to 32,767.)

So we always used Java Type int for what are shorts in reality et cetera and had to do some magic to write them good to the packets
jackpotsvr is offline  
Old 06/10/2014, 16:02   #5
 
elite*gold: 0
Join Date: Aug 2007
Posts: 6
Received Thanks: 0
I got that! what I meant was that you are "writing" two zeros in positions 12 and 14, each one two bytes, making them a short or a ushort. In the wiki starting in position 12 is shows 3 ints (4 byte Numbers)

Edit: After the server sends the NEW_ROLE packet the client should display the character creation screen right away?

Edit2: Changed the chat type to 2101 still no luck, client hangs

Edit3:
I got it to the character selection screen, here's what I was doing wrong.
When writing in the packet the own packet length I included the "TQServer" length.

So I removed it and it seems to work now
EdP is offline  
Old 06/10/2014, 17:12   #6

 
jackpotsvr's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 328
Received Thanks: 43
Quote:
Originally Posted by EdP View Post
I got that! what I meant was that you are "writing" two zeros in positions 12 and 14, each one two bytes, making them a short or a ushort. In the wiki starting in position 12 is shows 3 ints (4 byte Numbers)

Edit: After the server sends the NEW_ROLE packet the client should display the character creation screen right away?

Edit2: Changed the chat type to 2101 still no luck, client hangs

Edit3:
I got it to the character selection screen, here's what I was doing wrong.
When writing in the packet the own packet length I included the "TQServer" length.

So I removed it and it seems to work now
Haha, well done.

I found the packet length quite long already.

Good luck with your project.
jackpotsvr is offline  
Old 06/10/2014, 17:25   #7
 
elite*gold: 0
Join Date: Aug 2007
Posts: 6
Received Thanks: 0
Thanks, don't know if I'll ever have a finished project but I'm developing while I'm enjoying discovering new things.

I'm working in Java too.
EdP is offline  
Reply


Similar Threads Similar Threads
Receiving empty error mesage when sending "NEW_ROLE"
11/16/2012 - CO2 Private Server - 1 Replies
Hello all, I'm looking for some help, a few days ago I started coding my own source and its going pretty well so far. I walked into a problem. I created the Message Packet (1004) with some help of Fang, but heres the problem. I'm on version 4294 tho. When I send the "NEW_ROLE" message to ALLUSERS, from SYSTEM and with token: 2101 I receive an empty error message.
[Packet Log Request] Length and ID of a Packet
03/04/2011 - CO2 Private Server - 5 Replies
Hey everyone, This is a really small request. Basically, all I need is the Length and ID of a packet... unfortunately, I can't sniff for packets because the tool I was using stopped working. If anyone can create a character and follow the quest until you get to KungfuBoy, can you tell me the packet id and length of this effect: http://i1212.photobucket.com/albums/cc447/Spirite dFang/effect.png I would be very grateful. Right now I'm using SobNPCs. Thanks.



All times are GMT +1. The time now is 21:19.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.