Register for your free account! | Forgot your password?

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

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

Advertisement



Creating a source from scratch?

Discussion on Creating a source from scratch? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Creating a source from scratch?

Can anyone tell me how I go about creating a source from scratch,

I can do most coding but I really don't understand sockets, I kind of understand packets and I'm planning to create it for 4267 client.

Are there any blank sources with just login at least with a good socket system that I could start from?

It's really just a learning experience for me, and if its a success perhaps i'll use it.

Thanks!
scottdavey is offline  
Old 05/31/2010, 06:03   #2
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
I'm not sure about one for 4267 but Hybrids source is pretty basic.
Santa is offline  
Old 05/31/2010, 08:16   #3
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Yeah it's definitely not easy I can tell you that >.<
Good luck.
kinshi88 is offline  
Thanks
1 User
Old 05/31/2010, 10:40   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Impulses source is pretty basic for 5165

Basic stuff:
Walk
Run
Jump
NPC's

Features :
NONE
MonstersAbroad is offline  
Old 05/31/2010, 12:24   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
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.
Attached Files
File Type: zip MyCOServer.zip (53.0 KB, 32 views)
s.bat is offline  
Thanks
3 Users
Old 05/31/2010, 17:56   #6
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by s.bat View Post
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.

scottdavey is offline  
Old 05/31/2010, 18:24   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
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)
pro4never is offline  
Old 05/31/2010, 20:11   #8
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by scottdavey View Post
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.

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.
ImmuneOne is offline  
Thanks
2 Users
Old 06/01/2010, 23:42   #9
 
elite*gold: 0
Join Date: Mar 2007
Posts: 369
Received Thanks: 79
if you know how to code with C++ would be nice when you try to code a source like Binary

you can get help from EU C++ source

its the same fature
becko713 is offline  
Old 06/02/2010, 00:10   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
There is no EU c++ source, its all binaries.
Arcо is offline  
Thanks
1 User
Old 06/02/2010, 02:47   #11
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
Yes, there is. Both client and server implementation, they're old though but they do exist.

EDIT: Here are the links:

tanelipe is offline  
Thanks
3 Users
Old 06/03/2010, 02:39   #12
 
BlueFlame11's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 116
Received Thanks: 12
Quote:
Originally Posted by s.bat View Post
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?
BlueFlame11 is offline  
Old 06/03/2010, 06:03   #13
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
Quote:
Originally Posted by BlueFlame11 View Post
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.
s.bat is offline  
Old 06/03/2010, 06:52   #14
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by tanelipe View Post
Yes, there is. Both client and server implementation, they're old though but they do exist.

EDIT: Here are the links:

So TQ coded EU in C++?
Arcо is offline  
Old 06/03/2010, 07:12   #15
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by .Arco View Post
So TQ coded EU in C++?
Yup, and Conquer, and every other game they've ever made.
C+P for all of em =P
kinshi88 is offline  
Reply


Similar Threads Similar Threads
[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



All times are GMT +1. The time now is 19:58.


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.