S
描述
用于托管SuperTuxKart服务器的Egg。
104 浏览
8 下载
2026-07-01
更新于 7 小时前
预设配置详情
SuperTuxKart
SuperTuxKart 是一款 3D 开源街机赛车游戏,拥有多种角色、赛道和游戏模式。
文档
本质上,这是标准 SuperTuxKart 客户端的常规构建版本,但在编译时添加了一个特殊标志,生成一个针对大小和内存使用优化、无 GUI 的二进制文件。
安装说明
首次安装需要一些时间,因为游戏源代码和资源将被下载,并且需要编译游戏的可执行文件。
安装/系统要求
| 最低配置 | 推荐配置 | |
|---|---|---|
| 内存 | 1GiB | 1GiB |
| 存储 | 3GiB | 5GiB |
服务器端口
| 端口 | 默认值 |
|---|---|
| 游戏 | 2759 |
备注
要更改服务器设置,请先停止服务器,然后编辑容器根目录中的 config.xml 文件。保存文件后,启动服务器。
2759 是默认端口,但可以使用任何端口。您需要手动在 config.xml 文件中进行更改。
要更新服务器(仅在游戏代码或资源更新时才需要执行),作为管理员,在面板中进入 服务器 > SuperTuxKart 服务器 > 管理 > 重新安装。如果您是普通用户,请进入 SuperTuxKart 服务器 > 设置 > 重新安装服务器。这将下载更新的代码/资源(应排除任何未更改的内容)并重新编译可执行文件。
目前,此设置用于运行本地局域网服务器。要将其设置为广域网服务器(可在 SuperTuxKart 在线大厅列表中看到),请阅读此链接中的文档,并对启动命令进行必要的更改。
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian
./bin/supertuxkart --server-config={{CONFIG_NAME}} --lan-server={{SERVER_NAME}} --network-console --port="{{SERVER_PORT}}" --difficulty={{DIFFICULTY}} --mode={{MODE}} --max-players={{MAX_PLAYERS}} --motd="{{MOTD}}"
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| 服务器名称 | SERVER_NAME |
服务器名称 | Pterodactyl_Server |
required|string|max:50
必填 字符串 最大 50
|
||
| 配置文件名称 | CONFIG_NAME |
配置文件的名称。 | config.xml |
required|regex:/^([\w\d._-]+)(\.xml)$/
必填 匹配: /^([\w\d._-]+)(\.xml)$/
|
||
| 模式 | MODE |
0 = 普通竞速 1 = 计时赛 2 = 对战 3 = 足球 4 = 跟随领队 5 = 夺旗 | 0 |
required|string|in:0,1,2,3,4,5
必填 字符串 选项: 0,1,2,3,4,5
|
||
| 难度 | DIFFICULTY |
手推车的速度与AI难度 0 = 初学者 1 = 中级 2 = 专家 3 = SuperTux | 0 |
required|string|in:0,1,2,3
必填 字符串 选项: 0,1,2,3
|
||
| 最大玩家数 | MAX_PLAYERS |
服务器最多能有多少玩家? | 8 |
required|numeric|between:1,24
必填 数字 介于 1-24 之间
|
||
| 每日消息 | MOTD |
服务器中显示的每日消息。 | |
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 build-essential cmake libbluetooth-dev libsdl2-dev \
libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev \
libjpeg-dev libogg-dev libopenal-dev libpng-dev \
libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev subversion
if [ ! -d "/mnt/server/stk-code" ] && [ ! -d "/mnt/server/stk-assets" ]; then
#clone code repo
git clone https://github.com/supertuxkart/stk-code /mnt/server/stk-code
#get assets
svn co https://svn.code.sf.net/p/supertuxkart/code/stk-assets /mnt/server/stk-assets
# go into the stk-code directory
cd /mnt/server/stk-code
# create and enter the cmake_build directory
mkdir cmake_build
else
#update existing stuff
cd /mnt/server/stk-assets
svn up
cd /mnt/server/stk-code
git pull
fi
#build the server
cd cmake_build
cmake .. -DSERVER_ONLY=ON
make
#copy binary to root/bin and make it executable
mkdir /mnt/server/bin
cp /mnt/server/stk-code/cmake_build/bin/supertuxkart /mnt/server/bin/supertuxkart
chmod +x /mnt/server/bin/supertuxkart
#copy data folder
cp -r /mnt/server/stk-code/data /mnt/server/data
#copy extra assets to data folder
cd /mnt/server/stk-assets
cp -r library models music sfx textures tracks karts /mnt/server/data/
# Delete repo's to save disk space.
#rm -rf /mnt/server/stk-code && rm -rf /mnt/server/stk-assets
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": "https://eggs.pterodactyl.top/eggs/197/download/egg-supertuxkart.json",
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T00:17:12+00:00",
"name": "SuperTuxKart",
"author": "mattamn107@github.com",
"description": "用于托管SuperTuxKart服务器的Egg。",
"features": null,
"docker_images": {
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
},
"file_denylist": [],
"startup": "./bin/supertuxkart --server-config={{CONFIG_NAME}} --lan-server={{SERVER_NAME}} --network-console --port=\"{{SERVER_PORT}}\" --difficulty={{DIFFICULTY}} --mode={{MODE}} --max-players={{MAX_PLAYERS}} --motd=\"{{MOTD}}\"",
"config": {
"files": "{}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Available command:\"\r\n}",
"stop": "quit"
},
"scripts": {
"installation": {
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash",
"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 build-essential cmake libbluetooth-dev libsdl2-dev \\\r\n libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev \\\r\n libjpeg-dev libogg-dev libopenal-dev libpng-dev \\\r\n libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev subversion\r\n\r\nif [ ! -d \"/mnt/server/stk-code\" ] && [ ! -d \"/mnt/server/stk-assets\" ]; then\r\n \r\n #clone code repo\r\n git clone https://github.com/supertuxkart/stk-code /mnt/server/stk-code\r\n \r\n #get assets\r\n svn co https://svn.code.sf.net/p/supertuxkart/code/stk-assets /mnt/server/stk-assets\r\n \r\n # go into the stk-code directory\r\n cd /mnt/server/stk-code\r\n \r\n # create and enter the cmake_build directory\r\n mkdir cmake_build\r\n \r\nelse\r\n\r\n #update existing stuff\r\n cd /mnt/server/stk-assets\r\n svn up\r\n \r\n cd /mnt/server/stk-code\r\n git pull\r\n\r\n\r\nfi\r\n\r\n#build the server\r\ncd cmake_build\r\ncmake .. -DSERVER_ONLY=ON\r\nmake\r\n\r\n#copy binary to root/bin and make it executable\r\nmkdir /mnt/server/bin\r\ncp /mnt/server/stk-code/cmake_build/bin/supertuxkart /mnt/server/bin/supertuxkart\r\nchmod +x /mnt/server/bin/supertuxkart\r\n\r\n#copy data folder\r\ncp -r /mnt/server/stk-code/data /mnt/server/data\r\n\r\n#copy extra assets to data folder\r\ncd /mnt/server/stk-assets\r\ncp -r library models music sfx textures tracks karts /mnt/server/data/\r\n\r\n# Delete repo's to save disk space.\r\n#rm -rf /mnt/server/stk-code && rm -rf /mnt/server/stk-assets"
}
},
"variables": [
{
"name": "服务器名称",
"description": "服务器名称",
"env_variable": "SERVER_NAME",
"default_value": "Pterodactyl_Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:50",
"field_type": "text"
},
{
"name": "配置文件名称",
"description": "配置文件的名称。",
"env_variable": "CONFIG_NAME",
"default_value": "config.xml",
"user_viewable": true,
"user_editable": true,
"rules": "required|regex:/^([\\w\\d._-]+)(\\.xml)$/",
"field_type": "text"
},
{
"name": "模式",
"description": "0 = 普通竞速\n1 = 计时赛\n2 = 对战\n3 = 足球\n4 = 跟随领队\n5 = 夺旗",
"env_variable": "MODE",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:0,1,2,3,4,5",
"field_type": "text"
},
{
"name": "难度",
"description": "手推车的速度与AI难度 \n0 = 初学者 \n1 = 中级 \n2 = 专家 \n3 = SuperTux",
"env_variable": "DIFFICULTY",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:0,1,2,3",
"field_type": "text"
},
{
"name": "最大玩家数",
"description": "服务器最多能有多少玩家?",
"env_variable": "MAX_PLAYERS",
"default_value": "8",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|between:1,24",
"field_type": "text"
},
{
"name": "每日消息",
"description": "服务器中显示的每日消息。",
"env_variable": "MOTD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:100",
"field_type": "text"
}
]
}附属文件
暂无附属文件
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!
统计
104
浏览
8
下载
0
星标
0
复刻
作者
飒
飒爽师叔
UID: 1
279 预设
·
2026-06