Skip to content

Commit

Permalink
v0.11.3-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Sep 27, 2021
1 parent 72c5906 commit be50e29
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
5 changes: 2 additions & 3 deletions PCRC.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# coding: utf8

import time
import traceback
from typing import Optional

if __name__ == '__main__':
from utils import utils, constant
Expand All @@ -16,7 +15,7 @@
from .utils.config import Config
from .utils.pycraft.exceptions import YggdrasilError

recorder = None
recorder: Optional[Recorder] = None
logger = Logger(name='PCRC')
ConfigFile = utils.get_path('config.json')
TranslationFolder = utils.get_path('lang/')
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ PCRC currently supports connecting to vanilla Minecraft server. Supports version
- 1.16.3
- 1.16.4
- 1.17.1

## Advantage

- Can be hosted server side for 24/7 recording
Expand Down
3 changes: 3 additions & 0 deletions readme_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ PCRC 目前支持连接官服原版 Minecraft 服务端,支持以下版本:
- 1.16.1
- 1.16.2
- 1.16.3
- 1.16.4
- 1.17.1

## 优势

Expand All @@ -54,6 +56,7 @@ PCRC 目前支持连接官服原版 Minecraft 服务端,支持以下版本:
4. 在控制台中输入指令 `start` 以启动 PCRC
5.**推荐**)将 PCRC 机器人切换为旁观者模式
6. 使用控制台或游戏内聊天来控制 PCRC

## 配置文件

配置文件为 `config.json`,所有设置均可在其中更改。其中名为如 `__1__` 的为分隔符,无需修改
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cryptography>=1.5
requests~=2.22.0
requests>=2.22.0
future
PyYAML>=5.1
PyNBT~=3.0.0
PyNBT>=3.0.0
2 changes: 1 addition & 1 deletion utils/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from . import pycraft

Version = '0.11.2-alpha'
Version = '0.11.3-alpha'
ROOT_PATH = [
os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', ''), # I'm in ./utils/ folder so ../ might be the path
'./',
Expand Down
2 changes: 1 addition & 1 deletion utils/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def is_working(self):
return self.working

def onConnectionException(self, exc, exc_info):
self.logger.error('Exception in network thread: {}'.format(exc))
self.logger.error('Exception in network thread: {} {}'.format(type(exec), exc))
self.logger.debug(traceback.format_exc())
if not self.stop_by_user:
self.logger.error('Stopping the recorder since PCRC has not been stopped by user')
Expand Down

0 comments on commit be50e29

Please sign in to comment.