Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Messaging packet version 5630+

Discussion on [Help] Messaging packet version 5630+ within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 02/07/2013, 20:03   #16
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Are you writing TQServer at the end of the packet?
Super Aids is offline  
Old 02/07/2013, 21:04   #17
 
diedwarrior's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
Specifying offsets is easy at small packets, but it tends to be a pain in the *** in very large packets.
diedwarrior is offline  
Old 02/07/2013, 21:32   #18
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by diedwarrior View Post
Specifying offsets is easy at small packets, but it tends to be a pain in the *** in very large packets.
Make a parser for it then like you paste the structure in a textfile, let's a program parse that file and spit out the structure with valid c# code.
Super Aids is offline  
Old 02/07/2013, 21:45   #19
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Quote:
Originally Posted by Super Aids View Post
Are you writing TQServer at the end of the packet?
As you can see in my dump: Yes.


I write it behind every packet, encrypt it and send it to the socket system
JobvdH is offline  
Old 02/07/2013, 21:46   #20
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
I much prefer specifying offsets explicitly rather than using a stream, especially when you have a packet with a lot of unknowns.
Lateralus is offline  
Thanks
1 User
Old 02/07/2013, 21:49   #21
 
elite*gold: 0
Join Date: Mar 2012
Posts: 29
Received Thanks: 4
JobvdH you have last packet sniffer 56700+?
Adventure-MMO is offline  
Old 02/07/2013, 21:51   #22
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Ehh no if I would have it wouldn't make this thread heh?
JobvdH is offline  
Old 02/08/2013, 00:14   #23
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by JobvdH View Post
As you can see in my dump: Yes.


I write it behind every packet, encrypt it and send it to the socket system
If I recall, the size written in the packet shouldn't include the TQServer at end. Obviously your buffer needs enough room, but 0x49 should be the size of the packet without the TQServer (0x41).
nTL3fTy is offline  
Old 02/08/2013, 03:01   #24
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by nTL3fTy View Post
If I recall, the size written in the packet shouldn't include the TQServer at end. Obviously your buffer needs enough room, but 0x49 should be the size of the packet without the TQServer (0x41).
This is correct ^.
Super Aids is offline  
Old 02/08/2013, 09:52   #25
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
So that means remove 8 length from the packet.
And when I send the packet to the sockets I should add TQServer and add 8 bytes to the array?
JobvdH is offline  
Old 02/08/2013, 11:02   #26
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Yes.

This is how I do it:
Code:
				using (var sendPacket = new DataPacket(new byte[Packet.BufferLength + 8]))
				{
					sendPacket.WriteBytes(Packet.Copy(), 0);
					sendPacket.WriteString("TQServer", sendPacket.BufferLength - 8);
					NetworkClient.Send(sendPacket);
				}
Super Aids is offline  
Old 02/08/2013, 13:32   #27
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
You should modify it so you don't have to manually specify +/- 8 in the length for the bytes

Or even just have a method sendPacket.Seal();

Just seems alot less messy imo
_DreadNought_ is offline  
Old 02/08/2013, 16:24   #28
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by _DreadNought_ View Post
You should modify it so you don't have to manually specify +/- 8 in the length for the bytes

Or even just have a method sendPacket.Seal();

Just seems alot less messy imo
Doesn't really matter if I do it in a "Seal method" or in the send method.
Super Aids is offline  
Old 02/09/2013, 21:06   #29
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Just thought it looks messy lol
_DreadNought_ is offline  
Old 02/09/2013, 21:51   #30
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
How do you find 3 lines messy? Or rather 2 lines.
Super Aids is offline  
Reply


Similar Threads Similar Threads
Which File in source 5630 Containt Ping !
11/21/2012 - CO2 Private Server - 3 Replies
I have 2 source its same ! one of them contain many prob but i want to get the file who contain ping cuz its bad in the another !! i hope to understand me !! and am sorry for my bad English lang !!
[B] e*pvp Messaging Tool ## Autopusher coming soon! ## [S] e*gold, PSC, uKash. Paypal
04/25/2012 - Trading - 7 Replies
.
Private Messaging options
07/03/2010 - Technical Support - 2 Replies
Hi guys:mofo: I've been trying to send PMs to several members but I think my messages are not reaching because whenever i send it, it never shows up on the SEnt Messages link so im guessing i have to enable it or something?:confused: Thank you if you can help me;):handsdown::D:bandit::):cool::rolleyes:



All times are GMT +1. The time now is 05:45.


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.