Packets Help

01/13/2012 03:19 sonofskeletor#1
Has anyone got a guide, to convert the packets from Korvacs Wiki, to actual packet structs, but not fangs, far to confusing. the sort of packet i would like to build is the clan packet, im guessing it would be simular to the guild packet.
01/13/2012 03:51 pro4never#2
Quote:
Originally Posted by sonofskeletor View Post
Has anyone got a guide, to convert the packets from Korvacs Wiki, to actual packet structs, but not fangs, far to confusing. the sort of packet i would like to build is the clan packet, im guessing it would be simular to the guild packet.
I think you need to review what packets are first...

Clan has no reason (and afaik is nothing similar) to guild packet. In order to structure a packet you have to either log examples of it, use trial and error (without SOME sort of a starting point this is not recommended) or reverse engineer portions of the client.

As for figuring out how to take known packet structures (korvs wiki) into a usable form... that's up to you. There's tons of ways you could do it. Everyone has their own preference for how to write packets but I went over a few in my proxy paradise tutorial (not that great but w/e).

All packets are is a bunch of Bytes (if you want to be technical, it's a bunch of binary octets but w/e) which are sent between two machines. Because they are often received as a giant chunk, the receiving machine needs to have an idea of how to handle these packets. That's what packet headers are for (in the case of conquer packets I'm referring to the Packet Length and Packet Type ushorts that start all of the packets).

Now... you need a procedural way to take known information and write it into a structured binary form. That's all a packet builder does.

You could do this using methods, implicit operators... anything you want really.


Never bothered to link that video in the thread but w/e.
01/13/2012 06:34 Spirited#3
My tutorial is too confusing??? Yikes.
Review data types and C# first.

Edit: I mean, people here always make fun of members on 4botters...
the member that requested that tutorial on 4botters learned how to structure packets using that tutorial.
01/14/2012 08:26 PretendTime#4
Quote:
Originally Posted by Fаng View Post
My tutorial is too confusing??? Yikes.
Review data types and C# first.

Edit: I mean, people here always make fun of members on 4botters...
the member that requested that tutorial on 4botters learned how to structure packets using that tutorial.
I am now able to structure packets thanks to your post :)
01/14/2012 11:42 Kiyono#5
Quote:
Originally Posted by sonofskeletor View Post
Has anyone got a guide, to convert the packets from Korvacs Wiki, to actual packet structs, but not fangs, far to confusing. the sort of packet i would like to build is the clan packet, im guessing it would be simular to the guild packet.
It's not that hard. Just look at a random packet in your source, compare it to the one on Korvacs' wiki and compare and apply your findings to the new packet. I didn't know how to Korvacs' wiki either but just comparing stuff in the source can get your really far.