• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Restarter in config wont work.

Johanz

New Member
Joined
Dec 31, 2008
Messages
188
Reaction score
1
globalSaveEnabled = true
globalSaveHour = 11
shutdownAtGlobalSave = true
cleanMapAtGlobalSave = true


using this settings and i wont happen a thing :/ using franfarmers tfs 0.3.6

Anyone got a clue? :)
 
You should to change it in OTS/data/globalevents/globalevent.xml. When you open this file change:
Code:
	<globalevent name="save" interval="[COLOR="Red"]your time in seconds[/COLOR]" event="script" value="save.lua"/>
	<globalevent name="clean" interval="[COLOR="Red"]your time in seconds[/COLOR]" event="script" value="clean.lua"/>
:)
 
You should to change it in OTS/data/globalevents/globalevent.xml. When you open this file change:
Code:
	<globalevent name="save" interval="[COLOR="Red"]your time in seconds[/COLOR]" event="script" value="save.lua"/>
	<globalevent name="clean" interval="[COLOR="Red"]your time in seconds[/COLOR]" event="script" value="clean.lua"/>
:)

so like it does it once every 24h ? :P might work but i still dont get the server to close after server save :/ have a restarter to put it back up but i need it to close the server :P repped :)
 
the server "saves" and kicks all the player on the time that stands in the config.lua but in console it stands like this:

saving server.
SAVE: complete in "bla bla seconds"
preparing to shutdown the server- done.

And nothing more, it doesn't turns off so the restarter can turn it back on. it just stays like that and players can't login :S
 
So you must download any restarter like this: http://otland.net/f19/otrestarter-v0-2-a-62607/. If you set it well it will autorestart server. :)



60*60*2=7200sec

Dont think you understand me :P i use that restarter. But the server needs to "crash" close down before the restarter can turn it back on :P i've checked the forum and i found out that it's a bug in the system. you need to manually turn it off to make it work :/
 
Hmm and this dont working ?:
Code:
shutdownAtGlobalSave = true

Another option is found any bug which will crashe server :P
 
in game.cpp

try to replace !
PHP:
void Game::shutdown()
	{
		std::cout << "Preparing";
		Scheduler::getInstance().shutdown();
		std::cout << " to";
		Dispatcher::getInstance().shutdown();
		std::cout << " shutdown";
		Spawns::getInstance()->clear();
		std::cout << " the";
		Raids::getInstance()->clear();
		std::cout << " server";
		cleanup();
		std::cout << "- done." << std::endl;
		if(services)
			services->stop();

	}

With :-

PHP:
void Game::shutdown()
	{
		std::cout << "Preparing";
		Scheduler::getInstance().shutdown();
		std::cout << " to";
		Dispatcher::getInstance().shutdown();
		std::cout << " shutdown";
		Spawns::getInstance()->clear();
		std::cout << " the";
		Raids::getInstance()->clear();
		std::cout << " server";
		cleanup();
		std::cout << "- done." << std::endl;
		if(services)
			services->stop();
		exit(1);

	}
 
in game.cpp

try to replace !
PHP:
void Game::shutdown()
	{
		std::cout << "Preparing";
		Scheduler::getInstance().shutdown();
		std::cout << " to";
		Dispatcher::getInstance().shutdown();
		std::cout << " shutdown";
		Spawns::getInstance()->clear();
		std::cout << " the";
		Raids::getInstance()->clear();
		std::cout << " server";
		cleanup();
		std::cout << "- done." << std::endl;
		if(services)
			services->stop();

	}

With :-

PHP:
void Game::shutdown()
	{
		std::cout << "Preparing";
		Scheduler::getInstance().shutdown();
		std::cout << " to";
		Dispatcher::getInstance().shutdown();
		std::cout << " shutdown";
		Spawns::getInstance()->clear();
		std::cout << " the";
		Raids::getInstance()->clear();
		std::cout << " server";
		cleanup();
		std::cout << "- done." << std::endl;
		if(services)
			services->stop();
		exit(1);

	}

Where is that located? :/ and alot of people told me that it
s a known bug in the server. Is this the way to fix?
 
Back
Top