Commit ac16e474 authored by nanahira's avatar nanahira

mg

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