Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Eudemons Online > EO PServer Hosting
You last visited: Today at 05:35

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

Advertisement



[Development] C# sources

Discussion on [Development] C# sources within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old 07/27/2010, 06:06   #91
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by funhacker View Post
Just took a quick look at the account server code looks good. I just have a suggestion since there is obviously going to be a lot of specialised output like green/red text I have this suggestion see the code box for new method and quick modification to the code.

Code:
using System;
using System.Threading;
using LoginServer.Database;

namespace LoginServer
{
    class Program
    {
        public  void Main(string[] args)
        {
            Console.Title = "Eudemons C# Login Server © Hio77";
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("--------------------------------------------");
            Console.WriteLine("---Eudemons C# LoginServer - Starting up!---");
            Console.WriteLine("--------------------------------------------");
            Console.ResetColor();
            Console.WriteLine("");
            Console.WriteLine("Account Server Created by Hio77");
            Console.WriteLine("This Account Server has been based off the COEMUv2 source");
            Console.WriteLine("COEMUv2 was created by andyd123");
            Console.WriteLine("The CoEMUv2 source can be found at: http://tinyurl.com/coemuv2");
            Console.WriteLine("");
            Console.WriteLine("This is made to work with the game server created by hio77 not any eo binary!");
            Console.WriteLine("");
            Console.WriteLine("[LoginServer] Starting MasterSocket Thread.");
            Connections.MasterSocket LoginSocket = new Connections.MasterSocket("LoginServer");
            new Thread(LoginSocket.AcceptNewConnections).Start();
            Console.WriteLine("[LoginServer] Init OK.");
            Console.WriteLine("[LoginServer] Connecting to Mysql.");
            if (Database.Database.TestConnect())
            {
                WriteSpecialText("green","[Database] Connection OK.",true);
            }
            else
            {
                WriteSpecialText("Red","[Database] Connection FAIL.",false);
                LoginSocket.Close();
                WriteSpecialText("Red", "[LoginServer-End-ERROR] Mastersocket closed, thread killed.",false);
                WriteSpecialText("Red", "[LoginServer-End-ERROR] Server Shutdown",true);
            }
            Console.WriteLine("[LoginServer] Searching for the Game Server....");
            Console.WriteLine("[LoginServer] Press enter to kill the server.");
            Console.Read();
            Console.WriteLine("");
            LoginSocket.Close();
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("[LoginServer-End] Mastersocket closed, thread killed.");
            Console.WriteLine("[LoginServer-End] Server Shutdown");
        }


        /// <summary>
        /// Writes a special message with low level formating
        /// </summary>
        /// <param name="colour">Colour the text is to be written in. (Red/Green)</param>
        /// <param name="text">Message to be written to console.</param>
        /// <param name="emptyline">True will allow for a proceding empty line after the message.</param>
        public void WriteSpecialText(string colour, string text, bool emptyline)
        {
            switch (colour.ToLower())
            {
                case "green":
                    Console.ForegroundColor=ConsoleColor.Green;
                    break;
                case "red":
                    Console.ForegroundColor = ConsoleColor.Red;
                        break;
                default:
                    Console.ResetColor();
                    break;
            }
            Console.WriteLine(text);
            if (emptyline) { Console.WriteLine(); }
            Console.ResetColor();
        }
    }

}
thanks for that the colors are just so people can see it easily really but i how its coded with the whole [ACCSERVER] etc stuff it makes it rather clear

i never really thought of putting it into a method like that though lol
hio77 is offline  
Thanks
1 User
Old 08/06/2010, 01:21   #92
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
Im a newb coder in C#, understand most stuff accept for the packets.

Played with CO Servers and that.

Count me in, im willing to help/learn along the way.
Beta Limit is offline  
Thanks
1 User
Old 08/07/2010, 03:30   #93
 
elite*gold: 0
Join Date: Feb 2010
Posts: 94
Received Thanks: 0
u can tell me for how i can get this port

5817; <authentication port
conal is offline  
Old 08/07/2010, 05:35   #94
 
DEADP00L's Avatar
 
elite*gold: 20
Join Date: Sep 2008
Posts: 1,197
Received Thanks: 1,211
Quote:
Originally Posted by conal View Post
u can tell me for how i can get this port

5817; <authentication port

you still are not listening, this is a DEMO not a release.

user infracted yet again for not listening



ps i love my new siggy..lol
DEADP00L is offline  
Thanks
2 Users
Old 08/07/2010, 10:43   #95
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by Beta Limit View Post
Im a newb coder in C#, understand most stuff accept for the packets.

Played with CO Servers and that.

Count me in, im willing to help/learn along the way.
awesome

Quote:
Originally Posted by DEADP00L View Post
you still are not listening, this is a DEMO not a release.

user infracted yet again for not listening



ps i love my new siggy..lol
ty

@everyone wanting to help

anyone whos wanting to help and understands the packets could they give me a hand with the order of the game server login packets?
hio77 is offline  
Old 08/08/2010, 01:30   #96
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
Lemme know when i can help

