|
You last visited: Today at 19:49
Advertisement
Simple packet structure
Discussion on Simple packet structure within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
12/07/2013, 17:09
|
#1
|
elite*gold: 0
Join Date: Oct 2010
Posts: 64
Received Thanks: 10
|
Simple packet structure
Hey ,
i was so bored so i made my own packet structure
i know that it's very bad , but i think it's a good start
Example :
Code:
public class ClassName : PacketStructure
{
public ClassName()
: base(PacketID, PacketLength + 8)
{
}
}
|
|
|
12/07/2013, 21:15
|
#2
|
elite*gold: 0
Join Date: Apr 2013
Posts: 3
Received Thanks: 1
|
Nice .. It'll be a Developing Start Point for You Bro
Keep it up ^_^
|
|
|
12/07/2013, 21:35
|
#3
|
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
|
this is slow
|
|
|
12/07/2013, 22:16
|
#4
|
elite*gold: 0
Join Date: Oct 2010
Posts: 64
Received Thanks: 10
|
How ? -_-
|
|
|
12/07/2013, 22:34
|
#5
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by sala7mostafa
How ? -_-
|
It uses a few managed classes to do copies and such. I think I wrote one a while ago... the faster way to go about this is to use pointers. Edit: Found it. It's not terribly fast, but it should be a more efficient approach than yours was. Like yours, mine also uses inheritance.
|
|
|
12/07/2013, 23:00
|
#6
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by Fang
It uses a few managed classes to do copies and such. I think I wrote one a while ago... the faster way to go about this is to use pointers. Edit: Found it. It's not terribly fast, but it should be a more efficient approach than yours was. Like yours, mine also uses inheritance.

|
Cant wait for the unbalanced stack :3
|
|
|
12/07/2013, 23:05
|
#7
|
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
|
Quote:
Originally Posted by Y u k i
Cant wait for the unbalanced stack :3
|
Unbalanced stack? Shouldn't happen with that implementation. The correct calling convention for those imports is indeed cdecl.
|
|
|
12/07/2013, 23:14
|
#8
|
elite*gold: 0
Join Date: Oct 2010
Posts: 64
Received Thanks: 10
|
Quote:
Originally Posted by Fang
It uses a few managed classes to do copies and such. I think I wrote one a while ago... the faster way to go about this is to use pointers. Edit: Found it. It's not terribly fast, but it should be a more efficient approach than yours was. Like yours, mine also uses inheritance.

|
I haven't learned pointers yet , i will do another one by pointers when i learn it.
I released it to know the mistakes i did , how to improve my skills on programming.
|
|
|
 |
Similar Threads
|
Packet Structure
02/24/2013 - SRO Coding Corner - 5 Replies
Hi all :) , i need help to get the good structure for any packet from SRO_Client.exe with ollydbg , i don't know how to use it , and thxs
|
little help with packet structure and inspiration
09/11/2012 - CO2 Programming - 9 Replies
edit : okay now forget what i've said been hrs looking for this stuff but still at some point so damn confused
now i got a working proxy , i got packet structure for entity spawn and for attacking packet and i can simply do something like ummm here
while(hunting)
get monsters x,y from packet 10014
send 1022 packet to the server with action kill the monster , right ? and incase i want to update the client i send the server reply to the client , right ?
is that right ? i don't think so...
|
[Request] Packet Structure for CharData Packet
05/16/2011 - Silkroad Online - 4 Replies
can someone tell me which structure the CharData packet has? i would really appreciate this, since im still noob in such things. its just too high for me/ too much information for my head. :handsdown:
S->C(3013)...
|
packet structure
03/09/2008 - Conquer Online 2 - 16 Replies
For what I'd like to do, I think packets are the place to start. After that, probably java then C and VB. This is a question for the people here who are self-taught... what resources would you recommend for...
1. understanding packet structure
2. learning some programming language without enrolling at the local university
I'm mainly interested in packet structure and how to capture/decipher/edit/send them, and eventually I'd like to "automate" these functions by writing some programs. ...
|
All times are GMT +1. The time now is 19:50.
|
|