diff --git a/README.md b/README.md index e435715..1ed08f9 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,9 @@ You can also send multiple params separated with a semicolon If you just want to trigger osc and not send any params, do not specify a param list `/chataigne/fx1on` + + +# Change log +## Version 0.3 - by JLong23 + +Modifications to the logging where input OSC addresses would spam the dialog/logging; this was extremely erregous with VR Chat with avatar parameters being returned. Fixed as logging the missing values from 'oscsettings.txt' once on occurance, then quietly swallowing the event from that point forward. \ No newline at end of file diff --git a/VoiceAttackOsc/OscPlugin/Plugin.cs b/VoiceAttackOsc/OscPlugin/Plugin.cs index de1dce0..17864ba 100644 --- a/VoiceAttackOsc/OscPlugin/Plugin.cs +++ b/VoiceAttackOsc/OscPlugin/Plugin.cs @@ -15,7 +15,7 @@ public class VoiceAttackPlugin { const string C_APP_NAME = "Lerk's Osc Plugin"; - const string C_APP_VERSION = "v0.2"; + const string C_APP_VERSION = "v0.3"; private static OscReceiver _receiver; private static Task _receiverTask; @@ -59,6 +59,7 @@ public static void VA_Init1(dynamic vaProxy) vaProxy.WriteToLog("Loading mappings from: " + settingsPath, "black"); var commandDict = new Dictionary(); + var unknownCmdDict = new Dictionary(); string line; // Read the file and display it line by line. @@ -104,7 +105,11 @@ public static void VA_Init1(dynamic vaProxy) } else { - vaProxy.WriteToLog($"OSC address not found in config: {message.Address}", "red"); + if( !unknownCmdDict.ContainsKey(message.Address)) + { + unknownCmdDict.Add(message.Address, "*none"); + vaProxy.WriteToLog($"OSC address not found in config: {message.Address}", "red"); + } } } } diff --git a/docs/oscsettings_not_found.png b/docs/oscsettings_not_found.png new file mode 100644 index 0000000..1eb6973 Binary files /dev/null and b/docs/oscsettings_not_found.png differ