git: 94797b70fc9f - main - games/ktx: Improve default configuration
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Feb 2025 20:16:40 UTC
The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=94797b70fc9f5c51297231828947cd66899961f4 commit 94797b70fc9f5c51297231828947cd66899961f4 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-02-22 19:33:15 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-02-22 20:16:02 +0000 games/ktx: Improve default configuration * Enable "signing" of rcon commands. * Add QTV stream port in rc.d script. * Show spawn markers in prewar. --- games/ktx/files/ktx.in | 5 +++-- games/ktx/files/patch-resources_example-configs_ktx_ktx.cfg | 11 +++++++++++ games/ktx/files/patch-resources_example-configs_ktx_pwd.cfg | 8 ++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/games/ktx/files/ktx.in b/games/ktx/files/ktx.in index 3e6e3075cc92..e514adad764c 100755 --- a/games/ktx/files/ktx.in +++ b/games/ktx/files/ktx.in @@ -8,7 +8,8 @@ # enable ktx: # ktx_(instance_)?enable (bool): Set to "NO" by default. # Set it to "YES" to enable ktx. -# ktx_(instance_)?port (int): UDP port (default 27500). +# ktx_(instance_)?port (int): UDP port for game and TCP for QTV stream +# (default 27500). # ktx_(instance_)?gamedir (str): Gamedir for ktx (default ktx). # ktx_(instance_)?args (str): Custom additional arguments to be passed # to ${__qwserver} (default empty). @@ -125,6 +126,6 @@ if [ -n "${__randommaps}" -a \( "x$1" = "xstart" -o "x$1" = "xrestart" \) ]; the fi command="/usr/sbin/daemon" -command_args="-P ${pidfile} -u ${__user} -R 5 -f -H -o ${__log} -m 3 ${__qwserver} -port ${__port} -game ${__gamedir} ${__args}" +command_args="-P ${pidfile} -u ${__user} -R 5 -f -H -o ${__log} -m 3 ${__qwserver} -port ${__port} +qtv_streamport ${__port} -game ${__gamedir} ${__args}" run_rc_command "$1" diff --git a/games/ktx/files/patch-resources_example-configs_ktx_ktx.cfg b/games/ktx/files/patch-resources_example-configs_ktx_ktx.cfg new file mode 100644 index 000000000000..c75eb95a8a22 --- /dev/null +++ b/games/ktx/files/patch-resources_example-configs_ktx_ktx.cfg @@ -0,0 +1,11 @@ +--- resources/example-configs/ktx/ktx.cfg.orig 2025-02-22 20:13:51 UTC ++++ resources/example-configs/ktx/ktx.cfg +@@ -72,6 +72,8 @@ set k_freeze 0 // freeze plat + set k_prewar 1 // prewar setting (0 = prewar fire is disallowed, 1 = prewar fire is allowed, 2 = no fire or jump until ready) + set k_sready 0 // players glow when not ready (0 = no, 1 = yes) + set k_freeze 0 // freeze platforms and doors before matchstart (0 = no, 1 = yes) ++set k_spm_show 1 // show spawn markers in prewar ++set k_spm_glow 1 // spawn markers do not glow + + // timing players + set allow_timing 1 // timing/lagged players manipulation (0 = off, 1 = on) diff --git a/games/ktx/files/patch-resources_example-configs_ktx_pwd.cfg b/games/ktx/files/patch-resources_example-configs_ktx_pwd.cfg new file mode 100644 index 000000000000..2bc58f644410 --- /dev/null +++ b/games/ktx/files/patch-resources_example-configs_ktx_pwd.cfg @@ -0,0 +1,8 @@ +--- resources/example-configs/ktx/pwd.cfg.orig 2024-03-10 07:30:18 UTC ++++ resources/example-configs/ktx/pwd.cfg +@@ -1,4 +1,4 @@ +-sv_crypt_rcon 0 // rcon encryption (0 = off, 1 = on) ++sv_crypt_rcon 1 // rcon encryption (0 = off, 1 = on) + rcon_password "" // rcon (disabled by "") + master_rcon_password "" // master rcon (disabled by "") +