森
描述
《森林之子》是一款恐怖生存游戏,是Endnight Games, Ltd.开发的《森林》的续作。你被派往一座偏远岛屿寻找失踪的亿万富翁,却发现自己身陷食人族肆虐的地狱景象。你需要独自或与朋友一起,通过制作、建造和奋力挣扎来求得生存。
59 浏览
8 下载
2026-06-30
更新于 1 小时前
预设配置详情
森林之子
游戏描述
《森林之子》是一款恐怖生存游戏,也是Endnight Games, Ltd.开发的《森林》续作。你被派往一座偏远岛屿寻找失踪的亿万富翁,却发现自己身陷食人族肆虐的恐怖地狱。你需要独自或与朋友一起,通过制作、建造和挣扎求生。
实用链接
Steam:https://store.steampowered.com/app/1326470/Sons_Of_The_Forest/
作者与贡献者
| 名称 | Github 个人主页 | 请我喝杯咖啡 |
|---|---|---|
| gOOvER | https://github.com/gOOvER |
服务器端口
《森林之子》最多需要3个端口。你可以选择任意端口。
| 端口 | 默认值 |
|---|---|
| 游戏端口 | 8766 |
| 查询端口 | 27016 |
| BlobSync端口 | 9700 |
特别说明
运行服务器至少需要8GB内存。
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest
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"
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| QueryPort | QUERY_PORT |
Steam 用于列出服务器并启用发现服务的 UDP 端口。 | 27016 |
required|integer|between:1024,65536
必填 整数 介于 1024-65536 之间
|
||
| BlobSyncPort | BLOBSYNC_PORT |
BlobSyncPort BlobSync系统用于初始化游戏系统和交换数据的UDP端口。 | 9700 |
required|integer|between:1024,65536
必填 整数 介于 1024-65536 之间
|
||
| 服务器名称 | SRV_NAME |
在服务器列表和Steam联系人中显示的服务器名称。 | Pterodactyl hosted Server |
required|string|max:60
必填 字符串 最大 60
|
||
| 最大玩家数 | MAX_PLAYERS |
服务器允许同时在线的最多玩家数量。 | 4 |
required|integer|between:1,8
必填 整数 介于 1-8 之间
|
||
| 密码 | SRV_PW |
changeme |
nullable|string
可选 字符串
|
|||
| 游戏模式 | GAME_MODE |
设置新建存档时的难度游戏模式。如果加载存档(存档模式设置为“继续”且该存档位存在存档),则忽略此参数。若游戏模式设置为“自定义”,则将从稍后描述的CustomGameModeSettings选项中读取自定义游戏模式设置。 | normal |
string|in:normal,hard,hardsurvival,peaceful,custom
字符串 选项: normal,hard,hardsurvival,peaceful,custom
|
||
| 自动更新 | AUTO_UPDATE |
1 |
boolean
布尔
|
|||
| SRCDS_APPID | SRCDS_APPID |
2465200 |
required|string|max:20
必填 字符串 最大 20
|
|||
| WINEDEBUG | WINEDEBUG |
-all |
required|string|max:20
必填 字符串 最大 20
|
|||
| WINEARCH | WINEARCH |
win64 |
required|string|max:20
必填 字符串 最大 20
|
|||
| WINEPATH | WINEPATH |
/home/container |
required|string|max:20
必填 字符串 最大 20
|
|||
| WINETRICKS_RUN | WINETRICKS_RUN |
mono vcrun2019 |
required|string
必填 字符串
|
|||
| WINDOWS_INSTALL | WINDOWS_INSTALL |
1 |
required|string|in:1
必填 字符串 选项: 1
|
|||
| 跳过网络测试 | SKIP_TESTS |
如果你在连接服务器时遇到问题,请将此设置为 TRUE | false |
required|string|in:true,false
必填 字符串 选项: true,false
|
||
| 存档位 | SAVE_SLOT |
如果你从电脑上传了现有的存档,可以在此处输入存档槽位编号。 | 0000000001 |
required|numeric|max:30
必填 数字 最大 30
|
镜像
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian
入口
bash
#!/bin/bash
# steamcmd Base Installation Script
#
clear
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${YELLOW}Sons of the Forest Installscript${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${YELLOW}download and install steamcmd. please wait...${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
## just in case someone removed the defaults.
if [[ "${STEAM_USER}" == "" ]] || [[ "${STEAM_PASS}" == "" ]]; then
echo -e "steam user is not set.
"
echo -e "Using anonymous user.
"
STEAM_USER=anonymous
STEAM_PASS=""
STEAM_AUTH=""
else
echo -e "user set to ${STEAM_USER}"
fi
## download and install steamcmd
cd /tmp
mkdir -p /mnt/server/steamcmd
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
mkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing
cd /mnt/server/steamcmd
# SteamCMD fails otherwise for some reason, even running as root.
# This is changed at the end of the install process anyways.
chown -R root:root /mnt
export HOME=/mnt/server
echo -e "${GREEN}..done..${NC}"
## install game using steamcmd
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${YELLOW}install game using steamcmd. please wait...${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
./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
echo -e "${GREEN}..done..${NC}"
## set up 32 bit libraries
mkdir -p /mnt/server/.steam/sdk32
cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so
## set up 64 bit libraries
mkdir -p /mnt/server/.steam/sdk64
cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so
## add below your custom commands if needed
mkdir -p /mnt/server/serverconfig
FILE=$HOME/serverconfig/dedicatedserver.cfg
if [ -f "$FILE" ]; then
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${GREEN}dedicatedserver.cfg found.${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
else
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${RED}No dedicatedserver.cfg found. Downloading default...${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
cd $HOME/serverconfig/
curl -sSL -o dedicatedserver.cfg https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/sonsoftheforest/dedicatedserver.cfg
fi
echo -e "${GREEN}..done..${NC}"
FILE=$HOME/serverconfig/ownerswhitelist.txt
if [ -f "$FILE" ]; then
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${GREEN}ownerswhitelist.txt found.${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
else
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${RED}No ownerswhitelist.txt found. Downloading default...${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
cd $HOME/serverconfig/
curl -sSL -o ownerswhitelist.txt https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/steamcmd_servers/sonsoftheforest/ownerswhitelist.txt
fi
echo -e "${GREEN}..done..${NC}"
## install end
echo -e "${BLUE}-------------------------------------------------${NC}"
echo -e "${GREEN}Installation completed...${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": "https://eggs.pterodactyl.top/eggs/108/download/egg-sons-of-the-forest.json",
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T00:04:52+00:00",
"name": "Sons Of The Forest",
"author": "eggs@goover.dev",
"description": "《森林之子》是一款恐怖生存游戏,是Endnight Games, Ltd.开发的《森林》的续作。你被派往一座偏远岛屿寻找失踪的亿万富翁,却发现自己身陷食人族肆虐的地狱景象。你需要独自或与朋友一起,通过制作、建造和奋力挣扎来求得生存。",
"features": [
"steam_disk_space"
],
"docker_images": {
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest"
},
"file_denylist": [],
"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\"",
"config": {
"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}",
"logs": "{}",
"startup": "{\r\n \"done\": \"#DSL Dedicated server loaded.\"\r\n}",
"stop": "^^C"
},
"scripts": {
"installation": {
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash",
"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}\""
}
},
"variables": [
{
"name": "QueryPort",
"description": "Steam 用于列出服务器并启用发现服务的 UDP 端口。",
"env_variable": "QUERY_PORT",
"default_value": "27016",
"user_viewable": true,
"user_editable": false,
"rules": "required|integer|between:1024,65536",
"field_type": "text"
},
{
"name": "BlobSyncPort",
"description": "BlobSyncPort BlobSync系统用于初始化游戏系统和交换数据的UDP端口。",
"env_variable": "BLOBSYNC_PORT",
"default_value": "9700",
"user_viewable": true,
"user_editable": false,
"rules": "required|integer|between:1024,65536",
"field_type": "text"
},
{
"name": "服务器名称",
"description": "在服务器列表和Steam联系人中显示的服务器名称。",
"env_variable": "SRV_NAME",
"default_value": "Pterodactyl hosted Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:60",
"field_type": "text"
},
{
"name": "最大玩家数",
"description": "服务器允许同时在线的最多玩家数量。",
"env_variable": "MAX_PLAYERS",
"default_value": "4",
"user_viewable": true,
"user_editable": true,
"rules": "required|integer|between:1,8",
"field_type": "text"
},
{
"name": "密码",
"description": "",
"env_variable": "SRV_PW",
"default_value": "changeme",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string",
"field_type": "text"
},
{
"name": "游戏模式",
"description": "设置新建存档时的难度游戏模式。如果加载存档(存档模式设置为“继续”且该存档位存在存档),则忽略此参数。若游戏模式设置为“自定义”,则将从稍后描述的CustomGameModeSettings选项中读取自定义游戏模式设置。",
"env_variable": "GAME_MODE",
"default_value": "normal",
"user_viewable": true,
"user_editable": true,
"rules": "string|in:normal,hard,hardsurvival,peaceful,custom",
"field_type": "text"
},
{
"name": "自动更新",
"description": "",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "boolean",
"field_type": "text"
},
{
"name": "SRCDS_APPID",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "2465200",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "WINEDEBUG",
"description": "",
"env_variable": "WINEDEBUG",
"default_value": "-all",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "WINEARCH",
"description": "",
"env_variable": "WINEARCH",
"default_value": "win64",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "WINEPATH",
"description": "",
"env_variable": "WINEPATH",
"default_value": "/home/container",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "WINETRICKS_RUN",
"description": "",
"env_variable": "WINETRICKS_RUN",
"default_value": "mono vcrun2019",
"user_viewable": false,
"user_editable": false,
"rules": "required|string",
"field_type": "text"
},
{
"name": "WINDOWS_INSTALL",
"description": "",
"env_variable": "WINDOWS_INSTALL",
"default_value": "1",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:1",
"field_type": "text"
},
{
"name": "跳过网络测试",
"description": "如果你在连接服务器时遇到问题,请将此设置为 TRUE",
"env_variable": "SKIP_TESTS",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "存档位",
"description": "如果你从电脑上传了现有的存档,可以在此处输入存档槽位编号。",
"env_variable": "SAVE_SLOT",
"default_value": "0000000001",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|max:30",
"field_type": "text"
}
]
}附属文件
暂无附属文件
提交历史
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!
统计
59
浏览
8
下载
0
星标
0
复刻
作者
飒
飒爽师叔
UID: 1
279 预设
·
2026-06