If you're wanting to learn how to use Sockets in C#, then you'll most likely end up decompiling Hybrid's SocketNetwork.dll if you use his source, but I would recommend Googling tutorials first in order to get a basic understanding of them.
Although someone could easily usurp my attempt, I took a little time to work on this source for you (tested using a 4267 client, but there a definitely areas to be improved and fixed. In short, Hybrid's source is an excellent place to start, and most likely has the best design), so hopefully it will provide you with some insight. I have tried to make it as barebones as possible without making its purpose too amorphous. If you have any questions or you would like something added, feel free to ask. If your main focus is on how Sockets work, then take a look at ServerSocket.cs. I've added comments to make things a bit more clear.
In a simple set of instructions:
Start out with a Socket that listens on the login port for new connections.
Then move to reading the data that is sent from those new connections.
Then Decrypt it.
Then handle the decrypted data, sending encrypted data back to the connections when necessary.
Soon, you'll start needing more and more classes to handle that data, and then you'll end up with a source.
If you're wanting to learn how to use Sockets in C#, then you'll most likely end up decompiling Hybrid's SocketNetwork.dll if you use his source, but I would recommend Googling tutorials first in order to get a basic understanding of them.
Although someone could easily usurp my attempt, I took a little time to work on this source for you (tested using a 4267 client, but there a definitely areas to be improved and fixed. In short, Hybrid's source is an excellent place to start, and most likely has the best design), so hopefully it will provide you with some insight. I have tried to make it as barebones as possible without making its purpose too amorphous. If you have any questions or you would like something added, feel free to ask. If your main focus is on how Sockets work, then take a look at ServerSocket.cs. I've added comments to make things a bit more clear.
In a simple set of instructions:
Start out with a Socket that listens on the login port for new connections.
Then move to reading the data that is sent from those new connections.
Then Decrypt it.
Then handle the decrypted data, sending encrypted data back to the connections when necessary.
Soon, you'll start needing more and more classes to handle that data, and then you'll end up with a source.
Thanks, I really appreciate it.
I tried converting hybrids source to work with the 4267 client, but I can't seem to get it working.
That's a client problem where the server is trying to have the client load something that doesn't exist.
I'd check the default items and character meshes and try again.
The other option would be invalid monsters but that's unlikely (I know in CoFuture the lab bosses were crashing the game because they used a new mesh or something that wasn't in the client)
I tried converting hybrids source to work with the 4267 client, but I can't seem to get it working.
Most important of all, did you change the packets? If you did, check the model value or the hair value. If the problem keeps appearing you can private message me whenever you like.
If you're wanting to learn how to use Sockets in C#, then you'll most likely end up decompiling Hybrid's SocketNetwork.dll if you use his source, but I would recommend Googling tutorials first in order to get a basic understanding of them.
Although someone could easily usurp my attempt, I took a little time to work on this source for you (tested using a 4267 client, but there a definitely areas to be improved and fixed. In short, Hybrid's source is an excellent place to start, and most likely has the best design), so hopefully it will provide you with some insight. I have tried to make it as barebones as possible without making its purpose too amorphous. If you have any questions or you would like something added, feel free to ask. If your main focus is on how Sockets work, then take a look at ServerSocket.cs. I've added comments to make things a bit more clear.
In a simple set of instructions:
Start out with a Socket that listens on the login port for new connections.
Then move to reading the data that is sent from those new connections.
Then Decrypt it.
Then handle the decrypted data, sending encrypted data back to the connections when necessary.
Soon, you'll start needing more and more classes to handle that data, and then you'll end up with a source.
Nice! Is that source you made from scatch able to work on 4267 just needs coding right?
Nice! Is that source you made from scatch able to work on 4267 just needs coding right?
In short, yes, but that source was only made in order to demonstrate how to use sockets in C#, and the only thing it does is send you from the account server to the game server in order to show how the sockets work. Theoretically, any 5017 source should be able to work with a 4267 client, but the packets would mainly need to be restructured. Technically, I wouldn't use this source to build off of because there are plenty of better, more developed sources out there already.
[DEV] My first C# source from scratch. (kinda) 08/07/2010 - CO2 Private Server - 18 Replies Well many of you know that I use impulse's source.
Now when this is finished, I will release this when its at the stage of a base, BASE (login, create character, walk, run, npcs, items(:/) Mobs(:/) ) and many of you think/know I am nooby I am here to prove you wrong. So this should be an experience but I will be stealing Impulse's socketsystem/Mysql(UNTILL I LEARN TO CODE MY OWN :) ) feature but writing everything else myself with abit of help from others, this will be based on 5165.
...
creating source 07/17/2010 - CO2 Private Server - 5 Replies iam new to coding and i was just wanting to know the basiks of coding a source from scratch. whats the first things to code? sockets? encryptions? packets? waht. pls reply. :handsdown:
[PROGRAM]Scratch 11/15/2009 - Off Topic - 6 Replies Kennt wer das Programm Scratch??
Das ist diese Katze
damit kannst du Spiele etc. entwickeln!!
Kann mir wer helfen
muss bis morgen ein Spiel entwickeln und in der Schule vorstellen
Dj Scratch and the Overdrive 04/18/2008 - Music - 0 Replies Hi Boyz and Girlz,
Ich brauche eure Hilfe...ich suche dieses Lied schon seit Jahren
Es ist aus dem Film Honey und heisst (Zitat aus dem Film) Dj Scratch and the Overdrive...
Könnte sein dass der Loop nur für die Filmproduktion gemacht wurde was sehr schade wäre...
Hier kleine Kostprobe:
YouTube - Honey dance
Plz Help