I have a few scripts for extracting data for my plugin development.
Save it as a .cs file and add it to a person as a plugin.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using MVR.FileManagementSecure;
using UnityEngine;
/// <summary>
/// Add...
I tested the below on the saves I have, should work.
You can test on what you have to spot check accuracy.
Just keep in mind this is modern .NET, so just make sure you use at least C# 12 and .NET 8.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using...
For those that want to know what settings they should set in Unity when compiling asset bundles:
Setting in Unity
Where
Value
Virtual Reality Supported (Standalone)
Edit > Project Settings > Player > XR Settings
On, devices Oculus and OpenVR (m_BuildTargetVRSettings, m_Enabled: 1)
Stereo...
If it's just to notify you can just use SuperController.LogMessage or SuperController.LogError.
VaM Exposes a dialog, so you can use:
using UnityEngine.Events;
// OK-only message
SuperController.AlertUser("Hello from my plugin!", () => SuperController.LogMessage("User clicked OK"));
// OK /...
I ran into this during plugin development and tracked down the cause a while ago with headless tests (Unity 2018.1.9f2, running VaM's own Assembly-CSharp.dll and mcs.dll), and how it could be fixed.
I'll share my findings here since the fix seems quite small, and I've now confirmed it inside...
I don't remember SuperController containing DirectoryExists.
Your code might not compile in VAM.
For file system use FileManagerSecure.
This code should help you get started:
using System.Collections.Generic;
using MVR.FileManagementSecure; // FileManagerSecure (VaM's sandboxed file API)...
If that's not the key, add some logging in that loop and see what's available in the storables, that could expose right storable Id.
You can also take another approach and look for a known value and reverse check the key from the value. That's usually how I check what's available when I'm...
This is a theory, not tested, but give it a try:
const float FreeValue = 254f / 255f;
void FreeClothing(Atom atom)
{
foreach (string id in atom.GetStorableIDs())
{
JSONStorable s = atom.GetStorableByID(id);
if (s == null) continue;
JSONStorableAction act =...
Get a good coding agent. I recommend Anthropic's Claude, use Sonnet 5.5 to keep it relatively cheap and helpful, then give them this prompt:
You are my patient software mentor and pair-programmer. I am NOT a coder and
have never written code. I want you to build me a small Virt-A-Mate (VaM)...
Some questions:
Are the clothing items Timeline targets, or only the person’s own morphs and params? Check the Timeline Targets screen for float-param rows named after clothing items.
Do the two segments reference different clothing items’ storables?
Is the character atom inside a subscene, and...
I recommend you judge on more detail before pulling the trigger.
A good app to use is Intel PresentMon. Run it and target VaM.
Check CPU busy vs GPU busy to see which is the actual bottleneck.
This looks like a corrupted scene save file.
In the stack trace, these lines reveal the issue:
!> Exception during LoadJSON: System.Exception: JSON Parse: Too many closing brackets
at SimpleJSON.JSONNode.Parse (System.String aJSON) [0x00000] in <filename unknown>:0
at SimpleJSON.JSON.Parse...
@booyakshaka glad you like the concept.
The plugin that drives the expressions can be found here: HK FullPersonControl
The default template is what you saw earlier in this thread.
I see your perspective, and in general that is very accurate. Though I won't use it as a blanket statement because...