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
66184184
Commit
66184184
authored
Apr 29, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify hint
parent
0353ab4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Assets/Scripts/MDPro3/Duel/TcpHelper.cs
Assets/Scripts/MDPro3/Duel/TcpHelper.cs
+4
-1
Assets/Scripts/MDPro3/Servants/Solo.cs
Assets/Scripts/MDPro3/Servants/Solo.cs
+1
-1
No files found.
Assets/Scripts/MDPro3/Duel/TcpHelper.cs
View file @
66184184
...
@@ -52,6 +52,9 @@ namespace MDPro3
...
@@ -52,6 +52,9 @@ namespace MDPro3
}
}
catch
(
Exception
e
)
catch
(
Exception
e
)
{
{
if
(
Program
.
I
().
solo
)
MessageManager
.
messageFromSubString
=
InterString
.
Get
(
"端口被占用, 请尝试修改端口后再尝试。端口号应大于0,小于65535。"
);
else
MessageManager
.
messageFromSubString
=
"JoinError: "
+
e
;
MessageManager
.
messageFromSubString
=
"JoinError: "
+
e
;
}
}
canJoin
=
true
;
canJoin
=
true
;
...
...
Assets/Scripts/MDPro3/Servants/Solo.cs
View file @
66184184
...
@@ -200,7 +200,7 @@ namespace MDPro3
...
@@ -200,7 +200,7 @@ namespace MDPro3
command
+=
" Host=127.0.0.1"
;
command
+=
" Host=127.0.0.1"
;
port
=
inputPort
.
text
;
port
=
inputPort
.
text
;
if
(
string
.
IsNullOrEmpty
(
port
)
||
int
.
Parse
(
port
.
Substring
(
0
,
5
))
<=
0
||
int
.
Parse
(
port
.
Substring
(
0
,
5
)
)
>
65535
)
if
(
string
.
IsNullOrEmpty
(
port
)
||
int
.
Parse
(
port
)
<=
0
||
int
.
Parse
(
port
)
>
65535
)
{
{
port
=
"7911"
;
port
=
"7911"
;
inputPort
.
text
=
port
;
inputPort
.
text
=
port
;
...
...
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