mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
default value got me again
This commit is contained in:
parent
b9d48d0b11
commit
69522cc029
3 changed files with 14 additions and 9 deletions
|
@ -5,7 +5,7 @@ namespace NAK.Melons.AASBufferFix;
|
||||||
|
|
||||||
public class AASBufferHelper : MonoBehaviour
|
public class AASBufferHelper : MonoBehaviour
|
||||||
{
|
{
|
||||||
public bool isAcceptingAAS = true;
|
public bool isAcceptingAAS = false;
|
||||||
|
|
||||||
internal PuppetMaster puppetMaster;
|
internal PuppetMaster puppetMaster;
|
||||||
|
|
||||||
|
@ -41,11 +41,11 @@ public class AASBufferHelper : MonoBehaviour
|
||||||
avatarFootprint = 0;
|
avatarFootprint = 0;
|
||||||
isAcceptingAAS = false;
|
isAcceptingAAS = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnApplyAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte)
|
public void OnApplyAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte)
|
||||||
{
|
{
|
||||||
//create the synced data footprint
|
//create the synced data footprint
|
||||||
aasFootprint = (settingsFloat.Length + 1) * ((settingsInt.Length) + 1) * ((settingsByte.Length) + 1);
|
aasFootprint = (settingsFloat.Length + 1) * (settingsInt.Length + 1) * (settingsByte.Length + 1);
|
||||||
|
|
||||||
if (!SyncDataMatchesExpected())
|
if (!SyncDataMatchesExpected())
|
||||||
{
|
{
|
||||||
|
@ -60,8 +60,13 @@ public class AASBufferHelper : MonoBehaviour
|
||||||
//avatar is loaded on our screen, but wearer is syncing bad data
|
//avatar is loaded on our screen, but wearer is syncing bad data
|
||||||
//we will need to wait until it has loaded on their end
|
//we will need to wait until it has loaded on their end
|
||||||
|
|
||||||
//there is also a chance the avatar is hidden, so the animator returned 1 on initialization
|
//there is also a chance the avatar is hidden, so the avatar footprint returned 1 on initialization
|
||||||
//(this was only one encounter during testing, someone being hidden by safety on world load)
|
//(this was only one encounter during testing, someone being hidden by safety on world load) (x, 1)
|
||||||
|
//these avatars do attempt to sync AAS, but the avatar footprint will never match
|
||||||
|
|
||||||
|
//there is also a chance the avatar is an old avatar before AAS, so they do not sync any data
|
||||||
|
//and have an avatar footprint of 1 (-1, 1)
|
||||||
|
//these avatars do not seem to attempt AAS syncing, so it isnt much of a problem
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,6 @@ using System.Reflection;
|
||||||
namespace AASBufferFix.Properties;
|
namespace AASBufferFix.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.0";
|
public const string Version = "1.0.1";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"_id": -1,
|
"_id": -1,
|
||||||
"name": "AASBufferFix",
|
"name": "AASBufferFix",
|
||||||
"modversion": "1.0.0",
|
"modversion": "1.0.1",
|
||||||
"gameversion": "2022r170",
|
"gameversion": "2022r170",
|
||||||
"loaderversion": "0.5.7",
|
"loaderversion": "0.5.7",
|
||||||
"modtype": "Mod",
|
"modtype": "Mod",
|
||||||
"author": "NotAKidoS",
|
"author": "NotAKidoS",
|
||||||
"description": "Fixes two AAS buffer issues. Remote avatars with AAS will no longer experience wardrobe malfunctions on initialization.\n\nAAS will not be applied unless the synced data matches what is expected of the loaded avatar.",
|
"description": "Fixes two AAS buffer issues. Remote avatars with AAS will no longer experience wardrobe malfunctions on initialization. (only affects avatar load)\n\nAAS will not be applied unless the synced data matches what is expected of the loaded avatar.",
|
||||||
"searchtags": [
|
"searchtags": [
|
||||||
"aas",
|
"aas",
|
||||||
"sync",
|
"sync",
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"None"
|
"None"
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidOnSteam/AASBufferFix/releases/download/v1.0.0/AASBufferFix.dll",
|
"downloadlink": "https://github.com/NotAKidOnSteam/AASBufferFix/releases/download/v1.0.1/AASBufferFix.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidOnSteam/AASBufferFix/",
|
"sourcelink": "https://github.com/NotAKidOnSteam/AASBufferFix/",
|
||||||
"changelog": "- Initial Release",
|
"changelog": "- Initial Release",
|
||||||
"embedcolor": "9b59b6"
|
"embedcolor": "9b59b6"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue