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

Solved Configure name

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
92
Location
Sweden, Stockholm
What in the configure file do you need the edit to rename the process from theforgottenserver to for example "server1"?
 
i want to have multiple tfs processes running at the same time and being able to kill the process without killing 3 servers at the same time..
 
In otserv.cpp


search for
Code:
#ifdef WIN32
		int32_t mask = 0;
		for(IntegerVec::iterator it = cores.begin(); it != cores.end(); ++it)
			mask += 1 << (*it);

		SetProcessAffinityMask(GetCurrentProcess(), mask);
	}

	std::stringstream mutexName;
	mutexName << "forgottenserver_" << g_config.getNumber(ConfigManager::WORLD_ID);
	CreateMutex(NULL, FALSE, mutexName.str().c_str());
	if(GetLastError() == ERROR_ALREADY_EXISTS)
		startupErrorMessage("Another instance of The Forgotten Server is already running with the same worldId.\nIf you want to run multiple servers, please change the worldId in configuration file.");


mutexName << "forgottenserver_" << g_config.getNumber(ConfigManager::WORLD_ID);



im not sure but i think its there you have to change..
 
Probably this:
#define SOFTWARE_NAME "The Forgotten Server"

at least that's where the console title comes from.
 
in linux you can just rename the executable to w/e you want.. dunno if that works in Windows too, that would probably be the easiest way :)
 
Back
Top