TODO: - Custom maps - increase people amount - play with config - inspect the mutator - Proper shutdown with game status control - Solve logging with custom /dev/null: `mknod /path/to/black/hole c 1 3` - Apply webadmin patch - Establish updates using # Reverse engineering ## Signals listening ``` SigIgn: TRAP(5) ALRM(14) SigCgt: ILL(4) ABRT(6) BUS(7) FPE(8) SEGV(11) (33) ``` # Hacks ## Parse maps cycle in python ```python maps.split('=')[2].split(')')[0].replace('(', '[') + ']' ``` ## Language ```1. Кракозябры в админке: Почему: сервер читает значение переменной LANG и пытается в мультиязычность (но не может). Лечение: Перед запуском сервера установить LANG в английский, например так: export LANG=en_US.utf8 ``` src: https://steamcommunity.com/sharedfiles/filedetails/?id=1298957956 # Patch to webadmin This patch should be applied to `KFGame/Web/ServerAdmin` ```diff diff --git a/current_players_row.inc b/current_players_row.inc index 9851873..f1cad82 100755 --- a/current_players_row.inc +++ b/current_players_row.inc @@ -2,9 +2,17 @@ <%player.teamid%>  <%player.name%> <%player.ping%> - <%player.ip%> + ^M +
^M + <%player.ip%>^M +
^M +
^M <%player.uniqueid%> - <%player.steamid%> + ^M +
^M + <%player.steamid%>^M +
^M +
^M <%player.steamname%> <%player.admin%> <%player.spectator%> diff --git a/header_base.inc b/header_base.inc index 217a460..712fd3c 100755 --- a/header_base.inc +++ b/header_base.inc @@ -12,7 +12,7 @@ var pageUri = '<%page.fulluri%>'; - + ^M <%html.headers%> diff --git a/navigation.inc b/navigation.inc index a374dd1..213b986 100755 --- a/navigation.inc +++ b/navigation.inc @@ -2,4 +2,5 @@ ``` This patch allows to load pages in UTF-8 by default so chat is fine ```diff diff --git a/header_base.inc b/header_base.inc index 217a460..e3d29ff 100755 --- a/header_base.inc +++ b/header_base.inc @@ -13,6 +13,7 @@ + <%html.headers%> ```