|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
3
|
|
"meta": {
|
|
展开 98 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/138/download/egg-voyagers-of-nera.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2025-11-02T10:25:41+00:00",
|
|
8
|
|
"name": "Voyagers of Nera",
|
|
9
|
|
"author": "quinten@pelican.dev",
|
|
10
|
|
"description": " Voyagers of Nera is a cooperative survival-crafting game where you must survive a magical ocean world brimming with lost spirits and deadly monsters. Sail to distant islands, build beautiful villages and surf across the waves with up to 10 players. ",
|
|
11
|
|
"features": [
|
|
12
|
|
"steam_disk_space"
|
|
13
|
|
],
|
|
14
|
|
"docker_images": {
|
|
15
|
|
"Wine Latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest"
|
|
16
|
|
},
|
|
17
|
|
"file_denylist": [],
|
|
18
|
|
"startup": "wine BoatGame/Binaries/Win64/BoatGameServer-Win64-Shipping.exe -log -port={{SERVER_PORT}} & BG_PID=$!; tail -c0 -F ./BoatGame/Saved/Logs/BoatGame.log --pid=$BG_PID",
|
|
19
|
|
"config": {
|
|
20
|
|
"files": "{\n \"Saved/PersistedData/CustomConfig/CustomHostServerUserSettings.ini\": {\n \"parser\": \"file\",\n \"find\": {\n \"HostServerDisplayName=\": \"HostServerDisplayName={{server.build.env.DISPLAY_NAME}}\",\n \"HostServerPassword=\": \"HostServerPassword={{server.build.env.SERVER_PASSWORD}}\",\n \"MaxPlayers=\": \"MaxPlayers={{server.build.env.MAX_PLAYERS}}\",\n \"AutosaveTimerSeconds=\": \"AutosaveTimerSeconds={{server.build.env.{AUTO_SAVE_TIMER_SECONDS}}\"\n }\n }\n}",
|
|
21
|
|
"startup": "{\n \"done\": \"Game Server API initialized\"\n}",
|
|
22
|
|
"logs": "{}",
|
|
23
|
|
"stop": "^C"
|
|
24
|
|
},
|
|
25
|
|
"scripts": {
|
|
26
|
|
"installation": {
|
|
27
|
|
"script": "#!/bin/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: /mnt/server\r\n\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#They need it here ..\r\n./steamcmd.sh +force_install_dir /mnt/server/BoatGame/Binaries/Win64/ +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 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# Define the file path\r\nFILE=\"/mnt/server/BoatGame/Saved/PersistedData/CustomConfig/CustomHostServerUserSettings.ini\"\r\n\r\n# Create the directory if it doesn't exist\r\nDIR=$(dirname \"$FILE\")\r\nif [ ! -d \"$DIR\" ]; then\r\n echo \"Directory $DIR not found. Creating it...\"\r\n mkdir -p \"$DIR\"\r\nfi\r\n\r\n# Check if the file exists\r\nif [ ! -f \"$FILE\" ]; then\r\n echo \"File not found. Creating $FILE...\"\r\n\r\n cat <<EOF > \"$FILE\"\r\n[/Script/BoatGame.BGCustomHostServerSettings]\r\nHostServerDisplayName=${DISPLAY_NAME}\r\nHostServerPassword=${SERVER_PASSWORD}\r\nMaxPlayers=${MAX_PLAYERS}\r\nAutosaveTimerSeconds=${AUTO_SAVE_TIMER_SECONDS}\r\nEOF\r\n\r\n echo \"File created and settings written to $FILE.\"\r\nelse\r\n echo \"File already exists: $FILE\"\r\nfi\r\n\r\nif [ ! -f \"/mnt/server/BoatGame/Binaries/Win64/steam_appid.txt\" ]; then\r\n echo \"3937860\" > /mnt/server/BoatGame/Binaries/Win64/steam_appid.txt\r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
|
|
28
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
29
|
|
"entrypoint": "bash"
|
|
30
|
|
}
|
|
31
|
|
},
|
|
32
|
|
"variables": [
|
|
33
|
|
{
|
|
34
|
|
"name": "Auto saveTimer Seconds",
|
|
35
|
|
"description": "How often your server will automatically save. It’s not recommended to adjust this setting unless you specifically have a reason to.",
|
|
36
|
|
"env_variable": "AUTO_SAVE_TIMER_SECONDS",
|
|
37
|
|
"default_value": "300",
|
|
38
|
|
"user_viewable": true,
|
|
39
|
|
"user_editable": true,
|
|
40
|
|
"rules": "required|int|between:10,900",
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "Auto Update",
|
|
45
|
|
"description": "Automatically update the server on startup",
|
|
46
|
|
"env_variable": "AUTO_UPDATE",
|
|
47
|
|
"default_value": "1",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": true,
|
|
50
|
|
"rules": "boolean",
|
|
51
|
|
"field_type": "text"
|
|
52
|
|
},
|
|
53
|
|
{
|
|
54
|
|
"name": "Display Name",
|
|
55
|
|
"description": "The public name of your server other players will see when browsing servers.",
|
|
56
|
|
"env_variable": "DISPLAY_NAME",
|
|
57
|
|
"default_value": "My_Super_Cool_Server",
|
|
58
|
|
"user_viewable": true,
|
|
59
|
|
"user_editable": true,
|
|
60
|
|
"rules": "required|alpha_dash|max:30",
|
|
61
|
|
"field_type": "text"
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"name": "Max Players",
|
|
65
|
|
"description": "The maximum number of players allowed to be connected to your server at once.",
|
|
66
|
|
"env_variable": "MAX_PLAYERS",
|
|
67
|
|
"default_value": "10",
|
|
68
|
|
"user_viewable": true,
|
|
69
|
|
"user_editable": true,
|
|
70
|
|
"rules": "required|int|between:0,10",
|
|
71
|
|
"field_type": "text"
|
|
72
|
|
},
|
|
73
|
|
{
|
|
74
|
|
"name": "Server Password",
|
|
75
|
|
"description": "The password required for players to join your game.\n\nA blank value means the server will not be password-protected and is joinable by any player.",
|
|
76
|
|
"env_variable": "SERVER_PASSWORD",
|
|
77
|
|
"default_value": "noonewilleverguessthis",
|
|
78
|
|
"user_viewable": true,
|
|
79
|
|
"user_editable": true,
|
|
80
|
|
"rules": "nullable|alpha_dash",
|
|
81
|
|
"field_type": "text"
|
|
82
|
|
},
|
|
83
|
|
{
|
|
84
|
|
"name": "App ID",
|
|
85
|
|
"description": "",
|
|
86
|
|
"env_variable": "SRCDS_APPID",
|
|
87
|
|
"default_value": "3937860",
|
|
88
|
|
"user_viewable": false,
|
|
89
|
|
"user_editable": false,
|
|
90
|
|
"rules": "required|in:3937860",
|
|
91
|
|
"field_type": "text"
|
|
92
|
|
},
|
|
93
|
|
{
|
|
94
|
|
"name": "Windows Install",
|
|
95
|
|
"description": "",
|
|
96
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
97
|
|
"default_value": "1",
|
|
98
|
|
"user_viewable": false,
|
|
99
|
|
"user_editable": false,
|
|
100
|
|
"rules": "boolean|in:1",
|
|
101
|
|
"field_type": "text"
|
|
102
|
|
}
|
|
103
|
|
]
|
|
104
|
|
}
|