[ShadowCloneFallback] Initial Release

This commit is contained in:
NotAKidoS 2024-04-23 16:06:50 -05:00
parent 6c7a3259e7
commit 169df4ed33
6 changed files with 103 additions and 4 deletions

View file

@ -0,0 +1,27 @@
using ABI_RC.Core.Player.ShadowClone;
using MelonLoader;
namespace NAK.ShadowCloneFallback;
public class ShadowCloneFallback : MelonMod
{
private const string SettingsCategory = nameof(ShadowCloneFallback);
private static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(SettingsCategory);
private static readonly MelonPreferences_Entry<bool> EntryEnabled =
Category.CreateEntry("Enabled", true, description: "Toggle ShadowCloneFallback entirely.");
public override void OnInitializeMelon()
{
ShadowCloneUtils.s_UseShaderClones = EntryEnabled.Value;
EntryEnabled.OnEntryValueChanged.Subscribe(OnEnabledChanged);
}
private void OnEnabledChanged(bool _, bool __)
{
ShadowCloneUtils.s_UseShaderClones = EntryEnabled.Value;
LoggerInstance.Msg($"ShadowCloneUtils.s_UseShaderClones is now {(EntryEnabled.Value ? "enabled" : "disabled")}.");
}
}

View file

@ -0,0 +1,30 @@
using NAK.ShadowCloneFallback.Properties;
using MelonLoader;
using System.Reflection;
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyTitle(nameof(NAK.ShadowCloneFallback))]
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
[assembly: AssemblyProduct(nameof(NAK.ShadowCloneFallback))]
[assembly: MelonInfo(
typeof(NAK.ShadowCloneFallback.ShadowCloneFallback),
nameof(NAK.ShadowCloneFallback),
AssemblyInfoParams.Version,
AssemblyInfoParams.Author,
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/ShadowCloneFallback"
)]
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
[assembly: HarmonyDontPatchAll]
namespace NAK.ShadowCloneFallback.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "1.0.0";
public const string Author = "NotAKidoS";
}

View file

@ -0,0 +1,17 @@
# ShadowCloneFallback
Simple mod that exposes a toggle for the Fallback Shadow Clone implementation.
By default, using this mod will enable the less-performant shadow clones. Only use this mod if you for whatever reason have issues with the compute shader clones.
Originally made the mod for debugging a potential crash a friend was experiencing, which turned out to be unrelated to the shader clones.
---
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.

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk"/>

View file

@ -0,0 +1,23 @@
{
"_id": -1,
"name": "ShadowCloneFallback",
"modversion": "1.0.0",
"gameversion": "2024r175",
"loaderversion": "0.6.1",
"modtype": "Mod",
"author": "NotAKidoS",
"description": "Simple mod that exposes a toggle for the Fallback Shadow Clone implementation.\nBy default, using this mod will enable the less-performant shadow clones. Only use this mod if you for whatever reason have issues with the compute shader clones.",
"searchtags": [
"shadow",
"clone",
"compute",
"shader"
],
"requirements": [
"None"
],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r26/ShadowCloneFallback.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/ShadowCloneFallback/",
"changelog": "- Initial Release",
"embedcolor": "#7d7e81"
}

View file

@ -1,12 +1,12 @@
{ {
"_id": -1, "_id": -1,
"name": "Stop Closing My Menus On World Load", "name": "Stop Closing My Menu On World Load",
"modversion": "1.0.0", "modversion": "1.0.0",
"gameversion": "2024r175", "gameversion": "2024r175",
"loaderversion": "0.6.1", "loaderversion": "0.6.1",
"modtype": "Mod", "modtype": "Mod",
"author": "NotAKidoS", "author": "NotAKidoS",
"description": "Simple patch that prevents your menus from being closed when a world is loaded.", "description": "Simple patch that prevents your menu from being closed when a world is loaded.\nNicked the patch Kafeijao made for my old MenuScalePatch mod.",
"searchtags": [ "searchtags": [
"menu", "menu",
"close", "close",
@ -16,8 +16,8 @@
"requirements": [ "requirements": [
"None" "None"
], ],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r25/StopClosingMyMenusOnWorldLoad.dll", "downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r26/StopClosingMyMenuOnWorldLoad.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/StopClosingMyMenusOnWorldLoad/", "sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/StopClosingMyMenuOnWorldLoad/",
"changelog": "- Initial Release", "changelog": "- Initial Release",
"embedcolor": "#b589ec" "embedcolor": "#b589ec"
} }