Egg Repository

Pterodactyl Community Egg Repository

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!

Read Me

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.

Yolks
NameTag
ghcr.io/ptero-eggs/games:sourceghcr.io/ptero-eggs/games:source
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Server NameSERVER_NAMECS2D ServerYesYes
Server PasswordSERVER_PASSWORDYesYes
Max PlayersSERVER_PLAYERS12YesNo
Install Script
#!/bin/bash

mkdir -p /mnt/server
cd /mnt/server

v=$(curl -s https://www.cs2d.com/download.php |  grep -Eo "https?://\S+?\"" | grep -i "get.php?get=cs2d_" | grep -i "linux") # https://www.unrealsoftware.de/get.php?get=cs2d_1013_linux.zip"
n=$(echo ${v#*=} | sed 's/"//' ) # cs2d_1013_linux.zip

c=$(curl -s https://www.unrealsoftware.de/get.php?get=${n}  |  grep -o '<a class="l_dl" href="get.php?.*">' | cut -f2 -d "<"  | awk '{print $3}' | grep -o '"[^"]*"')  # "get.php?get=cs2d_1013_linux.zip&amp;p=1&amp;cid=15745"
cid=$(echo ${c//\"/} | cut -f4 -d '=') #15745

DOWNLOAD_URL="https://www.unrealsoftware.de/get.php?get=${n}&p=1&cid=${cid}"

echo "${DOWNLOAD_URL}"

curl -sSL -o client.zip "${DOWNLOAD_URL}"

unzip -o client.zip
rm client.zip

curl -sSL -o dedicated.zip "https://www.unrealsoftware.de/files_pub/cs2d_dedicated_linux.zip"
unzip -o dedicated.zip
rm dedicated.zip

chmod +x cs2d_dedicated

echo "install finished"