uhhhh
This commit is contained in:
+11
-2
@@ -1,4 +1,4 @@
|
||||
FROM cm2network/steamcmd:root AS build
|
||||
FROM cm2network/steamcmd AS build
|
||||
LABEL maintainer="ntr@megastructure.games"
|
||||
|
||||
EXPOSE 27015/tcp \
|
||||
@@ -7,7 +7,16 @@ EXPOSE 27015/tcp \
|
||||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y wget
|
||||
RUN apt-get install -y \
|
||||
wget \
|
||||
ca-certificates \
|
||||
zlib1g \
|
||||
lib32gcc-s1 \
|
||||
libncurses5 \
|
||||
libbz2-1.0 \
|
||||
libtinfo5 \
|
||||
libcurl3-gnutls \
|
||||
rcon
|
||||
|
||||
ENV CSSDS="/home/steam/cssds"
|
||||
ENV TF2DS="/home/steam/tf2ds"
|
||||
|
||||
@@ -28,6 +28,8 @@ sv_lan 0
|
||||
// Collect CPU usage stats
|
||||
sv_stats 1
|
||||
|
||||
sv_lan 1
|
||||
|
||||
|
||||
|
||||
// Execute Banned Users //
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
n = [1, 0, 0, 5, 10]
|
||||
|
||||
# can't do this like in js, rust, c#...
|
||||
# loooong = o
|
||||
# .filter()
|
||||
# .map(o => 'l' + 'o' * o + 'ng')
|
||||
# .collect() # maybe
|
||||
|
||||
# or this
|
||||
# ['l' + 'o' * o + 'ng' for o in filter(n)]
|
||||
|
||||
# must be
|
||||
loooong = ['l' + 'o' * o + 'ng' for o in filter(None, n)]
|
||||
|
||||
# loooong = ['l' + 'o' * o if o else "???" + 'ng' for o in n]
|
||||
print(loooong)
|
||||
|
||||
|
||||
if cats := len(loooong):
|
||||
print(f"got {cats} long cats")
|
||||
Regular → Executable
+28
-6
@@ -2,6 +2,8 @@
|
||||
|
||||
set -uxe
|
||||
|
||||
SERVER_SECURITY_FLAG=""
|
||||
|
||||
update_cssds() {
|
||||
cd $STEAMCMD
|
||||
./steamcmd.sh +runscript "$HOME/etc/update_cssds.txt"
|
||||
@@ -54,7 +56,7 @@ symlink_binaries() {
|
||||
|
||||
for file in *_srv.so; do
|
||||
echo "Symlinking \"$file\" to \"${file/_srv/}"
|
||||
ln -s "$file" "${file/_srv/}"
|
||||
ln -nfs "$file" "${file/_srv/}"
|
||||
done
|
||||
}
|
||||
|
||||
@@ -72,20 +74,40 @@ steamclient_binary() {
|
||||
}
|
||||
|
||||
run_cssds() {
|
||||
if [ "$SRCDS_SECURED" -eq 0 ]; then
|
||||
SERVER_SECURITY_FLAG="-insecure";
|
||||
fi
|
||||
|
||||
echo "ready to run"
|
||||
cd "$CSSDS"
|
||||
./srcds_run_64 -game cstrike +map de_dust2 -debug
|
||||
# ./srcds_run -game cstrike +map de_dust2 -debug
|
||||
# +sv_setsteamaccount "${SRCDS_TOKEN}" \
|
||||
# +tv_port "${SRCDS_TV_PORT}" \
|
||||
# +clientport "${SRCDS_CLIENT_PORT}" \
|
||||
# +rcon_password "${SRCDS_RCONPW}" \
|
||||
# +sv_password "${SRCDS_PW}" \
|
||||
# +sv_region "${SRCDS_REGION}" \
|
||||
# +fps_max "${SRCDS_FPSMAX}" \
|
||||
${SERVER_SECURITY_FLAG}
|
||||
|
||||
./srcds_run_64 -game cstrike \
|
||||
-tickrate "${SRCDS_TICKRATE}" \
|
||||
-port "${SRCDS_PORT}" \
|
||||
+maxplayers "${SRCDS_MAXPLAYERS}" \
|
||||
+map "${SRCDS_STARTMAP}" \
|
||||
-ip "${SRCDS_IP}" \
|
||||
-sv_lan 1
|
||||
}
|
||||
|
||||
main() {
|
||||
update_cssds
|
||||
update_tf2ds
|
||||
# update_cssds
|
||||
# update_tf2ds
|
||||
copy_64bit
|
||||
symlink_binaries
|
||||
steamclient_binary
|
||||
|
||||
install_metamod
|
||||
install_sourcemod
|
||||
# install_metamod
|
||||
# install_sourcemod
|
||||
|
||||
run_cssds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user