sganggs/Stronghold-Protocol
明日方舟「卫戍协议:盟约」非官方同人复刻:浏览器自走棋塔防,单人或 1–4 人联机合作(非商业)
Older snapshot: check the original source for current information.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
《明日方舟》季节性自走棋塔防玩法「卫戍协议:盟约」的非官方同人复刻:浏览器即开即玩,单人或 1–4 人联机合作。 English summary: below. 「卫戍协议:盟约」是自走棋 + 塔防:休整期在调度中心招募干员、摆阵、配装备,作战期干员自动部署,迎击从红门涌来的敌人,漏过去的敌人扣目标生命值。本项目在浏览器里复刻了这一玩法,规则和数值尽量对照官方数据表与 PRTS 核对。 Releases 里有两种整合包,代码和运行依赖完全相同,二选一;已经装好 0.2.x 的,升级时只下载更新包即可: 两种包都包含运行和部署文件,以及插件作者需要的工具、模板、Schemas、插件文档和战斗测试助手。完整开发测试与设计文档仍在源码仓库里。 也可以直接运行启动脚本(Windows scripts\start-windows.bat,macOS / Linux scripts/start.sh):首次会自动安装依赖、下载素材,然后启动服务器并打开浏览器。四个官方版本默认都开着,大厅右上角有「版本」。启动脚本和 npm start 不用加参数。只开第二期下半时设置 SPVERSIONS=act2autochess(大厅不显示版本按钮),详见 docs/DEPLOY.md §11。 显卡较弱时可以在「设置」里调低画质,或在网址后加 ?board=2d(强制 2D 棋盘)/ ?render=fallback(不用 WebGL 的简化画面)。 默认监听 TCP 3000。换端口:启动脚本加 --port 3001,或设置环境变量 PORT。固定私服的同盟密钥:启动脚本加 --room-code ARK1(或 npm start -- --room-code ARK1),只对本次启动的服务器实例生效;下次不带参数就恢复随机。 --room-code 只接受 4 位字母或数字,不是环境变量,也不会跨重启保留;同一时间只能有一个使用该密钥的房间。固定密钥更容易被猜到,建议只在私服 / 局域网使用。 设置方式:macOS / Linux PORT=8080 npm start;PowerShell $env:PORT=8080; npm start;cmd set "PORT=8080" && npm start。健康检查:GET /healthz。 刷新页面或断线后,同盟模拟 10 分钟内、独立模拟 24 小时内重新打开即可回到原座位。服务器把房间和对局都保存在内存里,重启服务器会结束所有对局。 0.3.0 起支持插件;不开插件时按原版游玩。 脚本执行默认关闭。服主可以用 SPPLUGINSCRIPTS=sandbox 开启沙箱脚本(或启动时加 --scripts sandbox;Windows 双击 scripts\start-windows-sandbox.bat);原生受信任模式还需审查、固定锁文件哈希和玩家同意,公网部署需 trusted-force。开服设置见 部署指南,作者从插件新手指南开始,格式与限制见插件参考,接口列表见插件…
Read the full README ↗ · Preview checked 2026-11-11T21:13:53.413Z
Inside the original README — Document outline
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: GPL-3.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
明日方舟「卫戍协议:盟约」非官方同人复刻:浏览器自走棋塔防,单人或 1–4 人联机合作(非商业)
Repository facts
- Owner
- sganggs
- Primary language
- JavaScript
- Stars
- 1,746
- Forks
- 387
- Open issues + pull requests
- 117
- License
- GPL-3.0
- Archived
- No
- Default branch
- master
- Created
- 2026-10-02T09:38:41.000Z
- Last push
- 2026-10-23T21:56:37.000Z
Topics and intended use
Owner-supplied topics: arknights, auto-chess, fan-game, nodejs, tower-defense, websocket
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-24T12:14:29.432Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.