From e09452b13b69864d57128cc9af592085340517e4 Mon Sep 17 00:00:00 2001 From: BowmanChow Date: Sat, 16 May 2020 11:03:55 +0800 Subject: [PATCH] =?UTF-8?q?server=E7=8E=B0=E5=9C=A8=E8=83=BD=E5=A4=9F?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/Logic.Server/Properties/launchSettings.json | 2 +- logic/THUnity2D/GameObject.cs | 1 + runAgent.bat | 2 +- runServer.bat | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/logic/Logic.Server/Properties/launchSettings.json b/logic/Logic.Server/Properties/launchSettings.json index 50564de..1d4fc51 100644 --- a/logic/Logic.Server/Properties/launchSettings.json +++ b/logic/Logic.Server/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "Logic.Server": { "commandName": "Project", - "commandLineArgs": " --port 20000 --debugLevel 1 --playerCount 2 --agentCount 1 --gameTime 600" + "commandLineArgs": " --port 20000 --debugLevel 1 --playerCount 1 --agentCount 1 --gameTime 600" }, "Docker": { "commandName": "Docker" diff --git a/logic/THUnity2D/GameObject.cs b/logic/THUnity2D/GameObject.cs index ff4e635..bf98a29 100644 --- a/logic/THUnity2D/GameObject.cs +++ b/logic/THUnity2D/GameObject.cs @@ -197,6 +197,7 @@ public Vector Velocity } } }); + _movingThread.IsBackground = true; _movingThread.Start(); } lock (_velocityLock) diff --git a/runAgent.bat b/runAgent.bat index 7399865..b270836 100644 --- a/runAgent.bat +++ b/runAgent.bat @@ -1 +1 @@ -communication\Agent\bin\Release\netcoreapp3.0\Communication.Agent.exe --server 127.0.0.1:20000 --port 30000 --debugLevel 0 --playercount 2 --timelimit 25 +communication\Agent\bin\Release\netcoreapp3.0\Communication.Agent.exe --server 127.0.0.1:20000 --port 30000 --debugLevel 0 --playercount 1 --timelimit 25 diff --git a/runServer.bat b/runServer.bat index a2f972a..52ffb6e 100644 --- a/runServer.bat +++ b/runServer.bat @@ -1 +1 @@ -logic\Logic.Server\bin\Release\netcoreapp3.0\Logic.Server.exe --port 20000 --debugLevel 1 --playerCount 2 --agentCount 2 --gameTime 600 \ No newline at end of file +logic\Logic.Server\bin\Release\netcoreapp3.0\Logic.Server.exe --port 20000 --debugLevel 1 --playerCount 1 --agentCount 1 --gameTime 600 \ No newline at end of file