|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 169 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/142/download/egg-zombie-survival-game-online.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-07-17T11:51:08+02:00",
|
|
8
|
|
"name": "Zombie Survival Game Online",
|
|
9
|
|
"author": "josdekurk@gmail.com",
|
|
10
|
|
"uuid": "6b6900fa-49fd-497b-982a-0cd3063adf76",
|
|
11
|
|
"description": "Zombie Survival Game Online is an open-world, post-apocalyptic, looter shooter. We aim to deliver a survival community experience that will entertain for years to come, utilizing a heavy passion for the genre & the years spent honing our development skills. Can you survive? Craft your story today!",
|
|
12
|
|
"features": [
|
|
13
|
|
"steam_disk_space"
|
|
14
|
|
],
|
|
15
|
|
"docker_images": {
|
|
16
|
|
"Proton": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:proton"
|
|
17
|
|
},
|
|
18
|
|
"file_denylist": [],
|
|
19
|
|
"startup": "proton run ZSGO/Binaries/Win64/ZSGOServer-Win64-Shipping.exe -server -log -port={{SERVER_PORT}} -queryport={{QUERY_PORT}} -multihome=0.0.0.0 & ZSGO_PID=$!; sleep 1; tail -c0 -F /home/container/ZSGO/Saved/Logs/ZSGO.log --pid=$ZSGO_PID",
|
|
20
|
|
"config": {
|
|
21
|
|
"files": "{\n \"ZSGO/Content/DedicatedServer/ServerConfig.json\": {\n \"parser\": \"json\",\n \"find\": {\n \"ServerName\": \"{{env.SERVER_NAME}}\",\n \"WorldName\": \"{{env.WORLD_NAME}}\",\n \"ServerPassword\": \"{{env.SERVER_PASSWORD}}\",\n \"ServerMap\": \"{{env.SERVER_MAP}}\",\n \"ValveAntiCheat\": \"{{env.ANTI_CHEAT}}\",\n \"MaxPlayers\": \"{{env.MAX_PLAYERS}}\",\n \"LAN\": \"{{env.LAN}}\",\n \"AdvertiseServer\": \"{{env.ADVERTISE_SERVER}}\",\n \"IsGSLTUsed\": \"{{env.USE_GSLT}}\",\n \"SteamGSLT\": \"{{env.GSLT_TOKEN}}\"\n }\n }\n}",
|
|
22
|
|
"startup": "{\n \"done\": \"IpNetDriver listening on port\"\n}",
|
|
23
|
|
"logs": "{}",
|
|
24
|
|
"stop": "^C"
|
|
25
|
|
},
|
|
26
|
|
"scripts": {
|
|
27
|
|
"installation": {
|
|
28
|
|
"script": "#!/bin/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: /mnt/server\r\n# Image to install with is 'registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian'\r\n\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; 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} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n./steamcmd.sh +force_install_dir /mnt/server/ZSGO/Binaries/Win64/ +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +quit\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## add below your custom commands if needed\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
|
|
29
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
30
|
|
"entrypoint": "bash"
|
|
31
|
|
}
|
|
32
|
|
},
|
|
33
|
|
"variables": [
|
|
34
|
|
{
|
|
35
|
|
"name": "App ID",
|
|
36
|
|
"description": "",
|
|
37
|
|
"env_variable": "SRCDS_APPID",
|
|
38
|
|
"default_value": "2536350",
|
|
39
|
|
"user_viewable": false,
|
|
40
|
|
"user_editable": false,
|
|
41
|
|
"rules": "required|string|in:2536350",
|
|
42
|
|
"field_type": "text"
|
|
43
|
|
},
|
|
44
|
|
{
|
|
45
|
|
"name": "Windows Install",
|
|
46
|
|
"description": "",
|
|
47
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
48
|
|
"default_value": "1",
|
|
49
|
|
"user_viewable": false,
|
|
50
|
|
"user_editable": false,
|
|
51
|
|
"rules": "boolean",
|
|
52
|
|
"field_type": "text"
|
|
53
|
|
},
|
|
54
|
|
{
|
|
55
|
|
"name": "Auto Update",
|
|
56
|
|
"description": "Auto Update a server on start",
|
|
57
|
|
"env_variable": "AUTO_UPDATE",
|
|
58
|
|
"default_value": "1",
|
|
59
|
|
"user_viewable": true,
|
|
60
|
|
"user_editable": true,
|
|
61
|
|
"rules": "boolean",
|
|
62
|
|
"field_type": "text"
|
|
63
|
|
},
|
|
64
|
|
{
|
|
65
|
|
"name": "Query Port",
|
|
66
|
|
"description": "",
|
|
67
|
|
"env_variable": "QUERY_PORT",
|
|
68
|
|
"default_value": "27015",
|
|
69
|
|
"user_viewable": true,
|
|
70
|
|
"user_editable": false,
|
|
71
|
|
"rules": "required|numeric",
|
|
72
|
|
"field_type": "text"
|
|
73
|
|
},
|
|
74
|
|
{
|
|
75
|
|
"name": "Server Name",
|
|
76
|
|
"description": "Changes the server name visible in the server list.",
|
|
77
|
|
"env_variable": "SERVER_NAME",
|
|
78
|
|
"default_value": "Default ZSGO Server",
|
|
79
|
|
"user_viewable": true,
|
|
80
|
|
"user_editable": true,
|
|
81
|
|
"rules": "required|string|min:5|max:128",
|
|
82
|
|
"field_type": "text"
|
|
83
|
|
},
|
|
84
|
|
{
|
|
85
|
|
"name": "World Name",
|
|
86
|
|
"description": "Changes the world name, visible in the server list (currently does not do anything).",
|
|
87
|
|
"env_variable": "WORLD_NAME",
|
|
88
|
|
"default_value": "Zombie Survival Game Online",
|
|
89
|
|
"user_viewable": true,
|
|
90
|
|
"user_editable": true,
|
|
91
|
|
"rules": "required|string|min:5|max:128",
|
|
92
|
|
"field_type": "text"
|
|
93
|
|
},
|
|
94
|
|
{
|
|
95
|
|
"name": "Server Password",
|
|
96
|
|
"description": "Sets your server password. NoConfiguredPassword must be in this field for it to be a public, password-less server.",
|
|
97
|
|
"env_variable": "SERVER_PASSWORD",
|
|
98
|
|
"default_value": "NoConiguredPassword",
|
|
99
|
|
"user_viewable": true,
|
|
100
|
|
"user_editable": true,
|
|
101
|
|
"rules": "nullable|alpha_dash|max:128",
|
|
102
|
|
"field_type": "text"
|
|
103
|
|
},
|
|
104
|
|
{
|
|
105
|
|
"name": "Anti Cheat",
|
|
106
|
|
"description": "True or False. Enables VAC protection for your server.",
|
|
107
|
|
"env_variable": "ANTI_CHEAT",
|
|
108
|
|
"default_value": "true",
|
|
109
|
|
"user_viewable": true,
|
|
110
|
|
"user_editable": true,
|
|
111
|
|
"rules": "required|string|in:true,false",
|
|
112
|
|
"field_type": "text"
|
|
113
|
|
},
|
|
114
|
|
{
|
|
115
|
|
"name": "Max Players",
|
|
116
|
|
"description": "Default 4. Can go up to 32 (we recommend a maximum of 20, however you can go higher. Do so at your own risk!).",
|
|
117
|
|
"env_variable": "MAX_PLAYERS",
|
|
118
|
|
"default_value": "4",
|
|
119
|
|
"user_viewable": true,
|
|
120
|
|
"user_editable": true,
|
|
121
|
|
"rules": "required|numeric|between:1,32",
|
|
122
|
|
"field_type": "text"
|
|
123
|
|
},
|
|
124
|
|
{
|
|
125
|
|
"name": "LAN",
|
|
126
|
|
"description": "Sets whether the server is visible in the LAN server list only or not.",
|
|
127
|
|
"env_variable": "LAN",
|
|
128
|
|
"default_value": "false",
|
|
129
|
|
"user_viewable": true,
|
|
130
|
|
"user_editable": true,
|
|
131
|
|
"rules": "required|string|in:true,false",
|
|
132
|
|
"field_type": "text"
|
|
133
|
|
},
|
|
134
|
|
{
|
|
135
|
|
"name": "Advertise Server",
|
|
136
|
|
"description": "True or False. Sets whether the server will show up in any server list or not. Useful for if you want to have a public, password-less server, but require joining via IP address.",
|
|
137
|
|
"env_variable": "ADVERTISE_SERVER",
|
|
138
|
|
"default_value": "true",
|
|
139
|
|
"user_viewable": true,
|
|
140
|
|
"user_editable": true,
|
|
141
|
|
"rules": "required|string|in:true,false",
|
|
142
|
|
"field_type": "text"
|
|
143
|
|
},
|
|
144
|
|
{
|
|
145
|
|
"name": "Server Map",
|
|
146
|
|
"description": "The map of the server",
|
|
147
|
|
"env_variable": "SERVER_MAP",
|
|
148
|
|
"default_value": "MainLevel",
|
|
149
|
|
"user_viewable": true,
|
|
150
|
|
"user_editable": true,
|
|
151
|
|
"rules": "required|string",
|
|
152
|
|
"field_type": "text"
|
|
153
|
|
},
|
|
154
|
|
{
|
|
155
|
|
"name": "Use GSLT",
|
|
156
|
|
"description": "If you want to use a steam GSLT token.",
|
|
157
|
|
"env_variable": "USE_GSLT",
|
|
158
|
|
"default_value": "false",
|
|
159
|
|
"user_viewable": true,
|
|
160
|
|
"user_editable": true,
|
|
161
|
|
"rules": "required|string|in:false,true",
|
|
162
|
|
"field_type": "text"
|
|
163
|
|
},
|
|
164
|
|
{
|
|
165
|
|
"name": "GSLT Token",
|
|
166
|
|
"description": "The Steam GSLT token, for this Use GSLT must be set to true.",
|
|
167
|
|
"env_variable": "GSLT_TOKEN",
|
|
168
|
|
"default_value": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
169
|
|
"user_viewable": true,
|
|
170
|
|
"user_editable": true,
|
|
171
|
|
"rules": "nullable|string",
|
|
172
|
|
"field_type": "text"
|
|
173
|
|
}
|
|
174
|
|
]
|
|
175
|
|
}
|