-
Notifications
You must be signed in to change notification settings - Fork 7
/
egg-cs16.json
64 lines (64 loc) · 4.3 KB
/
egg-cs16.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1"
},
"exported_at": "2021-02-27T10:33:40+01:00",
"name": "CS 1.6",
"author": "hembi@example.com",
"description": "CS 1.6 Steam server egg.\r\nCounter-Strike: 1.6 is a multiplayer first-person shooter video game developed by Valve Corporation.",
"features": null,
"image": "quay.io\/pterodactyl\/core:source",
"startup": ".\/hlds_run -pidfile hlds_{{SERVER_PORT}} -game cstrike -{{SRV_SECURE}} +port {{SERVER_PORT}} +sv_lan 0 +maxplayers {{SRV_SLOTS}} +map {{SRV_STARTMAP}} +sys_ticrate 1200 -pingboost {{SRV_PINGBOOST}} -norestart",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Connection to Steam servers successful.\",\r\n \"userInteraction\": []\r\n}",
"logs": "{\r\n \"custom\": true,\r\n \"location\": \"logs\/latest.log\"\r\n}",
"stop": "quit"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n# Image to install with is 'ubuntu:18.04'\r\napt -y update\r\napt -y --no-install-recommends install curl lib32gcc1 ca-certificates\r\napt -y --no-install-recommends DEBIAN_FRONTEND=noninteractive install tzdata\r\napt -y --no-install-recommends DEBIAN_FRONTEND=noninteractive install lib32gcc1 libsdl2-2.0-0:i386 screen wget\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\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 +@sSteamCmdForcePlatformBitness 32 +login anonymous +force_install_dir \/mnt\/server +app_update \"90 -beta Beta\" validate +quit ## looking at cs 1.6\r\n.\/steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login anonymous +force_install_dir \/mnt\/server +app_update \"90 -beta Beta\" validate +quit ## need a second\r\n.\/steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login anonymous +force_install_dir \/mnt\/server +app_update \"90 -beta Beta\" validate +quit ## need a third\r\n.\/steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login anonymous +force_install_dir \/mnt\/server +app_update \"90 -beta Beta\" validate +quit ## need a fourth\r\n.\/steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login anonymous +force_install_dir \/mnt\/server +app_update \"90 -beta Beta\" validate +quit ## and fifth time to download all file (steam bug)\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",
"container": "ubuntu:18.04",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Secure or Insecure",
"description": "",
"env_variable": "SRV_SECURE",
"default_value": "secure",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
},
{
"name": "Max Players (Slots)",
"description": "",
"env_variable": "SRV_SLOTS",
"default_value": "32",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
},
{
"name": "Startmap",
"description": "",
"env_variable": "SRV_STARTMAP",
"default_value": "de_dust2",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
},
{
"name": "Pingboost",
"description": "",
"env_variable": "SRV_PINGBOOST",
"default_value": "2",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
}
]
}