Skip to content

Commit 3c09cef

Browse files
authored
Merge pull request #31 from AstroTechies/feature/atenfyr/fixes_427
fixes for 4.27 + addl gw fixes
2 parents 289812a + e97e8f7 commit 3c09cef

15 files changed

Lines changed: 107 additions & 26 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
members = ["astro_mod_integrator", "astro_modloader"]
33

44
[workspace.package]
5-
version = "0.1.14"
5+
version = "0.1.15"
66
authors = ["AstroTechies, localcc, konsti219"]
77
description = "Astroneer Modloader"
88

99
[workspace.dependencies]
1010
astro_mod_integrator = { path = "./astro_mod_integrator" }
1111

12-
unreal_mod_manager = { rev = "c636ad4e30c0f048f931d03a803d233c06dbf5d8", git = "https://github.com/AstroTechies/unrealmodding", features = [
13-
"ue4_23",
12+
unreal_mod_manager = { rev = "f4df5d8e75b1e184832384d1865f0b696b90a614", git = "https://github.com/AstroTechies/unrealmodding", features = [
13+
"ue4_27",
1414
"cpp_loader",
1515
] }
1616

240 Bytes
Binary file not shown.
-5.03 KB
Binary file not shown.
-1.17 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

astro_mod_integrator/baked/800-CoreMod-0.1.0_P/metadata.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"version": "0.1.0",
66
"author": "AstroTechies",
77
"integrator": {
8-
"persistent_actors": ["/Game/Integrator/NotificationActor"],
98
"persistent_actor_maps": [
109
"Astro/Content/Maps/Staging_T2.umap",
1110
"Astro/Content/Maps/Staging_T2_PackedPlanets_Switch.umap",

astro_mod_integrator/src/assets.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ pub(crate) const ACTOR_TEMPLATE_ASSET: &[u8] = include_bytes!("../assets/ActorTe
22

33
pub(crate) const ACTOR_TEMPLATE_EXPORT: &[u8] = include_bytes!("../assets/ActorTemplate.uexp");
44

5-
pub(crate) const ALERT_MOD_NOTIFICATION_ACTOR_ASSET: &[u8] =
5+
/*pub(crate) const ALERT_MOD_NOTIFICATION_ACTOR_ASSET: &[u8] =
66
include_bytes!("../assets/alert_mod/NotificationActor.uasset");
77
88
pub(crate) const ALERT_MOD_NOTIFICATION_ACTOR_EXPORT: &[u8] =
9-
include_bytes!("../assets/alert_mod/NotificationActor.uexp");
9+
include_bytes!("../assets/alert_mod/NotificationActor.uexp");*/
10+

astro_mod_integrator/src/handlers/biome_placement_modifiers.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::io_other_error)]
2+
13
use std::collections::HashMap;
24
use std::fs::File;
35
use std::io::{self, BufReader, ErrorKind};
@@ -66,7 +68,7 @@ pub(crate) fn handle_biome_placement_modifiers(
6668
game_paks,
6769
mod_paks,
6870
&map_path.to_string(),
69-
EngineVersion::VER_UE4_23,
71+
EngineVersion::VER_UE4_27,
7072
)?;
7173

7274
let mut voxel_exports = HashMap::new();

astro_mod_integrator/src/handlers/item_list_entries.rs

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ pub(crate) fn handle_item_list_entries(
4545
// this provides backwards compatibility for older mods
4646
// this can just be suppressed by specifying an entry for /Game/Items/ItemTypes/BaseGameInitialKnownItemList in metadata
4747
let exists_bgikil = item_list_entries_map.contains_key("/Game/Items/ItemTypes/BaseGameInitialKnownItemList");
48+
let exists_bgikil2 = item_list_entries_map.contains_key("/Game/U32_Expansion/Items/GW_InitialKnownItemList");
49+
let exists_bgikil3 = item_list_entries_map.contains_key("/Game/Items/ItemLists/BackpackPrinterItemList_GW");
50+
let exists_bgikil4 = item_list_entries_map.contains_key("/Game/Items/ItemLists/T1PrinterItemList_GW");
51+
let exists_bgikil5 = item_list_entries_map.contains_key("/Game/Items/ItemLists/T2PrinterItemList_GW");
4852

4953
for (name, item_list_entries) in item_list_entries_map {
5054
let item_list_entries = item_list_entries
@@ -80,6 +84,38 @@ pub(crate) fn handle_item_list_entries(
8084
.or_insert_with(HashMap::new)
8185
.extend(orig_entry);
8286
}
87+
if name == "/Game/Items/ItemTypes/MasterItemList" && !exists_bgikil2 {
88+
let orig_entry = new_items.entry(name.clone()).or_insert_with(HashMap::new).clone();
89+
90+
new_items
91+
.entry(String::from("/Game/U32_Expansion/Items/GW_InitialKnownItemList"))
92+
.or_insert_with(HashMap::new)
93+
.extend(orig_entry);
94+
}
95+
if name == "/Game/Items/ItemLists/BackpackPrinterItemList" && !exists_bgikil3 {
96+
let orig_entry = new_items.entry(name.clone()).or_insert_with(HashMap::new).clone();
97+
98+
new_items
99+
.entry(String::from("/Game/Items/ItemLists/BackpackPrinterItemList_GW"))
100+
.or_insert_with(HashMap::new)
101+
.extend(orig_entry);
102+
}
103+
if name == "/Game/Items/ItemLists/T1PrinterItemList" && !exists_bgikil4 {
104+
let orig_entry = new_items.entry(name.clone()).or_insert_with(HashMap::new).clone();
105+
106+
new_items
107+
.entry(String::from("/Game/Items/ItemLists/T1PrinterItemList_GW"))
108+
.or_insert_with(HashMap::new)
109+
.extend(orig_entry);
110+
}
111+
if name == "/Game/Items/ItemLists/T2PrinterItemList" && !exists_bgikil5 {
112+
let orig_entry = new_items.entry(name.clone()).or_insert_with(HashMap::new).clone();
113+
114+
new_items
115+
.entry(String::from("/Game/Items/ItemLists/T2PrinterItemList_GW"))
116+
.or_insert_with(HashMap::new)
117+
.extend(orig_entry);
118+
}
83119
}
84120
}
85121

@@ -91,7 +127,7 @@ pub(crate) fn handle_item_list_entries(
91127
game_paks,
92128
mod_paks,
93129
&asset_name,
94-
EngineVersion::VER_UE4_23,
130+
EngineVersion::VER_UE4_27,
95131
)?;
96132

97133
let mut item_types_property: HashMap<String, Vec<(usize, usize, String)>> = HashMap::new();

0 commit comments

Comments
 (0)