• 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!

TFS 0.3 6 shutdown problem

tsb0314

New Member
Joined
Oct 21, 2009
Messages
220
Reaction score
4
simple request. whenever i try to shutdown the server this pops up

Code:
[14/07/2011 09:17:38] > Saving server...
[14/07/2011 09:17:40] > SAVE: Complete in 2.252 seconds using relational house storage.
[14/07/2011 09:17:41] Preparing to shutdown the server- done.

and the application never closes. can someone tell me how i can fix
 
do i have to press x everytime? or just one time and it will set for all the times i shutdown?

oh and didnt work @upup
number 2 isnt happining
 
Last edited by a moderator:
try Just going to Ctrl+Alt+Delete all together and just clicking End Application On the board =) eASY
rEP if i helped
@up do u even know tibia lol
 
Search in source the file game.cpp open it and find this line:

XML:
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();

	}

then add exit(1); between services->stop(); and } then rebuild, that's all.

Example:
XML:
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);
        }
 
i dont undertand sorry maybe im a noob but where is this game.cpp? or the source file. i need information i dont know how to get to the game.cpp
 
Back
Top