MT-CTF/capturetheflag

GitHub: MT-CTF/capturetheflag

基于 Luanti/Minetest 体素引擎的多人夺旗对战游戏,提供完整的武器系统和服务器托管功能。

Stars: 98 | Forks: 95

Capture the Flag

Capture the Flag

Combat the enemy with swords, guns, grenades, and more as you try to capture their flag before they capture yours!

ContentDB Build Status GitHub Contributors Issues GitHub pull requests

官方服务器

地址:ctf.rubenwardy.com 端口:30001

你需要一个 Luanti(原 Minetest)客户端才能加入。


## 安装说明 ### Git 夺旗模式(Capture the flag)使用了多个 submodule。请确保通过以下方式克隆以获取它们全部: ``` git clone --recursive https://github.com/MT-CTF/capturetheflag.git ``` (对于开发者/贡献者,建议使用 ssh 进行克隆) ### ContentDB 只需使用游戏内的 content 浏览器下载该游戏即可。 请注意,此版本可能略落后于 git 版本,但它会更稳定一些。 请注意,从 ContentDB 下载可能会删除任何已通过 git 下载的现有 CTF 文件夹,除非你先将其移出 Luanti 的 `games` 目录。 ## 推荐设置 * [!] 如果你的服务器未处于 mapedit 模式,你应该使用 `dummy` backend 来托管服务器,这将防止 Luanti 将地图写入磁盘,从而大大加快地图操作(以及整体服务器速度),尤其是在使用 HDD 时。 ### 对于公共服务器: * 使用 `redis` backend 存储排名,所有步骤均为必需: * 安装 redis、luarocks 和 luaredis (Ubuntu) * `sudo apt install luarocks redis` * `sudo luarocks install luaredis` * 将 `ctf_rankings` 添加到你的 `secure.trusted_mods` 中 * 确保你不要在服务器中添加任何恶意 mod。**当 `ctf_rankings` 作为受信任的 mod 时,恶意 mod 有可能通过它突破 sandbox** * 在启动服务器时运行类似以下的命令:`(cd minetest/worlds/yourworld && redis-server) | <启动你的 minetest 服务器的命令>` * 如果你使用系统服务来运行 Minetest 服务器,建议在一个单独的服务上运行 redis-server,并让 Minetest 服务依赖于它 ## 开始游戏(GUI 说明) * 创建一个新的 `singlenode` 世界 * 开启 `Enable Damage`(启用伤害)和 `Host Server`(托管服务器),关闭 `Creative Mode`(创造模式),*记住*你的端口 * 点击 `Host Game`(托管游戏),一旦你加入,一轮游戏应会自动开始 * 局域网上的玩家可以使用你的本地 IP 和你*记住*的端口加入。你必须进行端口转发(port forward),互联网上的其他人才能加入 ## 开发说明 * CTF API 文档:Lua API 参考 - [链接](docs/ctf-api.md) * 如果你使用 Visual Studio Code,我们推荐以下扩展: * https://marketplace.visualstudio.com/items?itemName=sumneko.lua * https://marketplace.visualstudio.com/items?itemName=dwenegar.vscode-luacheck * https://marketplace.visualstudio.com/items?itemName=GreenXenith.minetest-tools ## 许可证 由 [rubenwardy](https://rubenwardy.com/) 创建。 由 [LandarVargan](https://github.com/LoneWolfHT) 开发。 前任开发者:[savilli](https://github.com/savilli)。 查看 [mods/](mods/) 以了解所有已安装的 mod 及其各自的许可证。 未特别注明时的许可证:\ 代码:[GNU LGPLv2.1+](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)\ 媒体素材:[CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/) ### 纹理 * [头图](menu/header.png):[CC BY 3.0 Unported](https://creativecommons.org/licenses/by/3.0/),作者 [SuddenSFD](https://github.com/SuddenSFD) * [背景图片](menu/background.png):[CC BY-SA 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/)(如适用),作者 [GreenBlob](https://github.com/a-blob)(使用了 [Minetest Game](https://github.com/minetest/minetest_game) 的纹理,其中大部分基于 [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/) 授权)。所使用的玩家皮肤基于 [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/) 授权 * [图标](menu/icon.png):[CC BY 3.0](https://creativecommons.org/licenses/by/3.0/),作者 [SuddenSFD](https://github.com/SuddenSFD)
标签:Lua, Luanti, Minetest, rizin, 多人游戏, 夺旗模式, 搜索引擎查询, 游戏