From 6357a7f5527142bdd654eecf16176f660af60b00 Mon Sep 17 00:00:00 2001 From: Float3 <86748455+Float3@users.noreply.github.com> Date: Tue, 10 May 2022 22:16:18 +0200 Subject: [PATCH 1/2] add new parameters --enable-ik-debug-logging --freeze-tracking-on-disconnect adjust default value for --calibration-range= to 0.6 from 0.3 --- README.md | 24 +++++++++++---------- VRCLauncher/Model/Config.cs | 6 ++++++ VRCLauncher/View/MainWindow.xaml | 17 ++++++++++++--- VRCLauncher/ViewModel/ViewModel.cs | 34 ++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 51a2c2a..f972445 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,16 @@ https://docs.unity3d.com/2019.4/Documentation/Manual/PlayerCommandLineArguments. Arguments that aren't covered by those links can be found below -| argument | default value | explanation | source | -|-------------------------------|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| -| --osc=inPort:senderIP:outPort | --osc=9000:127.0.0.1:9001 | https://github.com/vrchat-community/osc/wiki#vrchat-ports | https://github.com/vrchat-community/osc/wiki#vrchat-ports | -| | | | | -| vrchat://launch?id= | | Specify launch instance | | -| | | | | -| --log-debug-levels= | | extends logging. know "debug-levls" include (this information is most likely out of date):

--log-debug-levels="Always;API;AssetBundleDownloadManager;ContentCreator;All;NetworkTransport;NetworkData;NetworkProcessing" | | -| | | | | -| --custom-arm-ratio= | --custom-arm-ratio="0.4537" | The IK-Beta Changelog of VRChat 2022.1.1p3 build 11721 states:

- Added --custom-arm-ratio="0.4537" launch option. "0.4537" is default, "0.415" will approximate previous beta arm scale | An announcement on the VRChat Discord server: https://discord.com/channels/189511567539306508/503009489486872583/955619620310646814 | -| --disable-shoulder-tracking | | The IK-Beta Changelog of VRChat 2022.1.1p4 build 11731 states:

- Added --disable-shoulder-tracking launch option. Use this to avoid issues with some types of IMU-only based arm trackers. | An announcement on the VRChat Discord server: https://discord.com/channels/189511567539306508/503009489486872583/958535824490758144 | -| --calibration-range= | --calibration-range="0.3" | The IK-Beta 2.0 Changelog of VRChat 2022.1.1p5 build 11748 states:

- **Added the --calibration-range="0.3" launch option**. This determines the distance from predicted supported binding points that the calibration will search (in meters)
- The default value is 0.3, corresponding to a 30cm radius sphere around possible binding points | An announcement on the VRChat Discord server: https://discord.com/channels/189511567539306508/503009489486872583/966575806522466305 | +| argument | default value | explanation | source | +|---------------------------------|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| +| --osc=inPort:senderIP:outPort | --osc=9000:127.0.0.1:9001 | https://github.com/vrchat-community/osc/wiki#vrchat-ports | https://github.com/vrchat-community/osc/wiki#vrchat-ports | +| | | | | +| vrchat://launch?id= | | Specify launch instance | | +| | | | | +| --log-debug-levels= | | extends logging. know "debug-levls" include (this information is most likely out of date):

--log-debug-levels="Always;API;AssetBundleDownloadManager;ContentCreator;All;NetworkTransport;NetworkData;NetworkProcessing" | | +| | | | | +| --custom-arm-ratio= | --custom-arm-ratio="0.4537" | The IK-Beta 2.0 Changelog of VRChat 2022.1.1p3, build 11721 states:

- Added --custom-arm-ratio="0.4537" launch option. "0.4537" is default, "0.415" will approximate previous beta arm scale | An announcement on the VRChat Discord server: https://discord.com/channels/189511567539306508/503009489486872583/955619620310646814 | +| --disable-shoulder-tracking | | The IK-Beta 2.0 Changelog of VRChat 2022.1.1p4, build 11731 states:

- Added --disable-shoulder-tracking launch option. Use this to avoid issues with some types of IMU-only based arm trackers. | An announcement on the VRChat Discord server: https://discord.com/channels/189511567539306508/503009489486872583/958535824490758144 | +| --calibration-range= | --calibration-range="0.6" | The IK-Beta 2.0 Changelog of VRChat 2022.1.1p5, build 11748 states:

- **Added the --calibration-range="0.3" launch option**. This determines the distance from predicted supported binding points that the calibration will search (in meters)
- The default value is 0.3, corresponding to a 30cm radius sphere around possible binding points | An announcement on the VRChat Discord server: https://discord.com/channels/189511567539306508/503009489486872583/966575806522466305 | +| --enable-ik-debug-logging | forced on during IK 2.0 Beta | The IK-Beta 2.0 Changelog of VRChat 2022.1.2p4, build 11942 states:

- Added the --enable-ik-debug-logging launch argument - use this when providing us with logs and feedback during the Beta period! | An announcement on the VRChat Discord server: https://discord.com/channels/419351657743253524/623967007733186560/971839050937950259 | +| --freeze-tracking-on-disconnect | | The IK-Beta 2.0 Changelog of VRChat 2022.1.2p4, build 11946 states:

- Added the --freeze-tracking-on-disconnect launch option. Enabling this will cause trackers to freeze in place relative to the player when they are disconnected. To remove frozen trackers you can calibrate again. If all your trackers have disconnected so the calibration option is no longer visible, cycling the Avatar Measurement option will also unfreeze them | An announcement on the VRChat Discord server: https://discord.com/channels/419351657743253524/623967007733186560/973670442206388276 | \ No newline at end of file diff --git a/VRCLauncher/Model/Config.cs b/VRCLauncher/Model/Config.cs index f75d338..adb9028 100644 --- a/VRCLauncher/Model/Config.cs +++ b/VRCLauncher/Model/Config.cs @@ -34,6 +34,8 @@ public class Config public string CustomArmRatio { get; set; } public bool DisableShoulderTracking { get; set; } public string CalibrationRange { get; set; } + public bool FreezeTrackingOnDisconnect { get; set; } + public bool EnableIKDebugLogging { get; set; } public string MidiDevice { get; set; } public string OSCPorts { get; set; } @@ -178,6 +180,10 @@ public List GetArgs() if (CalibrationRange != "") args.Add("--calibration-range=\"" + CalibrationRange + "\""); + if (FreezeTrackingOnDisconnect) args.Add("--freeze-tracking-on-disconnect"); + + if (EnableIKDebugLogging) args.Add("--enable-ik-debug-logging"); + if (MidiDevice != "") args.Add("--midi=" + MidiDevice); diff --git a/VRCLauncher/View/MainWindow.xaml b/VRCLauncher/View/MainWindow.xaml index 5edb956..a294588 100644 --- a/VRCLauncher/View/MainWindow.xaml +++ b/VRCLauncher/View/MainWindow.xaml @@ -253,7 +253,7 @@ + Text="default: 0.6, previous beta: 0.3" /> @@ -284,7 +284,18 @@ - + + + + + + @@ -471,7 +482,7 @@ - +