Skip to content

mycard/srvpro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

599ef25 · Mar 13, 2025
Sep 9, 2024
Mar 13, 2025
Nov 14, 2020
Aug 18, 2021
Aug 19, 2022
Nov 27, 2019
Mar 25, 2022
May 1, 2022
Nov 2, 2017
Jun 26, 2019
Aug 17, 2021
Oct 20, 2022
Oct 20, 2022
Oct 20, 2022
Oct 16, 2022
Oct 16, 2022
Mar 13, 2025
Mar 13, 2025
Oct 20, 2022
Oct 20, 2022
Aug 21, 2018
Nov 2, 2022
Nov 2, 2022
Aug 29, 2018
Nov 14, 2020
Nov 15, 2020
Oct 20, 2022
Jun 12, 2018
May 3, 2023
Mar 13, 2025
Mar 13, 2025
Mar 13, 2025
Apr 5, 2020
Jul 6, 2019
Nov 14, 2022
Nov 14, 2022

Repository files navigation

SRVPro

一个YGOPro服务器。

现用于萌卡YGOPro 233服YGOPro Koishi服

支持功能

  • Linux上运行
  • Windows上运行
  • 玩家输入同一房名约战
  • 玩家不指定房间名,自动匹配在线玩家
  • 房间列表json
  • 广播消息
  • 召唤台词
  • 先行卡一键更新
  • WindBot在线AI
  • 萌卡用户登陆
  • 竞赛模式锁定玩家卡组
  • 竞赛模式后台保存录像
  • 竞赛模式自动加时赛系统(规则可调)
    • 0 正常加时赛规则
    • 1 YGOCore战队联盟第十二届联赛使用规则
    • 2 正常加时赛规则 + 1胜规则
    • 3 2018年7月适用的OCG/TCG加时赛规则
  • 断线重连

不支持功能

  • 在线聊天室

使用方法

  • 可参考wiki安装

  • 手动安装:

  • node ygopro-server.js即可运行

  • 简易的控制台在 http://srvpro.ygo233.com/dashboard.htmlhttp://srvpro-cn.ygo233.com/dashboard.html

  • 使用本项目的Docker镜像: https://hub.docker.com/r/mycard/ygopro-server/

    • 镜像标签

      • mycard/ygopro-server:latest: 完整镜像
      • mycard/ygopro-server:lite: 基本镜像,云录像和人机对战功能需要配合redisnanahira/windbot这两个镜像使用。
    • 端口

      • 7911: YGOPro端口
      • 7922: 管理后台端口
    • 数据卷

      • /ygopro-server/config: SRVPro配置文件数据卷
      • /ygopro-server/ygopro/expansions: YGOPro额外卡片数据卷
      • /ygopro-server/decks: 竞赛模式卡组数据卷
      • /ygopro-server/replays: 竞赛模式录像数据卷
    • 若使用竞赛模式启动服务器,建议把启动命令修改为pm2-docker start /ygopro-server/data/pm2-docker-tournament.js

高级功能

开发计划

  • 重做CTOS和STOC部分
  • 模块化附加功能
    • 房名代码
    • 随机对战
    • 召唤台词
    • WindBot
    • 云录像
    • 比赛模式
    • 先行卡更新
  • 用户账号系统和管理员账号系统
  • 云录像更换存储方式

TODO

  • refactoring CTOS and STOC
  • change features to modules
    • room name parsing
    • random duel
    • summon dialogues
    • WindBot
    • cloud replay
    • tournament mode
    • expansions updater
  • user and admin account system
  • new database for cloud replay

License

SRVPro

Copyright (C) 2013-2018 MoeCube Team

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.