diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index c6b0e09..a9dfe4b 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -10,7 +10,7 @@ from pathlib import Path from Difficult_Rocket.api.types import Options, Version -game_version = Version("0.8.4.0") # 游戏版本 +game_version = Version("0.8.4.1") # 游戏版本 build_version = Version("2.1.0.0") # 编译文件版本(与游戏本体无关) Api_version = Version("0.1.1.0") # API 版本 __version__ = game_version diff --git a/Difficult_Rocket/client/__init__.py b/Difficult_Rocket/client/__init__.py index ee187d7..47935b3 100644 --- a/Difficult_Rocket/client/__init__.py +++ b/Difficult_Rocket/client/__init__.py @@ -308,7 +308,7 @@ class ClientWindow(Window): @_call_back(on_command_draw) @_call_screen_after def on_draw(self, *dt): - while command := self.game.console.get_command(): + while (command := self.game.console.get_command()) is not None: self.on_command(line.CommandText(command)) pyglet.gl.glClearColor(0.1, 0, 0, 0.0) self.clear() diff --git a/docs/src/change_log/dr_game.md b/docs/src/change_log/dr_game.md index e5564bb..6c87e02 100644 --- a/docs/src/change_log/dr_game.md +++ b/docs/src/change_log/dr_game.md @@ -5,8 +5,25 @@ - DR game: 0.2.1.0 - DR rs: 0.2.15.0 +## DR rs 0.3.0.0 + +### 修改 + +- 适配了 `DR sdk` 的关于 mods 的修改 + - Adapted the modification of mods about `DR sdk` +- `RustConsole` + - 现在输入体验更好了 + - Now the input experience is better + ## DR rs 0.2.15.0 +### 修改 + +- 现在支持新的 mods reload 和 unload 了 + - 适配了 `DR sdk` 的关于 mods 的修改 + - Now support new mods reload and unload + - Adapted the modification of mods about `DR sdk` + ### 添加 - `IdType = i64` diff --git a/mods/dr_game/__init__.py b/mods/dr_game/__init__.py index 9d596e8..d344a4b 100644 --- a/mods/dr_game/__init__.py +++ b/mods/dr_game/__init__.py @@ -79,6 +79,8 @@ class DR_mod(ModInfo): if old_self: from .sr1_ship import SR1ShipRender game.client.window.add_sub_screen("SR1_ship", SR1ShipRender) + game.console.stop() + game.init_console() else: self.config.flush_option() logger.info("on_load")