Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
9 changes: 7 additions & 2 deletions VoiceAttackOsc/OscPlugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -59,6 +59,7 @@ public static void VA_Init1(dynamic vaProxy)
vaProxy.WriteToLog("Loading mappings from: " + settingsPath, "black");

var commandDict = new Dictionary<string, string>();
var unknownCmdDict = new Dictionary<string, string>();

string line;
// Read the file and display it line by line.
Expand Down Expand Up @@ -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");
}
}
}
}
Expand Down
Binary file added docs/oscsettings_not_found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.