Register for your free account! | Forgot your password?

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

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

Advertisement



Entity Spawn packet problem?

Discussion on Entity Spawn packet problem? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Entity Spawn packet problem?

Hello all,

I've been coding my own source and everything wen't well untill I've come to the Entity Spawn part.
Here is the problem:




Here is my spawn packet:
Code:
            WriteUInt(client.Identity, 4);
            WriteUInt((20 * 10000) + client.Mesh, 8);
            WriteUInt(0, 12); //Status
            WriteUShort(0, 14); //Guild ID
            WriteUShort(0, 16); //GuildRank
            WriteUInt(0, 20); //Helm ID
            WriteUInt(0, 24); //Armour ID
            WriteUInt(0, 28); //RightHand ID
            WriteUInt(0, 32); //LeftHand ID
            WriteUShort(client.PosX, 44); //CoordX
            WriteUShort(client.PosY, 46); //CoordY
            WriteUShort(client.HairStyle, 48); //Hairstyle
            WriteByte(0, 50); //Direction
            WriteByte(0, 51); //Action
            WriteBoolean(true, 52); //Show Names
            WriteByte((byte)client.Name.Length, 53);
            WriteStringWithLength(client.Name, 54);
Anyone may know the problem? It only occurs with the second (or above) logged in character.

Thanks in advance,
JobvdH!
JobvdH is offline  
Old 01/21/2013, 21:47   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Patch?

Also your packet handler, rather than just the packet structure as you do spawn to each other, so.
Super Aids is offline  
Old 01/21/2013, 22:00   #3
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
What is client.Mesh? If it's anything other than the body (1004), then you have a problem.
It seriously looks like a weird client bug though.
Spirited is offline  
Old 01/21/2013, 22:09   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
What is the UID of the character? Should be 1 million ++
pro4never is offline  
Thanks
1 User
Old 01/21/2013, 22:27   #5
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
UID of JobvdH is: 100000
UID of JohnDoe is 100001

Also the body is 1004.
The body is called client.Mesh in the packet structure.

This is patch 4294

EDIT: Pro4Never, thats the sollution, I missed one '0'.

Problem solved
#Request close
JobvdH is offline  
Old 01/21/2013, 22:30   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by JobvdH View Post
UID of JobvdH is: 100000
UID of JohnDoe is 100001

Also the body is 1004.
The body is called client.Mesh in the packet structure.

This is patch 4294
100000 is less than
1000000.
Spirited is offline  
Thanks
1 User
Old 01/21/2013, 22:30   #7
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Just edited my post and noticed you posted it.
Thanks for the help all!
JobvdH is offline  
Old 01/22/2013, 03:45   #8


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
Always use valid UIDs ranges ! And you'll avoid most problems

CptSky is offline  
Reply


Similar Threads Similar Threads
Entity Spawn packet 5017
12/22/2011 - CO2 Private Server - 7 Replies
So I checked different sources and it seems that not one public source unless I missed it has the complete Entity Spawn packet for 5017. Taking bits and pieces from sources I got the following offsets and really random different packet sizes. UID = 4 overlaymesh = 8 //all 8? wtf? Mesh = 8 Avatar = 8 Model = 8 Status = 12
[5180] Entity Spawn Packet Structures
12/29/2010 - CO2 Private Server - 4 Replies
Anybody has Packet structures of Entity Spawn (5180 Version)? Thanks. *Can I Get Them* ?
Confused about the spawn entity packet
12/20/2010 - CO2 Private Server - 7 Replies
So I wanted to update the spawn entity packet from Hybrid's source (5135 -> 5165) public unsafe struct SpawnEntityPacket { public ushort Size; public ushort Type; public uint Model;



All times are GMT +1. The time now is 18:33.


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