Commit ac16e474 authored by nanahira's avatar nanahira

mg

parents 91539bab d0bf8485
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<TargetFrameworkProfile /> <TargetFrameworkProfile />
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86'">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
......
#bots list #bots list
!Name=谜之剑士LV4 Deck=Dragunity Dialog=swordsman.zh-CN # !name
谜之剑士LV4-龙骑星爆 # command
# description
# flag ( 0x1=SUPPORT_MASTER_RULE_3 , 0x2=SUPPORT_NEW_MASTER_RULE )
!谜之剑士LV4-龙骑星爆
Name=谜之剑士LV4 Deck=Dragunity Dialog=swordsman.zh-CN
龙骑轴星尘龙爆裂体卡组。 龙骑轴星尘龙爆裂体卡组。
3 3
!Name=谜之剑士LV4 Deck='Rank V' Dialog=swordsman.zh-CN !谜之剑士LV4-R5
谜之剑士LV4-R5 Name=谜之剑士LV4 Deck='Rank V' Dialog=swordsman.zh-CN
5阶超量卡组。 5阶超量卡组。
3 3
!Name=谜之剑士LV4 Deck='Zexal Weapons' Dialog=swordsman.zh-CN !谜之剑士LV4-异热同心武器
谜之剑士LV4-异热同心武器 Name=谜之剑士LV4 Deck='Zexal Weapons' Dialog=swordsman.zh-CN
神装电光皇卡组。 神装电光皇卡组。
3 3
!Name=琪露诺 Deck=Rainbow Dialog=cirno.zh-CN !琪露诺-彩虹
琪露诺-彩虹 Name=琪露诺 Deck=Rainbow Dialog=cirno.zh-CN
全属性凡骨卡组。 全属性凡骨卡组。
3 3
!Name=琪露诺 Deck='Toadally Awesome' Dialog=cirno.zh-CN !琪露诺-饼蛙
琪露诺-饼蛙 Name=琪露诺 Deck='Toadally Awesome' Dialog=cirno.zh-CN
大师规则三的全盛饼蛙卡组。 大师规则三的全盛饼蛙卡组。
1 1
!Name=复制植物 Deck=Blue-Eyes Dialog=copy.zh-CN !复制植物-青眼
复制植物-青眼 Name=复制植物 Deck=Blue-Eyes Dialog=copy.zh-CN
青眼卡组。 青眼卡组。
3 3
!Name=复制植物 Deck=Zoodiac Dialog=copy.zh-CN !复制植物-十二兽
复制植物-十二兽 Name=复制植物 Deck=Zoodiac Dialog=copy.zh-CN
大师规则三的十四兽卡组。 大师规则三的十四兽卡组。
1 1
!Name=尼亚 Deck=Yosenju Dialog=near.zh-CN !尼亚-妖仙兽
尼亚-妖仙兽 Name=尼亚 Deck=Yosenju Dialog=near.zh-CN
妖仙兽卡组。 妖仙兽卡组。
3 3
!Name=尼亚 Deck=Qliphort Dialog=near.zh-CN !尼亚-机壳
尼亚-机壳 Name=尼亚 Deck=Qliphort Dialog=near.zh-CN
机壳卡组。 机壳卡组。
3 3
!Name=永远之魂 Deck=Burn Dialog=soul.zh-CN !永远之魂-削血
永远之魂-削血 Name=永远之魂 Deck=Burn Dialog=soul.zh-CN
老式削血卡组。 老式削血卡组。
3 3
!Name=永远之魂 Deck=Frog Dialog=soul.zh-CN !永远之魂-青蛙
永远之魂-青蛙 Name=永远之魂 Deck=Frog Dialog=soul.zh-CN
老式青蛙卡组。 老式青蛙卡组。
3 3
!Name=永远之魂 Deck=Horus Dialog=soul.zh-CN !永远之魂-荷鲁斯
永远之魂-荷鲁斯 Name=永远之魂 Deck=Horus Dialog=soul.zh-CN
老式龙族卡组。 老式龙族卡组。
3 3
!Name=悠悠 Deck=MokeyMokey Dialog=mokey.zh-CN !悠悠
悠悠 Name=悠悠 Deck=MokeyMokey Dialog=mokey.zh-CN
沙包。 沙包。
3 3
!Name=悠悠王 Deck=MokeyMokeyKing Dialog=mokey.zh-CN !悠悠王
悠悠王 Name=悠悠王 Deck=MokeyMokeyKing Dialog=mokey.zh-CN
大沙包。 大沙包。
3 3
!Name=试作型机器人1732 Deck=ST1732 Dialog=zh-CN !试作型机器人1732
试作型机器人1732 Name=试作型机器人1732 Deck=ST1732 Dialog=zh-CN
由三盒ST17和三盒SD32组成的卡组。 由三盒ST17和三盒SD32组成的卡组。
2 2
...@@ -16,7 +16,10 @@ namespace WindBot ...@@ -16,7 +16,10 @@ namespace WindBot
} }
public static void WriteErrorLine(string message) public static void WriteErrorLine(string message)
{ {
Console.BackgroundColor = ConsoleColor.Red;
Console.ForegroundColor = ConsoleColor.White;
Console.Error.WriteLine("[" + DateTime.Now.ToString("yy-MM-dd HH:mm:ss") + "] " + message); Console.Error.WriteLine("[" + DateTime.Now.ToString("yy-MM-dd HH:mm:ss") + "] " + message);
Console.ResetColor();
} }
} }
} }
\ No newline at end of file
...@@ -36,7 +36,7 @@ namespace WindBot ...@@ -36,7 +36,7 @@ namespace WindBot
// Join the host specified on the command line. // Join the host specified on the command line.
if (args.Length == 0) if (args.Length == 0)
{ {
Logger.WriteLine("=== WARN ==="); Logger.WriteErrorLine("=== WARN ===");
Logger.WriteLine("No input found, tring to connect to localhost YGOPro host."); Logger.WriteLine("No input found, tring to connect to localhost YGOPro host.");
Logger.WriteLine("If it fail, the program will quit sliently."); Logger.WriteLine("If it fail, the program will quit sliently.");
} }
...@@ -53,7 +53,13 @@ namespace WindBot ...@@ -53,7 +53,13 @@ namespace WindBot
// In case windbot is placed in a folder under ygopro folder // In case windbot is placed in a folder under ygopro folder
absolutePath = Path.GetFullPath("../" + databasePath); absolutePath = Path.GetFullPath("../" + databasePath);
if (!File.Exists(absolutePath)) if (!File.Exists(absolutePath))
Logger.WriteErrorLine("Can't find cards database file. Please place cards.cdb next to WindBot.exe ."); {
Logger.WriteErrorLine("Can't find cards database file.");
Logger.WriteErrorLine("Please place cards.cdb next to WindBot.exe or Bot.exe .");
Logger.WriteLine("Press any key to quit...");
Console.ReadKey();
System.Environment.Exit(1);
}
NamedCardsManager.Init(absolutePath); NamedCardsManager.Init(absolutePath);
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<DebugType>none</DebugType> <DebugType>none</DebugType>
...@@ -37,23 +37,6 @@ ...@@ -37,23 +37,6 @@
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>WindBot.ico</ApplicationIcon> <ApplicationIcon>WindBot.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Mono.Data.Sqlite"> <Reference Include="Mono.Data.Sqlite">
<HintPath>.\Mono.Data.Sqlite.dll</HintPath> <HintPath>.\Mono.Data.Sqlite.dll</HintPath>
......
...@@ -9,28 +9,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotWrapper", "BotWrapper\Bo ...@@ -9,28 +9,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotWrapper", "BotWrapper\Bo
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86 Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86 Release|x86 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|x86.ActiveCfg = Debug|x86 {3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|x86.ActiveCfg = Debug|x86
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|x86.Build.0 = Debug|x86 {3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|x86.Build.0 = Debug|x86
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|Any CPU.Build.0 = Release|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|x86.ActiveCfg = Release|x86 {3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|x86.ActiveCfg = Release|x86
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|x86.Build.0 = Release|x86 {3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|x86.Build.0 = Release|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.ActiveCfg = Debug|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|Any CPU.Build.0 = Debug|Any CPU {0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.Build.0 = Debug|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.ActiveCfg = Debug|Any CPU {0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.ActiveCfg = Release|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.Build.0 = Debug|Any CPU {0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.Build.0 = Release|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|Any CPU.Build.0 = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.ActiveCfg = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
......
No preview for this file type
version: '{build}' version: '{build}'
install: install:
- mkdir Windbot - mkdir Windbot
platform: x86
configuration: Release configuration: Release
build_script: build_script:
- msbuild /property:Configuration=Release /property:OutDir=./Windbot - msbuild /property:Configuration=Release /property:OutDir=./Windbot
after_build: after_build:
- git config --global user.name "Smile-DK" - mv bin\Release WindBot
- git config --global user.email "2236141431@qq.com" - rm WindBot\WindBot.exe.config
- mv BotWrapper\bin\Release\Bot.exe .
- mv BotWrapper\bin\Release\bot.conf .
- git clone https://github.com/moecube/ygopro-database - git clone https://github.com/moecube/ygopro-database
- cp -rf ygopro-database/locales/zh-CN/cards.cdb WindBot - cp -rf ygopro-database/locales/zh-CN/cards.cdb WindBot
- git clone https://github.com/Smile-DK/ygopro-svrelease
- cd ygopro-svrelease
- rm -rf WindBot Windbot
- cp -rf ../Windbot .
- git add . -A
- git commit -m "Windbot pushed by Appveyor"
- git push %Smile%Smile-DK/ygopro-svrelease master
- cd ..
- 7z a -mx9 Windbot.7z WindBot
test: off test: off
artifacts: artifacts:
- path: Windbot.7z - path: Windbot.7z
name: Windbot name: Windbot
branches:
only:
- master
No preview for this file type
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