Path: blob/1.0-develop/database/Seeders/eggs/source-engine/egg-custom-source-engine-game.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-18T07:03:08-05:00",7"name": "Custom Source Engine Game",8"author": "[email protected]",9"description": "This option allows modifying the startup arguments and other details to run a custom SRCDS based game on the panel.",10"features": [11"steam_disk_space"12],13"images": [14"ghcr.io\/pterodactyl\/games:source"15],16"file_denylist": [],17"startup": ".\/srcds_run -game {{SRCDS_GAME}} -console -port {{SERVER_PORT}} +map {{SRCDS_MAP}} +ip 0.0.0.0 -strictportbind -norestart",18"config": {19"files": "{}",20"startup": "{\r\n \"done\": \"gameserver Steam ID\"\r\n}",21"logs": "{}",22"stop": "quit"23},24"scripts": {25"installation": {26"script": "#!\/bin\/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: \/mnt\/server\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\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",27"container": "ghcr.io\/pterodactyl\/installers:debian",28"entrypoint": "bash"29}30},31"variables": [32{33"name": "Game ID",34"description": "The ID corresponding to the game to download and run using SRCDS.",35"env_variable": "SRCDS_APPID",36"default_value": "",37"user_viewable": true,38"user_editable": false,39"rules": "required|numeric|digits_between:1,6"40},41{42"name": "Game Name",43"description": "The name corresponding to the game to download and run using SRCDS.",44"env_variable": "SRCDS_GAME",45"default_value": "",46"user_viewable": true,47"user_editable": false,48"rules": "required|alpha_dash|between:1,100"49},50{51"name": "Map",52"description": "The default map for the server.",53"env_variable": "SRCDS_MAP",54"default_value": "",55"user_viewable": true,56"user_editable": true,57"rules": "required|string|alpha_dash"58},59{60"name": "Steam Username",61"description": "",62"env_variable": "STEAM_USER",63"default_value": "",64"user_viewable": true,65"user_editable": true,66"rules": "nullable|string"67},68{69"name": "Steam Password",70"description": "",71"env_variable": "STEAM_PASS",72"default_value": "",73"user_viewable": true,74"user_editable": true,75"rules": "nullable|string"76},77{78"name": "Steam Auth",79"description": "",80"env_variable": "STEAM_AUTH",81"default_value": "",82"user_viewable": true,83"user_editable": true,84"rules": "nullable|string"85}86]87}888990