|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
|
|
3
|
|
"meta": {
|
|
展开 178 行未改动
|
|
4
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/108/download/egg-sons-of-the-forest.json",
|
|
5
|
|
"version": "PTDL_v2"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2024-06-01T00:04:52+00:00",
|
|
8
|
|
"name": "Sons Of The Forest",
|
|
9
|
|
"author": "eggs@goover.dev",
|
|
10
|
|
"description": "Sons of the Forest is a horror survival game and sequel to The Forest by Endnight Games, Ltd.. Sent to find a missing billionaire on a remote island, you find yourself in a cannibal-infested hellscape. Craft, build, and struggle to survive, alone or with friends.",
|
|
11
|
|
"features": [
|
|
12
|
|
"steam_disk_space"
|
|
13
|
|
],
|
|
14
|
|
"docker_images": {
|
|
15
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest"
|
|
16
|
|
},
|
|
17
|
|
"file_denylist": [],
|
|
18
|
|
"startup": "wine ./SonsOfTheForestDS.exe -userdatapath \"/home/container/serverconfig\" -dedicatedserver.IpAddress \"0.0.0.0\" -dedicatedserver.GamePort \"{{SERVER_PORT}}\" -dedicatedserver.QueryPort \"{{QUERY_PORT}}\" -dedicatedserver.BlobSyncPort \"{{BLOBSYNC_PORT}}\" -dedicatedserver.MaxPlayers \"{{MAX_PLAYERS}}\" -dedicatedserver.Password \"{{SRV_PW}}\" -dedicatedserver.GameMode \"{{GAME_MODE}}\" -dedicatedserver.SkipNetworkAccessibilityTest \"{{SKIP_TESTS}}\" -dedicatedserver.SaveSlot \"{{SAVE_SLOT}}\" -dedicatedserver.LogFilesEnabled \"true\" -dedicatedserver.TimestampLogFilenames \"true\"",
|
|
19
|
|
"config": {
|
|
20
|
|
"files": "{\r\n \"serverconfig/dedicatedserver.cfg\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"ServerName\": \"{{server.build.env.SRV_NAME}}\",\r\n \"SaveSlot\": \"{{server.build.env.SAVE_SLOT}}\"\r\n }\r\n }\r\n}",
|
|
21
|
|
"logs": "{}",
|
|
22
|
|
"startup": "{\r\n \"done\": \"#DSL Dedicated server loaded.\"\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\nclear\r\nRED='\\033[0;31m'\r\nGREEN='\\033[0;32m'\r\nYELLOW='\\033[1;33m'\r\nBLUE='\\033[0;34m'\r\nNC='\\033[0m'\r\n\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}Sons of the Forest Installscript${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\n\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}download and install steamcmd. please wait...${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\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\necho -e \"${GREEN}..done..${NC}\"\r\n\r\n## install game using steamcmd\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}install game using steamcmd. please wait...${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\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\necho -e \"${GREEN}..done..${NC}\"\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\nmkdir -p /mnt/server/serverconfig\r\nFILE=$HOME/serverconfig/dedicatedserver.cfg\r\nif [ -f \"$FILE\" ]; then\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n echo -e \"${GREEN}dedicatedserver.cfg found.${NC}\"\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\nelse \r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n echo -e \"${RED}No dedicatedserver.cfg found. Downloading default...${NC}\"\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n cd $HOME/serverconfig/\r\n curl -sSL -o dedicatedserver.cfg https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/sonsoftheforest/dedicatedserver.cfg\r\nfi\r\necho -e \"${GREEN}..done..${NC}\"\r\n\r\nFILE=$HOME/serverconfig/ownerswhitelist.txt\r\nif [ -f \"$FILE\" ]; then\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n echo -e \"${GREEN}ownerswhitelist.txt found.${NC}\"\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\nelse \r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n echo -e \"${RED}No ownerswhitelist.txt found. Downloading default...${NC}\"\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n cd $HOME/serverconfig/\r\n curl -sSL -o ownerswhitelist.txt https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/sonsoftheforest/ownerswhitelist.txt\r\nfi\r\necho -e \"${GREEN}..done..${NC}\"\r\n\r\n## install end\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${GREEN}Installation completed...${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\""
|
|
30
|
|
}
|
|
31
|
|
},
|
|
32
|
|
"variables": [
|
|
33
|
|
{
|
|
34
|
|
"name": "QueryPort",
|
|
35
|
|
"description": "UDP port used by Steam to list the server and enable the discovery services.",
|
|
36
|
|
"env_variable": "QUERY_PORT",
|
|
37
|
|
"default_value": "27016",
|
|
38
|
|
"user_viewable": true,
|
|
39
|
|
"user_editable": false,
|
|
40
|
|
"rules": "required|integer|between:1024,65536",
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "BlobSyncPort",
|
|
45
|
|
"description": "BlobSyncPort UDP port used by the BlobSync system to initialize game systems and exchange data.",
|
|
46
|
|
"env_variable": "BLOBSYNC_PORT",
|
|
47
|
|
"default_value": "9700",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": false,
|
|
50
|
|
"rules": "required|integer|between:1024,65536",
|
|
51
|
|
"field_type": "text"
|
|
52
|
|
},
|
|
53
|
|
{
|
|
54
|
|
"name": "Server Name",
|
|
55
|
|
"description": "Name of the server visible in the server list, and in the Steam contacts.",
|
|
56
|
|
"env_variable": "SRV_NAME",
|
|
57
|
|
"default_value": "Pterodactyl hosted Server",
|
|
58
|
|
"user_viewable": true,
|
|
59
|
|
"user_editable": true,
|
|
60
|
|
"rules": "required|string|max:60",
|
|
61
|
|
"field_type": "text"
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"name": "Max Players",
|
|
65
|
|
"description": "The maximum number of players allowed simultaneously on the server.",
|
|
66
|
|
"env_variable": "MAX_PLAYERS",
|
|
67
|
|
"default_value": "4",
|
|
68
|
|
"user_viewable": true,
|
|
69
|
|
"user_editable": true,
|
|
70
|
|
"rules": "required|integer|between:1,8",
|
|
71
|
|
"field_type": "text"
|
|
72
|
|
},
|
|
73
|
|
{
|
|
74
|
|
"name": "Password",
|
|
75
|
|
"description": "",
|
|
76
|
|
"env_variable": "SRV_PW",
|
|
77
|
|
"default_value": "changeme",
|
|
78
|
|
"user_viewable": true,
|
|
79
|
|
"user_editable": true,
|
|
80
|
|
"rules": "nullable|string",
|
|
81
|
|
"field_type": "text"
|
|
82
|
|
},
|
|
83
|
|
{
|
|
84
|
|
"name": "Gamemode",
|
|
85
|
|
"description": "Sets the difficulty game mode when creating a new save. This parameter is ignored if loading a save (save mode set to “continue” with a save that exists on the slot). If the game mode is set to “custom”, then the custom game mode settings will be read from CustomGameModeSettings option, described later.",
|
|
86
|
|
"env_variable": "GAME_MODE",
|
|
87
|
|
"default_value": "normal",
|
|
88
|
|
"user_viewable": true,
|
|
89
|
|
"user_editable": true,
|
|
90
|
|
"rules": "string|in:normal,hard,hardsurvival,peaceful,custom",
|
|
91
|
|
"field_type": "text"
|
|
92
|
|
},
|
|
93
|
|
{
|
|
94
|
|
"name": "Auto Update",
|
|
95
|
|
"description": "",
|
|
96
|
|
"env_variable": "AUTO_UPDATE",
|
|
97
|
|
"default_value": "1",
|
|
98
|
|
"user_viewable": true,
|
|
99
|
|
"user_editable": true,
|
|
100
|
|
"rules": "boolean",
|
|
101
|
|
"field_type": "text"
|
|
102
|
|
},
|
|
103
|
|
{
|
|
104
|
|
"name": "SRCDS_APPID",
|
|
105
|
|
"description": "",
|
|
106
|
|
"env_variable": "SRCDS_APPID",
|
|
107
|
|
"default_value": "2465200",
|
|
108
|
|
"user_viewable": false,
|
|
109
|
|
"user_editable": false,
|
|
110
|
|
"rules": "required|string|max:20",
|
|
111
|
|
"field_type": "text"
|
|
112
|
|
},
|
|
113
|
|
{
|
|
114
|
|
"name": "WINEDEBUG",
|
|
115
|
|
"description": "",
|
|
116
|
|
"env_variable": "WINEDEBUG",
|
|
117
|
|
"default_value": "-all",
|
|
118
|
|
"user_viewable": false,
|
|
119
|
|
"user_editable": false,
|
|
120
|
|
"rules": "required|string|max:20",
|
|
121
|
|
"field_type": "text"
|
|
122
|
|
},
|
|
123
|
|
{
|
|
124
|
|
"name": "WINEARCH",
|
|
125
|
|
"description": "",
|
|
126
|
|
"env_variable": "WINEARCH",
|
|
127
|
|
"default_value": "win64",
|
|
128
|
|
"user_viewable": false,
|
|
129
|
|
"user_editable": false,
|
|
130
|
|
"rules": "required|string|max:20",
|
|
131
|
|
"field_type": "text"
|
|
132
|
|
},
|
|
133
|
|
{
|
|
134
|
|
"name": "WINEPATH",
|
|
135
|
|
"description": "",
|
|
136
|
|
"env_variable": "WINEPATH",
|
|
137
|
|
"default_value": "/home/container",
|
|
138
|
|
"user_viewable": false,
|
|
139
|
|
"user_editable": false,
|
|
140
|
|
"rules": "required|string|max:20",
|
|
141
|
|
"field_type": "text"
|
|
142
|
|
},
|
|
143
|
|
{
|
|
144
|
|
"name": "WINETRICKS_RUN",
|
|
145
|
|
"description": "",
|
|
146
|
|
"env_variable": "WINETRICKS_RUN",
|
|
147
|
|
"default_value": "mono vcrun2019",
|
|
148
|
|
"user_viewable": false,
|
|
149
|
|
"user_editable": false,
|
|
150
|
|
"rules": "required|string",
|
|
151
|
|
"field_type": "text"
|
|
152
|
|
},
|
|
153
|
|
{
|
|
154
|
|
"name": "WINDOWS_INSTALL",
|
|
155
|
|
"description": "",
|
|
156
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
157
|
|
"default_value": "1",
|
|
158
|
|
"user_viewable": false,
|
|
159
|
|
"user_editable": false,
|
|
160
|
|
"rules": "required|string|in:1",
|
|
161
|
|
"field_type": "text"
|
|
162
|
|
},
|
|
163
|
|
{
|
|
164
|
|
"name": "Skip network Test",
|
|
165
|
|
"description": "if you have problems to connect to your server, set this to TRUE",
|
|
166
|
|
"env_variable": "SKIP_TESTS",
|
|
167
|
|
"default_value": "false",
|
|
168
|
|
"user_viewable": true,
|
|
169
|
|
"user_editable": true,
|
|
170
|
|
"rules": "required|string|in:true,false",
|
|
171
|
|
"field_type": "text"
|
|
172
|
|
},
|
|
173
|
|
{
|
|
174
|
|
"name": "Save Slot",
|
|
175
|
|
"description": "If you uploaded an existing save from your PC you can enter the save slot number here.",
|
|
176
|
|
"env_variable": "SAVE_SLOT",
|
|
177
|
|
"default_value": "0000000001",
|
|
178
|
|
"user_viewable": true,
|
|
179
|
|
"user_editable": true,
|
|
180
|
|
"rules": "required|numeric|max:30",
|
|
181
|
|
"field_type": "text"
|
|
182
|
|
}
|
|
183
|
|
]
|
|
184
|
|
}
|