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 client with a dedicated server, and notice that crashes on startup as well, isolating the problem to the MetaXR plugin and not my game.
This render multiplayer usage currently not possible. Am I missing a step perhaps?
Would be great to use it within multiplayer.
The logs don't really provide any context. There are these few errors, which may be the culprit, however, I will note the console continues to log for awhile before the crash. The crash occurs when the player connects to the server. The server alone will live on its own indefinitely.
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.