[Release] Adding Form to your Server

09/19/2008 13:14 keving#1
You wanna have an Form like on CoFuture?
-Then you are here right.

Info: Says nothing about my English, I've tried my best

1) Create a new form "Control.cs"

2) Look in General.cs for:
"public static System.IO.StreamWriter sw = new System.IO.StreamWriter(Application.StartupPath + @"\ServerLog.txt", true);"

and add above:
Code:
        static Thread _thread;
        static void FormStart(object param)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Control());
        }
Go to the last line at "public unsafe General()"
and add under all:
Code:
                _thread.Start();
Info: Control.cs must look like this:
Code:
namespace COServer_Project
{
    public partial class Control : Form
    {
        public Control()
        {
            InitializeComponent();
        }
    }
}
Press Thanks if i helped you :)
09/19/2008 13:26 ~Yuki~#2
Nice i did it be4 but stucked on a part :P
Well nice release buddy^^
09/19/2008 13:33 tao4229#3
Waste of memory for a server... IMO.
09/19/2008 13:37 ~Yuki~#4
Quote:
Originally Posted by tao4229 View Post
Waste of memory for a server... IMO.
Did anyone said it will make it less memory?
So?
who cares how much RAM it uses i got 16 gig ram xD
09/19/2008 13:51 © Haydz#5
Quote:
Originally Posted by lolmaster123 View Post
Did anyone said it will make it less memory?
So?
who cares how much RAM it uses i got 16 gig ram xD
the point is the server is supposed to be ran and played on, there shouldnt be some guy sat at the control panel of the server clicking different buttons, absolute waste having a form :/... the objective of a server is for it to be a server that runs using the least amount of memory possible
09/19/2008 15:19 glupkotrup#6
Well I agree with Haydz... :)
09/19/2008 16:06 $HaDoW#7
sreen pls :P I dont rly understand what this all bout :D
09/19/2008 17:03 ~Yuki~#8
Dont work....
09/19/2008 17:19 keving#9
Quote:
Originally Posted by lolmaster123 View Post
Dont work....
Wrong: At me works and i copyed all Code that is needed to run it.
09/19/2008 17:36 YukiXian#10
You can do it with 4 words, >_<
09/19/2008 17:40 ~Yuki~#11
Quote:
Originally Posted by YukiXian View Post
You can do it with 4 words, >_<
WTF are u meaning??
Speak dutch!
09/19/2008 18:09 adz06676#12
this is pretty pointless :/
09/19/2008 18:57 ~Yuki~#13
Yow adz welcome back on e*pvpers^^
09/19/2008 19:06 taguro#14
Quote:
Originally Posted by lolmaster123 View Post
Yow adz welcome back on e*pvpers^^
lol
09/19/2008 20:15 MushyPeas#15
Guess some people are just afraid of console windows