Anyone got General.cs file ?

08/03/2008 17:43 stephanyd#1
Anyone have General.cs file including server restart ? I really need it so bad:(
08/03/2008 17:55 mr.anzi#2
Oh yah and you could already have told us where does 'General.cs' include.. there may be millions 'General.cs'-files which are all different but i suppose you mean 'General.cs' included in LOTF source?
08/03/2008 17:59 ~Yuki~#3
Right LOTF
08/03/2008 18:07 stephanyd#4
Quote:
Originally Posted by mr.anzi View Post
Oh yah and you could already have told us where does 'General.cs' include.. there may be millions 'General.cs'-files which are all different but i suppose you mean 'General.cs' included in LOTF source?
i don't use LOTF source... i use ShadowCo one... that source working good but still have login freezing bug... it fix only when i restart server... that's why i need General.cs file:p
08/03/2008 18:11 adz06676#5
Quote:
Originally Posted by stephanyd View Post
Anyone have General.cs file including server restart ? I really need it so bad:(
Server restarts are the simplest thing ever how about instead of asking, learn.
08/03/2008 18:21 stephanyd#6
Quote:
Originally Posted by adz06676 View Post
Server restarts are the simplest thing ever how about instead of asking, learn.
I have General.cs file... i get messages on screen but it isn't restarting.
08/03/2008 20:36 _Emme_#7
I dont get it,why does people actully start an server,when they probally dont know what C Sharp is.. All I think it is,is pathetic. anyways,if i remember right when i had a look in LOFT source,this code would probally work.

public static void ServerRestart()
{
World.SaveAllChars();
General.ServerRestart();
}

Let me know if it dont work.
08/03/2008 23:03 kinshi88#8
Code:
                public static System.Timers.Timer RestartTimer;
Code:
                RestartTimer = new System.Timers.Timer();
                RestartTimer.Interval = 1800000;//30 minutes
                RestartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_Elapsed);
                RestartTimer.Start();
Code:
        public static void RestartTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            World.SaveAllChars();
            General.ServerRestart();
        }
There.
08/04/2008 01:14 _Emme_#9
Oh , my bad. I though he already added an timer,soz
08/04/2008 01:38 stephanyd#10
Quote:
Originally Posted by kinshi88 View Post
Code:
                public static System.Timers.Timer RestartTimer;
Code:
                RestartTimer = new System.Timers.Timer();
                RestartTimer.Interval = 1800000;//30 minutes
                RestartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_Elapsed);
                RestartTimer.Start();
Code:
        public static void RestartTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            World.SaveAllChars();
            General.ServerRestart();
        }
There.
I've did that...only get message on window and server still don't restart:(