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
[![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)
A script engine for "yu-gi-oh!" and sample gui
[中文说明](https://github.com/Fluorohydride/ygopro/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E)
###Keys:
* ESC: Minimize the window.
* A: Holding down this button will let the system stop at every timing.
* S: Holding down this button will let the system skip every timing.
* R: Fix the font error.
* F1~F4: Show the cards in your grave, banished zone, extra deck, xyz materials.
* F5~F8: Show the cards in your opponent's grave, banished zone, extra deck, xyz materials.
###Color in card list:
####Background:
* White = your card, Grey = your opponent's card
####Text:
Cards in deck, extra deck and banished zone:
* Black = face-up, Blue = face-down
Xyz materials:
* Black = default, Blue = the owner of the xyz material is different from its controller
###Sequence:
* Monster Zone: 1~5, starting from the left hand side.
* Spell & Trap Zone: 1~5, starting from the left hand side.
* Field Zone: 6
* Pendulum Zone: 7~8, starting from the left hand side.
* 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:
* -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.
## YGOPro(Server)
[![Build status](https://ci.appveyor.com/api/projects/status/qgkqi6o0wq7qn922/branch/server?svg=true)](https://ci.appveyor.com/project/zh99998/ygopro/branch/server)
一个YGOPro的服务端版本,运行后自动建立主机,并开启端口供YGOPro客户端连接。
现用于[萌卡](https://mycard.moe/)[YGOPRO 233服](http://mercury233.me/ygosrv233/)
### Linux下编译
* 需要以下组件或工具
* gcc
* premake4
* libevent
* lua5.2
* sqlite3
* 可参考 https://github.com/mercury233/ygopro-server/wiki 中的脚本
### Windows下编译
* 需要以下组件或工具
* Visual Studio
* premake5
* libevent
* lua5.2
* sqlite3
* dirent for windows
* 可参考本项目 [appveyor.yml](https://github.com/mycard/ygopro/blob/server/appveyor.yml) 中的脚本
### 运行
* 使用[ygopro-server](https://github.com/mycard/ygopro-server)运行
* 手动运行的参数是
* ./ygopro 0 0 0 1 F F F 8000 5 1 180 0
* 端口(0为随机)
* 禁卡表编号
* 卡片允许
* 决斗模式
* 旧规则
* 不检查卡组
* 不洗切卡组
* 初始LP
* 初始手牌数
* 每回合抽卡
* 每回合时间
* 录像保存模式
version: '{build}'
environment:
matrix:
- locale: zh-CN
- locale: ja-JP
- locale: en-US
install:
# fix tar xz
- set PATH=%PATH%;C:\MinGW\msys\1.0\bin
# submodules
- git submodule update --init --recursive
# environment and system dependency
......@@ -22,16 +12,6 @@ install:
- move libevent-2.0.22-stable event
- 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"
- tar xf lua-5.2.4.tar.gz
- move lua-5.2.4\src lua
......@@ -40,12 +20,12 @@ install:
- 7z x sqlite-amalgamation-3150200.zip
- move sqlite-amalgamation-3150200 sqlite3
- appveyor DownloadFile https://github.com/tronkko/dirent/raw/master/include/dirent.h
- move dirent.h gframe\
# let premake happy
- xcopy /E premake\* .
# patch irrlicht
- patch -p1 < irrlicht\irrlicht.patch
# premake
- premake5 vs2015
......@@ -56,41 +36,16 @@ build:
parallel: true
after_build:
- mv 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
- ps: move bin\release\ygopro.exe .
test: off
artifacts:
- path: ygopro-$(APPVEYOR_REPO_TAG_NAME)-win32-$(locale).tar.gz
name: ygopro
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+\..+/
- path: ygopro.exe
name: ygopro(server)
cache:
- premake-5.0.0-alpha10-windows.zip
- libevent-2.0.22-stable.tar.gz
- freetype-2.7.tar.bz2
- irrlicht-1.8.4.zip
- lua-5.2.4.tar.gz
- sqlite-amalgamation-3150200.zip
File added
This diff is collapsed.
......@@ -52,3 +52,10 @@ solution "ygo"
include "ocgcore"
include "gframe"
if os.is("windows") then
include "event"
include "freetype"
include "irrlicht"
include "lua"
include "sqlite3"
end
......@@ -6,7 +6,7 @@ solution "ygo"
configurations { "Debug", "Release" }
configuration "windows"
defines { "WIN32", "_WIN32", "WINVER=0x0501" }
defines { "WIN32", "_WIN32" }
configuration "bsd"
defines { "LUA_USE_POSIX" }
......@@ -18,7 +18,7 @@ solution "ygo"
includedirs { "/usr/local/include/*" }
libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" }
links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" }
links {"OpenGL.framework","Cocoa.framework","IOKit.framework"}
configuration "linux"
defines { "LUA_USE_LINUX" }
......@@ -60,8 +60,6 @@ solution "ygo"
include "gframe"
if os.is("windows") then
include "event"
include "freetype"
include "irrlicht"
include "lua"
include "sqlite3"
end
......@@ -6,20 +6,24 @@ errorlog = 1
nickname = Player
gamename = Game
lastdeck = new
textfont = c:/windows/fonts/msyh.ttf 14
textfont = c:/windows/fonts/simsun.ttc 14
numfont = c:/windows/fonts/arialbd.ttf
serverport = 7911
lasthost = 127.0.0.1
lastport = 7911
autopos = 1
automonsterpos = 0
autospellpos = 1
randompos = 0
autochain = 0
waitchain = 0
mute_opponent = 0
mute_spectators = 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
draw_field_spell = 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