diff --git a/.github/workflows/upload_COS.yml b/.github/workflows/upload_COS.yml index 71f2fc8..e39ee87 100644 --- a/.github/workflows/upload_COS.yml +++ b/.github/workflows/upload_COS.yml @@ -7,7 +7,7 @@ name: "upload_COS" on: push: - branches: [ main, dev ] + branches: [ main ] jobs: client_build: @@ -137,7 +137,6 @@ jobs: - name: Remove Files run: | rm ./THUAI6/hash.json - rm ./THUAI6/win/win64/PresentationCore.dll rm ./THUAI6/win/win64/PresentationFramework.dll diff --git a/CAPI/cmd/RunServer.cmd b/CAPI/cmd/RunServer.cmd index aa5213e..93b8129 100644 --- a/CAPI/cmd/RunServer.cmd +++ b/CAPI/cmd/RunServer.cmd @@ -1,5 +1,5 @@ @echo off -.\win64\Server.exe --port 8888 --studentCount 1 --trickerCount 1 --gameTimeInSecond 600 --fileName video +.\win64\Server.exe --port 8888 --studentCount 4 --trickerCount 1 --gameTimeInSecond 600 --fileName video pause diff --git a/CAPI/shell/RunCpp.sh b/CAPI/shell/RunCpp.sh index 911466a..8bb9f29 100644 --- a/CAPI/shell/RunCpp.sh +++ b/CAPI/shell/RunCpp.sh @@ -3,4 +3,5 @@ ./CAPI/cpp/build/capi -I 127.0.0.1 -P 8888 -p 0 -d -o & ./CAPI/cpp/build/capi -I 127.0.0.1 -P 8888 -p 1 -d -o & ./CAPI/cpp/build/capi -I 127.0.0.1 -P 8888 -p 2 -d -o & -./CAPI/cpp/build/capi -I 127.0.0.1 -P 8888 -p 3 -d -o & \ No newline at end of file +./CAPI/cpp/build/capi -I 127.0.0.1 -P 8888 -p 3 -d -o & +./CAPI/cpp/build/capi -I 127.0.0.1 -P 8888 -p 4 -d -o & \ No newline at end of file diff --git a/CAPI/shell/RunPython.sh b/CAPI/shell/RunPython.sh index ead4676..39e2268 100644 --- a/CAPI/shell/RunPython.sh +++ b/CAPI/shell/RunPython.sh @@ -3,4 +3,5 @@ python ./CAPI/python/PyAPI/main.py -I 127.0.0.1 -P 8888 -p 0 -d -o & python ./CAPI/python/PyAPI/main.py -I 127.0.0.1 -P 8888 -p 1 -d -o & python ./CAPI/python/PyAPI/main.py -I 127.0.0.1 -P 8888 -p 2 -d -o & -python ./CAPI/python/PyAPI/main.py -I 127.0.0.1 -P 8888 -p 3 -d -o & \ No newline at end of file +python ./CAPI/python/PyAPI/main.py -I 127.0.0.1 -P 8888 -p 3 -d -o & +python ./CAPI/python/PyAPI/main.py -I 127.0.0.1 -P 8888 -p 4 -d -o & \ No newline at end of file diff --git a/docs/使用文档.md b/docs/使用文档.md index 100891f..a7b7354 100644 --- a/docs/使用文档.md +++ b/docs/使用文档.md @@ -90,6 +90,7 @@ start python .\CAPI\python\PyAPI\main.py -I 127.0.0.1 -P 8888 -p 0 -d -o -w `-P`为服务器端口,一般为8888 `-p`为玩家id,一般学生为0~3,捣蛋鬼为4 +- 请注意学生序号要从0开始,如果学生数量为n,不应当出现id大于等于n的学生 `-d`为保存Debug日志文件(在`/logs/`下) @@ -116,6 +117,7 @@ start python .\CAPI\python\PyAPI\main.py -I 127.0.0.1 -P 8888 -p 0 -d -o -w `--characterID`为玩家id - 学生取值为0,1,2,3,捣蛋鬼取值为4,characterID > 2023则是观战模式 +- 请注意学生序号要从0开始,如果学生数量为n,不应当出现id大于等于n的学生 - 应当使`RunGUIClient.cmd`与 `RunPython.cmd`(或`RunCpp.cmd`)中学生、捣蛋鬼数量之和符合`RunServer.cmd`的要求 - 如果不启动`RunPython.cmd`(或`RunCpp.cmd`),则`RunGUIClient.cmd`中学生、捣蛋鬼数量应当符合`RunServer.cmd`的要求 diff --git a/installer/Installer/MainWindow.xaml b/installer/Installer/MainWindow.xaml index bf58112..c29b75d 100644 --- a/installer/Installer/MainWindow.xaml +++ b/installer/Installer/MainWindow.xaml @@ -40,7 +40,8 @@