Skip to content

Commit fa2fad7

Browse files
HavilahOGDaneEveritt
authored andcommitted
Update egg-garrys-mod.json (pterodactyl#1483)
1 parent d9593b2 commit fa2fad7

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed

database/seeds/eggs/source-engine/egg-garrys-mod.json

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"meta": {
44
"version": "PTDL_v1"
55
},
6-
"exported_at": "2018-06-19T07:46:27-04:00",
6+
"exported_at": "2019-02-16T14:20:52-05:00",
77
"name": "Garrys Mod",
88
"author": "support@pterodactyl.io",
99
"description": "Garrys Mod, is a sandbox physics game created by Garry Newman, and developed by his company, Facepunch Studios.",
1010
"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}}",
1212
"config": {
1313
"files": "{}",
1414
"startup": "{\r\n \"done\": \"gameserver Steam ID\",\r\n \"userInteraction\": []\r\n}",
@@ -17,7 +17,7 @@
1717
},
1818
"scripts": {
1919
"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",
2121
"container": "ubuntu:16.04",
2222
"entrypoint": "bash"
2323
}
@@ -39,7 +39,7 @@
3939
"default_value": "",
4040
"user_viewable": 1,
4141
"user_editable": 1,
42-
"rules": "required|string|alpha_num|size:32"
42+
"rules": "nullable|string|alpha_num|size:32"
4343
},
4444
{
4545
"name": "Source AppID",
@@ -49,6 +49,42 @@
4949
"user_viewable": 0,
5050
"user_editable": 0,
5151
"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"
5288
}
5389
]
5490
}

0 commit comments

Comments
 (0)