OpenArena战斗经理
munerator的Python项目详细描述
角斗士:角斗士的组织者。(http://www.unrv.com/culture/gladiator.php)
安装/运行
pip install -e .
munerator -h
运行最小堆栈:
munerator trans &
munerator context &
munerator wrap “cat tests/game_output.txt”
为详细输出添加-v。
模块
模块概述:http://auth-83051f68-ec6c-44e0-afe5-bd8902acff57.cdn.spilcloud.com/10/1395159542_munerator.png
- 事件生产者:
- 包装:包装游戏/命令、捕获输出、发送到转换器
- trans:translator,将传入行与regex匹配,创建事件,发送到上下文
- context:将context添加到事件中,例如mapname、players和broadcast events to subscribers
- 听众:
- ledbar:订阅游戏事件,在ledbar上显示状态
- 旧:订阅游戏事件,代理事件到旧api http://quake.ijohan.nl
- 侦听:侦听发送的所有事件,用于调试等。
- 其他:
- rcon:通过rcon命令(更改地图,说些什么)与运行游戏进行交互。
- 计划:
- 更改者:根据游戏信息更改当前游戏(fraglimit、gametype、instagib、restart)
- 投票:在DB中的地图/游戏选项上存储玩家投票
- 旋转:根据玩家偏好旋转地图
要求
- python 2.7版
- ZMQ
- 开放竞技场
- MongoDB
许可证
麻省理工学院许可。有关详细信息,请参见捆绑的LICENSE文件。