diff --git a/mods/dr_game/Difficult_Rocket_rs/src/src/lib.rs b/mods/dr_game/Difficult_Rocket_rs/src/src/lib.rs index 5cdf43c..2386e7f 100644 --- a/mods/dr_game/Difficult_Rocket_rs/src/src/lib.rs +++ b/mods/dr_game/Difficult_Rocket_rs/src/src/lib.rs @@ -16,7 +16,7 @@ pub type IdType = i64; #[pyfunction] fn get_version_str() -> String { - "0.3.1".to_string() + env!("CARGO_PKG_VERSION").to_string() } #[pyfunction] diff --git a/mods/dr_game/Difficult_Rocket_rs/src/src/sr1_parse/data_structure/ship.rs b/mods/dr_game/Difficult_Rocket_rs/src/src/sr1_parse/data_structure/ship.rs index d989c2d..3233e6a 100644 --- a/mods/dr_game/Difficult_Rocket_rs/src/src/sr1_parse/data_structure/ship.rs +++ b/mods/dr_game/Difficult_Rocket_rs/src/src/sr1_parse/data_structure/ship.rs @@ -242,7 +242,7 @@ impl RawShip { pub fn from_file(path: String) -> Option { let ship_file = fs::read_to_string(path); // for encoding error if let Err(e) = ship_file { - println!("ERROR!\n{:?}\n----------", e); + println!("ERROR!\n{}\n----------", e); return None; } let ship_file = ship_file.unwrap(); @@ -250,7 +250,7 @@ impl RawShip { match ship { Ok(ship) => Some(ship), Err(e) => { - println!("ERROR!\n{} {}\n----------", e, e.source()); + println!("ERROR!\n{}", e); None } } diff --git a/mods/dr_game/__init__.py b/mods/dr_game/__init__.py index 6579003..0783b1b 100644 --- a/mods/dr_game/__init__.py +++ b/mods/dr_game/__init__.py @@ -16,7 +16,7 @@ from Difficult_Rocket.api.types import Options, Version from lib_not_dr import loggers -DR_rust_version = Version("0.3.1") # DR_mod 的 Rust 编写部分的兼容版本 +DR_rust_version = Version("0.3.2") # DR_mod 的 Rust 编写部分的兼容版本 logger = loggers.config.get_logger_from_old("client.dr_game", "client")