|
3 | 3 | "meta": { |
4 | 4 | "version": "PTDL_v1" |
5 | 5 | }, |
6 | | - "exported_at": "2018-06-19T07:46:27-04:00", |
| 6 | + "exported_at": "2019-02-16T14:20:52-05:00", |
7 | 7 | "name": "Garrys Mod", |
8 | 8 | "author": "support@pterodactyl.io", |
9 | 9 | "description": "Garrys Mod, is a sandbox physics game created by Garry Newman, and developed by his company, Facepunch Studios.", |
10 | 10 | "image": "quay.io\/pterodactyl\/core:source", |
11 | | - "startup": ".\/srcds_run -game garrysmod -console -port {{SERVER_PORT}} +ip 0.0.0.0 +map {{SRCDS_MAP}} -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}}", |
| 11 | + "startup": ".\/srcds_run -game garrysmod -console -port {{SERVER_PORT}} +ip 0.0.0.0 +map {{SRCDS_MAP}} +gamemode {{GAMEMODE}} -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}} +host_workshop_collection {{WORKSHOP_ID}} +maxplayers {{MAX_PLAYERS}} -tickrate {{TICKRATE}}", |
12 | 12 | "config": { |
13 | 13 | "files": "{}", |
14 | 14 | "startup": "{\r\n \"done\": \"gameserver Steam ID\",\r\n \"userInteraction\": []\r\n}", |
|
17 | 17 | }, |
18 | 18 | "scripts": { |
19 | 19 | "installation": { |
20 | | - "script": "#!\/bin\/bash\n# Garry's Mod Installation Script\n#\n# Server Files: \/mnt\/server\napt -y update\napt -y --no-install-recommends install curl lib32gcc1 ca-certificates\n\ncd \/tmp\ncurl -sSL -o steamcmd.tar.gz http:\/\/media.steampowered.com\/installer\/steamcmd_linux.tar.gz\n\nmkdir -p \/mnt\/server\/steamcmd\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\ncd \/mnt\/server\/steamcmd\n\n# SteamCMD fails otherwise for some reason, even running as root.\n# This is changed at the end of the install process anyways.\nchown -R root:root \/mnt\n\nexport HOME=\/mnt\/server\n.\/steamcmd.sh +login anonymous +force_install_dir \/mnt\/server +app_update 4020 +quit\n\nmkdir -p \/mnt\/server\/.steam\/sdk32\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so", |
| 20 | + "script": "#!\/bin\/bash\r\n# Garry's Mod Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt -y update\r\napt -y --no-install-recommends install curl lib32gcc1 ca-certificates\r\n\r\ncd \/tmp\r\ncurl -sSL -o steamcmd.tar.gz http:\/\/media.steampowered.com\/installer\/steamcmd_linux.tar.gz\r\n\r\nmkdir -p \/mnt\/server\/steamcmd\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\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\n\r\nexport HOME=\/mnt\/server\r\n.\/steamcmd.sh +login anonymous +force_install_dir \/mnt\/server +app_update 4020 +quit\r\n\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/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\n\r\n\/\/ Steam Server List Settings\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", |
21 | 21 | "container": "ubuntu:16.04", |
22 | 22 | "entrypoint": "bash" |
23 | 23 | } |
|
39 | 39 | "default_value": "", |
40 | 40 | "user_viewable": 1, |
41 | 41 | "user_editable": 1, |
42 | | - "rules": "required|string|alpha_num|size:32" |
| 42 | + "rules": "nullable|string|alpha_num|size:32" |
43 | 43 | }, |
44 | 44 | { |
45 | 45 | "name": "Source AppID", |
|
49 | 49 | "user_viewable": 0, |
50 | 50 | "user_editable": 0, |
51 | 51 | "rules": "required|string|max:20" |
| 52 | + }, |
| 53 | + { |
| 54 | + "name": "Workshop ID", |
| 55 | + "description": "The ID of your workshop collection (the numbers at the end of the URL)", |
| 56 | + "env_variable": "WORKSHOP_ID", |
| 57 | + "default_value": "", |
| 58 | + "user_viewable": 1, |
| 59 | + "user_editable": 1, |
| 60 | + "rules": "nullable|integer" |
| 61 | + }, |
| 62 | + { |
| 63 | + "name": "Gamemode", |
| 64 | + "description": "The gamemode of your server.", |
| 65 | + "env_variable": "GAMEMODE", |
| 66 | + "default_value": "sandbox", |
| 67 | + "user_viewable": 1, |
| 68 | + "user_editable": 1, |
| 69 | + "rules": "required|string" |
| 70 | + }, |
| 71 | + { |
| 72 | + "name": "Max Players", |
| 73 | + "description": "The maximum amount of players allowed on your game server.", |
| 74 | + "env_variable": "MAX_PLAYERS", |
| 75 | + "default_value": "32", |
| 76 | + "user_viewable": 1, |
| 77 | + "user_editable": 1, |
| 78 | + "rules": "required|integer|max:128" |
| 79 | + }, |
| 80 | + { |
| 81 | + "name": "Tickrate", |
| 82 | + "description": "The tickrate defines how fast the server will update each entities location.", |
| 83 | + "env_variable": "TICKRATE", |
| 84 | + "default_value": "22", |
| 85 | + "user_viewable": 1, |
| 86 | + "user_editable": 1, |
| 87 | + "rules": "required|integer|max:100" |
52 | 88 | } |
53 | 89 | ] |
54 | 90 | } |
0 commit comments