Path: blob/1.0-develop/database/Seeders/eggs/source-engine/egg-team-fortress2.json
7381 views
{1"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",2"meta": {3"version": "PTDL_v1",4"update_url": null5},6"exported_at": "2022-01-30T14:09:22-05:00",7"name": "Team Fortress 2",8"author": "[email protected]",9"description": "Team Fortress 2 is a team-based first-person shooter multiplayer video game developed and published by Valve Corporation. It is the sequel to the 1996 mod Team Fortress for Quake and its 1999 remake.",10"features": [11"gsl_token",12"steam_disk_space"13],14"images": [15"ghcr.io\/pterodactyl\/games:source"16],17"file_denylist": [],18"startup": ".\/srcds_run -game tf -console -port {{SERVER_PORT}} +map {{SRCDS_MAP}} +ip 0.0.0.0 -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}}",19"config": {20"files": "{}",21"startup": "{\r\n \"done\": \"gameserver Steam ID\"\r\n}",22"logs": "{}",23"stop": "quit"24},25"scripts": {26"installation": {27"script": "#!\/bin\/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n# Image to install with is 'debian:buster-slim'\r\n\r\n##\r\n#\r\n# Variables\r\n# STEAM_USER, STEAM_PASS, STEAM_AUTH - Steam user setup. If a user has 2fa enabled it will most likely fail due to timeout. Leave blank for anon install.\r\n# WINDOWS_INSTALL - if it's a windows server you want to install set to 1\r\n# SRCDS_APPID - steam app id ffound here - https:\/\/developer.valvesoftware.com\/wiki\/Dedicated_Servers_List\r\n# EXTRA_FLAGS - when a server has extra glas for things like beta installs or updates.\r\n#\r\n##\r\n\r\n## just in case someone removed the defaults.\r\nif [ \"${STEAM_USER}\" == \"\" ]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\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\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} ${EXTRA_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so",28"container": "ghcr.io\/pterodactyl\/installers:debian",29"entrypoint": "bash"30}31},32"variables": [33{34"name": "Game ID",35"description": "The ID corresponding to the game to download and run using SRCDS.",36"env_variable": "SRCDS_APPID",37"default_value": "232250",38"user_viewable": true,39"user_editable": false,40"rules": "required|regex:\/^(232250)$\/"41},42{43"name": "Default Map",44"description": "The default map to use when starting the server.",45"env_variable": "SRCDS_MAP",46"default_value": "cp_dustbowl",47"user_viewable": true,48"user_editable": true,49"rules": "required|regex:\/^(\\w{1,20})$\/"50},51{52"name": "Steam",53"description": "The Steam Game Server Login Token to display servers publicly. Generate one at https:\/\/steamcommunity.com\/dev\/managegameservers",54"env_variable": "STEAM_ACC",55"default_value": "",56"user_viewable": true,57"user_editable": true,58"rules": "required|string|alpha_num|size:32"59}60]61}626364