[(Awesome)RELEASE] CoEmuv2.Nano(5095) Source Code

05/26/2009 00:00 andyd123#1
--DO NOT PM ME ABOUT THIS SOURCE CODE OR ABOUT WHERE TO EDIT, CHANGE, ETC ANYTHING. THIS SOURCE CODE IS PROVIDED "AS IS" AND NO IMPLIED WARRANTY OR ASSISTANCE IS OFFERED TO YOU--
Sorry, but I'm overwhelmed with PMs about this..

This is CoEmu v2's leveling server source code. There is no implementation of any commands for players, though it is possible to add some.


I will be updating this sometimes, though I'm not sure how often.


You need a client of version 5095 to play with this server.
I recommend downloading client version 5087 from filefront, and then updating it to 5095 via patches.
[Only registered and activated users can see links. Click Here To Register...] post may help you.
After you get the client, use [Only registered and activated users can see links. Click Here To Register...] exe and server.dat to connect..


Setup is really simple.
For the database:
In both projects, you will find a file called DatabaseConnection.cs
along with these lines
public const string USER_NAME = "USERNAMEHERE";
public const string PASSWORD = "PASSWORDHERE";

simply input your username / password for mysql. The database should be named conqueremu, but you can change it if you wish.
Please use [Only registered and activated users can see links. Click Here To Register...] database backup.

In both projects, you will find a file called MasterSocket.cs
You will see these two lines
protected const string SERVER_IP = "207.154.202.125";
protected const string SITE_IP = "74.54.200.178";

change SERVER_IP to your server's IP address.
SITE_IP is not important to you, unless you have a web-based server status checker.
All it does is ignore incoming connection requests from your website.

Look for
Code:
if(ServerName == "CoEmu")
			        {
It will be in PacketProcessor.cs inside the login server.
change "CoEmu" to your server name.
then below that you should see
Code:
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
change "66.187.101.86" to your ip, probably "127.0.0.1"


Other than that, no addl. setup should be request, apart from making an account.
Your password will be set when you login, so don't type one in the password field for mysql.


THE ONLY THING I ASK OF YOU IS THAT YOU DO NOT REMOVE THE SOURCE CODE CREDITS, AND THAT YOU MENTION THAT YOUR SERVER IS RUN ON COEMU FOUNDATION SOURCE CODE. THAT'S IT!

Something VERY important I forgot to mention.
The first character you create, you must enter into the characters table, and MANUALLY change his id to 1100000.

If you do not do this, you will have a countless number of issues in viewing people's gear, etc.

Things included/not included:
-Included 5095 packets, and 5018+ encryption. I will not help you implement this into lotf / etc
-This server is nearly done. There is very little left to be completed. I may or may not completely finish it. This is where, you, the community comes in.
-I have not included the 5018/5095 computability system. Nano had a system that allowed clients of version 5018 and 5095+ to login and see each other, but it wasn't perfect, and I'm surely not releasing that!


NOTE: This is a completely custom source. I worked on it from line one into the thousands of lines it is now.

Goodluck!
05/26/2009 00:05 Undress My Shadow#2
Wow andy thank you very much!!
damn andy this is the best thing that could ever been released!
05/26/2009 00:07 Rulzan#3
good job,thanks added
05/26/2009 00:08 Real~Death#4
i dont like private servers,but still thanks for the source



password protected
05/26/2009 00:11 damianpesta#5
#unexpected thank you so much
05/26/2009 00:12 andyd123#6
The rarfile password is

elitepvpers
05/26/2009 00:16 Beta Limit#7
Anyone got a client for this? Thanks
05/26/2009 00:16 PeTe Ninja#8
guys open in the gameserver folder

goto Main.cs

control + g ( line 20 )

replace

Code:
Console.WriteLine("This program is a branch
with

Code:
Console.WriteLine("This program is a branch of CoEmu.Nano");
found this error too

Code:
Error	1	The type or namespace name 'OpenSSL' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\******\Desktop\CoEmu v2\CoEmu v2 GameServer\Nano.cs	17	7	CoEmu v2 GameServer

to fix it...somehow i got it to debug...


go open the whole source click refrences...right click managedopenssl and remove..then right click and add refrence...go to the gameserver/bin/debug/ managedopenssl and add that in, it should work fine now and be able to debug :D
05/26/2009 00:19 AndreaCo#9
wow thanks andy.. im not gonna use the source but im going to use it to learn how to upgrade the source past v. 5017.. thanks!!
05/26/2009 00:21 andyd123#10
Quote:
Originally Posted by PeTe Ninja View Post
guys open in the gameserver folder

goto Main.cs

control + g ( line 20 )

replace

Code:
Console.WriteLine("This program is a branch
with

Code:
Console.WriteLine("This program is a branch of CoEmu.Nano");
found this error too

Code:
Error	1	The type or namespace name 'OpenSSL' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\******\Desktop\CoEmu v2\CoEmu v2 GameServer\Nano.cs	17	7	CoEmu v2 GameServer
If you have that error, please edit references and include bin\Debug\ManagedOpenSSL.dll

Quote:
Originally Posted by AndreaCo View Post
wow thanks andy.. im not gonna use the source but im going to use it to learn how to upgrade the source past v. 5017.. thanks!!
I don't see why you'd use any other source, unless it Hybrid's.
05/26/2009 00:21 PeTe Ninja#11
Quote:
Originally Posted by AndreaCo View Post
wow thanks andy.. im not gonna use the source but im going to use it to learn how to upgrade the source past v. 5017.. thanks!!
i hate coding :(

good release though :D

Quote:
Originally Posted by andyd123 View Post
If you have that error, please edit references and include bin\Debug\ManagedOpenSSL.dll
ha i beat you to it :D look my edit time and your post time WOHOOO!
05/26/2009 00:23 XMasterrrr#12
KK i will use it from now to ever :D
05/26/2009 00:25 araXis#13
Thanks andy its a awesome yes.
05/26/2009 00:25 PeTe Ninja#14
Quote:
Originally Posted by XMasterrrr View Post
KK i will use it from now to ever :D
LOL!!!!!!!!!!!!!!!!!!!!!!!!


good good =] i give you much luck i hope you succeed
05/26/2009 00:26 AndreaCo#15
nah i want to make my own source.. just i really suck with packets so im going to watch hybrids guides after im done with exams..