and i would love to learn the packets if anyone would teach me about them.

Beta
Beta Limit is offline  
Thanks
1 User
Old 08/08/2010, 03:12   #97
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by Beta Limit View Post
Lemme know when i can help

and i would love to learn the packets if anyone would teach me about them.

Beta
i can teach you to use them etc i just don't really know the order for the login to game server lol
hio77 is offline  
Thanks
1 User
Old 08/22/2010, 08:06   #98
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
*bump* this isnt a dead project just to let everyone know ... i just got sick ... in a few days ima have a svn with full code up so anyone can join in

just hope im fully better soon so i can get this project off its feet
hio77 is offline  
Thanks
1 User
Old 08/22/2010, 11:26   #99
 
elite*gold: 0
Join Date: Jun 2010
Posts: 62
Received Thanks: 12
what the function of this could someone tell me coz too hard to understand there
CharmedOne is offline  
Old 08/22/2010, 16:39   #100
 
ICP's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 90
Received Thanks: 23
Wow Bro XD

that is so nice good job halo nice to see improvments in this
me i dont know C# but if i could help ya out i would bro XD i found this post verry intersting just wanted to post here and say nice job keep up the good work bro XD
ICP is offline  
Old 08/23/2010, 05:02   #101
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by CharmedOne View Post
what the function of this could someone tell me coz too hard to understand there
this project is to create a server code base in which server owners can use to make about 50X more things possible and also to push the version number eo private servers use all the way to current


Quote:
Originally Posted by ICP View Post
that is so nice good job halo nice to see improvments in this
me i dont know C# but if i could help ya out i would bro XD i found this post verry intersting just wanted to post here and say nice job keep up the good work bro XD

thanks
hio77 is offline  
Thanks
2 Users
Old 08/26/2010, 17:01   #102
 
Escapex's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 102
Received Thanks: 36
#102 person

LOL WOW O: i always forgot to post on this thread.

kay this is amazing o.O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

if ppl start coding C# Sources. soon TQ wont have shut us down C:
cause its non bin o.O TQ only use mySQL and stuff dont they?

but anywayis this still on going?

P.S: im not too good in C# so i cant help much o.O

but willing to wait for this source/everything

and then i will give you a "****!" BIG THANK YOU O:
Escapex is offline  
Thanks
1 User
Old 08/26/2010, 21:32   #103
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by Escapex View Post
#102 person

LOL WOW O: i always forgot to post on this thread.

kay this is amazing o.O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

if ppl start coding C# Sources. soon TQ wont have shut us down C:
cause its non bin o.O TQ only use mySQL and stuff dont they?

but anywayis this still on going?

P.S: im not too good in C# so i cant help much o.O

but willing to wait for this source/everything

and then i will give you a "****!" BIG THANK YOU O:

its almost never the binary that they send letters about or anything its the client.... they can still get us but nobody's scared by a letter now lmao
hio77 is offline  
Thanks
1 User
Old 08/26/2010, 23:39   #104
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
Hio77 Any progres in game server?
sawickas is offline  
Old 08/27/2010, 06:18   #105
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by sawickas View Post
Hio77 Any progres in game server?
login works a bit now ... im just working on showing others around the player (calucations need changing a bit) and then talking should work all good as well

npcs work im sure (if they don't its an easy fix i had npcs in it at first but took them out to make fixing bits easier)
hio77 is offline  
Reply


Similar Threads Similar Threads
help with sources
03/11/2010 - CO2 Private Server - 2 Replies
im tryin to use the NewestCO 5165 server source which probably wouldnt be bad if i could get the NewestCoServer.exe to load everytime i tried to start it up it opens up and then closes with no errors or anything i followed the guide for getting it running and it still didnt work. So, my question is, Does anyone know of a way to keep the NewestCoServer.exe from closing down all the time or maybe someone knows of a decent 5165 source that i can DL? Any help is greatly appreciated
Looking For TQ Bin Sources
09/12/2009 - CO2 Private Server - 4 Replies
hey all :handsdown: Who have the Latest Bin ? Who have Bin Source website ? link of Bin >> Fixed Bin OR who Have it just Mailing me at Signature ! Any Mod. Please Give aperiod to me may i get what i Need ! 4botters TEAM !
For using sources?
04/18/2009 - CO2 Private Server - 3 Replies
whats the best source to use as a beginner p-server maker and whats the best source to use as a pro
BWH-Sources
06/11/2006 - General Coding - 9 Replies
Hi, weiß jemand wo ich den BWH Source herbekommen kann? Würd mich mal intressieren wie der genau arbeitet,meine Trainer beschränken sich nämlich aufs Offset Patchen,von Offset auslesen etc. kann nicht die Rede sein,die sind immer fest eincompiliert :/ Naja in Google hab ich jedenfalls nichts finden können...bis auf erschreckend viele Pornoseiten :? Danke im voraus, Xalon



All times are GMT +1. The time now is 05:37.


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.