From f9cb0192b1e72bdbfccea20752f7d6234494dd81 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 31 May 2023 19:10:09 +0000 Subject: [PATCH] Add README.md --- README.md | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6ce1d00 --- /dev/null +++ b/README.md @@ -0,0 +1,78 @@ +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('(', '[') + ']' +``` + +# 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 @@ + +```