|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 78 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/130/download/egg-euro-truck-simulator-2-dedicated-server.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-01T00:04:12+00:00",
|
|
8
|
|
"name": "Euro Truck Simulator 2 Dedicated server",
|
|
9
|
|
"author": "josdekurk@gmail.com",
|
|
10
|
|
"description": "Travel across Europe as king of the road, a trucker who delivers important cargo across impressive distances! With dozens of cities to explore, your endurance, skill and speed will all be pushed to their limits.",
|
|
11
|
|
"features": [
|
|
12
|
|
"steam_disk_space"
|
|
13
|
|
],
|
|
14
|
|
"docker_images": {
|
|
15
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:debian"
|
|
16
|
|
},
|
|
17
|
|
"file_denylist": [],
|
|
18
|
|
"startup": "./bin/linux_x64/eurotrucks2_server",
|
|
19
|
|
"config": {
|
|
20
|
|
"files": "{\r\n \"/.local/share/Euro Truck Simulator 2/server_config.sii\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \" connection_dedicated_port:\": \" connection_dedicated_port: {{server.build.default.port}}\",\r\n \" query_dedicated_port:\": \" query_dedicated_port: {{env.QUERY_PORT}}\",\r\n \" server_logon_token:\": \" server_logon_token: \\\"{{env.STEAM_TOKEN}}\\\"\",\r\n \" lobby_name:\": \" lobby_name: \\\"{{env.LOBBY_NAME}}\\\"\"\r\n }\r\n }\r\n}",
|
|
21
|
|
"logs": "{}",
|
|
22
|
|
"startup": "{\r\n \"done\": \"[MP] State: running\"\r\n}",
|
|
23
|
|
"stop": "^^C"
|
|
24
|
|
},
|
|
25
|
|
"scripts": {
|
|
26
|
|
"installation": {
|
|
27
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
28
|
|
"entrypoint": "bash",
|
|
29
|
|
"script": "#!/bin/bash\r\n# steamcmd Base Installation Script\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} +app_update ${SRCDS_APPID} 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\nmkdir -p /mnt/server/.local/share/\"Euro Truck Simulator 2\"/\r\n\r\nCONFIG_FILE=/mnt/server/.local/share/\"Euro Truck Simulator 2\"/server_config.sii\r\nif [ ! -f \"$CONFIG_FILE\" ]; then\r\n cd /mnt/server/.local/share/\"Euro Truck Simulator 2\"/\r\n echo \"a config file does not yet exist making one!\"\r\n curl -sSL -o server_config.sii https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/truck-simulator/server_config.sii\r\nfi\r\n\r\nPACKAGE_FILE=/mnt/server/.local/share/\"Euro Truck Simulator 2\"/server_packages.sii\r\nif [ ! -f \"$PACKAGE_FILE\" ]; then\r\n cd /mnt/server/.local/share/\"Euro Truck Simulator 2\"/\r\n echo \"a server_packages.sii file does not yet exist making one!\"\r\n curl -sSL -o server_packages.sii https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/truck-simulator/euro-truck-simulator2/ets2-files/server_packages.sii\r\nfi\r\n\r\nDATA_FILE=/mnt/server/.local/share/\"Euro Truck Simulator 2\"/server_packages.dat\r\nif [ ! -f \"$DATA_FILE\" ]; then\r\n cd /mnt/server/.local/share/\"Euro Truck Simulator 2\"/\r\n echo \"a server_packages.dat file does not yet exist making one!\"\r\n curl -sSL -o server_packages.dat https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/truck-simulator/euro-truck-simulator2/ets2-files/server_packages.dat\r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
|
|
30
|
|
}
|
|
31
|
|
},
|
|
32
|
|
"variables": [
|
|
33
|
|
{
|
|
34
|
|
"name": "Auto update",
|
|
35
|
|
"description": "Auto update the server on startup",
|
|
36
|
|
"env_variable": "AUTO_UPDATE",
|
|
37
|
|
"default_value": "1",
|
|
38
|
|
"user_viewable": true,
|
|
39
|
|
"user_editable": true,
|
|
40
|
|
"rules": "boolean",
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "App ID",
|
|
45
|
|
"description": "",
|
|
46
|
|
"env_variable": "SRCDS_APPID",
|
|
47
|
|
"default_value": "1948160",
|
|
48
|
|
"user_viewable": false,
|
|
49
|
|
"user_editable": false,
|
|
50
|
|
"rules": "required|string|in:1948160",
|
|
51
|
|
"field_type": "text"
|
|
52
|
|
},
|
|
53
|
|
{
|
|
54
|
|
"name": "Query port",
|
|
55
|
|
"description": "By there readme of the game the query port must be between 27015-27020, but from our testing this port can be any port",
|
|
56
|
|
"env_variable": "QUERY_PORT",
|
|
57
|
|
"default_value": "27016",
|
|
58
|
|
"user_viewable": true,
|
|
59
|
|
"user_editable": false,
|
|
60
|
|
"rules": "required|string",
|
|
61
|
|
"field_type": "text"
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"name": "Steam Auth token",
|
|
65
|
|
"description": "By default, whenever a dedicated server is launched it is using an anonymous account. For such an account non-persistent server id is generated (used for direct search). To avoid this you can acquire a logon token on https://steamcommunity.com/dev/managegameservers (game ownership is required)",
|
|
66
|
|
"env_variable": "STEAM_TOKEN",
|
|
67
|
|
"default_value": "",
|
|
68
|
|
"user_viewable": true,
|
|
69
|
|
"user_editable": true,
|
|
70
|
|
"rules": "nullable|string|max:32",
|
|
71
|
|
"field_type": "text"
|
|
72
|
|
},
|
|
73
|
|
{
|
|
74
|
|
"name": "Lobby name",
|
|
75
|
|
"description": "",
|
|
76
|
|
"env_variable": "LOBBY_NAME",
|
|
77
|
|
"default_value": "Euro Truck Simulator 2 server",
|
|
78
|
|
"user_viewable": true,
|
|
79
|
|
"user_editable": true,
|
|
80
|
|
"rules": "required|string|max:64",
|
|
81
|
|
"field_type": "text"
|
|
82
|
|
}
|
|
83
|
|
]
|
|
84
|
|
}
|