Commit 902a508e authored by nanahira's avatar nanahira

7.13.2

parent e6ad62ac
/expansions
/specials
/obj
/bin
/build
/event
/lua
/sqlite3
/replay
/deck
/.vscode
/gframe/ygopro.ico
/gframe/ygopro.rc
/gframe/ygopro.aps
/gframe/dirent.h
ygopro
premake5.exe
[submodule "ocgcore"]
path = ocgcore
url = https://github.com/mycard/ygopro-core
[submodule "script"]
path = script
url = https://github.com/mycard/ygopro-scripts
# ygopro ## YGOPro(Server)
[![Build Status](https://travis-ci.org/moecube/ygopro.svg?branch=master)](https://travis-ci.org/moecube/ygopro) [![Build status](https://ci.appveyor.com/api/projects/status/qgkqi6o0wq7qn922?svg=true)](https://ci.appveyor.com/project/zh99998/ygopro) [![Build status](https://ci.appveyor.com/api/projects/status/qgkqi6o0wq7qn922/branch/server?svg=true)](https://ci.appveyor.com/project/zh99998/ygopro/branch/server)
A script engine for "yu-gi-oh!" and sample gui 一个YGOPro的服务端版本,运行后自动建立主机,并开启端口供YGOPro客户端连接。
[中文说明](https://github.com/Fluorohydride/ygopro/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E) 现用于[萌卡](https://mycard.moe/)[YGOPRO 233服](http://mercury233.me/ygosrv233/)
###Keys: ### Linux下编译
* ESC: Minimize the window. * 需要以下组件或工具
* A: Holding down this button will let the system stop at every timing. * gcc
* S: Holding down this button will let the system skip every timing. * premake4
* R: Fix the font error. * libevent
* F1~F4: Show the cards in your grave, banished zone, extra deck, xyz materials. * lua5.2
* F5~F8: Show the cards in your opponent's grave, banished zone, extra deck, xyz materials. * sqlite3
* 可参考 https://github.com/mercury233/ygopro-server/wiki 中的脚本
###Color in card list:
####Background: ### Windows下编译
* White = your card, Grey = your opponent's card * 需要以下组件或工具
* Visual Studio
####Text: * premake5
Cards in deck, extra deck and banished zone: * libevent
* Black = face-up, Blue = face-down * lua5.2
* sqlite3
Xyz materials: * dirent for windows
* Black = default, Blue = the owner of the xyz material is different from its controller * 可参考本项目 [appveyor.yml](https://github.com/mycard/ygopro/blob/server/appveyor.yml) 中的脚本
###Sequence: ### 运行
* Monster Zone: 1~5, starting from the left hand side. * 使用[ygopro-server](https://github.com/mycard/ygopro-server)运行
* Spell & Trap Zone: 1~5, starting from the left hand side. * 手动运行的参数是
* Field Zone: 6 * ./ygopro 0 0 0 1 F F F 8000 5 1 180 0
* Pendulum Zone: 7~8, starting from the left hand side. * 端口(0为随机)
* The others: 1~n, starting from the bottom. * 禁卡表编号
* 卡片允许
###Deck edit page: * 决斗模式
* All numeric textboxs: They support >, =, <, >=, <= signs. * 旧规则
* Card name: Search card names and texts by default, $foo will only search foo in card names, and @foo will search cards of "foo" archetype(due to translation, card name contains "foo" does not mean that card is "foo" card). * 不检查卡组
* 不洗切卡组
### Command-line options: * 初始LP
* -j: Join the host in system.conf file. * 初始手牌数
* -d: Enter the deck edit page. * 每回合抽卡
* -r: Enter the replay mode page. * 每回合时间
* -s: Enter the single mode page. * 录像保存模式
* -efoo: Load foo as the extra database.
### Directories:
* pics: .jpg card images(177*254).
* pics\thumbnail: .jpg thumbnail images(44*64).
* script: .lua script files.
* textures: Other image files.
* deck: .ydk deck files.
* replay: .yrp replay files.
* expansions: *.cdb will be loaded as extra databases.
version: '{build}' version: '{build}'
environment:
matrix:
- locale: zh-CN
- locale: ja-JP
- locale: en-US
install: install:
# fix tar xz
- set PATH=%PATH%;C:\MinGW\msys\1.0\bin
# submodules
- git submodule update --init --recursive - git submodule update --init --recursive
# environment and system dependency # environment and system dependency
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-alpha10/premake-5.0.0-alpha10-windows.zip ; exit 0" - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-alpha10/premake-5.0.0-alpha10-windows.zip ; exit 0"
- 7z x premake-5.0.0-alpha10-windows.zip - 7z x premake-5.0.0-alpha10-windows.zip
...@@ -22,16 +12,6 @@ install: ...@@ -22,16 +12,6 @@ install:
- move libevent-2.0.22-stable event - move libevent-2.0.22-stable event
- xcopy /E event\WIN32-Code event\include - xcopy /E event\WIN32-Code event\include
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/freetype/freetype-2.7.tar.bz2 ; exit 0"
- tar xf freetype-2.7.tar.bz2
- move freetype-2.7 freetype
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip ; exit 0"
- 7z x irrlicht-1.8.4.zip
- md irrlicht
- move irrlicht-1.8.4\source\Irrlicht irrlicht\src
- move irrlicht-1.8.4\include irrlicht\include
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.lua.org/ftp/lua-5.2.4.tar.gz ; exit 0" - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.lua.org/ftp/lua-5.2.4.tar.gz ; exit 0"
- tar xf lua-5.2.4.tar.gz - tar xf lua-5.2.4.tar.gz
- move lua-5.2.4\src lua - move lua-5.2.4\src lua
...@@ -39,58 +19,33 @@ install: ...@@ -39,58 +19,33 @@ install:
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip ; exit 0" - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip ; exit 0"
- 7z x sqlite-amalgamation-3150200.zip - 7z x sqlite-amalgamation-3150200.zip
- move sqlite-amalgamation-3150200 sqlite3 - move sqlite-amalgamation-3150200 sqlite3
- appveyor DownloadFile https://github.com/tronkko/dirent/raw/master/include/dirent.h
- move dirent.h gframe\
# let premake happy # let premake happy
- xcopy /E premake\* . - xcopy /E premake\* .
# patch irrlicht
- patch -p1 < irrlicht\irrlicht.patch
# premake # premake
- premake5 vs2015 - premake5 vs2015
configuration: Release configuration: Release
build: build:
project: build/ygo.sln project: build/ygo.sln
parallel: true parallel: true
after_build: after_build:
- mv bin\release\ygopro.exe . - ps: move bin\release\ygopro.exe .
- curl --location --retry 5 https://github.com/moecube/ygopro-database/archive/master.tar.gz | tar --strip-components=1 -zxf - ygopro-database-master/locales
- cp locales/%locale%/* .
- mkdir replay
- mkdir pics
- curl --location --retry 5 --output ygopro-images-%locale%.zip https://github.com/moecube/ygopro-images/releases/download/latest/ygopro-images-%locale%.zip
- unzip -q -d pics ygopro-images-%locale%.zip
- curl --location --retry 5 --output ygopro-starter-pack-master.zip https://github.com/moecube/ygopro-starter-pack/archive/master.zip
- unzip -q ygopro-starter-pack-master.zip
- mv ygopro-starter-pack-master/* .
- tar -zcf ygopro-%APPVEYOR_REPO_TAG_NAME%-win32-%locale%.tar.gz --format=posix --exclude='.git*' ygopro.exe LICENSE README.md lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay
test: off test: off
artifacts: artifacts:
- path: ygopro-$(APPVEYOR_REPO_TAG_NAME)-win32-$(locale).tar.gz - path: ygopro.exe
name: ygopro name: ygopro(server)
deploy:
description: 'Automatic build'
provider: GitHub
auth_token:
secure: itZ9Z1dxEpfPJLdTs/PiY98pVZ3GCLNWfid7eAu7SL88Jl9AIrf/3rviKFEbsnoY # your encrypted token from GitHub
on:
appveyor_repo_tag: true # deploy on tag push only
branches:
only:
- master
- /\d+\..+/
cache: cache:
- premake-5.0.0-alpha10-windows.zip - premake-5.0.0-alpha10-windows.zip
- libevent-2.0.22-stable.tar.gz - libevent-2.0.22-stable.tar.gz
- freetype-2.7.tar.bz2
- irrlicht-1.8.4.zip
- lua-5.2.4.tar.gz - lua-5.2.4.tar.gz
- sqlite-amalgamation-3150200.zip - sqlite-amalgamation-3150200.zip
File added
This diff is collapsed.
...@@ -52,3 +52,10 @@ solution "ygo" ...@@ -52,3 +52,10 @@ solution "ygo"
include "ocgcore" include "ocgcore"
include "gframe" include "gframe"
if os.is("windows") then
include "event"
include "freetype"
include "irrlicht"
include "lua"
include "sqlite3"
end
...@@ -6,7 +6,7 @@ solution "ygo" ...@@ -6,7 +6,7 @@ solution "ygo"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
configuration "windows" configuration "windows"
defines { "WIN32", "_WIN32", "WINVER=0x0501" } defines { "WIN32", "_WIN32" }
configuration "bsd" configuration "bsd"
defines { "LUA_USE_POSIX" } defines { "LUA_USE_POSIX" }
...@@ -18,7 +18,7 @@ solution "ygo" ...@@ -18,7 +18,7 @@ solution "ygo"
includedirs { "/usr/local/include/*" } includedirs { "/usr/local/include/*" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" } buildoptions { "-stdlib=libc++" }
links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" } links {"OpenGL.framework","Cocoa.framework","IOKit.framework"}
configuration "linux" configuration "linux"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
...@@ -47,7 +47,7 @@ solution "ygo" ...@@ -47,7 +47,7 @@ solution "ygo"
configuration "vs*" configuration "vs*"
flags "EnableSSE2" flags "EnableSSE2"
defines { "_CRT_SECURE_NO_WARNINGS" } defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "not vs*" configuration "not vs*"
buildoptions { "-fno-strict-aliasing", "-Wno-multichar" } buildoptions { "-fno-strict-aliasing", "-Wno-multichar" }
...@@ -60,8 +60,6 @@ solution "ygo" ...@@ -60,8 +60,6 @@ solution "ygo"
include "gframe" include "gframe"
if os.is("windows") then if os.is("windows") then
include "event" include "event"
include "freetype"
include "irrlicht"
include "lua" include "lua"
include "sqlite3" include "sqlite3"
end end
...@@ -6,20 +6,24 @@ errorlog = 1 ...@@ -6,20 +6,24 @@ errorlog = 1
nickname = Player nickname = Player
gamename = Game gamename = Game
lastdeck = new lastdeck = new
textfont = c:/windows/fonts/msyh.ttf 14 textfont = c:/windows/fonts/simsun.ttc 14
numfont = c:/windows/fonts/arialbd.ttf numfont = c:/windows/fonts/arialbd.ttf
serverport = 7911 serverport = 7911
lasthost = 127.0.0.1 lasthost = 127.0.0.1
lastport = 7911 lastport = 7911
autopos = 1 automonsterpos = 0
autospellpos = 1
randompos = 0 randompos = 0
autochain = 0 autochain = 0
waitchain = 0 waitchain = 0
mute_opponent = 0 mute_opponent = 0
mute_spectators = 0 mute_spectators = 0
hide_setname = 0 hide_setname = 0
hide_hint_button = 0 hide_hint_button = 1
#control_mode = 0: Key A/S/D/R Chain Buttons. control_mode = 1: MouseLeft/MouseRight/NULL/F9 Without Chain Buttons #control_mode = 0: Key A/S/D/R Chain Buttons. control_mode = 1: MouseLeft/MouseRight/NULL/F9 Without Chain Buttons
control_mode = 0 control_mode = 0
draw_field_spell = 1 draw_field_spell = 1
separate_clear_button = 1 separate_clear_button = 1
#auto_search_limit >= 0: Start search automatically when the user enters N chars.
auto_search_limit = -1
prompt_to_discard_deck_changes = 1
textures/bg.jpg

136 KB | W: | H:

textures/bg.jpg

343 KB | W: | H:

textures/bg.jpg
textures/bg.jpg
textures/bg.jpg
textures/bg.jpg
  • 2-up
  • Swipe
  • Onion skin
textures/bg_deck.jpg

225 KB | W: | H:

textures/bg_deck.jpg

343 KB | W: | H:

textures/bg_deck.jpg
textures/bg_deck.jpg
textures/bg_deck.jpg
textures/bg_deck.jpg
  • 2-up
  • Swipe
  • Onion skin
textures/bg_menu.jpg

210 KB | W: | H:

textures/bg_menu.jpg

343 KB | W: | H:

textures/bg_menu.jpg
textures/bg_menu.jpg
textures/bg_menu.jpg
textures/bg_menu.jpg
  • 2-up
  • Swipe
  • Onion skin
textures/cover.jpg

34.2 KB | W: | H:

textures/cover.jpg

12 KB | W: | H:

textures/cover.jpg
textures/cover.jpg
textures/cover.jpg
textures/cover.jpg
  • 2-up
  • Swipe
  • Onion skin
textures/cover2.jpg

34.2 KB | W: | H:

textures/cover2.jpg

12 KB | W: | H:

textures/cover2.jpg
textures/cover2.jpg
textures/cover2.jpg
textures/cover2.jpg
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment