Register for your free account! | Forgot your password?

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

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

Advertisement



[Request]Auto Restart Server

Discussion on [Request]Auto Restart Server within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
[Request]Auto Restart Server

Can anyone/somesone post a tutorial how to restart your server for about 15 or 10 min or higher.
using LOFT source.

thanks
pauldexter is offline  
Old 08/30/2008, 21:57   #2
 
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
Some Sources have them,look around

greets keving
keving is offline  
Old 08/30/2008, 22:58   #3
 
elite*gold: 0
Join Date: Jul 2008
Posts: 70
Received Thanks: 1
lol idk if that was much help...

try adding it in the sources auto restart folder.. if it dun have ti then idk..
IceyMan is offline  
Old 08/30/2008, 23:14   #4
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Lol close the hosting program and open it
glupkotrup is offline  
Old 08/30/2008, 23:37   #5
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Put an Timer on it... Very easy

* Searching all Mob Mechs for free!!! *
YukiXian is offline  
Old 08/31/2008, 03:40   #6
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
In General.cs

Code:
        public static System.Timers.Timer RestartTimer;
Code:
                RestartTimer = new System.Timers.Timer();
                RestartTimer.Interval = <Interval in Miliseconds>
                RestartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_Elapsed);
                RestartTimer.Start();
Code:
        void RestartTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            Process nServ = new Process();
            nServ.StartInfo.FileName = Application.StartupPath + @"COServerProject.exe";
            nServ.Start();
            World.SaveAllChars();
            Environment.Exit(0);
        }
kinshi88 is offline  
Thanks
4 Users
Old 08/31/2008, 08:29   #7
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
thanks for that
pauldexter is offline  
Old 08/31/2008, 09:06   #8
 
jochemke's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 30
Received Thanks: 85
tnx kinshi88 this helped me alot cause i couldn't fix it but finnaly i know what was wrong
jochemke is offline  
Old 08/31/2008, 09:39   #9


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
You could even add a new timer with <Interval in Miliseconds> minus one minute, and broadcast the restart on GM channel.
KraHen is offline  
Old 08/31/2008, 09:48   #10
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Quote:
Originally Posted by pauldexter View Post
thanks for that
Anytime, whatever yah need.

Quote:
Originally Posted by jochemke View Post
tnx kinshi88 this helped me alot cause i couldn't fix it but finnaly i know what was wrong
Yeah dude, anytime. Good good.

Quote:
Originally Posted by ElDeRnEcRo View Post
You could even add a new timer with <Interval in Miliseconds> minus one minute, and broadcast the restart on GM channel.
Yes you could, always a good idea.
kinshi88 is offline  
Reply


Similar Threads Similar Threads
Auto Restart
04/12/2010 - CO2 Private Server - 11 Replies
can someone give me a code to restart the server every 2 1/2 hours.
[Request] Guilds, Friends, Marriage, Auto Restart
07/02/2009 - CO2 Private Server - 8 Replies
Hi everyone! I'd like some help fixing my code for these sections. I use PowerSource. I would appreciate any code given, and any explanations on how to figure it out would be great. Guilds - The name 'DataBase' does not exist in the current context in Guild.cs, line 32, 156, 179, 192, 236 Character.cs, line 1646 Friends - I can only find code for LOTF source. As is, friends will randomly disappear off the friend list. I think it's a problem packing or unpacking the list. ...
[Help] how do i Delete the Auto-Restart system
02/23/2009 - CO2 Private Server - 8 Replies
how do i delete the auto restart system??? i really dont like it, so if u can help me plx say...
HOW DO I DELETE AUTO RESTART
08/21/2008 - Conquer Online 2 - 7 Replies
how do i delete auto restarter?



All times are GMT +2. The time now is 22:43.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.