Skip to content

Commit

Permalink
fix unknown download type intolerance (unrealmodding upstream); updat…
Browse files Browse the repository at this point in the history
…e persistent_actors_map field for dlc
  • Loading branch information
atenfyr committed Dec 26, 2024
1 parent e1bdfc8 commit 289812a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Astroneer Modloader"
[workspace.dependencies]
astro_mod_integrator = { path = "./astro_mod_integrator" }

unreal_mod_manager = { rev = "a2a39b8deefe0448aceff0492b4ca10889bf676a", git = "https://github.com/AstroTechies/unrealmodding", features = [
unreal_mod_manager = { rev = "c636ad4e30c0f048f931d03a803d233c06dbf5d8", git = "https://github.com/AstroTechies/unrealmodding", features = [
"ue4_23",
"cpp_loader",
] }
Expand Down
3 changes: 2 additions & 1 deletion astro_mod_integrator/baked/800-CoreMod-0.1.0_P/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"persistent_actors": ["/Game/Integrator/NotificationActor"],
"persistent_actor_maps": [
"Astro/Content/Maps/Staging_T2.umap",
"Astro/Content/Maps/Staging_T2_PackedPlanets_Switch.umap"
"Astro/Content/Maps/Staging_T2_PackedPlanets_Switch.umap",
"Astro/Content/U32_Expansion/U32_Expansion.umap"
]
}
}
11 changes: 9 additions & 2 deletions astro_modloader/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,23 @@ impl Log for SimpleLogger {

// just log debug and above, as otherwise logs are far, far too verbose
if record.level() <= Level::Debug {
let level = match record.level() {
let level_colored = match record.level() {
Level::Error => "ERROR".red(),
Level::Warn => "WARN".yellow(),
Level::Info => "INFO".green(),
Level::Debug => "DEBUG".cyan(),
Level::Trace => "TRACE".blue(),
};
let level = match record.level() {
Level::Error => "ERROR",
Level::Warn => "WARN",
Level::Info => "INFO",
Level::Debug => "DEBUG",
Level::Trace => "TRACE",
};

println!(
"{}{level:<5} {file_path}:{}{} {}",
"{}{level_colored:<5} {file_path}:{}{} {}",
"[".truecolor(100, 100, 100),
record.line().unwrap_or(0),
"]".truecolor(100, 100, 100),
Expand Down

0 comments on commit 289812a

Please sign in to comment.