From 0f2b3df0cb6e11e5d59b60ec5c44bee53c861cc4 Mon Sep 17 00:00:00 2001 From: wannkunstbeikor <93538252+wannkunstbeikor@users.noreply.github.com> Date: Tue, 28 Mar 2023 16:47:11 +0200 Subject: [PATCH] Preparations for beta 2 --- FrostyEditor/ChangeLog.txt | 14 +++++++++++++- FrostyPlugin/App.cs | 2 +- .../DuplicationPlugin/DuplicateContextMenuItem.cs | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/FrostyEditor/ChangeLog.txt b/FrostyEditor/ChangeLog.txt index af0629f44..1c8b901dd 100644 --- a/FrostyEditor/ChangeLog.txt +++ b/FrostyEditor/ChangeLog.txt @@ -1,4 +1,16 @@ -v1.0.6.2 (Beta 1) +v1.0.6.2 (Beta 2) +-------- +- Fixes issue with bundle editing in older games (#240, #248) +- Fixes crashing issues (#242) + +Plugin Changes +- Fixes crash when the localization chunk doesnt exist but gets modified (#239) +- Fixes issue with texture duplication (#243) +- Fixes crash when loading sounds where one chunk doesnt exist (#245) +- Fixes issues with rivals meshes and textures (#246) +- Moves DifficultyWeaponTableData into its own plugin (#247) + +v1.0.6.2 (Beta 1) -------- - Fixed memory issue and writing of cat files (#222) - Fixed about menu support link being cut off (#224) diff --git a/FrostyPlugin/App.cs b/FrostyPlugin/App.cs index f7f4f3fd5..8aaf4daa1 100644 --- a/FrostyPlugin/App.cs +++ b/FrostyPlugin/App.cs @@ -18,7 +18,7 @@ public sealed class App public static string SelectedPack; public static ILogger Logger; - public static readonly int Version = 1; + public static readonly int Version = 2; public static string ProfileSettingsPath => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "/Frosty/" + ProfilesLibrary.ProfileName; public static string GlobalSettingsPath => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "/Frosty"; diff --git a/Plugins/DuplicationPlugin/DuplicateContextMenuItem.cs b/Plugins/DuplicationPlugin/DuplicateContextMenuItem.cs index 6053ac3e2..677c87463 100644 --- a/Plugins/DuplicationPlugin/DuplicateContextMenuItem.cs +++ b/Plugins/DuplicationPlugin/DuplicateContextMenuItem.cs @@ -44,6 +44,7 @@ public override EbxAssetEntry DuplicateAsset(EbxAssetEntry entry, string newName ((dynamic)newAsset.RootObject).Resource = newResEntry.ResRid; Texture newTexture = App.AssetManager.GetResAs(newResEntry); newTexture.ChunkId = chunkGuid; + newTexture.AssetNameHash = (uint)Utils.HashString(newResEntry.Name, true); // Add the new chunk/res entries to the original bundles newResEntry.AddedBundles.AddRange(resEntry.EnumerateBundles());