|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
3
|
|
"meta": {
|
|
展开 86 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/140/download/egg-wreckfest-2.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2026-06-22T20:29:01+00:00",
|
|
8
|
|
"name": "Wreckfest 2",
|
|
9
|
|
"author": "djjoker13@gmail.com",
|
|
10
|
|
"description": "Ready for mayhem? Wreckfest is back, offering the best in full-contact racing with unrivaled destruction! Witness head-to-head battles as you tear apart rival vehicles bit by bit. Powered by the enhanced physics engine, developed by the creators of Wreckfest & FlatOut!",
|
|
11
|
|
"features": null,
|
|
12
|
|
"docker_images": {
|
|
13
|
|
"Wine Latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest"
|
|
14
|
|
},
|
|
15
|
|
"file_denylist": [],
|
|
16
|
|
"startup": "mkdir -p /home/container/save; rm -f /home/container/server.log; touch /home/container/server.log; echo ${STEAM_APPID_FILE:-1203190} > /home/container/steam_appid.txt; (Xvfb :99 -screen 0 1024x768x24 -ac & XVFB_PID=$!; tail -n +1 -F /home/container/server.log & LOG_PID=$!; export DISPLAY=:99; trap \"kill ${LOG_PID} ${XVFB_PID} 2>/dev/null\" EXIT; wine ./Wreckfest2.exe --server --save-dir=\"$(winepath -w /home/container/save)\")",
|
|
17
|
|
"config": {
|
|
18
|
|
"files": "{\r\n \"save/server_config.scnf\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"net server config.0.name\": \"{{server.build.env.SERVER_NAME}}\",\r\n \"net server config.0.password\": \"{{server.build.env.SERVER_PASSWORD}}\",\r\n \"net server config.0.game port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}",
|
|
19
|
|
"startup": "{\r\n \"done\": \"Server Started\"\r\n}",
|
|
20
|
|
"logs": "{}",
|
|
21
|
|
"stop": "^C"
|
|
22
|
|
},
|
|
23
|
|
"scripts": {
|
|
24
|
|
"installation": {
|
|
25
|
|
"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# Variables\r\n# STEAM_USER, STEAM_PASS, STEAM_AUTH - Steam user setup. If a user has 2fa enabled it will most likely fail due to timeout. Leave blank for anon install.\r\n# WINDOWS_INSTALL - if it's a windows server you want to install set to 1\r\n# SRCDS_APPID - steam app id found here - https://developer.valvesoftware.com/wiki/Dedicated_Servers_List\r\n# SRCDS_BETAID - beta branch of a steam app. Leave blank to install normal branch\r\n# SRCDS_BETAPASS - password for a beta branch should one be required during private or closed testing phases.. Leave blank for no password.\r\n# INSTALL_FLAGS - Any additional SteamCMD flags to pass during install.. Keep in mind that steamcmd auto update process in the docker image might overwrite or ignore these when it performs update on server boot.\r\n# AUTO_UPDATE - Adding this variable to the egg allows disabling or enabling automated updates on boot. Boolean value. 0 to disable and 1 to enable.\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\necho ${STEAM_APPID_FILE:-1203190} > /mnt/server/steam_appid.txt\r\nmkdir -p /mnt/server/save\r\ncd /mnt/server/save\r\nCONFIG_URL=\"https://raw.githubusercontent.com/pelican-eggs/games-steamcmd/main/wreckfest_2/server_config.scnf\"\r\nif [ ! -z \"$CONFIG_URL\" ]; then\r\n if [ ! -f \"/mnt/server/save/server_config.scnf\" ]; then\r\n echo \"Downloading config from GitHub...\"\r\n curl -sSL -o server_config.scnf \"$CONFIG_URL\"\r\n else\r\n echo \"Config file already exists, skipping download.\"\r\n fi\r\nfi\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": "Server App ID",
|
|
33
|
|
"description": "SteamCMD app ID for the Wreckfest 2 Dedicated Server tool.",
|
|
34
|
|
"env_variable": "SRCDS_APPID",
|
|
35
|
|
"default_value": "3519390",
|
|
36
|
|
"user_viewable": true,
|
|
37
|
|
"user_editable": true,
|
|
38
|
|
"rules": "required|string|in:3519390",
|
|
39
|
|
"field_type": "text"
|
|
40
|
|
},
|
|
41
|
|
{
|
|
42
|
|
"name": "Steam App ID File",
|
|
43
|
|
"description": "Value written to steam_appid.txt at runtime. The official server batch uses the public Wreckfest 2 app ID.",
|
|
44
|
|
"env_variable": "STEAM_APPID_FILE",
|
|
45
|
|
"default_value": "1203190",
|
|
46
|
|
"user_viewable": false,
|
|
47
|
|
"user_editable": false,
|
|
48
|
|
"rules": "required|string|in:1203190",
|
|
49
|
|
"field_type": "text"
|
|
50
|
|
},
|
|
51
|
|
{
|
|
52
|
|
"name": "Auto Update",
|
|
53
|
|
"description": "Automatically update on start.",
|
|
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": "Windows Install",
|
|
63
|
|
"description": "Set to 1 for Windows.",
|
|
64
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
65
|
|
"default_value": "1",
|
|
66
|
|
"user_viewable": false,
|
|
67
|
|
"user_editable": false,
|
|
68
|
|
"rules": "boolean",
|
|
69
|
|
"field_type": "text"
|
|
70
|
|
},
|
|
71
|
|
{
|
|
72
|
|
"name": "Server Name",
|
|
73
|
|
"description": "Server Name.",
|
|
74
|
|
"env_variable": "SERVER_NAME",
|
|
75
|
|
"default_value": "Wreckfest 2 Server",
|
|
76
|
|
"user_viewable": true,
|
|
77
|
|
"user_editable": true,
|
|
78
|
|
"rules": "required|string|max:63",
|
|
79
|
|
"field_type": "text"
|
|
80
|
|
},
|
|
81
|
|
{
|
|
82
|
|
"name": "Server Password",
|
|
83
|
|
"description": "Server Password.",
|
|
84
|
|
"env_variable": "SERVER_PASSWORD",
|
|
85
|
|
"default_value": "",
|
|
86
|
|
"user_viewable": true,
|
|
87
|
|
"user_editable": true,
|
|
88
|
|
"rules": "nullable|string|max:31",
|
|
89
|
|
"field_type": "text"
|
|
90
|
|
}
|
|
91
|
|
]
|
|
92
|
|
}
|