|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 176 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/74/download/egg-myth-of-empires.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-01T00:04:23+00:00",
|
|
8
|
|
"name": "Myth of Empires",
|
|
9
|
|
"author": "josdekurk@gmail.com",
|
|
10
|
|
"description": "Myth of Empires is a multiplayer war sandbox game featuring a high degree of freedom. Players must survive, craft, create, and lead troops in their quest to conquer territory and build their own empire.",
|
|
11
|
|
"features": null,
|
|
12
|
|
"docker_images": {
|
|
13
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:proton": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:proton"
|
|
14
|
|
},
|
|
15
|
|
"file_denylist": [],
|
|
16
|
|
"startup": "export PROTON_USE_WINED3D=1; export PROTON_NO_ESYNC=1; proton run MOE/Binaries/Win64/MOEServer.exe {{MAP_NAME}} -game -server -DataLocalFile -NotCheckServerSteamAuth -LOCALLOGTIMES -PrivateServer -MultiHome=0.0.0.0 -OutAddress={{SERVER_IP}} -SessionName=\"{{SERVER_NAME}}\" -GameServerPVPType={{PVP}} -MaxPlayers={{MAX_PLAYERS}} -MapDifficultyRate=1 -UseACE -EnableVACBan=1 -ServerId={{SERVER_ID}} -ClusterId={{CLUSTER_ID}} -Port={{SERVER_PORT}} -QueryPort={{QUERY_PORT}} -bStartShutDownServiceInPrivateServer={{SHUTDOWN_SERVICE}} -ShutDownServiceIP=127.0.0.1 -ShutDownServicePort={{RCON_PORT}} -ShutDownServiceKey=\"{{RCON_PASSWORD}}\" -ServerAdminAccounts=\"{{ADMIN_IDS}}\" {{EXTRA_FLAGS}}",
|
|
17
|
|
"config": {
|
|
18
|
|
"files": "{}",
|
|
19
|
|
"logs": "{}",
|
|
20
|
|
"startup": "{\r\n \"done\": \"LogInit: Display: Starting Game.\"\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\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\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## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
|
|
28
|
|
}
|
|
29
|
|
},
|
|
30
|
|
"variables": [
|
|
31
|
|
{
|
|
32
|
|
"name": "App ID",
|
|
33
|
|
"description": "",
|
|
34
|
|
"env_variable": "SRCDS_APPID",
|
|
35
|
|
"default_value": "1794810",
|
|
36
|
|
"user_viewable": false,
|
|
37
|
|
"user_editable": false,
|
|
38
|
|
"rules": "required|string|in:1794810",
|
|
39
|
|
"field_type": "text"
|
|
40
|
|
},
|
|
41
|
|
{
|
|
42
|
|
"name": "Install Windows version",
|
|
43
|
|
"description": "",
|
|
44
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
45
|
|
"default_value": "1",
|
|
46
|
|
"user_viewable": false,
|
|
47
|
|
"user_editable": false,
|
|
48
|
|
"rules": "required|in:1",
|
|
49
|
|
"field_type": "text"
|
|
50
|
|
},
|
|
51
|
|
{
|
|
52
|
|
"name": "Auto Update",
|
|
53
|
|
"description": "Auto update the server on startup",
|
|
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": "Map Name",
|
|
63
|
|
"description": "",
|
|
64
|
|
"env_variable": "MAP_NAME",
|
|
65
|
|
"default_value": "LargeTerrain_Central_Main",
|
|
66
|
|
"user_viewable": true,
|
|
67
|
|
"user_editable": true,
|
|
68
|
|
"rules": "required|string|in:LargeTerrain_Central_Main,LargeTerrain_Central2_Main",
|
|
69
|
|
"field_type": "text"
|
|
70
|
|
},
|
|
71
|
|
{
|
|
72
|
|
"name": "Server Name",
|
|
73
|
|
"description": "The name of the server",
|
|
74
|
|
"env_variable": "SERVER_NAME",
|
|
75
|
|
"default_value": "A Pterodactyl hosted server",
|
|
76
|
|
"user_viewable": true,
|
|
77
|
|
"user_editable": true,
|
|
78
|
|
"rules": "required|string|max:80",
|
|
79
|
|
"field_type": "text"
|
|
80
|
|
},
|
|
81
|
|
{
|
|
82
|
|
"name": "Enable PVP",
|
|
83
|
|
"description": "Enable or disable PVP",
|
|
84
|
|
"env_variable": "PVP",
|
|
85
|
|
"default_value": "1",
|
|
86
|
|
"user_viewable": true,
|
|
87
|
|
"user_editable": true,
|
|
88
|
|
"rules": "boolean",
|
|
89
|
|
"field_type": "text"
|
|
90
|
|
},
|
|
91
|
|
{
|
|
92
|
|
"name": "Max Players",
|
|
93
|
|
"description": "",
|
|
94
|
|
"env_variable": "MAX_PLAYERS",
|
|
95
|
|
"default_value": "25",
|
|
96
|
|
"user_viewable": true,
|
|
97
|
|
"user_editable": true,
|
|
98
|
|
"rules": "required|numeric|between:1,150",
|
|
99
|
|
"field_type": "text"
|
|
100
|
|
},
|
|
101
|
|
{
|
|
102
|
|
"name": "Query Port",
|
|
103
|
|
"description": "",
|
|
104
|
|
"env_variable": "QUERY_PORT",
|
|
105
|
|
"default_value": "12888",
|
|
106
|
|
"user_viewable": true,
|
|
107
|
|
"user_editable": false,
|
|
108
|
|
"rules": "required|numeric",
|
|
109
|
|
"field_type": "text"
|
|
110
|
|
},
|
|
111
|
|
{
|
|
112
|
|
"name": "Shutdown Service",
|
|
113
|
|
"description": "",
|
|
114
|
|
"env_variable": "SHUTDOWN_SERVICE",
|
|
115
|
|
"default_value": "1",
|
|
116
|
|
"user_viewable": true,
|
|
117
|
|
"user_editable": true,
|
|
118
|
|
"rules": "boolean",
|
|
119
|
|
"field_type": "text"
|
|
120
|
|
},
|
|
121
|
|
{
|
|
122
|
|
"name": "RCON Port",
|
|
123
|
|
"description": "",
|
|
124
|
|
"env_variable": "RCON_PORT",
|
|
125
|
|
"default_value": "13888",
|
|
126
|
|
"user_viewable": true,
|
|
127
|
|
"user_editable": false,
|
|
128
|
|
"rules": "required|int",
|
|
129
|
|
"field_type": "text"
|
|
130
|
|
},
|
|
131
|
|
{
|
|
132
|
|
"name": "RCON Password",
|
|
133
|
|
"description": "",
|
|
134
|
|
"env_variable": "RCON_PASSWORD",
|
|
135
|
|
"default_value": "",
|
|
136
|
|
"user_viewable": true,
|
|
137
|
|
"user_editable": true,
|
|
138
|
|
"rules": "required|alpha_dash|min:5|max:32",
|
|
139
|
|
"field_type": "text"
|
|
140
|
|
},
|
|
141
|
|
{
|
|
142
|
|
"name": "Admin ID's",
|
|
143
|
|
"description": "Steam admin ID list",
|
|
144
|
|
"env_variable": "ADMIN_IDS",
|
|
145
|
|
"default_value": "",
|
|
146
|
|
"user_viewable": true,
|
|
147
|
|
"user_editable": true,
|
|
148
|
|
"rules": "nullable|string|max:128",
|
|
149
|
|
"field_type": "text"
|
|
150
|
|
},
|
|
151
|
|
{
|
|
152
|
|
"name": "Extra Flags",
|
|
153
|
|
"description": "Extra flags.All starting with a -\r\nexample: -ServerLevelAddMul=1.01",
|
|
154
|
|
"env_variable": "EXTRA_FLAGS",
|
|
155
|
|
"default_value": "",
|
|
156
|
|
"user_viewable": true,
|
|
157
|
|
"user_editable": true,
|
|
158
|
|
"rules": "nullable|string|",
|
|
159
|
|
"field_type": "text"
|
|
160
|
|
},
|
|
161
|
|
{
|
|
162
|
|
"name": "Cluster ID",
|
|
163
|
|
"description": "",
|
|
164
|
|
"env_variable": "CLUSTER_ID",
|
|
165
|
|
"default_value": "1",
|
|
166
|
|
"user_viewable": true,
|
|
167
|
|
"user_editable": true,
|
|
168
|
|
"rules": "required|numeric",
|
|
169
|
|
"field_type": "text"
|
|
170
|
|
},
|
|
171
|
|
{
|
|
172
|
|
"name": "Server ID",
|
|
173
|
|
"description": "",
|
|
174
|
|
"env_variable": "SERVER_ID",
|
|
175
|
|
"default_value": "100",
|
|
176
|
|
"user_viewable": true,
|
|
177
|
|
"user_editable": true,
|
|
178
|
|
"rules": "required|numeric",
|
|
179
|
|
"field_type": "text"
|
|
180
|
|
}
|
|
181
|
|
]
|
|
182
|
|
}
|