Skip to content
A server for YGOPRO.
CoffeeScript JavaScript Dockerfile
Branch: master
Clone or download
Pull request Compare This branch is 653 commits ahead of moecube:master.
Latest commit 4416362 Aug 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Revert "koishi room list" Jul 25, 2019
.dockerignore
.gitignore Merge branch 'plugins' into plugin_koishi Jul 23, 2019
Dockerfile Merge branch 'mc' Jul 16, 2019
Dockerfile.lite
LICENSE fix license which is already in package.json Nov 2, 2017
README.md Merge branch 'mc' Jun 26, 2019
package-lock.json
package.json fix websocket version Mar 18, 2019
restart.js Create restart.js Aug 21, 2018
roomlist.coffee compat the old MyCard client Jul 29, 2019
roomlist.js compat the old MyCard client Jul 29, 2019
struct.js catchup Aug 29, 2018
ygopro-auth.coffee make the auth module use bunyan Jul 7, 2019
ygopro-auth.js make the auth module use bunyan Jul 7, 2019
ygopro-deck-stats.js
ygopro-draw.js update Sep 23, 2018
ygopro-generate-result.js fix Feb 28, 2019
ygopro-pre.js Merge branch 'mc' Mar 27, 2019
ygopro-server.coffee Merge branch 'mc' Aug 12, 2019
ygopro-server.js Merge branch 'mc' Aug 12, 2019
ygopro-tournament.js catchup Jul 20, 2019
ygopro-update.js
ygopro-webhook.js fix Jul 6, 2019
ygopro.coffee public i18n Jul 24, 2019
ygopro.js public i18n Jul 24, 2019

README.md

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/nanahira/ygopro-server/

    • 镜像标签

      • nanahira/ygopro-server:latest: 完整镜像
      • nanahira/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/.

You can’t perform that action at this time.