CS2D
Plant and defuse bombs, rescue hostages or accomplish new missions like capture the flag or domination! Use a huge arsenal of weapons and equipment including crazy stuff like portal guns, lasers, RPGs, turrets and much more! You can even build things!
Ports
Add an allocation on the node for each port.
- Game 36963
Install
- Installer image
- ghcr.io/ptero-eggs/installers:debian
- Install script
- 36 lines
Image
- source image ghcr.io/ptero-eggs/games:source
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
3 variables
Startup command
./cs2d_dedicatedSERVER_NAMEUsers can edit
required|string|max:64
SERVER_PASSWORDUsers can edit
nullable|string|max:32
SERVER_PLAYERSUsers can see
required|string
Wings
- Stop command
- ^^C
- Running when the console shows
- ----- Server started -----
Files Wings edits
Wings sets these values in these files before each start.
sys/server.cfg file
- sv_hostport
- sv_hostport {{server.build.default.port}}
- sv_name
- sv_name {{server.build.env.SERVER_NAME}}
- sv_password
- sv_password {{server.build.env.SERVER_PASSWORD}}
- sv_maxplayers
- sv_maxplayers {{server.build.env.SERVER_PLAYERS}}
Readme
CS2D
From their Site
Documentation
Install notes
This egg only supports downloading the latest releases
Minimum RAM warning
Minimum required memory to run the server. 1GB is recommended. 2GB+ is preferred
Minumim Sorage warning
Minimum required storage to run the server. 600Mib is recommended. 2GB+ is preferred
Server Ports
Ports required to run the server in a table format.
| Port | default |
|---|---|
| Game | 36963 |
Notes
36963 is the default port, but any port can be used.
Changes
- CS2D: Update install script (#78)
· Daniel Barton · a6cb1da
- Add standalone games
· Daniel Barton · 74c706a
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 36 lines bash in ghcr.io/ptero-eggs/installers:debian Show Hide
#!/bin/bash
mkdir -p /mnt/server
cd /mnt/server
echo "Fetching latest download link from cs2d.com"
v=$(curl -s https://www.cs2d.com/download.php | grep -Eo "https?://[^\" ]+" | grep -i "get.php?get=cs2d_" | grep -i "linux") # https://www.unrealsoftware.de/get.php?get=cs2d_1014_linux.zip
n=$(echo ${v#*=} | sed 's/"//' ) # cs2d_1014_linux.zip
echo "File Name: ${n}"
# Fetch the CID value required for the download
cid=$(curl -s $v | grep -o "<a[^>]*download=\"$n\"[^>]*>" | head -1 | grep -Eo 'cid=[0-9]+')
# Assemble the direct download URL
DOWNLOAD_URL="${v}&${cid}"
echo "Direct Download URL: ${DOWNLOAD_URL}"
# Install the client files
echo "Downloading client"
curl -sSL -o client.zip "${DOWNLOAD_URL}"
unzip -o client.zip
rm client.zip
# Then install the dedicated server files
echo "Downloading dedicated server"
curl -sSL -o dedicated.zip "https://www.unrealsoftware.de/files_pub/cs2d_dedicated_linux.zip"
unzip -o dedicated.zip
rm dedicated.zip
echo "Setting file permissions"
chmod +x cs2d_dedicated
echo "install finished"