|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
3
|
|
"meta": {
|
|
展开 218 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/135/download/egg-valheim-plus-mod.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2026-01-03T15:23:08+00:00",
|
|
8
|
|
"name": "Valheim Plus Mod",
|
|
9
|
|
"author": "eggs@goover.dev",
|
|
10
|
|
"description": "A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture.",
|
|
11
|
|
"features": [
|
|
12
|
|
"steam_disk_space"
|
|
13
|
|
],
|
|
14
|
|
"docker_images": {
|
|
15
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:valheim": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:valheim"
|
|
16
|
|
},
|
|
17
|
|
"file_denylist": [],
|
|
18
|
|
"startup": "export DOORSTOP_ENABLE=TRUE; export DOORSTOP_INVOKE_DLL_PATH=./BepInEx/core/BepInEx.Preloader.dll; export DOORSTOP_CORLIB_OVERRIDE_PATH=./unstripped_corlib; export LD_LIBRARY_PATH=\"./doorstop_libs:$LD_LIBRARY_PATH\"; export LD_PRELOAD=\"libdoorstop_x64.so:$LD_PRELOAD\"; export templdpath=$LD_LIBRARY_PATH; export LD_LIBRARY_PATH=\"./linux64:$LD_LIBRARY_PATH\"; export SteamAppId=892970; export LD_LIBRARY_PATH=$templdpath; ./valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" -public {{PUBLIC_SERVER}} -saveinterval {{BACKUP_INTERVAL}} -backups {{BACKUP_COUNT}} -backupshort {{BACKUP_SHORTTIME}} -backuplong {{BACKUP_LONGTIME}} $( [[ {{ENABLE_CROSSPLAY}} -eq 1 ]] && echo \" -crossplay \") > >(sed -uE \"{{CONSOLE_FILTER}}\")",
|
|
19
|
|
"config": {
|
|
20
|
|
"files": "{}",
|
|
21
|
|
"startup": "{\n \"done\": \"DungeonDB Start\"\n}",
|
|
22
|
|
"logs": "{}",
|
|
23
|
|
"stop": "^C"
|
|
24
|
|
},
|
|
25
|
|
"scripts": {
|
|
26
|
|
"installation": {
|
|
27
|
|
"script": "#!/bin/bash\r\n# steamcmd Base Installation Script\r\n\r\nclear\r\nRED='\\033[0;31m'\r\nGREEN='\\033[0;32m'\r\nYELLOW='\\033[1;33m'\r\nBLUE='\\033[0;34m'\r\nNC='\\033[0m'\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}Valheim+ Installscript${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\n\r\n# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\r\napt -y update\r\napt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates jq wget\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\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}download and install steamcmd${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\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\necho -e \"${GREEN}...done${NC}\"\r\n\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}install Valheim with SteamCMD${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\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## 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\necho -e \"${GREEN}...done${NC}\"\r\n\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}downloading V+ from Github${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/${GITHUB_PACKAGE}/releases/latest\")\r\nRELEASES=$(curl --silent \"https://api.github.com/repos/${GITHUB_PACKAGE}/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_LINK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\r\ncd /mnt/server\r\nwget -N $DOWNLOAD_LINK\r\nunzip -o $MATCH\r\nrm -fR $MATCH\r\necho -e \"${GREEN}...done${NC}\"\r\n\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${GREEN}Installation completed${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"",
|
|
28
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
29
|
|
"entrypoint": "bash"
|
|
30
|
|
}
|
|
31
|
|
},
|
|
32
|
|
"variables": [
|
|
33
|
|
{
|
|
34
|
|
"name": "Auto Update",
|
|
35
|
|
"description": "",
|
|
36
|
|
"env_variable": "AUTO_UPDATE",
|
|
37
|
|
"default_value": "1",
|
|
38
|
|
"user_viewable": true,
|
|
39
|
|
"user_editable": true,
|
|
40
|
|
"rules": "boolean",
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "Backup Count",
|
|
45
|
|
"description": "Sets how many automatic backups will be kept. The first is the 'short' backup length, and the rest are the 'long' backup length. When default values are used means one backup that is 2 hours old, and 3 backups that are 12 hours apart. Default: 4.",
|
|
46
|
|
"env_variable": "BACKUP_COUNT",
|
|
47
|
|
"default_value": "4",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": true,
|
|
50
|
|
"rules": "required|numeric|min:0",
|
|
51
|
|
"field_type": "text"
|
|
52
|
|
},
|
|
53
|
|
{
|
|
54
|
|
"name": "Backup Interval",
|
|
55
|
|
"description": "Change how often the world will save in seconds. Default: 1800 (30 minutes).",
|
|
56
|
|
"env_variable": "BACKUP_INTERVAL",
|
|
57
|
|
"default_value": "1800",
|
|
58
|
|
"user_viewable": true,
|
|
59
|
|
"user_editable": true,
|
|
60
|
|
"rules": "required|numeric|min:0",
|
|
61
|
|
"field_type": "text"
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"name": "Backup Longtime",
|
|
65
|
|
"description": "Sets the interval between the subsequent automatic backups in seconds. Default: 43200 (12 hours).",
|
|
66
|
|
"env_variable": "BACKUP_LONGTIME",
|
|
67
|
|
"default_value": "43200",
|
|
68
|
|
"user_viewable": true,
|
|
69
|
|
"user_editable": true,
|
|
70
|
|
"rules": "required|numeric|min:0",
|
|
71
|
|
"field_type": "text"
|
|
72
|
|
},
|
|
73
|
|
{
|
|
74
|
|
"name": "Backup Shorttime",
|
|
75
|
|
"description": "Sets the interval between the first automatic backups in seconds. Default: 7200 (2 hours).",
|
|
76
|
|
"env_variable": "BACKUP_SHORTTIME",
|
|
77
|
|
"default_value": "7200",
|
|
78
|
|
"user_viewable": true,
|
|
79
|
|
"user_editable": true,
|
|
80
|
|
"rules": "required|numeric|min:0",
|
|
81
|
|
"field_type": "text"
|
|
82
|
|
},
|
|
83
|
|
{
|
|
84
|
|
"name": "[System] Console Filter",
|
|
85
|
|
"description": "Remove unwanted outputs from the console.",
|
|
86
|
|
"env_variable": "CONSOLE_FILTER",
|
|
87
|
|
"default_value": "/^\\(Filename:.*Line:[[:space:]]+[[:digit:]]+\\)$/d; /^([[:space:]]+)?$/d",
|
|
88
|
|
"user_viewable": false,
|
|
89
|
|
"user_editable": false,
|
|
90
|
|
"rules": "string",
|
|
91
|
|
"field_type": "text"
|
|
92
|
|
},
|
|
93
|
|
{
|
|
94
|
|
"name": "Enable Crossplay",
|
|
95
|
|
"description": "Enable crossplay support",
|
|
96
|
|
"env_variable": "ENABLE_CROSSPLAY",
|
|
97
|
|
"default_value": "0",
|
|
98
|
|
"user_viewable": true,
|
|
99
|
|
"user_editable": true,
|
|
100
|
|
"rules": "boolean",
|
|
101
|
|
"field_type": "text"
|
|
102
|
|
},
|
|
103
|
|
{
|
|
104
|
|
"name": "[System] Filter",
|
|
105
|
|
"description": "",
|
|
106
|
|
"env_variable": "FILTER",
|
|
107
|
|
"default_value": "/^\\(Filename:.*Line:[[:space:]]+[[:digit:]]+\\)$/d; /^([[:space:]]+)?$/d",
|
|
108
|
|
"user_viewable": false,
|
|
109
|
|
"user_editable": false,
|
|
110
|
|
"rules": "string",
|
|
111
|
|
"field_type": "text"
|
|
112
|
|
},
|
|
113
|
|
{
|
|
114
|
|
"name": "[V+] Github Package",
|
|
115
|
|
"description": "",
|
|
116
|
|
"env_variable": "GITHUB_PACKAGE",
|
|
117
|
|
"default_value": "Grantapher/ValheimPlus",
|
|
118
|
|
"user_viewable": false,
|
|
119
|
|
"user_editable": false,
|
|
120
|
|
"rules": "required|string|max:40",
|
|
121
|
|
"field_type": "text"
|
|
122
|
|
},
|
|
123
|
|
{
|
|
124
|
|
"name": "[System] LD Library Path",
|
|
125
|
|
"description": "Required to load server libraries.",
|
|
126
|
|
"env_variable": "LD_LIBRARY_PATH",
|
|
127
|
|
"default_value": "./linux64",
|
|
128
|
|
"user_viewable": false,
|
|
129
|
|
"user_editable": false,
|
|
130
|
|
"rules": "required|string",
|
|
131
|
|
"field_type": "text"
|
|
132
|
|
},
|
|
133
|
|
{
|
|
134
|
|
"name": "[V+] MATCH",
|
|
135
|
|
"description": "",
|
|
136
|
|
"env_variable": "MATCH",
|
|
137
|
|
"default_value": "UnixServer.zip",
|
|
138
|
|
"user_viewable": false,
|
|
139
|
|
"user_editable": false,
|
|
140
|
|
"rules": "required|string|max:20",
|
|
141
|
|
"field_type": "text"
|
|
142
|
|
},
|
|
143
|
|
{
|
|
144
|
|
"name": "Server Password",
|
|
145
|
|
"description": "Server password.",
|
|
146
|
|
"env_variable": "PASSWORD",
|
|
147
|
|
"default_value": "secret",
|
|
148
|
|
"user_viewable": true,
|
|
149
|
|
"user_editable": true,
|
|
150
|
|
"rules": "required|string|min:5|max:20",
|
|
151
|
|
"field_type": "text"
|
|
152
|
|
},
|
|
153
|
|
{
|
|
154
|
|
"name": "Public Server",
|
|
155
|
|
"description": "Public visibility of your server. Set it to false to make the server invisible and only joinable via the 'Join IP'-button.",
|
|
156
|
|
"env_variable": "PUBLIC_SERVER",
|
|
157
|
|
"default_value": "1",
|
|
158
|
|
"user_viewable": true,
|
|
159
|
|
"user_editable": true,
|
|
160
|
|
"rules": "boolean",
|
|
161
|
|
"field_type": "text"
|
|
162
|
|
},
|
|
163
|
|
{
|
|
164
|
|
"name": "Server Name",
|
|
165
|
|
"description": "Name that appears in server browser.",
|
|
166
|
|
"env_variable": "SERVER_NAME",
|
|
167
|
|
"default_value": "My Server",
|
|
168
|
|
"user_viewable": true,
|
|
169
|
|
"user_editable": true,
|
|
170
|
|
"rules": "required|string|max:60",
|
|
171
|
|
"field_type": "text"
|
|
172
|
|
},
|
|
173
|
|
{
|
|
174
|
|
"name": "[System] Steam AppID",
|
|
175
|
|
"description": "Valheim steam app id for auto updates.",
|
|
176
|
|
"env_variable": "SRCDS_APPID",
|
|
177
|
|
"default_value": "896660",
|
|
178
|
|
"user_viewable": true,
|
|
179
|
|
"user_editable": false,
|
|
180
|
|
"rules": "nullable|numeric",
|
|
181
|
|
"field_type": "text"
|
|
182
|
|
},
|
|
183
|
|
{
|
|
184
|
|
"name": "Beta Branch",
|
|
185
|
|
"description": "",
|
|
186
|
|
"env_variable": "SRCDS_BETAID",
|
|
187
|
|
"default_value": "",
|
|
188
|
|
"user_viewable": true,
|
|
189
|
|
"user_editable": true,
|
|
190
|
|
"rules": "max:30",
|
|
191
|
|
"field_type": "text"
|
|
192
|
|
},
|
|
193
|
|
{
|
|
194
|
|
"name": "Beta Password",
|
|
195
|
|
"description": "",
|
|
196
|
|
"env_variable": "SRCDS_BETAPASS",
|
|
197
|
|
"default_value": "",
|
|
198
|
|
"user_viewable": true,
|
|
199
|
|
"user_editable": true,
|
|
200
|
|
"rules": "max:30",
|
|
201
|
|
"field_type": "text"
|
|
202
|
|
},
|
|
203
|
|
{
|
|
204
|
|
"name": "[V+] Version",
|
|
205
|
|
"description": "",
|
|
206
|
|
"env_variable": "VERSION",
|
|
207
|
|
"default_value": "latest",
|
|
208
|
|
"user_viewable": false,
|
|
209
|
|
"user_editable": false,
|
|
210
|
|
"rules": "required|string|max:20",
|
|
211
|
|
"field_type": "text"
|
|
212
|
|
},
|
|
213
|
|
{
|
|
214
|
|
"name": "World Name",
|
|
215
|
|
"description": "Name to load if switching between multiple saved worlds.",
|
|
216
|
|
"env_variable": "WORLD",
|
|
217
|
|
"default_value": "Dedicated",
|
|
218
|
|
"user_viewable": true,
|
|
219
|
|
"user_editable": true,
|
|
220
|
|
"rules": "required|string|max:20",
|
|
221
|
|
"field_type": "text"
|
|
222
|
|
}
|
|
223
|
|
]
|
|
224
|
|
}
|