{ "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "meta": { "version": "PTDL_v2", "update_url": null }, "exported_at": "2023-10-10T11:05:48+02:00", "name": "Counter-Strike 2", "author": "admin@ballaual.de", "description": "For over two decades, Counter-Strike has offered an elite competitive experience, one shaped by millions of players from across the globe. And now the next chapter in the CS story is about to begin. This is Counter-Strike 2.", "features": null, "docker_images": { "ghcr.io\/pterodactyl\/games:source": "ghcr.io\/pterodactyl\/games:source" }, "file_denylist": [], "startup": ".\/game\/bin\/linuxsteamrt64\/cs2 -dedicated +ip 0.0.0.0 -port {{SERVER_PORT}} tv_port {{TV_PORT}} -maxplayers {{MAX_PLAYERS}} +game_alias {{SRCDS_GAMEMODE}} +map {{SRCDS_MAP}} +exec autoexec", "config": { "files": "{}", "startup": "{\r\n \"done\": \"Connection to Steam servers successful\"\r\n}", "logs": "{}", "stop": "quit" }, "scripts": { "installation": { "script": "#!\/bin\/bash\r\n# Installation Script\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\ncd \/mnt\/server\/steamcmd\r\n\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## Install game using steamcmd\r\nGUARDCODE=\"${STEAM_AUTH}\"\r\nif [ -z $GUARDCODE ]\r\nthen\r\n echo \"\"\r\n echo \"### You did not specify a Steam Guardcode\"\r\n echo \"### A new one should be send to you shortly\"\r\n echo \"### Enter it in the startup-config after this installation is finished and reinstall the Server\"\r\n sleep 10\r\n timeout 60 .\/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} +quit\r\n exit 1\r\nfi\r\n\r\n.\/steamcmd.sh +force_install_dir $HOME +set_steam_guard_code ${STEAM_AUTH} +login ${STEAM_USER} ${STEAM_PASS} +app_update ${SRCDS_APPID} ${EXTRA_FLAGS} validate +quit\r\nstatus=$?\r\n\r\nif [ $status -ne 0 ]\r\nthen\r\n echo \"\"\r\n echo \"### The Download was not successful\"\r\n echo \"### Probably the entered Guardcode was wrong\"\r\n echo \"### A new one should be send to you shortly\"\r\n echo \"### Enter it in the startup-config after this installation is finished and reinstall the Server\"\r\n sleep 10\r\n sleep 10\r\n timeout 30 .\/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} +quit\r\n exit 1\r\nfi\r\n\r\n## set up 32 bit libraries\r\nmkdir -p $HOME\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p $HOME\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\nCONFIG=\/mnt\/server\/game\/csgo\/cfg\/autoexec.cfg\r\nif [ -f \"$CONFIG\" ]; then\r\n echo \"Removing existing autoexec.cfg\"\r\n rm \"$CONFIG\"\r\n echo \"Downloading autoexec.cfg template\"\r\n cd \/mnt\/server\/game\/csgo\/cfg\r\n curl -sSL -o autoexec.cfg https:\/\/raw.githubusercontent.com\/Ballaual\/eggs\/master\/game_eggs\/steamcmd_servers\/counter_strike\/counter_strike_2\/autoexec.cfg\r\nelse \r\n echo \"autoexec.cfg does not yet exist, downloading template\"\r\n cd \/mnt\/server\/game\/csgo\/cfg\/\r\n curl -sSL -o autoexec.cfg https:\/\/raw.githubusercontent.com\/Ballaual\/eggs\/master\/game_eggs\/steamcmd_servers\/counter_strike\/counter_strike_2\/autoexec.cfg\r\nfi\r\n\r\nTVCONFGIG=\/mnt\/server\/game\/csgo\/cfg\/srctv.cfg\r\nif [ -f \"$TVCONFGIG\" ]; then\r\n echo \"Removing existing srctv.cfg\"\r\n rm \"$TVCONFGIG\"\r\n echo \"Downloading srctv.cfg template\"\r\n cd \/mnt\/server\/game\/csgo\/cfg\r\n curl -sSL -o srctv.cfg https:\/\/raw.githubusercontent.com\/Ballaual\/eggs\/master\/game_eggs\/steamcmd_servers\/counter_strike\/counter_strike_2\/srctv.cfg\r\nelse \r\n echo \"srctv.cfg does not yet exist, downloading template\"\r\n cd \/mnt\/server\/game\/csgo\/cfg\/\r\n curl -sSL -o srctv.cfg https:\/\/raw.githubusercontent.com\/Ballaual\/eggs\/master\/game_eggs\/steamcmd_servers\/counter_strike\/counter_strike_2\/srctv.cfg\r\nfi", "container": "ghcr.io\/pterodactyl\/installers:debian", "entrypoint": "bash" } }, "variables": [ { "name": "Map", "description": "The default map for the server.", "env_variable": "SRCDS_MAP", "default_value": "de_dust2", "user_viewable": true, "user_editable": true, "rules": "required|string|in:de_dust2,de_mirage,de_nuke,de_overpass,de_inferno,de_ancient,de_vertigo,de_anubis,cs_italy,cs_office", "field_type": "text" }, { "name": "Source AppID", "description": "Required for game to update on server restart. Do not modify this.", "env_variable": "SRCDS_APPID", "default_value": "730", "user_viewable": false, "user_editable": false, "rules": "required|string|max:20", "field_type": "text" }, { "name": "Gamemode", "description": "The default gamemode for the server.", "env_variable": "SRCDS_GAMEMODE", "default_value": "competitive", "user_viewable": true, "user_editable": true, "rules": "required|string|in:competitive,wingman,casual,deathmatch,custom", "field_type": "text" }, { "name": "Steam Username", "description": "Your Steam-Account Username", "env_variable": "STEAM_USER", "default_value": "", "user_viewable": true, "user_editable": true, "rules": "required|string|max:64", "field_type": "text" }, { "name": "Steam Password", "description": "Your Steam-Account Password", "env_variable": "STEAM_PASS", "default_value": "", "user_viewable": true, "user_editable": true, "rules": "required|string|max:64", "field_type": "text" }, { "name": "Steam-GuardCode", "description": "Your Steam Guard Code", "env_variable": "STEAM_AUTH", "default_value": "", "user_viewable": true, "user_editable": true, "rules": "nullable|string|max:6", "field_type": "text" }, { "name": "Max Players", "description": "Specifies the maximum amount of players able to join the server.", "env_variable": "MAX_PLAYERS", "default_value": "12", "user_viewable": true, "user_editable": true, "rules": "required|numeric|min:1|max:64", "field_type": "text" }, { "name": "Auto-update server", "description": "This is to enable \/ disable auto-updating your server when restarting.\r\n\r\nDefault is 1 (enabled). Set it to 0 to disable automatic updates.", "env_variable": "AUTO_UPDATE", "default_value": "1", "user_viewable": true, "user_editable": true, "rules": "required|boolean", "field_type": "text" }, { "name": "SourceTV Port", "description": "SourceTV port used for connections to spectates games on your server.", "env_variable": "TV_PORT", "default_value": "27020", "user_viewable": true, "user_editable": true, "rules": "required|numeric", "field_type": "text" } ] }