[NAK_CVR_Mods] Unfucked for 2026r182

This commit is contained in:
NotAKid 2026-06-18 22:20:56 -05:00
parent c13dc8375a
commit 281403d68b
209 changed files with 3936 additions and 1122 deletions

View file

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

View file

@ -0,0 +1,110 @@
using ABI_RC.Core.Player;
using ABI_RC.Systems.ChatBox;
using ABI_RC.Systems.UI.UILib;
using ABI_RC.Systems.UI.UILib.UIObjects;
using ABI_RC.Systems.UI.UILib.UIObjects.Components;
using MelonLoader;
namespace NAK.FeedbackDotChilloutVRDotNet;
public class FeedbackDotChilloutVRDotNetMod : MelonMod
{
private static MelonPreferences_Category _prefs;
private static MelonPreferences_Entry<bool> _autoReact;
public override void OnInitializeMelon()
{
// Emails:
// Moderation Reports moderation@chilloutvr.net
// Legal legal@chilloutvr.net
// Team (general feedback, bug reports) team@chilloutvr.net
// Websites:
// Feedback (Issue Tracker) feedback.chilloutvr.net
// Docs docs.chilloutvr.net
// Hub hub.chilloutvr.net
// Discord discord.gg/chilloutvr
// Quick Messages:
// I am not moderation. You will need to reach out to moderation@chilloutvr.net.
// Auto React (goofy, behind toggle):
// issue, bug -> feedback site
// nak fix, @NotAKid fix, @NotAKidoS fix, pls fix, go fix -> no
_prefs = MelonPreferences.CreateCategory(nameof(FeedbackDotChilloutVRDotNetMod));
_autoReact = _prefs.CreateEntry("AutoReact", false, "Auto React",
"Automatically reply to messages containing certain keywords (goofy).");
SetupMenu();
SetupAutoReact();
}
private static void SetupMenu()
{
Category category = QuickMenuAPI.MiscTabPage.AddCategory("Quick ChatBox Messages", true, true);
category.ChildIndex = 0;
// Websites
AddMessageButton(category, "Feedback", "feedback.chilloutvr.net");
AddMessageButton(category, "Docs", "docs.chilloutvr.net");
AddMessageButton(category, "Hub", "hub.chilloutvr.net");
AddMessageButton(category, "Discord", "discord.gg/chilloutvr");
// Emails
AddMessageButton(category, "Moderation", "moderation@chilloutvr.net");
AddMessageButton(category, "Legal", "legal@chilloutvr.net");
AddMessageButton(category, "Team", "team@chilloutvr.net");
// Canned responses
AddMessageButton(category, "Not Moderation",
"I am not moderation. You will need to reach out to moderation@chilloutvr.net.");
// Toggle for the goofy auto-react interceptor
ToggleButton autoReactToggle = category.AddToggle("Auto React",
"Automatically reply to messages with certain keywords (goofy).",
_autoReact.Value);
autoReactToggle.OnValueUpdated += b => _autoReact.Value = b;
}
private static Button AddMessageButton(Category category, string name, string message)
{
Button button = category.AddButton(name, string.Empty, message, ButtonStyle.TextOnly);
button.OnPress += () => ChatBoxAPI.SendMessage(message, true, true, false);
return button;
}
private static readonly ChatBoxAPI.InterceptorResult _emptyCauseCantReturnNull = new(false, false);
private static void SetupAutoReact()
{
ChatBoxAPI.AddReceivingInterceptor(message =>
{
if (_autoReact.Value)
{
string text = message.Message;
string username = CVRPlayerManager.Instance.TryGetPlayerName(message.SenderGuid);
// Order matters: catch the "fix" demands before the generic feedback keywords.
if (ContainsAny(text, "nak fix", "@NotAKid fix", "@NotAKidoS fix", "pls fix", "go fix"))
ChatBoxAPI.SendMessage($"@{username} no", true, true, false);
else if (ContainsAny(text, "issue", "bug", "feedback"))
ChatBoxAPI.SendMessage($"@{username} feedback.chilloutvr.net", true, true, false);
// game broke -> remove mods, find player.log
}
return _emptyCauseCantReturnNull;
});
}
private static bool ContainsAny(string source, params string[] values)
{
foreach (string value in values)
{
if (source.Contains(value, StringComparison.InvariantCultureIgnoreCase))
return true;
}
return false;
}
}

