Browse Source

docs: 📝 edit 使用文档.md

tags/0.1.0
shangfengh 3 years ago
parent
commit
9c0df4d861
5 changed files with 8 additions and 5 deletions
  1. +1
    -2
      .github/workflows/upload_COS.yml
  2. +1
    -1
      CAPI/cmd/RunServer.cmd
  3. +2
    -1
      CAPI/shell/RunCpp.sh
  4. +2
    -1
      CAPI/shell/RunPython.sh
  5. +2
    -0
      docs/使用文档.md

+ 1
- 2
.github/workflows/upload_COS.yml View File

@@ -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


+ 1
- 1
CAPI/cmd/RunServer.cmd View File

@@ -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

+ 2
- 1
CAPI/shell/RunCpp.sh View File

@@ -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 &
./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 &

+ 2
- 1
CAPI/shell/RunPython.sh View File

@@ -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 &
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 &

+ 2
- 0
docs/使用文档.md View File

@@ -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`的要求



Loading…
Cancel
Save