Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro2
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
wangbiao
MDPro2
Commits
2fd170cd
Commit
2fd170cd
authored
Jun 15, 2023
by
perfectdicky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ai not run for non 自选ai
parent
96450ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Assets/SibylSystem/Room/AIRoom.cs
Assets/SibylSystem/Room/AIRoom.cs
+5
-2
No files found.
Assets/SibylSystem/Room/AIRoom.cs
View file @
2fd170cd
...
@@ -179,8 +179,11 @@ public class AIRoom : WindowServantSP
...
@@ -179,8 +179,11 @@ public class AIRoom : WindowServantSP
serverProcess
.
StartInfo
.
RedirectStandardOutput
=
true
;
serverProcess
.
StartInfo
.
RedirectStandardOutput
=
true
;
serverProcess
.
Start
();
serverProcess
.
Start
();
string
port
=
serverProcess
.
StandardOutput
.
ReadLine
();
string
port
=
serverProcess
.
StandardOutput
.
ReadLine
();
command
+=
" Port="
+
port
+
" DeckFile=\"deck/"
+
aideck_
.
GetComponent
<
UIPopupList
>().
value
+
".ydk\""
;
command
+=
" Port="
+
port
;
//add aideck to ai only for 自选ai
int
sel
=
superScrollView
.
selectedIndex
;
if
(
sel
>=
0
&&
sel
<
Bots
.
Count
&&
Array
.
IndexOf
(
Bots
[
sel
].
flags
,
"SELECT_DECKFILE"
)
>=
0
)
command
+=
" DeckFile=\"deck/"
+
aideck_
.
GetComponent
<
UIPopupList
>().
value
+
".ydk\""
;
botProcess
=
new
System
.
Diagnostics
.
Process
();
botProcess
=
new
System
.
Diagnostics
.
Process
();
botProcess
.
StartInfo
.
UseShellExecute
=
false
;
botProcess
.
StartInfo
.
UseShellExecute
=
false
;
botProcess
.
StartInfo
.
FileName
=
Directory
.
GetCurrentDirectory
()
+
"/WindBot/WindBot.exe"
;
botProcess
.
StartInfo
.
FileName
=
Directory
.
GetCurrentDirectory
()
+
"/WindBot/WindBot.exe"
;
...
...
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