|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
3
|
|
"meta": {
|
|
展开 116 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/226/download/egg-hogwarp.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-10-20T20:24:42+02:00",
|
|
8
|
|
"name": "Hogwarp",
|
|
9
|
|
"author": "imkringle@proton.me",
|
|
10
|
|
"description": "一个用于《霍格沃茨之遗》模组Hogwarp的Pterodactyl egg - 更多信息请见他们的Nexus:https://www.nexusmods.com/hogwartslegacy/mods/1378",
|
|
11
|
|
"features": null,
|
|
12
|
|
"docker_images": {
|
|
13
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest"
|
|
14
|
|
},
|
|
15
|
|
"file_denylist": [],
|
|
16
|
|
"startup": "export WINEDLLOVERRIDES=\"mscoree=n,b;mshtml=n,b\"; wine HogWarpServer.exe",
|
|
17
|
|
"config": {
|
|
18
|
|
"files": "{\r\n \"config.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"ApiKey\": \"{{env.API_KEY}}\",\r\n \"Name\": \"{{env.SERV_NAME}}\",\r\n \"Port\": \"{{server.build.default.port}}\",\r\n \"Description\": \"{{env.SERV_DESC}}\",\r\n \"MaxPlayer\": \"{{env.MAX_PLAYERS}}\",\r\n \"IconUrl\": \"{{env.SERV_ICON}}\"\r\n }\r\n }\r\n}",
|
|
19
|
|
"startup": "{\r\n \"done\": \"Server started on port \"\r\n}",
|
|
20
|
|
"logs": "{}",
|
|
21
|
|
"stop": "^^C"
|
|
22
|
|
},
|
|
23
|
|
"scripts": {
|
|
24
|
|
"installation": {
|
|
25
|
|
"script": "#Hogwarp Install Script\r\n\r\napt update -y\r\napt install -y curl file unzip\r\n\r\nif [ ! -d /mnt/server ]; then\r\n mkdir -p /mnt/server/\r\nfi\r\n\r\ncd /mnt/server/\r\nARCHIVE_NAME=\"Hogwarp.zip\"\r\n\r\n# Validate link\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then \r\n if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncurl -sSL ${DOWNLOAD_LINK} -o $ARCHIVE_NAME\r\n\r\n# Unpack Server zip\r\n# Backup and restore logic for config.json\r\nif [ -f /mnt/server/config.json ]; then\r\n mv /mnt/server/config.json /mnt/server/config-backup.json\r\n unzip -o $ARCHIVE_NAME -d /mnt/server\r\n rm -f /mnt/server/config.json\r\n mv /mnt/server/config-backup.json /mnt/server/config.json\r\nelse\r\n unzip -o $ARCHIVE_NAME -d /mnt/server\r\nfi\r\n\r\n#Create the Plugins folder\r\nmkdir -p /mnt/server/plugins/\r\n\r\n\r\n## Install End\r\necho \"-----------------------------------------\"\r\necho \"Hogwarp Is Installed!\"\r\necho \"-----------------------------------------\"",
|
|
26
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
27
|
|
"entrypoint": "bash"
|
|
28
|
|
}
|
|
29
|
|
},
|
|
30
|
|
"variables": [
|
|
31
|
|
{
|
|
32
|
|
"name": "Wine 技巧",
|
|
33
|
|
"description": "",
|
|
34
|
|
"env_variable": "WINETRICKS_RUN",
|
|
35
|
|
"default_value": "dotnet8",
|
|
36
|
|
"user_viewable": false,
|
|
37
|
|
"user_editable": false,
|
|
38
|
|
"rules": "nullable|string",
|
|
39
|
|
"field_type": "text"
|
|
40
|
|
},
|
|
41
|
|
{
|
|
42
|
|
"name": "Hogwarp API密钥",
|
|
43
|
|
"description": "需要用于启动的API - https://presence.hogwarp.com/login \n- 如果在安装时未设置,将会失败。设置API密钥后重新安装文件。",
|
|
44
|
|
"env_variable": "API_KEY",
|
|
45
|
|
"default_value": "CHANGEME",
|
|
46
|
|
"user_viewable": true,
|
|
47
|
|
"user_editable": true,
|
|
48
|
|
"rules": "required|string",
|
|
49
|
|
"field_type": "text"
|
|
50
|
|
},
|
|
51
|
|
{
|
|
52
|
|
"name": "服务器名称",
|
|
53
|
|
"description": "在Hogwarp列表中显示的名称",
|
|
54
|
|
"env_variable": "SERV_NAME",
|
|
55
|
|
"default_value": "Ptero Hogwarp Server",
|
|
56
|
|
"user_viewable": true,
|
|
57
|
|
"user_editable": true,
|
|
58
|
|
"rules": "required|string",
|
|
59
|
|
"field_type": "text"
|
|
60
|
|
},
|
|
61
|
|
{
|
|
62
|
|
"name": "WineARCH",
|
|
63
|
|
"description": "Wine的架构类型",
|
|
64
|
|
"env_variable": "WINEARCH",
|
|
65
|
|
"default_value": "win64",
|
|
66
|
|
"user_viewable": false,
|
|
67
|
|
"user_editable": false,
|
|
68
|
|
"rules": "required",
|
|
69
|
|
"field_type": "text"
|
|
70
|
|
},
|
|
71
|
|
{
|
|
72
|
|
"name": "最大玩家数",
|
|
73
|
|
"description": "服务器的最大玩家数,这取决于你在Hogwarp的Patreon等级 \nhttps://www.patreon.com/tiltedphoques - (4, 8, 16, 无限制) 按此顺序。",
|
|
74
|
|
"env_variable": "MAX_PLAYERS",
|
|
75
|
|
"default_value": "4",
|
|
76
|
|
"user_viewable": true,
|
|
77
|
|
"user_editable": true,
|
|
78
|
|
"rules": "required|integer",
|
|
79
|
|
"field_type": "text"
|
|
80
|
|
},
|
|
81
|
|
{
|
|
82
|
|
"name": "服务器图标URL",
|
|
83
|
|
"description": "在 Hogwarps 多人游戏列表中显示的图标",
|
|
84
|
|
"env_variable": "SERV_ICON",
|
|
85
|
|
"default_value": "",
|
|
86
|
|
"user_viewable": true,
|
|
87
|
|
"user_editable": true,
|
|
88
|
|
"rules": "nullable|string",
|
|
89
|
|
"field_type": "text"
|
|
90
|
|
},
|
|
91
|
|
{
|
|
92
|
|
"name": "服务器描述",
|
|
93
|
|
"description": "在多人游戏列表中显示的描述",
|
|
94
|
|
"env_variable": "SERV_DESC",
|
|
95
|
|
"default_value": "",
|
|
96
|
|
"user_viewable": true,
|
|
97
|
|
"user_editable": true,
|
|
98
|
|
"rules": "nullable|string",
|
|
99
|
|
"field_type": "text"
|
|
100
|
|
},
|
|
101
|
|
{
|
|
102
|
|
"name": "下载链接",
|
|
103
|
|
"description": "拉取文件的URL - 默认情况下此为空。文件可在Discord中找到!",
|
|
104
|
|
"env_variable": "DOWNLOAD_URL",
|
|
105
|
|
"default_value": "",
|
|
106
|
|
"user_viewable": false,
|
|
107
|
|
"user_editable": false,
|
|
108
|
|
"rules": "nullable|string",
|
|
109
|
|
"field_type": "text"
|
|
110
|
|
},
|
|
111
|
|
{
|
|
112
|
|
"name": "WINEDEBUG",
|
|
113
|
|
"description": "",
|
|
114
|
|
"env_variable": "WINEDEBUG",
|
|
115
|
|
"default_value": "-all",
|
|
116
|
|
"user_viewable": false,
|
|
117
|
|
"user_editable": false,
|
|
118
|
|
"rules": "nullable",
|
|
119
|
|
"field_type": "text"
|
|
120
|
|
}
|
|
121
|
|
]
|
|
122
|
|
}
|