Skip to content

Conversation

@ButterscotchV
Copy link
Member

Cleaned up all the OSC port initialization methods to make them clearer and handle match detection better. OSCQuery detection has also been changed to prioritize an OSCQuery entry that matches the configured IP and/or port. Also prioritized OSCQuery detection over using the manually configured address so there won't be duplicate data sent.

Should fix #1309

@ButterscotchV ButterscotchV self-assigned this Dec 31, 2025
@ButterscotchV ButterscotchV added Type: Bug Something isn't working Type: Enhancement Adds or improves a feature Area: Server Related to the server Area: VRCOSC Related to the VRChat OSC driver labels Dec 31, 2025
Copy link
Member

@Eirenliel Eirenliel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean it's not really thread safe even with this fix, but like... so is life.

/**
* Close/remove the OSCQuery sender
*/
fun closeOscQuerySender() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if your addOscQuerySender is synchronized, that should be too, probably.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to just use VRServer thread, all the rest are on it anyways so we should probably just keep that up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Server Related to the server Area: VRCOSC Related to the VRChat OSC driver Type: Bug Something isn't working Type: Enhancement Adds or improves a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using yaw reset with OSC causes trackers to follow HMD

3 participants