Path: blob/1.0-develop/database/Seeders/eggs/source-engine/egg-garrys-mod.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:04:20-05:00",7"name": "Garrys Mod",8"author": "[email protected]",9"description": "Garrys Mod, is a sandbox physics game created by Garry Newman, and developed by his company, Facepunch Studios.",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 garrysmod -console -port {{SERVER_PORT}} +ip 0.0.0.0 +host_workshop_collection {{WORKSHOP_ID}} +map {{SRCDS_MAP}} +gamemode {{GAMEMODE}} -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}} +maxplayers {{MAX_PLAYERS}} -tickrate {{TICKRATE}} $( [ \"$LUA_REFRESH\" == \"1\" ] || printf %s '-disableluarefresh' )",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\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\r\n\r\n# Creating needed default files for the game\r\ncd \/mnt\/server\/garrysmod\/lua\/autorun\/server\r\necho '\r\n-- Docs: https:\/\/wiki.garrysmod.com\/page\/resource\/AddWorkshop\r\n-- Place the ID of the workshop addon you want to be downloaded to people who join your server, not the collection ID\r\n-- Use https:\/\/beta.configcreator.com\/create\/gmod\/resources.lua to easily create a list based on your collection ID\r\n\r\nresource.AddWorkshop( \"\" )\r\n' > workshop.lua\r\n\r\ncd \/mnt\/server\/garrysmod\/cfg\r\necho '\r\n\/\/ Please do not set RCon in here, use the startup parameters.\r\n\r\nhostname\t\t\"New Gmod Server\"\r\nsv_password\t\t\"\"\r\nsv_loadingurl \"\"\r\nsv_downloadurl \"\"\r\n\r\n\/\/ Steam Server List Settings\r\n\/\/ sv_location \"eu\"\r\nsv_region \"255\"\r\nsv_lan \"0\"\r\nsv_max_queries_sec_global \"30000\"\r\nsv_max_queries_window \"45\"\r\nsv_max_queries_sec \"5\"\r\n\r\n\/\/ Server Limits\r\nsbox_maxprops\t\t100\r\nsbox_maxragdolls\t5\r\nsbox_maxnpcs\t\t10\r\nsbox_maxballoons\t10\r\nsbox_maxeffects\t\t10\r\nsbox_maxdynamite\t10\r\nsbox_maxlamps\t\t10\r\nsbox_maxthrusters\t10\r\nsbox_maxwheels\t\t10\r\nsbox_maxhoverballs\t10\r\nsbox_maxvehicles\t20\r\nsbox_maxbuttons\t\t10\r\nsbox_maxsents\t\t20\r\nsbox_maxemitters\t5\r\nsbox_godmode\t\t0\r\nsbox_noclip\t\t 0\r\n\r\n\/\/ Network Settings - Please keep these set to default.\r\n\r\nsv_minrate\t\t75000\r\nsv_maxrate\t\t0\r\ngmod_physiterations\t2\r\nnet_splitpacket_maxrate\t45000\r\ndecalfrequency\t\t12 \r\n\r\n\/\/ Execute Ban Files - Please do not edit\r\nexec banned_ip.cfg \r\nexec banned_user.cfg \r\n\r\n\/\/ Add custom lines under here\r\n' > server.cfg",28"container": "ghcr.io\/pterodactyl\/installers:debian",29"entrypoint": "bash"30}31},32"variables": [33{34"name": "Map",35"description": "The default map for the server.",36"env_variable": "SRCDS_MAP",37"default_value": "gm_flatgrass",38"user_viewable": true,39"user_editable": true,40"rules": "required|string|alpha_dash"41},42{43"name": "Steam Account Token",44"description": "The Steam Account Token required for the server to be displayed publicly.",45"env_variable": "STEAM_ACC",46"default_value": "",47"user_viewable": true,48"user_editable": true,49"rules": "nullable|string|alpha_num|size:32"50},51{52"name": "Source AppID",53"description": "Required for game to update on server restart. Do not modify this.",54"env_variable": "SRCDS_APPID",55"default_value": "4020",56"user_viewable": false,57"user_editable": false,58"rules": "required|string|max:20"59},60{61"name": "Workshop ID",62"description": "The ID of your workshop collection (the numbers at the end of the URL)",63"env_variable": "WORKSHOP_ID",64"default_value": "",65"user_viewable": true,66"user_editable": true,67"rules": "nullable|integer"68},69{70"name": "Gamemode",71"description": "The gamemode of your server.",72"env_variable": "GAMEMODE",73"default_value": "sandbox",74"user_viewable": true,75"user_editable": true,76"rules": "required|string"77},78{79"name": "Max Players",80"description": "The maximum amount of players allowed on your game server.",81"env_variable": "MAX_PLAYERS",82"default_value": "32",83"user_viewable": true,84"user_editable": true,85"rules": "required|integer|max:128"86},87{88"name": "Tickrate",89"description": "The tickrate defines how fast the server will update each entity's location.",90"env_variable": "TICKRATE",91"default_value": "22",92"user_viewable": true,93"user_editable": true,94"rules": "required|integer|max:100"95},96{97"name": "Lua Refresh",98"description": "0 = disable Lua refresh,\r\n1 = enable Lua refresh",99"env_variable": "LUA_REFRESH",100"default_value": "0",101"user_viewable": true,102"user_editable": true,103"rules": "required|boolean"104}105]106}107108109