- Joined
- Aug 12, 2008
- Messages
- 1,351
- Reaction score
- 36
There is new rule on otservlist.
How to make TFS stop counting x-logged players and avoid ban?
It's really simple but will need some effort to recompile engine:
In status.cpp you need to change:
to
and
to
3. Now you need to compile with --enable-server-diag
And...
it's everything! Now you won't get banned for x-logged characters.
If you would like to modify whoisonline.php just change text there to:
--
Don Daniello: This change has been applied to the TFS 0.3.7 as of revision 5682. If you are using any later versions, you do not need to follow this tutorial. Additionally, is is achieved in a safer way.
How to make TFS stop counting x-logged players and avoid ban?
It's really simple but will need some effort to recompile engine:
In status.cpp you need to change:
Code:
sprintf(buffer, "%d", g_game.getPlayersOnline());
Code:
sprintf(buffer, "%d", Connection::connectionCount);
and
Code:
output->put<uint32_t>(g_game.getPlayersOnline());
Code:
output->put<uint32_t>(Connection::connectionCount);
3. Now you need to compile with --enable-server-diag
Code:
rm *.o
./configure --enable-mysql --enable-server-diag
make
And...
it's everything! Now you won't get banned for x-logged characters.
If you would like to modify whoisonline.php just change text there to:
PHP:
Currently '.$number_of_players_online.' players are Online - <b>'.$config['status']['serverStatus_players'] .' are active</b> and, '.($number_of_players_online-$config['status']['serverStatus_players']).' are AFK.
--
Don Daniello: This change has been applied to the TFS 0.3.7 as of revision 5682. If you are using any later versions, you do not need to follow this tutorial. Additionally, is is achieved in a safer way.