OscQueryLibrary 1.0.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package OscQueryLibrary --version 1.0.0
NuGet\Install-Package OscQueryLibrary -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OscQueryLibrary" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OscQueryLibrary --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OscQueryLibrary, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OscQueryLibrary as a Cake Addin #addin nuget:?package=OscQueryLibrary&version=1.0.0 // Install OscQueryLibrary as a Cake Tool #tool nuget:?package=OscQueryLibrary&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OscQuery Example Library
Info
A more human readable OscQuery library for VRChat.
Functionality
Auto negotiate with VRC to connect to your OSC server without the need of a OSC router. <br> Receive available parameter list immediately without needing to read avatar JSON file or switch avatar. <br> Quest support, it can auto discover VRC running on the same local network.
Setup
// listen on localhost
new OscQueryServer(
"HelloWorld", // service name
"127.0.0.1", // ip address for udp and http server
FoundVrcClient, // optional callback on vrc discovery
UpdateAvailableParameters // parameter list callback on vrc discovery
);
// listen for VRC on every network interface (Quest only)
var host = Dns.GetHostEntry(Dns.GetHostName());
foreach (var ip in host.AddressList)
{
if (ip.AddressFamily != System.Net.Sockets.AddressFamily.InterNetwork)
continue;
var ipAddress = ip.ToString();
_ = new OscQueryServer(
"HelloWorld", // service name
ipAddress, // ip address for udp and http server
FoundVrcClient, // optional callback on vrc discovery
UpdateAvailableParameters // parameter list callback on vrc discovery
);
}
private static void FoundVrcClient()
{
// stop tasks
Task.Delay(1000).Wait(); // wait for tasks to stop
_gameConnection?.Dispose();
_gameConnection = null;
_gameConnection = new OscDuplex(
new IPEndPoint(IPAddress.Parse(OscQueryServer.OscIpAddress), OscQueryServer.OscReceivePort),
new IPEndPoint(IPAddress.Parse(OscQueryServer.OscIpAddress), OscQueryServer.OscSendPort)
);
Task.Run(ReceiverLoopAsync);
}
private static void UpdateAvailableParameters(Dictionary<string, object?> parameterList)
{
// ran when client connects or optionally when user changes avatar
// the parameter values are in their initial state so they are mostly useless
foreach (var parameter in parameterList)
{
Console.WriteLine(parameter.Key);
}
}
// depending on your OSC library you might want to run this method on avatar change to update your list of available parameters
if (received.Address == "/avatar/change")
OscQueryServer.GetParameters();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- EmbedIO (>= 3.5.2)
- MeaMod.DNS (>= 1.0.70)
- Serilog (>= 3.1.1)
- System.Text.Json (>= 8.0.4)
-
net8.0
- EmbedIO (>= 3.5.2)
- MeaMod.DNS (>= 1.0.70)
- Serilog (>= 3.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.