|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 56 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/260/download/egg-et-legacy.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-01T00:17:36+00:00",
|
|
8
|
|
"name": "ET Legacy",
|
|
9
|
|
"author": "parker@parkervcp.com",
|
|
10
|
|
"description": "欢迎来到 Enemy Territory: Legacy,这是一个开源项目,旨在为广受欢迎的在线第一人称射击游戏 Wolfenstein: Enemy Territory 打造完全兼容的客户端和服务器端——尽管这款游戏年代久远,但其玩法至今仍被许多人认为无可匹敌。",
|
|
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": "./etlded +set net_port {{SERVER_PORT}} +map {{MAP}} +set omnibot_enable {{OMNIBOT}} $(if [ \"${OMNIBOT}\" == \"1\" ]; then echo '+set omnibot_path \"./legacy/omni-bot\"'; fi) + exec etl_server.cfg",
|
|
17
|
|
"config": {
|
|
18
|
|
"files": "{\r\n \"etmain/etl_server.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"//set net_ip \\\"\\\"\": \"set net_ip \\\"0.0.0.0\\\"\",\r\n \"//set net_port \\\"27960\\\"\": \"set net_port \\\"{{server.build.default.port}}\\\"\"\r\n }\r\n }\r\n}",
|
|
19
|
|
"logs": "{}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"Game Initialization completed in\"\r\n}",
|
|
21
|
|
"stop": "quit"
|
|
22
|
|
},
|
|
23
|
|
"scripts": {
|
|
24
|
|
"installation": {
|
|
25
|
|
"script": "#!/bin/bash\r\n\r\ncd /mnt/server\r\n\r\necho \"Downloading $ET_VERSION bit ET Legacy version\"\r\n\r\nif [ $ET_VERSION == \"32\" ];then \r\n DOWNLOAD_URL=$(curl -s https://www.etlegacy.com/download | grep \"i386 archive\" | grep -Eoi '<a [^>]+>' | grep -Eo 'href=\"[^\\\"]+\"' | grep -Eo '(http|https)://[^\"]+')\r\n EXTENTION=i386\r\nelse\r\n DOWNLOAD_URL=$(curl -s https://www.etlegacy.com/download | grep \"x86_64 archive\" | grep -Eoi '<a [^>]+>' | grep -Eo 'href=\"[^\\\"]+\"' | grep -Eo '(http|https)://[^\"]+')\r\n EXTENTION=x86_64\r\nfi\r\n\r\necho \"Download URL: ${DOWNLOAD_URL}\"\r\ncurl -sSL -o etlegacy.tar.gz ${DOWNLOAD_URL}\r\n\r\necho \"Unpacking ET: Legacy\"\r\ntar xvf etlegacy.tar.gz --strip-components=1 \r\nrm etlegacy.tar.gz\r\n\r\n\r\nE_DOWNLOAD_URL=$(curl -s https://www.splashdamage.com/games/wolfenstein-enemy-territory/ | grep .x86_full | grep -Eoi '<a [^>]+>' | grep -Eo 'href=\"[^\\\"]+\"' | grep -Eo --color=never '(http|https)://[^\"]+')\r\n\r\necho \"Downloading latest enemy territory files from: ${E_DOWNLOAD_URL}\"\r\ncurl -sSL -o enemy_territory.zip ${E_DOWNLOAD_URL}\r\n\r\necho \"Unpacking enemy territory files\"\r\nunzip -o enemy_territory.zip\r\nrm enemy_territory.zip\r\n\r\necho \"Copying enemy territory assets\"\r\n./*.x86_keygen_V03.run --tar xvf ./etmain/\r\n#cp etmain/pak*.pk3 /mnt/server/etmain/\r\n\r\n# Create .etlegacy as the server doesn't correctly create it\r\nmkdir -p /mnt/server/.etlegacy\r\n\r\nrm *.run\r\n\r\nmv etlded.${EXTENTION} etlded\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
|
|
26
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
27
|
|
"entrypoint": "bash"
|
|
28
|
|
}
|
|
29
|
|
},
|
|
30
|
|
"variables": [
|
|
31
|
|
{
|
|
32
|
|
"name": "ET Legacy 版本",
|
|
33
|
|
"description": "要安装的服务器版本。32位或64位版本。",
|
|
34
|
|
"env_variable": "ET_VERSION",
|
|
35
|
|
"default_value": "64",
|
|
36
|
|
"user_viewable": true,
|
|
37
|
|
"user_editable": true,
|
|
38
|
|
"rules": "required|integer|in:32,64",
|
|
39
|
|
"field_type": "text"
|
|
40
|
|
},
|
|
41
|
|
{
|
|
42
|
|
"name": "默认地图",
|
|
43
|
|
"description": "启动服务器时使用的默认地图。",
|
|
44
|
|
"env_variable": "MAP",
|
|
45
|
|
"default_value": "oasis",
|
|
46
|
|
"user_viewable": true,
|
|
47
|
|
"user_editable": true,
|
|
48
|
|
"rules": "required|string|max:20",
|
|
49
|
|
"field_type": "text"
|
|
50
|
|
},
|
|
51
|
|
{
|
|
52
|
|
"name": "启用 Omnibot",
|
|
53
|
|
"description": "",
|
|
54
|
|
"env_variable": "OMNIBOT",
|
|
55
|
|
"default_value": "1",
|
|
56
|
|
"user_viewable": true,
|
|
57
|
|
"user_editable": true,
|
|
58
|
|
"rules": "required|boolean",
|
|
59
|
|
"field_type": "text"
|
|
60
|
|
}
|
|
61
|
|
]
|
|
62
|
|
}
|