Skip to content

Commit

Permalink
1.7.1 - Install Bepinex fixes and R2API.Animations support (#27)
Browse files Browse the repository at this point in the history
* force installation of bepinex latest and delete animations assettools

* 1.7.1
  • Loading branch information
Nebby1999 authored Oct 27, 2024
1 parent d101e5d commit b8704d0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 1.7.1

* Updated to use Thunderkit version 9.0.1
* Fixed "Install Bepinex" extension point not installing the latest version of it's dependencies
* This fixes an issue where Newtonsoft.JSON wouldnt be added to the project.
* Added proper support for installing the R2API.Animations package
* Deletes it's AssetTools.NET.dll to allow for the project to function properly.

### 1.7.0

* Updated for unity 2021.3.33f1
Expand Down
1 change: 1 addition & 0 deletions Editor/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static class Priority

public static class Paths
{
public const string R2API_ANIMS_ASSET_TOOLS_PATH = "Packages/R2API_Animations/plugins/R2API.Animations/AssetTools.NET.dll";
public const string OldMMHookPath = "Packages/riskofthunder-hookgenpatcher/BepInEx/plugins/MMHOOK";
public const string NStripExePath = "Packages/riskofthunder-ror2importextensions/Binary/NStrip/NStrip.exe";
public const string HookGenExePath = "Packages/riskofthunder-ror2importextensions/Binary/MonoMod.RuntimeDetour.HookGen/MonoMod.RuntimeDetour.HookGen.exe";
Expand Down
2 changes: 2 additions & 0 deletions Editor/InstallBepInEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class InstallBepInEx : ThunderstorePackageInstaller
public override string DependencyId => "bbepis-BepInExPack";
public override string Description => $"Installs the latest version of BepInEx.\r\nThe Unified BepInEx all-in-one modding pack - plugin framework, detour library";
public override string Name => $"Install BepInEx";

public override bool ForceLatestDependencies => true;
}
}

11 changes: 8 additions & 3 deletions Editor/R2APISubmoduleInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,15 @@ public void RefreshListView()
}
public override void Cleanup()
{
var fullPath = Path.GetFullPath(Constants.Paths.OldMMHookPath);
if(Directory.Exists(fullPath))
base.Cleanup();
if(AssetDatabase.AssetPathToGUID(Constants.Paths.OldMMHookPath) != string.Empty)
{
File.Delete(Path.Combine(fullPath, "MMHOOK_Assembly-CSharp.dll"));
FileUtil.DeleteFileOrDirectory(Constants.Paths.OldMMHookPath);
}

if(AssetDatabase.AssetPathToGUID("Packages/riskofthunder-r2api_animations/plugins/R2API.Animations/AssetsTools.NET.dll") != string.Empty)
{
FileUtil.DeleteFileOrDirectory("Packages/riskofthunder-r2api_animations/plugins/R2API.Animations/AssetsTools.NET.dll");
}

if(transientStore)
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ Note: Higher priority means it runs earlier
| Extension Name | Priority | Effect | Level of Recomendation |
|--|--|--|--|
| PostProcessing Package Installer | 3.25M | Installs the PostProcessing package version 2.3.0 and prevents the game's PostProcessing DLL from being imported | Recommended if working with PP
|Unity GUI Patcher|3.24M| Patcher that'll modify the game's UnityGUI assembly and installs & modifies the UnityGUI Package to allow proper functionality of the UnityGUI package in the editor.|Highly Recommended|
|TextMeshPro Patcher|3.23M| Patcher that'll modify the game's TextMeshPro assembly and installs & modifies the TextMeshPro Package to allow proper functionality of the TextMeshPro package in the editor.|Highly Recommended|
|Assembly Publicizer|3.125M|Publicizes the listed assemblies with N-Strip, publicized assemblies retain their editor functionality and inspector look| Recommended if publicizing is needed|
|MMHook Generator|3.12M|Creates MMHook assemblies for the listed assemblies, allowing for hooking ingame methods to run code injection|Extremely Recommended
| ROR2 LegacyResourceAPI Patcher | 2.75M | Patches the LegacyResourcesAPI dll to improve it's stability in the editor | Extremely Recommended |
|Set Deferred Shading|1.9995M|Ensures that the Graphics Tiers have their Rendering Path set to Deferred after importing Project settings|Highly Recommended
|Configure Addressable Graphics Settings|-5.01K|Assigns the Risk of Rain 2 DeferredShading and DeferredReflectionCustom shaders in the Addressable Graphics settings and by proxy in the Project's Graphics Settings|Recommended
|Ensure RoR2 Thunderstore Source|-125k|Ensures the creation of a thunderstore source that points to https://thunderstore.io|Recommended
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": ""
},
"displayName": "RoR2 Import Extensions",
"version": "1.7.0",
"version": "1.7.1",
"unity": "2021.3",
"description": "Import extensions for ThunderKit to stabilize and complete the RoR2 import process"
}

0 comments on commit b8704d0

Please sign in to comment.