mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Remove some gamemode startup warnings, make expanded config json more obvious
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,4 +4,4 @@
|
||||
# files generated by running servers
|
||||
steam_appid.txt
|
||||
/data
|
||||
/assets/robocraft/config.dump.json
|
||||
/assets/robocraft/config.expanded.json
|
||||
|
||||
@@ -27,7 +27,7 @@ impl CubeConfig {
|
||||
let result = serde_json::from_reader(buffered)?;
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
let filename = root.as_ref().join(format!("{}.dump.json", CUBE_CONFIG_FILENAME.trim_end_matches(".json")));
|
||||
let filename = root.as_ref().join(format!("{}.expanded.json", CUBE_CONFIG_FILENAME.trim_end_matches(".json")));
|
||||
let file = std::fs::File::create(filename)?;
|
||||
let buffered = std::io::BufWriter::new(file);
|
||||
serde_json::to_writer_pretty(buffered, &result)?;
|
||||
|
||||
@@ -122,7 +122,6 @@ impl GameMatches {
|
||||
Ok(engine.spawn())
|
||||
},
|
||||
oj_rc_core::data::game_mode::GameMode::Pit => {
|
||||
log::warn!("Game {}: Pit is experimental", guid);
|
||||
let inner = super::modes::PitLogic::new(
|
||||
&self.mode_configs.the_pit,
|
||||
&map_config,
|
||||
@@ -140,7 +139,6 @@ impl GameMatches {
|
||||
Ok(engine.spawn())
|
||||
},
|
||||
oj_rc_core::data::game_mode::GameMode::TeamDeathmatch => {
|
||||
log::warn!("Game {}: Team Death Match is experimental", guid);
|
||||
let inner = super::modes::TeamDeathMatchLogic::new(
|
||||
&self.mode_configs.team_deathmatch,
|
||||
&map_config,
|
||||
|
||||
Reference in New Issue
Block a user