Forum Discussion
Aeromixx
1 year agoExpert Protege
Dedicated Servers Crash with MetaXR Plugin
I am integrating the MetaXR plugin into my game for body tracking. All is well, but now the multiplayer servers always crash. After extensive testing, I decided to just launch the MovementSample as a...
- 1 year ago
You don't need tracking features in your server code (the server version of your player).
The tracking components in your player such as BodyTrackingComponent should only exist on client side.You got two options: Add a Is dedicated server check in your player Construction script and only create those components in runtime if you are NOT a server or Destroy said components if you are indeed server (this last option is generally not the safest).
Your Server won't be wearing a quest headset, thus it doesn't have the tracking info, thats probably why it fails to initialize. You need to handle body transform data replication on your own.
puzzzabug
1 year agoStart Member
you may need to put all of that into a function library, and create a another version of the function library that use use to build your server where you have all the same functions but they don't link to any oculus code.
Aeromixx
1 year agoExpert Protege
Is there any further guidance or reference you can give me on how to achieve this? I got kind of decently far with ChatGPT (lol). Trying to make it not execute any Oculus functions if its a server, but I also don't know if that's the proper answer. At this point, trying to get it to work at all
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device