[Request]Tutorial On Packets

06/07/2009 03:19 hunterman01#1
If anyone could give me a link could make ANY kind of tutorial on

WTF packets even are i would be highly appreciative

Thanks in advance
06/07/2009 03:39 TheLeGend209#2
Quote:
Originally Posted by hunterman01 View Post
If anyone could give me a link could make ANY kind of tutorial on

WTF packets even are i would be highly appreciative

Thanks in advance
what a newb unblock me
06/07/2009 03:45 hunterman01#3
Quote:
Originally Posted by TheLeGend209 View Post
what a newb unblock me
sure why not

cant i deleted you as well just gimme ur msn and ill add you
06/07/2009 04:12 tao4229#4
Uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
Post your MSN here and I'll give a try at this...
06/07/2009 04:23 hunterman01#5
Quote:
Originally Posted by tao4229 View Post
Uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
Post your MSN here and I'll give a try at this...
dont laugh but

[Only registered and activated users can see links. Click Here To Register...]
06/07/2009 12:27 damianpesta#6
Quote:
Originally Posted by hunterman01 View Post
dont laugh but
[Only registered and activated users can see links. Click Here To Register...]

#Roflcopter
06/07/2009 18:27 aidas2004#7
Todays Best Thread...

Sorry guys, I can't stop laughing :D
06/07/2009 18:40 hunterman01#8
assholes =P
06/07/2009 18:56 yuko#9
@hunterman01
maybe this can help you a little
put this in the place of the default at packetprocessor
it may look pritty useless but its kinda easyer to understand how packets works.
i've been using this when i get unknow packets.

what does this do.
it does look into the data send by packets. look if its in your inventory somewere (items)
and if it is it gets a green yes else its red no.

exemple
wixoven: befor you know wich packet is what. you could try this code.
the output will become like
Code:
[GameServer] Unknown packet type: 2036
0
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 133431312
[COLOR="Red"]no[/COLOR]
1
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 521216
[COLOR="Red"]no[/COLOR]
2
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 33556468
[COLOR="Red"]no[/COLOR]
3
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 131079
[COLOR="Red"]no[/COLOR]
4
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 512
[COLOR="Red"]no[/COLOR]
5
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 2063597570
[COLOR="Red"]no[/COLOR]
6
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 981139456
[COLOR="Red"]no[/COLOR]
7
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1983544064
[COLOR="Red"]no[/COLOR]
8
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 7748219
[COLOR="lime"]yes[/COLOR]
9
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: -1090488774
[COLOR="Red"]no[/COLOR]
10
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: -776011658
[COLOR="Red"]no[/COLOR]
11
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 617725696
[COLOR="Red"]no[/COLOR]
12
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 2412991
[COLOR="Lime"]yes[/COLOR]
13
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1409295569
[COLOR="Red"]no[/COLOR]
14
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1364459556
[COLOR="Red"]no[/COLOR]
15
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1129403392
[COLOR="Red"]no[/COLOR]
16
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1816351060
[COLOR="Red"]no[/COLOR]
17
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1768702801
[COLOR="Red"]no[/COLOR]
18
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1701407811
[COLOR="Red"]no[/COLOR]
19
Composing --- Data: System.Byte[] data: System.Byte[] ItemUID: 1852139884
[COLOR="Red"]no[/COLOR]
--------------------------------HERE IS THE CODE TO PLACE AT DEFAULT----------------
Code:
default:
						{
							Console.WriteLine("[GameServer] Unknown packet type: " + Type);
							CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[Handler-Error] Please report: Unable to handle packet type " + Type, Struct.ChatType.Top));
                            for (int i = 0; i < 20; i++)
                            {
                                Console.WriteLine(i);
                                int ItemUID = ReadLong(Data, i);
                                Console.WriteLine("Composing --- Data: " + Data + " data: " + data + " ItemUID: " + ItemUID);
                                if (CSocket.Client.Inventory.ContainsKey(ItemUID))
                                {
                                    Console.ForegroundColor = ConsoleColor.Green;
                                    Console.WriteLine("yes");
                                    Console.ResetColor();
                                }
                                else
                                {
                                    Console.ForegroundColor = ConsoleColor.Red;
                                    Console.WriteLine("no");
                                    Console.ResetColor();
                                }
                            }
							break;
						}
06/07/2009 19:03 hunterman01#10
Thanks...

But i need like explinations of what a packet even is Saint has helped a little on that but we always get off topic :P
06/07/2009 19:06 yuko#11
packet is like mail win contains data.
client send "mail with data" server gets the mail and react on the data
when the data is processed it will send a mail back and than the client will react on it.


http://en.wikipedia.org/wiki/Packet_...on_technology)
06/07/2009 19:12 hunterman01#12
Yeh but how does the computer know what that data is
06/07/2009 19:23 yuko#13
lol,

look the computer doesn't know what the data is.
the data get sended to the computer. in order for the computer he needs a program that can read the data. this case "client CO and server CO".
inside the client and the server there is a code wich reads the data.
"public class PacketProcessor"

and if the computer gets data, and doesn't have a program that works with that data it get erased.

my explenation is not 100% correct but if you need that you'll be better to buy some books or get an teacher IT
06/07/2009 21:03 Ultimatum#14
Quote:
Originally Posted by yuko View Post
lol,

look the computer doesn't know what the data is.
the data get sended to the computer. in order for the computer he needs a program that can read the data. this case "client CO and server CO".
inside the client and the server there is a code wich reads the data.
"public class PacketProcessor"

and if the computer gets data, and doesn't have a program that works with that data it get erased.

my explenation is not 100% correct but if you need that you'll be better to buy some books or get an teacher IT
Don't believe that lol, ill add you on msn k
06/07/2009 22:24 hunterman01#15
Quote:
Originally Posted by Ultimatum View Post
Don't believe that lol, ill add you on msn k
i believe saint told me about you

not sure if he was talking about you though