韦
描述
用于托管 Battle for Wesnoth 服务器的模板。
21 浏览
2 下载
2026-07-01
更新于 1 天前
预设配置详情
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:thebattleforwesnoth
./battleForWesnoth/build/wesnothd -p {{SERVER_PORT}} -c /home/container/wesnothd.cfg
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| 分支 | BRANCH |
要选择的 GitHub 分支。我建议检查一下你安装的游戏版本。 | 1.18 |
required|string|max:50
必填 字符串 最大 50
|
||
| 管理员密码 | PASSWD |
服务器管理员命令的管理员密码。 | |
required|string|max:20
必填 字符串 最大 20
|
||
| 每日消息 | MOTD |
当用户加入服务器时显示的消息。 | Welcome to the Pterodactyl Server! |
required|string|max:100
必填 字符串 最大 100
|
镜像
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian
入口
bash
#!/bin/bash
# Install build tools
echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list && \
apt-get update && apt-get -y full-upgrade && \
apt-get install -y libboost-filesystem-dev libboost-iostreams-dev libboost-locale-dev libboost-random-dev libboost-regex-dev libboost-program-options-dev libboost-system-dev libboost-coroutine-dev libboost-graph-dev \
libsdl2-dev libcurl4-openssl-dev libcairo2-dev libvorbis-dev libbz2-dev zlib1g-dev libssl-dev libcrypto++-dev openssl cmake g++ libsdl2-image-dev libsdl2-mixer-dev libsdl-pango-dev
if [ ! -d "/mnt/server/battleForWesnoth" ]; then
#clone code repo
git clone --recurse-submodules --single-branch --branch ${BRANCH} https://github.com/wesnoth/wesnoth /mnt/server/battleForWesnoth
# go into the stk-code directory
cd /mnt/server/battleForWesnoth
# create the build directory
mkdir build
mkdir /mnt/server/wesnothd
touch /mnt/server/wesnothd.cfg
else
git config --global --add safe.directory /mnt/server/battleForWesnoth
#update existing stuff
cd /mnt/server/battleForWesnoth
git pull
git submodule update --init --recursive
fi
#build the server
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
sed -i 's/ENABLE_GAME:BOOL=ON/ENABLE_GAME:BOOL=OFF/' /mnt/server/battleForWesnoth/build/CMakeCache.txt
sed -i 's#FIFO_DIR:STRING=/var/run/wesnothd#FIFO_DIR:STRING=/home/container/wesnothd#' /mnt/server/battleForWesnoth/build/CMakeCache.txt
make
chmod +x ./wesnothd
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": "https://eggs.pterodactyl.top/eggs/253/download/egg-the-battle-for-wesnoth.json"
},
"exported_at": "2024-11-20T10:57:52+01:00",
"name": "The Battle for Wesnoth",
"author": "mattman107@github.com",
"description": "用于托管 Battle for Wesnoth 服务器的模板。",
"features": null,
"docker_images": {
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:thebattleforwesnoth": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:thebattleforwesnoth"
},
"file_denylist": [],
"startup": "./battleForWesnoth/build/wesnothd -p {{SERVER_PORT}} -c /home/container/wesnothd.cfg",
"config": {
"files": "{\r\n \"wesnothd.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"passwd=\": \"passwd=\\\"{{server.build.env.PASSWD}}\\\"\",\r\n \"motd=\": \"motd=\\\"{{server.build.env.MOTD}}\\\"\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"info server:\"\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!/bin/bash\r\n\r\n# Install build tools\r\necho \"deb http://deb.debian.org/debian bullseye-backports main\" >> /etc/apt/sources.list && \\\r\napt-get update && apt-get -y full-upgrade && \\\r\n apt-get install -y libboost-filesystem-dev libboost-iostreams-dev libboost-locale-dev libboost-random-dev libboost-regex-dev libboost-program-options-dev libboost-system-dev libboost-coroutine-dev libboost-graph-dev \\\r\n libsdl2-dev libcurl4-openssl-dev libcairo2-dev libvorbis-dev libbz2-dev zlib1g-dev libssl-dev libcrypto++-dev openssl cmake g++ libsdl2-image-dev libsdl2-mixer-dev libsdl-pango-dev\r\n\r\n\r\nif [ ! -d \"/mnt/server/battleForWesnoth\" ]; then\r\n \r\n #clone code repo\r\n git clone --recurse-submodules --single-branch --branch ${BRANCH} https://github.com/wesnoth/wesnoth /mnt/server/battleForWesnoth\r\n \r\n # go into the stk-code directory\r\n cd /mnt/server/battleForWesnoth\r\n \r\n # create the build directory\r\n mkdir build\r\n \r\n mkdir /mnt/server/wesnothd\r\n touch /mnt/server/wesnothd.cfg\r\nelse\r\n git config --global --add safe.directory /mnt/server/battleForWesnoth\r\n #update existing stuff\r\n cd /mnt/server/battleForWesnoth\r\n git pull\r\n git submodule update --init --recursive\r\n\r\n\r\nfi\r\n\r\n#build the server\r\ncd build\r\ncmake ../ -DCMAKE_BUILD_TYPE=Release\r\nsed -i 's/ENABLE_GAME:BOOL=ON/ENABLE_GAME:BOOL=OFF/' /mnt/server/battleForWesnoth/build/CMakeCache.txt\r\nsed -i 's#FIFO_DIR:STRING=/var/run/wesnothd#FIFO_DIR:STRING=/home/container/wesnothd#' /mnt/server/battleForWesnoth/build/CMakeCache.txt\r\nmake\r\nchmod +x ./wesnothd",
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "分支",
"description": "要选择的 GitHub 分支。我建议检查一下你安装的游戏版本。",
"env_variable": "BRANCH",
"default_value": "1.18",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:50",
"field_type": "text"
},
{
"name": "管理员密码",
"description": "服务器管理员命令的管理员密码。",
"env_variable": "PASSWD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "每日消息",
"description": "当用户加入服务器时显示的消息。",
"env_variable": "MOTD",
"default_value": "Welcome to the Pterodactyl Server!",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:100",
"field_type": "text"
}
]
}附属文件
暂无附属文件
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!
统计
21
浏览
2
下载
0
星标
0
复刻
作者
飒
飒爽师叔
UID: 1
279 预设
·
2026-06