View file

@ -0,0 +1,32 @@
using MelonLoader;
using NAK.FeedbackDotChilloutVRDotNet.Properties;
using System.Reflection;
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyTitle(nameof(NAK.FeedbackDotChilloutVRDotNet))]
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
[assembly: AssemblyProduct(nameof(NAK.FeedbackDotChilloutVRDotNet))]
[assembly: MelonInfo(
typeof(NAK.FeedbackDotChilloutVRDotNet.FeedbackDotChilloutVRDotNetMod),
nameof(NAK.FeedbackDotChilloutVRDotNet),
AssemblyInfoParams.Version,
AssemblyInfoParams.Author,
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/FeedbackDotChilloutVRDotNet"
)]
[assembly: MelonGame("ChilloutVR", "ChilloutVR")]
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
[assembly: MelonColor(255, 246, 25, 99)] // red-pink
[assembly: MelonAuthorColor(255, 158, 21, 32)] // red
[assembly: HarmonyDontPatchAll]
namespace NAK.FeedbackDotChilloutVRDotNet.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "1.0.0";
public const string Author = "NotAKidoS";
}

View file

@ -0,0 +1,54 @@
# ASTExtension
Extension mod for [Avatar Scale Tool](https://github.com/NotAKidoS/AvatarScaleTool):
- VR Gesture to scale
- Persistent height
- Copy height from others
Best used with Avatar Scale Tool, but will attempt to work with found scaling setups.
Requires already having Avatar Scaling on the avatar. This is **not** Universal Scaling.
## Supported Setups
ASTExtension will attempt to work with the following setups:
**Parameter Names:**
- AvatarScale
- Scale
- Scaler
- Scale/Scale
- Height
- LoliModifier
- AvatarSize
- Size
- SizeScale
- Scaling
These parameter names are not case sensitive and have been gathered from polling the community for common parameter names.
Assuming the parameter is a float, ASTExtension will attempt to use it as the height parameter. Will automatically calibrate to the height range of the found parameter, assuming the scaling animation is in a blend tree / state using motion time & is linear. The scaling animation state **must be active** at time of avatar load.
The max value ASTExtension will drive the parameter to is 100. As the mod is having to guess the max height, it may not be accurate if the max height is not capped at a multiple of 10.
Examples:
- `AvatarScale` - 0 to 1 (slider)
- This is the default setup for Avatar Scale Tool and will work perfectly.
- `Scale` - 0 to 100 (input single)
- This will also work perfectly as the max height is a multiple of 10.
- `Height` - 0 to 2 (input single)
- This will not work properly. The max value to drive the parameter to is not a multiple of 10, and as such ASTExtension will believe the parameter range is 0 to 1.
- `BurntToast` - 0 to 10 (input single)
- This will not work properly. The parameter name is not recognized by ASTExtension.
If your setup is theoretically supported but not working, it is likely the scaling animation is not linear or has loop enabled if using Motion Time, making the first and last frame identical height. In this case, you will need to fix your animation clip curves / blend tree to be linear &|| not loop, or use Avatar Scale Tool to generate a new scaling animation.
---
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,24 @@
{
"_id": 223,
"name": "ASTExtension",
"modversion": "1.0.5",
"gameversion": "2025r181",
"loaderversion": "0.7.2",
"modtype": "Mod",
"author": "NotAKidoS",
"description": "Extension mod for [Avatar Scale Tool](https://github.com/NotAKidoS/AvatarScaleTool):\n- VR Gesture to scale\n- Persistent height\n- Copy height from others\n\nBest used with Avatar Scale Tool, but will attempt to work with found scaling setups.\nRequires already having Avatar Scaling on the avatar. This is **not** Universal Scaling.",
"searchtags": [
"tool",
"scaling",
"height",
"extension",
"avatar"
],
"requirements": [
"BTKUILib"
],
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r48/ASTExtension.dll",
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/ASTExtension/",
"changelog": "- Rebuilt for CVR 2025r181",
"embedcolor": "#f61963"
}