Skip to content

Commit a8f10e4

Browse files
committed
astro_modloader: update for new unreal_modintegrator version
1 parent 4b5b056 commit a8f10e4

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

astro_modintegrator/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "astro_modintegrator"
33
authors = ["AstroTechies"]
4-
version = "0.1.3"
4+
version = "0.1.4"
55
edition = "2021"
66

77
[dependencies]
8-
unreal_modloader = { verison = "0.1.3", git = "https://github.com/AstroTechies/unrealmodding", features = ["bulk_data", "ue4_23"] }
8+
unreal_modloader = { verison = "0.1.4", git = "https://github.com/AstroTechies/unrealmodding", features = ["bulk_data", "ue4_23"] }
99
serde_json = "1.0.82"
1010
serde = { version = "1.0.140", features = ["derive"] }
1111
log = "0.4.17"

astro_modintegrator/src/handlers/biome_placement_modifiers.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub(crate) fn handle_biome_placement_modifiers(
3939
_data: &(),
4040
integrated_pak: &mut PakFile,
4141
game_paks: &mut Vec<PakFile>,
42-
_: &mut Vec<PakFile>,
42+
mod_paks: &mut Vec<PakFile>,
4343
placement_modifiers: &Vec<serde_json::Value>,
4444
) -> Result<(), io::Error> {
4545
let mut biome_placement_modifiers = Vec::new();
@@ -55,7 +55,13 @@ pub(crate) fn handle_biome_placement_modifiers(
5555
if map_path == "Astro/Content/Maps/test/BasicSphereT2.umap" {
5656
continue;
5757
}
58-
let mut asset = get_asset(integrated_pak, game_paks, &map_path.to_string(), VER_UE4_23)?;
58+
let mut asset = get_asset(
59+
integrated_pak,
60+
game_paks,
61+
mod_paks,
62+
&map_path.to_string(),
63+
VER_UE4_23,
64+
)?;
5965

6066
let mut voxel_exports = HashMap::new();
6167

astro_modintegrator/src/handlers/item_list_entries.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub(crate) fn handle_item_list_entries(
2929
_data: &(),
3030
integrated_pak: &mut PakFile,
3131
game_paks: &mut Vec<PakFile>,
32-
_mod_paks: &mut Vec<PakFile>,
32+
mod_paks: &mut Vec<PakFile>,
3333
item_list_entires_maps: &Vec<serde_json::Value>,
3434
) -> Result<(), io::Error> {
3535
let mut new_items = HashMap::new();
@@ -66,7 +66,7 @@ pub(crate) fn handle_item_list_entries(
6666
for (asset_name, entries) in &new_items {
6767
let asset_name = game_to_absolute(AstroIntegratorConfig::GAME_NAME, asset_name)
6868
.ok_or_else(|| io::Error::new(ErrorKind::Other, "Invalid asset name"))?;
69-
let mut asset = get_asset(integrated_pak, game_paks, &asset_name, VER_UE4_23)?;
69+
let mut asset = get_asset(integrated_pak, game_paks, mod_paks, &asset_name, VER_UE4_23)?;
7070

7171
let mut item_types_property: HashMap<String, Vec<(usize, usize, String)>> = HashMap::new();
7272
for i in 0..asset.exports.len() {

astro_modintegrator/src/handlers/linked_actor_components.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) fn handle_linked_actor_components(
3535
_data: &(),
3636
integrated_pak: &mut PakFile,
3737
game_paks: &mut Vec<PakFile>,
38-
_mod_paks: &mut Vec<PakFile>,
38+
mod_paks: &mut Vec<PakFile>,
3939
linked_actors_maps: &Vec<serde_json::Value>,
4040
) -> Result<(), io::Error> {
4141
let mut actor_asset = Asset::new(
@@ -78,7 +78,7 @@ pub(crate) fn handle_linked_actor_components(
7878
for (name, components) in &new_components {
7979
let name = game_to_absolute(AstroIntegratorConfig::GAME_NAME, name)
8080
.ok_or_else(|| io::Error::new(ErrorKind::Other, "Invalid asset name"))?;
81-
let mut asset = get_asset(integrated_pak, game_paks, &name, VER_UE4_23)?;
81+
let mut asset = get_asset(integrated_pak, game_paks, mod_paks, &name, VER_UE4_23)?;
8282

8383
for component_path_raw in components {
8484
let mut actor_index = None;

astro_modintegrator/src/handlers/mission_trailheads.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ pub(crate) fn handle_mission_trailheads(
2222
_data: &(),
2323
integrated_pak: &mut PakFile,
2424
game_paks: &mut Vec<PakFile>,
25-
_mod_paks: &mut Vec<PakFile>,
25+
mod_paks: &mut Vec<PakFile>,
2626
trailhead_arrays: &Vec<serde_json::Value>,
2727
) -> Result<(), io::Error> {
2828
for map_path in MAP_PATHS {
2929
let mut asset = get_asset(
3030
integrated_pak,
3131
game_paks,
32+
mod_paks,
3233
&String::from(map_path),
3334
VER_UE4_23,
3435
)?;

astro_modloader/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "0.1.1"
55
edition = "2021"
66

77
[dependencies]
8-
astro_modintegrator = { version = "0.1.3", path = "../astro_modintegrator" }
8+
astro_modintegrator = { version = "0.1.4", path = "../astro_modintegrator" }
99
image = "0.24.3"
1010
autoupdater = "0.1.5"
1111
serde_json = "1.0.82"

0 commit comments

Comments
 (0)