|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 56 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/141/download/egg-wurm-unlimited.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-01T00:05:08+00:00",
|
|
8
|
|
"name": "Wurm Unlimited",
|
|
9
|
|
"author": "josdekurk@gmail.com",
|
|
10
|
|
"description": "《无尽武穆》是奇幻沙盒世界《武穆Online》的独立版本,这款MMORPG由玩家主导!作为玩家影响力、工艺制作与冒险探索理念的先驱,它如今已成为内容最丰富、功能最全面的真正沙盒体验之一。",
|
|
11
|
|
"features": null,
|
|
12
|
|
"docker_images": {
|
|
13
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:debian"
|
|
14
|
|
},
|
|
15
|
|
"file_denylist": [],
|
|
16
|
|
"startup": "./WurmServerLauncher ip=0.0.0.0 externalport={{SERVER_PORT}} start={{SERVER_WORLD}} maxplayers={{MAX_PLAYERS}} servername=\"{{SERVERNAME}}\" adminpwd={{ADMINPWD}} serverpassword={{SERVERPWD}} epicsettings={{EPIC}} queryport={{QUERY_PORT}} pvp={{PVP}}",
|
|
17
|
|
"config": {
|
|
18
|
|
"files": "{\r\n \"LaunchConfig.ini\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"CleanLogsOnStart\": \"{{server.build.env.SERVER_CLEAN_LOGS_ON_START}}\"\r\n }\r\n }\r\n}",
|
|
19
|
|
"logs": "{}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"Wurm Server launcher finished at\"\r\n}",
|
|
21
|
|
"stop": "shutdown"
|
|
22
|
|
},
|
|
23
|
|
"scripts": {
|
|
24
|
|
"installation": {
|
|
25
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
26
|
|
"entrypoint": "bash",
|
|
27
|
|
"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# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\r\n#apt -y update\r\n#apt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates\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## 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# Copying steamclient.so as per https://www.wurmpedia.com/index.php/Server_administration_(Wurm_Unlimited)#Headless\r\nmkdir -p /mnt/server/nativelibs\r\ncp -v linux64/steamclient.so /mnt/server/nativelibs\r\n\r\nmkdir -p ./backup\r\ncp ./WurmServerLauncher ./backup/\r\ncp -r ./dist/Adventure ./backup/\r\ncp -r ./dist/Creative ./backup/\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
|
|
28
|
|
}
|
|
29
|
|
},
|
|
30
|
|
"variables": [
|
|
31
|
|
{
|
|
32
|
|
"name": "应用ID",
|
|
33
|
|
"description": "",
|
|
34
|
|
"env_variable": "SRCDS_APPID",
|
|
35
|
|
"default_value": "402370",
|
|
36
|
|
"user_viewable": false,
|
|
37
|
|
"user_editable": false,
|
|
38
|
|
"rules": "required|string|in:402370",
|
|
39
|
|
"field_type": "text"
|
|
40
|
|
},
|
|
41
|
|
{
|
|
42
|
|
"name": "自动更新",
|
|
43
|
|
"description": "重启时自动更新",
|
|
44
|
|
"env_variable": "AUTO_UPDATE",
|
|
45
|
|
"default_value": "1",
|
|
46
|
|
"user_viewable": true,
|
|
47
|
|
"user_editable": true,
|
|
48
|
|
"rules": "boolean",
|
|
49
|
|
"field_type": "text"
|
|
50
|
|
},
|
|
51
|
|
{
|
|
52
|
|
"name": "管理员密码",
|
|
53
|
|
"description": "解锁游戏内的管理员命令,可用于更改服务器的游戏设置,例如技能获取速率和场地生长时间。",
|
|
54
|
|
"env_variable": "ADMINPWD",
|
|
55
|
|
"default_value": "",
|
|
56
|
|
"user_viewable": true,
|
|
57
|
|
"user_editable": true,
|
|
58
|
|
"rules": "nullable|string|max:20",
|
|
59
|
|
"field_type": "text"
|
|
60
|
|
},
|
|
61
|
|
{
|
|
62
|
|
"name": "查询端口",
|
|
|
|
|
|
63
|
+
|
"description": "用于设置 Steam 查询端口(27016-27030 UDP)",
|
|
64
|
|
"env_variable": "QUERY_PORT",
|
|
65
|
|
"default_value": "",
|
|
66
|
|
"user_viewable": true,
|
|
展开 83 行未改动
|
|
67
|
|
"user_editable": false,
|
|
68
|
|
"rules": "required|int",
|
|
69
|
|
"field_type": "text"
|
|
70
|
|
},
|
|
71
|
|
{
|
|
72
|
|
"name": "服务器名称",
|
|
73
|
|
"description": "在服务器浏览器中可见的服务器名称。",
|
|
74
|
|
"env_variable": "SERVERNAME",
|
|
75
|
|
"default_value": "",
|
|
76
|
|
"user_viewable": true,
|
|
77
|
|
"user_editable": true,
|
|
78
|
|
"rules": "required|string|max:64",
|
|
79
|
|
"field_type": "text"
|
|
80
|
|
},
|
|
81
|
|
{
|
|
82
|
|
"name": "最大玩家数",
|
|
83
|
|
"description": "设置服务器允许的最大玩家数量,如果通过此命令行选项进行设置,则内部游戏命令将无法更改玩家限制。",
|
|
84
|
|
"env_variable": "MAX_PLAYERS",
|
|
85
|
|
"default_value": "25",
|
|
86
|
|
"user_viewable": true,
|
|
87
|
|
"user_editable": false,
|
|
88
|
|
"rules": "required|int",
|
|
89
|
|
"field_type": "text"
|
|
90
|
|
},
|
|
91
|
|
{
|
|
92
|
|
"name": "启用PVP",
|
|
93
|
|
"description": "",
|
|
94
|
|
"env_variable": "PVP",
|
|
95
|
|
"default_value": "true",
|
|
96
|
|
"user_viewable": true,
|
|
97
|
|
"user_editable": true,
|
|
98
|
|
"rules": "required|string|in:true,false",
|
|
99
|
|
"field_type": "text"
|
|
100
|
|
},
|
|
101
|
|
{
|
|
102
|
|
"name": "服务器密码",
|
|
103
|
|
"description": "设置尝试连接服务器时使用的密码。",
|
|
104
|
|
"env_variable": "SERVERPWD",
|
|
105
|
|
"default_value": "",
|
|
106
|
|
"user_viewable": true,
|
|
107
|
|
"user_editable": true,
|
|
108
|
|
"rules": "nullable|string|max:64",
|
|
109
|
|
"field_type": "text"
|
|
110
|
|
},
|
|
111
|
|
{
|
|
112
|
|
"name": "史诗",
|
|
113
|
|
"description": "如果为 true,服务器将遵循 Wurm Online 中 Epic 服务器的规则。例如,它将使用技能曲线。",
|
|
114
|
|
"env_variable": "EPIC",
|
|
115
|
|
"default_value": "false",
|
|
116
|
|
"user_viewable": true,
|
|
117
|
|
"user_editable": true,
|
|
118
|
|
"rules": "required|string|in:true,false",
|
|
119
|
|
"field_type": "text"
|
|
120
|
|
},
|
|
121
|
|
{
|
|
122
|
|
"name": "启动时清理日志",
|
|
123
|
|
"description": "在服务器启动时清除日志文件",
|
|
124
|
|
"env_variable": "SERVER_CLEAN_LOGS_ON_START",
|
|
125
|
|
"default_value": "true",
|
|
126
|
|
"user_viewable": true,
|
|
127
|
|
"user_editable": true,
|
|
128
|
|
"rules": "required|string|in:true,false",
|
|
129
|
|
"field_type": "text"
|
|
130
|
|
},
|
|
131
|
|
{
|
|
132
|
|
"name": "世界",
|
|
133
|
|
"description": "启动Wurm时使用的世界。默认提供的是Creative和Adventure(区分大小写)。",
|
|
134
|
|
"env_variable": "SERVER_WORLD",
|
|
135
|
|
"default_value": "dist/Adventure",
|
|
136
|
|
"user_viewable": true,
|
|
137
|
|
"user_editable": true,
|
|
138
|
|
"rules": "required|string|max:128",
|
|
139
|
|
"field_type": "text"
|
|
140
|
|
},
|
|
141
|
|
{
|
|
142
|
|
"name": "Beta",
|
|
143
|
|
"description": "公共分支留空,测试分支填写 beta。",
|
|
144
|
|
"env_variable": "SRCDS_BETAID",
|
|
145
|
|
"default_value": "",
|
|
146
|
|
"user_viewable": true,
|
|
147
|
|
"user_editable": true,
|
|
148
|
|
"rules": "nullable|string|in:,beta",
|
|
149
|
|
"field_type": "text"
|
|
150
|
|
}
|
|
151
|
|
]
|
|
152
|
|
}
|