GithubHelp home page GithubHelp logo

manhuangng / ygopro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mercury233/ygopro

0.0 1.0 0.0 60.55 MB

Server side ygopro used in https://github.com/duelists-unite/svrpro

License: GNU General Public License v2.0

CMake 0.69% C++ 54.40% C 43.93% Lua 0.95% Shell 0.02%

ygopro's Introduction

YGOPro(Server)

Build status Build Status

一个YGOPro的服务端版本,运行后自动建立主机,并开启端口供YGOPro客户端连接。

现用于萌卡YGOPro 233服

Linux下编译

  • 需要以下组件或工具
  • gcc
  • premake5
  • libevent
  • lua5.3
  • sqlite3
  • 可参考本项目 .travis.yml 中的脚本

Windows下编译

  • 需要以下组件或工具
  • Visual Studio
  • premake5
  • libevent
  • lua5.3
  • sqlite3
  • 可参考本项目 appveyor.yml 中的脚本

运行

  • 使用ygopro-server运行
  • 手动运行的参数是
  • ./ygopro 0 0 0 1 F F F 8000 5 1 180 0
  • 端口(0为随机)
  • 禁卡表编号
  • 卡片允许
  • 决斗模式
  • 决斗规则编号
  • 不检查卡组
  • 不洗切卡组
  • 初始LP
  • 初始手牌数
  • 每回合抽卡
  • 每回合时间
  • 录像保存模式
  • 特殊选项,按位选择
  • 0x1: 保存录像到 ./replay 文件夹
  • 0x2: 不向观战者发送录像

特殊编译参数

执行premake5 gmake之前,可以通过设置一些环境变量,来改变一些编译参数。

  • YGOPRO_DEFAULT_DUEL_RULE=X 设置默认决斗规则为大师规则X。
  • YGOPRO_NO_LUA_SAFE 若有定义,则开启默认禁用的osio库。请慎用这个参数,确保运行的卡片脚本文件是可以信任的。

ygopro's People

Contributors

aephiex avatar buttys avatar dailyshana avatar destdev avatar dlang119 avatar edo9300 avatar fluorohydride avatar imjoyj avatar james-johns avatar killerdamo2 avatar lilris avatar lostway avatar lsty avatar matteoserva avatar mercury233 avatar purerosefallen avatar qq985077400 avatar rbrick avatar salix5 avatar smile-dk avatar starrush avatar steeldarkeagel avatar szzzzzzz avatar vanillasalt avatar woodee avatar wudizhanche1000 avatar yugiohmodder avatar zh99998 avatar zhykzhykzhyk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.