Register for your free account! | Forgot your password?

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

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

Advertisement



5017 create character packet

Discussion on 5017 create character packet within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 14
Exclamation 5017 create character packet

Hello guys ... I am trying to create a source 5017 with my basic knowledge of packets
I made the auth server and its work fine ... now I am working on game server side
I am using [hybrid winsock client] socket for both ... account server and game server

The problem now in packet 1001 create character ... when I deserialize the packet using

PHP Code:
public class EntityCreate Interfaced.IPacket
{
Public 
string Character
Public 
ushort Body;
Public 
byte Class;

Public 
void Deserialize (byte [] buffer)
{
Character Encoding.ASCII.GetString (buffer2016).Replace ("\0""");
Body BitConverter.ToUInt16(buffer52);
Class = (
byteBitConverter.ToUInt16(buffer,  54);
}
public 
byte [] ToArray ()
{
}
public 
void Send (Client.GameState client)
{
}



I get the character name is something like (n, tAV\"liB/eC)

When the character name as I wrote is [ NotAvailable]

Also the body its come as something like (17649) and not 1003, 1004, 2001 or 2002

How I can fix this issue ?
abdeen is offline  
Old 11/16/2014, 23:54   #2
 
~Crystaline's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 179
Received Thanks: 55
Check your CharacterInfo offsets.
~Crystaline is offline  
Old 11/17/2014, 00:19   #3
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 14
Quote:
Originally Posted by ~Crystaline View Post
Check your CharacterInfo offsets.
It's correct offests for create intity packet 1001 what's wrong with my code tho ?

Edit : I didn't logged to the game yet, and this error comes with a invalid chars in the character name while registration and I break pointed untill I got the error is what I have explained
abdeen is offline  
Old 11/17/2014, 01:26   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
The fact that it's not giving you valid results proves without a shadow of a doubt that the offsets are NOT correct.

Seriously... the whole point of de serializing a packet is to read specific data from correct offsets. If the data isn't there then you're not reading it properly or are reading form the incorrect offset.

Literally look at the packet dump and it should be super obvious where data is being written in the packet.
pro4never is offline  
Thanks
2 Users
Old 11/17/2014, 02:30   #5
 
~Crystaline's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 179
Received Thanks: 55
Quote:
Originally Posted by abdeen View Post
It's correct offests for create intity packet 1001 what's wrong with my code tho ?

Edit : I didn't logged to the game yet, and this error comes with a invalid chars in the character name while registration and I break pointed untill I got the error is what I have explained
Or maybe (just maybe), you're not sending the CharacterInfo. Don't show us the packet structure, show us how CreateEntity is handled in your source.
~Crystaline is offline  
Reply


Similar Threads Similar Threads
[help][client 5017] character creation packet.
09/08/2013 - CO2 Private Server - 3 Replies
i am trying to make the character creation work on a C++ source(Hybrid's one) and i am having some troubles. i suppose the sequence goes like this(?): 1-> client sends (valid, meaning acc and pass are ok) login request to server 2-> server check for a character being existent on that account 3-> if no character is created on the specified account, server sends sends back a MessagePacket with the message "NEW_ROLE" 4-> client then goes into the class selection screen, chooses name, class,...
5017 Warehouse Packet Structure?
03/30/2013 - CO2 Private Server - 2 Replies
Is this public? If so I can't find it. I've checked every released 5017 source. Closest I could get to it was Project Manifest and its not working properly. If anyone could point me in the right direction so I can solve my problem myself that'd be much appreciated. Current problem: Deposited items shown in warehouse read off random stats/errors. The first item in the whs is fine, but after that... See below. http://img90.imageshack.us/img90/8325/img29032013 010901.png
Packet Changes From 5017 > 5065 ?
03/27/2013 - CO2 Private Server - 6 Replies
Out of boredom I wanna try upgrading a 5017 source to 5065 but I don't know which packets I'll need to update. I would do some research however I don't know where to start looking. Any referenced or help would be fantastic! thanks
Character info packet 5017
12/22/2011 - CO2 Private Server - 2 Replies
I'm certain that all the values up till the string packer are correct since I just took them from Hybrid's source but I'm not too sure about the string packer part but it should be correct too yet it appears to be wrong and characters don't have names. using System.Text; using Albetros.Core.Enum; namespace Albetros.Game.Packet { public unsafe struct PlayerInfoPacket { public uint Id;
[5017] Looking for packet enums...
11/03/2011 - CO2 Private Server - 13 Replies
Hello all, I want to know how to get enums, and I`d like to know if someone knows it, whats the status enum for disguise/transformations? EDIT: Yes I already checked the wiki... Thanks in advanced, Jobdvh!



All times are GMT +2. The time now is 13:38.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.