• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

TravianX - How do I make the server start in a date I choose?

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 10, 2012
Messages
7
Reaction score
0
Hello.

I have TravianX v6.0.0.0, and I have a question regarding the server.

I want to make the server start in 2 days from now.

How do I close the server and make it automatically open in 2 days from now?

I mean, so people can't register till it starts, and things like that...

How do I do this?

Thanks in advance for helpers.
 
Junior Spellweaver
Joined
Jan 7, 2012
Messages
147
Reaction score
100
Hello.

I have TravianX v6.0.0.0, and I have a question regarding the server.

I want to make the server start in 2 days from now.

How do I close the server and make it automatically open in 2 days from now?

I mean, so people can't register till it starts, and things like that...

How do I do this?

Thanks in advance for helpers.


First question: In GameEngnie/config.php on line 27-29:

PHP:
// ***** Started
// Defines when has server started.
define("COMMENCE","1331046957");

Get a timestamp of the time and day you want the server to restart (bearing in mind timezone of your server). I would reccomend using to do so.

Until the time reaches you will see: Server not opened yet (or something similar), but you can edit this: in login.php on lines 69-73:

PHP:
$time = time();
if( COMMENCE > $time )
{
	echo '<p><font color="red" size="6">'.NOT_OPENED_YET.'</font></p>' ;
}

You can change the message, but when the time hits the time you want the server to start, they can login as normal.

As for the second question for registration, you can register any time.
 
Newbie Spellweaver
Joined
May 10, 2012
Messages
7
Reaction score
0
Thank you very much, allycol93!

I've found a website of a timestamp converter, I used it and it worked!

Much thanks! :)
 
Status
Not open for further replies.
Back
Top