-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
catsworld
committed
Nov 18, 2019
1 parent
81513ec
commit 3989e02
Showing
9 changed files
with
167 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
# cn-xcpc-docs | ||
|
||
## 推荐食用指南 | ||
## 食用指南 | ||
|
||
system > domserver + judgehost > cds > presentation + resolver + coachview + icpc-live | ||
system:选手机环境的安装与配置 | ||
|
||
domserver:Domjudge 服务端的安装与配置 | ||
|
||
judgehost:Domjudge 评测端的安装与配置 | ||
|
||
cds:ICPC Tools 中的 Contest Data Server 工具,是使用其他工具的核心 API | ||
|
||
resolver:滚榜工具 | ||
|
||
presentation:大屏幕工具链 | ||
|
||
coachview:远程显示选手机桌面与摄像头的工具 | ||
|
||
icpc-live:直播 layout 工具 | ||
|
||
board:外榜 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,69 @@ | ||
# icpc-live | ||
|
||
## 版本 | ||
|
||
cn-xcpc-tools/icpc-live-v2 | ||
OBS Studio 24.0.3 + win-overlaymaster 插件 | ||
|
||
## 环境 | ||
|
||
Windows 10 1903 | ||
jdk8 | ||
Apache Maven 3.6.2 | ||
wlp.CDS-2.1.2100 | ||
Noto Sans CJK JP Normal(为所有用户安装) | ||
|
||
## 安装与编译 icpc-live 及其依赖 | ||
|
||
```shell | ||
git clone https://github.com/cn-xcpc-tools/icpc-live-v2 | ||
cd icpc-live-v2 | ||
mvn install | ||
``` | ||
|
||
## 配置 | ||
|
||
首先从 `icpc-live/config/sample` 中将 `events.properties` 与 `mainscreen.properties` 复制到 `icpc-live/config`。 | ||
|
||
### icpc-live/config/events.properties | ||
|
||
* login 与 password | ||
|
||
设置为 CDS 的 admin 用户。 | ||
|
||
* url | ||
|
||
`https://cds/api/contests/{id}` | ||
|
||
* problemsNumber | ||
|
||
设置为题目数量。 | ||
|
||
### icpc-live/src/main/resources/users.data | ||
|
||
为 Web 导播台设置用户名与密码,格式为 `{username}:{password}`。 | ||
|
||
## 启动 | ||
|
||
运行 `webserver.bat`,在其开始读取 CDS API 后运行 `main-screen.bat`,在 `c:\work\image.bin` 生成后运行 OBS 并添加 `Overlay Master` 项。 | ||
|
||
## 导播台 | ||
|
||
由 `http://127.0.0.1:8080` 进入导播台。 | ||
|
||
* 在 Advertisment 中设置 `#Clock#` 即可在左下角显示比赛时间。 | ||
|
||
* 在 Creeping Line 中设置 `#Standings#` 即可在底部黑条中显示靠前名次的滚动排行榜。 | ||
|
||
* 在 Standing 中可控制完整排行榜的显示和隐藏。 | ||
|
||
## Troubleshooting | ||
|
||
* icpc-live 不会读取 team 的隐藏设置 | ||
|
||
沈阳站时的临时方案为在源码中将系统自带 DOMjudge 用户的提交均设置为封榜后的“?”状态。 | ||
应考虑修改 EventLoader 部分源码以将该用户在 team 的读入时跳过,或在启动 CDS 前保证该用户不在该比赛中。 | ||
|
||
## 未解决的问题 | ||
|
||
* OBS 的“图像幻灯片放映”功能不能正确地循环所有选择的图像文件,而是在某几张图像内反复播放。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,39 @@ | ||
# presentation 工具链(ICPC Tools) | ||
|
||
## 版本 | ||
|
||
presentations-2.1.2100 | ||
presentationAdmin-2.1.2100 | ||
|
||
## 环境 | ||
|
||
(presAdmin机)Ubuntu 18.04.3 LTS | ||
(client机)Windows 10 1903 | ||
jre8 | ||
wlp.CDS-2.1.2100 | ||
|
||
## presentationAdmin(架设到方便操作的机器上) | ||
|
||
`presAdmin https://cds presAdmin {password}` | ||
|
||
## presentations(架设到连接大屏幕的机器上,并接入 CDS 所在网络) | ||
|
||
`client {presentation-id,自选,多开时不重复即可} https://cds presentation {password}` | ||
|
||
## 使用 | ||
|
||
在 `presAdmin` 中选中需要控制的 presentation,并在右侧选择需要令其显示的内容,然后点击 `Apply` 按钮。 | ||
|
||
## Troubleshooting | ||
|
||
* `presAdmin` 右侧不显示可选的内容 | ||
|
||
排查 CDS 是否正常运行、CDS 配置是否正确、`presAdmin` 是否与 CDS 在网络上能够通信。 | ||
|
||
* `client` 启动后,`presAdmin` 中未显示该 presentation | ||
|
||
排查 `client` 是否与 CDS 在网络上能够通信。 | ||
|
||
* 沈阳站场馆大屏幕的比例为 32:9,仅显示所连接 16:9 机器画面的上半部分 | ||
|
||
此时在 `presAdmin` 中菜单栏内设置 presentation 的显示区域为 `(0,0,1920,540)` 即能使其完全在大屏幕上显示出来。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters