mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
LegacyContentMitigation: prepare for submission
This commit is contained in:
parent
94515efbe3
commit
d4dc8fba44
4 changed files with 46 additions and 2 deletions
|
@ -41,7 +41,7 @@ public static class BtkUiAddon
|
||||||
string.Empty, "Records Camera events & logs them next frame. Useful for determining camera render order shenanigans.");
|
string.Empty, "Records Camera events & logs them next frame. Useful for determining camera render order shenanigans.");
|
||||||
printCameraCallbacksButton.OnPress += () => CameraCallbackLogger.Instance.LogCameraEvents();
|
printCameraCallbacksButton.OnPress += () => CameraCallbackLogger.Instance.LogCameraEvents();
|
||||||
|
|
||||||
OnCurrentStateToggled(FakeMultiPassHack.Instance.IsEnabled);
|
OnMultiPassActiveChanged(FakeMultiPassHack.Instance.IsEnabled);
|
||||||
FakeMultiPassHack.OnMultiPassActiveChanged += OnMultiPassActiveChanged;
|
FakeMultiPassHack.OnMultiPassActiveChanged += OnMultiPassActiveChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ using ABI.CCK.Components;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Rendering.PostProcessing;
|
using UnityEngine.Rendering.PostProcessing;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
namespace NAK.LegacyContentMitigation.Patches;
|
namespace NAK.LegacyContentMitigation.Patches;
|
||||||
|
|
||||||
|
@ -27,8 +28,10 @@ internal static class SceneLoaded_Patches
|
||||||
{
|
{
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(SceneLoaded), nameof(SceneLoaded.OnSceneLoadedHandleJob))]
|
[HarmonyPatch(typeof(SceneLoaded), nameof(SceneLoaded.OnSceneLoadedHandleJob))]
|
||||||
private static void Prefix_SceneLoaded_OnSceneLoadedHandleJob()
|
private static void Prefix_SceneLoaded_OnSceneLoadedHandleJob(Scene scene, LoadSceneMode mode)
|
||||||
{
|
{
|
||||||
|
if (mode == LoadSceneMode.Additive) return;
|
||||||
|
|
||||||
if (!ModSettings.EntryAutoForLegacyWorlds.Value)
|
if (!ModSettings.EntryAutoForLegacyWorlds.Value)
|
||||||
{
|
{
|
||||||
LegacyContentMitigationMod.Logger.Msg("LegacyContentMitigationMod is disabled.");
|
LegacyContentMitigationMod.Logger.Msg("LegacyContentMitigationMod is disabled.");
|
||||||
|
|
18
LegacyContentMitigation/README.md
Normal file
18
LegacyContentMitigation/README.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# LegacyContentMitigation
|
||||||
|
|
||||||
|
Experimental mod that manually renders both VR eyes separately while in Legacy Worlds.
|
||||||
|
|
||||||
|
The mod will automatically kick-in when loading NonSpi Worlds & prevent Shader Replacement for all content while active. You can also manually toggle it within the BTKUI Misc tab for experimenting.
|
||||||
|
|
||||||
|
-# There is an obvious performance penalty with rendering the world 2x & toggling the head hiding per eye, so enabling the mod outside of Legacy Worlds is not recommended.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI.
|
||||||
|
https://documentation.abinteractive.net/official/legal/tos/#7-modding-our-games
|
||||||
|
|
||||||
|
> This mod is an independent creation not affiliated with, supported by, or approved by Alpha Blend Interactive.
|
||||||
|
|
||||||
|
> Use of this mod is done so at the user's own risk and the creator cannot be held responsible for any issues arising from its use.
|
||||||
|
|
||||||
|
> To the best of my knowledge, I have adhered to the Modding Guidelines established by Alpha Blend Interactive.
|
23
LegacyContentMitigation/format.json
Normal file
23
LegacyContentMitigation/format.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"_id": -1,
|
||||||
|
"name": "LegacyContentMitigation",
|
||||||
|
"modversion": "1.0.0",
|
||||||
|
"gameversion": "2024r177",
|
||||||
|
"loaderversion": "0.6.1",
|
||||||
|
"modtype": "Mod",
|
||||||
|
"author": "NotAKidoS",
|
||||||
|
"description": "Experimental mod that manually renders both VR eyes separately while in Legacy Worlds.\n\nThe mod will automatically kick-in when loading NonSpi Worlds & prevent Shader Replacement for all content while active. You can also manually toggle it within the BTKUI Misc tab for experimenting.\n\n-# There is an obvious performance penalty with rendering the world 2x & toggling the head hiding per eye, so enabling the mod outside of Legacy Worlds is not recommended.",
|
||||||
|
"searchtags": [
|
||||||
|
"legacy",
|
||||||
|
"content",
|
||||||
|
"spi",
|
||||||
|
"shaders"
|
||||||
|
],
|
||||||
|
"requirements": [
|
||||||
|
"BTKUILib"
|
||||||
|
],
|
||||||
|
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r44/LegacyContentMitigation.dll",
|
||||||
|
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/LegacyContentMitigation/",
|
||||||
|
"changelog": "- Initial release",
|
||||||
|
"embedcolor": "#507e64"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue