Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dark_Zane
MDPro3
Commits
ae4e04cf
Commit
ae4e04cf
authored
Aug 12, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix windbot dialog path bug
parent
34e962e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
Assets/Scripts/MDPro3/Servants/Solo.cs
Assets/Scripts/MDPro3/Servants/Solo.cs
+20
-1
Data/locales/en-US/bot.conf
Data/locales/en-US/bot.conf
+1
-1
Data/locales/en-US/translation.conf
Data/locales/en-US/translation.conf
+2
-1
Data/locales/zh-CN/translation.conf
Data/locales/zh-CN/translation.conf
+1
-0
No files found.
Assets/Scripts/MDPro3/Servants/Solo.cs
View file @
ae4e04cf
...
@@ -30,6 +30,7 @@ namespace MDPro3
...
@@ -30,6 +30,7 @@ namespace MDPro3
public
GameObject
btnDeck
;
public
GameObject
btnDeck
;
public
static
string
port
;
public
static
string
port
;
const
string
windbotDialogsPath
=
"Data/Windbot/Dialogs/"
;
public
class
BotInfo
public
class
BotInfo
{
{
...
@@ -241,7 +242,25 @@ namespace MDPro3
...
@@ -241,7 +242,25 @@ namespace MDPro3
command
+=
" Host="
+
ip
;
command
+=
" Host="
+
ip
;
command
+=
" Port="
+
port
;
command
+=
" Port="
+
port
;
command
+=
" HostInfo="
+
password
;
command
+=
" HostInfo="
+
password
;
(
new
Thread
(()
=>
{
Thread
.
Sleep
(
300
);
WindBot
.
Program
.
Main
(
Tools
.
SplitWithPreservedQuotes
(
command
));
})).
Start
();
var
args
=
Tools
.
SplitWithPreservedQuotes
(
command
);
for
(
int
i
=
0
;
i
<
args
.
Length
;
i
++)
{
if
(
args
[
i
].
StartsWith
(
"Dialog="
))
{
var
path
=
args
[
i
][
7.
.];
if
(!
File
.
Exists
(
windbotDialogsPath
+
path
+
".json"
))
{
var
config
=
Config
.
Get
(
"Language"
,
"zh-CN"
);
if
(
config
==
"en-US"
)
config
=
"default"
;
args
[
i
]
=
"Dialog="
+
config
;
}
break
;
}
}
(
new
Thread
(()
=>
{
Thread
.
Sleep
(
300
);
WindBot
.
Program
.
Main
(
args
);
})).
Start
();
}
}
public
void
Launch
(
string
command
,
bool
lockHand
,
bool
noCheck
,
bool
noShuffle
)
public
void
Launch
(
string
command
,
bool
lockHand
,
bool
noCheck
,
bool
noShuffle
)
...
...
Data/locales/en-US/bot.conf
View file @
ae4e04cf
...
@@ -250,6 +250,6 @@ Zefra Deck
...
@@ -250,6 +250,6 @@ Zefra Deck
AI_LV4
SUPPORT_MASTER_RULE_2020
AI_LV4
SUPPORT_MASTER_RULE_2020
!
Tonight
snack
-
SuperheavySamurai
!
Tonight
snack
-
SuperheavySamurai
Name
=
Tonight
snack
Deck
=
SuperheavySamurai
Dialog
=
superheavysamurai
.
default
Name
=
'Tonight snack'
Deck
=
SuperheavySamurai
Dialog
=
superheavysamurai
.
default
SuperheavySamurai
Deck
SuperheavySamurai
Deck
AI_LV4
SUPPORT_MASTER_RULE_2020
AI_LV4
SUPPORT_MASTER_RULE_2020
\ No newline at end of file
Data/locales/en-US/translation.conf
View file @
ae4e04cf
...
@@ -637,4 +637,5 @@ YDK 内容不合法,主卡组必须满 40 张->YDK content is illegal, the mai
...
@@ -637,4 +637,5 @@ YDK 内容不合法,主卡组必须满 40 张->YDK content is illegal, the mai
注册->注册
注册->注册
自定义游戏->自定义游戏
自定义游戏->自定义游戏
检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。->检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。
检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。->检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。
SMAA
High
->
SMAA
High
\ No newline at end of file
检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。->检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。
Data/locales/zh-CN/translation.conf
View file @
ae4e04cf
...
@@ -638,3 +638,4 @@ YDK 内容不合法,主卡组必须满 40 张->YDK 内容不合法,主卡组
...
@@ -638,3 +638,4 @@ YDK 内容不合法,主卡组必须满 40 张->YDK 内容不合法,主卡组
注册->注册
注册->注册
自定义游戏->自定义游戏
自定义游戏->自定义游戏
检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。->检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。
检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。->检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。
SMAA
High
->
SMAA
High
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment