|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 106 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/73/download/egg-mount-blade-ii-bannerlord.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-01T00:04:24+00:00",
|
|
8
|
|
"name": "Mount & Blade II: Bannerlord",
|
|
9
|
|
"author": "josdekurk@gmail.com",
|
|
10
|
|
"description": "A strategy/action RPG. Create a character, engage in diplomacy, craft, trade and conquer new lands in a vast medieval sandbox. Raise armies to lead into battle and command and fight alongside your troops in massive real-time battles using a deep but intuitive skill-based combat system.",
|
|
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": "cd /home/container/bin/Win64_Shipping_Server/ && wine DedicatedCustomServer.Starter.exe /port {{SERVER_PORT}} /dedicatedcustomserverauthtoken \"{{AUTH_TOKEN}}\" /dedicatedcustomserverconfigfile tdm_config.txt _MODULES_*Native*Multiplayer*DedicatedCustomServerHelper*_MODULES_",
|
|
17
|
|
"config": {
|
|
18
|
|
"files": "{}",
|
|
19
|
|
"logs": "{}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"Custom Game server is ready! You can now enter console commands\"\r\n}",
|
|
21
|
|
"stop": "^^C"
|
|
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\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\nmkdir -p /mnt/server/Modules/Native/\r\ncd /mnt/server/Modules/Native/\r\n[ -f \"tdm_config.txt\" ] || curl -sSL -o \"tdm_config.txt\" \"https://pteropaste.com/z67k16z608ty\"\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
|
|
28
|
|
}
|
|
29
|
|
},
|
|
30
|
|
"variables": [
|
|
31
|
|
{
|
|
32
|
|
"name": "Windows",
|
|
33
|
|
"description": "",
|
|
34
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
35
|
|
"default_value": "1",
|
|
36
|
|
"user_viewable": false,
|
|
37
|
|
"user_editable": false,
|
|
38
|
|
"rules": "boolean",
|
|
39
|
|
"field_type": "text"
|
|
40
|
|
},
|
|
41
|
|
{
|
|
42
|
|
"name": "App id",
|
|
43
|
|
"description": "",
|
|
44
|
|
"env_variable": "SRCDS_APPID",
|
|
45
|
|
"default_value": "1863440",
|
|
46
|
|
"user_viewable": false,
|
|
47
|
|
"user_editable": false,
|
|
48
|
|
"rules": "required|string|in:1863440",
|
|
49
|
|
"field_type": "text"
|
|
50
|
|
},
|
|
51
|
|
{
|
|
52
|
|
"name": "Auto update",
|
|
53
|
|
"description": "Auto update the server on restart.",
|
|
54
|
|
"env_variable": "AUTO_UPDATE",
|
|
55
|
|
"default_value": "1",
|
|
56
|
|
"user_viewable": true,
|
|
57
|
|
"user_editable": true,
|
|
58
|
|
"rules": "boolean",
|
|
59
|
|
"field_type": "text"
|
|
60
|
|
},
|
|
61
|
|
{
|
|
62
|
|
"name": "[SYSTEM] WINEDEBUG",
|
|
63
|
|
"description": "don't change this !!!",
|
|
64
|
|
"env_variable": "WINEDEBUG",
|
|
65
|
|
"default_value": "-all",
|
|
66
|
|
"user_viewable": false,
|
|
67
|
|
"user_editable": false,
|
|
68
|
|
"rules": "required|string|max:64",
|
|
69
|
|
"field_type": "text"
|
|
70
|
|
},
|
|
71
|
|
{
|
|
72
|
|
"name": "[SYSTEM] WINEARCH",
|
|
73
|
|
"description": "",
|
|
74
|
|
"env_variable": "WINEARCH",
|
|
75
|
|
"default_value": "win64",
|
|
76
|
|
"user_viewable": false,
|
|
77
|
|
"user_editable": false,
|
|
78
|
|
"rules": "required|string|max:20",
|
|
79
|
|
"field_type": "text"
|
|
80
|
|
},
|
|
81
|
|
{
|
|
82
|
|
"name": "WINEPATH",
|
|
83
|
|
"description": "",
|
|
84
|
|
"env_variable": "WINEPATH",
|
|
85
|
|
"default_value": "/home/container",
|
|
86
|
|
"user_viewable": false,
|
|
87
|
|
"user_editable": false,
|
|
88
|
|
"rules": "required|string|max:32",
|
|
89
|
|
"field_type": "text"
|
|
90
|
|
},
|
|
91
|
|
{
|
|
92
|
|
"name": "WINETRICKS_RUN",
|
|
93
|
|
"description": "",
|
|
94
|
|
"env_variable": "WINETRICKS_RUN",
|
|
95
|
|
"default_value": "vcrun2019 dotnet472",
|
|
96
|
|
"user_viewable": false,
|
|
97
|
|
"user_editable": false,
|
|
98
|
|
"rules": "required|string|",
|
|
99
|
|
"field_type": "text"
|
|
100
|
|
},
|
|
101
|
|
{
|
|
102
|
|
"name": "Auth token",
|
|
103
|
|
"description": "See: https://www.youtube.com/watch?v=9Hvuz12Bfzg",
|
|
104
|
|
"env_variable": "AUTH_TOKEN",
|
|
105
|
|
"default_value": "",
|
|
106
|
|
"user_viewable": true,
|
|
107
|
|
"user_editable": true,
|
|
108
|
|
"rules": "required|string|",
|
|
109
|
|
"field_type": "text"
|
|
110
|
|
}
|
|
111
|
|
]
|
|
112
|
|
}
|