-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working for multiplayer #86
Comments
I have figured out a solution to make it support multiplayer. The basic idea refers to the Building Blocks multiplayer implementation based on Unity.Netcode. FYI, I have attached the source files. Apply changes to the BTW, you may need a simple network manager. |
I can't begin to express how much I appreciate this you are a real life
saver! thank you so so much!!
…On Mon, Sep 23, 2024 at 1:20 PM Liuchuan Yu ***@***.***> wrote:
I have figured out a solution to make it support multiplayer.
The basic idea refers to the *Building Blocks* multiplayer implementation
based on *Unity.Netcode*.
FYI, I have attached the source files.
MovementMultiplayer.zip
<https://github.com/user-attachments/files/17101348/MovementMultiplayer.zip>
Apply changes to the HighFidelityFirstPerson prefab.
2024-09-23_131113.png (view on web)
<https://github.com/user-attachments/assets/28dc5114-2c01-4e6a-b2a3-0a8cf7e462b8>
BTW, you may need a simple network manager
<https://docs-multiplayer.unity3d.com/netcode/current/tutorials/get-started-ngo/#create-the-networkmanager-component>
.
—
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4H6ZKLZQAMVEPQFZDNJWYTZYBEVNAVCNFSM6AAAAABOIEI3AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYHEYDEMJUGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@smittenz You are welcome! I'm glad it helps. |
to clarify, are these scripts compatible with other OVR movement bodies?
does the network avatar data stream have to be placed in the scene, and are
the player prefabs spawned through the network lobby building block or the
shares avatars building block? thanks again!
…On Mon, Sep 23, 2024 at 2:53 PM Soph Katsivelos ***@***.***> wrote:
I can't begin to express how much I appreciate this you are a real life
saver! thank you so so much!!
On Mon, Sep 23, 2024 at 1:20 PM Liuchuan Yu ***@***.***>
wrote:
> I have figured out a solution to make it support multiplayer.
>
> The basic idea refers to the *Building Blocks* multiplayer
> implementation based on *Unity.Netcode*.
>
> FYI, I have attached the source files.
>
> MovementMultiplayer.zip
> <https://github.com/user-attachments/files/17101348/MovementMultiplayer.zip>
>
> Apply changes to the HighFidelityFirstPerson prefab.
> 2024-09-23_131113.png (view on web)
> <https://github.com/user-attachments/assets/28dc5114-2c01-4e6a-b2a3-0a8cf7e462b8>
>
> BTW, you may need a simple network manager
> <https://docs-multiplayer.unity3d.com/netcode/current/tutorials/get-started-ngo/#create-the-networkmanager-component>
> .
>
> —
> Reply to this email directly, view it on GitHub
> <#86 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A4H6ZKLZQAMVEPQFZDNJWYTZYBEVNAVCNFSM6AAAAABOIEI3AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYHEYDEMJUGI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
@smittenz The core change is the NetworkOVRBody class, which substitutes the original OVRBody class. All other classes are to support the NetworkOVRBody class. It means as long as the original game object has an OVRBody component, it can be simply replaced with the NetworkOVRBody class to enable multiplayer. |
Where do you put these files? I added to project and created an assembly definition so that it could find the referenced scripts from the meta packages but it seems its still not quite working. |
@Polyphemous Hi, These files are taken from my project. You may try to remove the namespace, so no need to create an assembly definition. If possible, you can share the console log here. I can take a look then. |
Des anyone has any idea on how to make this sdk work with Normcore? |
According to my experience, most parts are the same. You only need to adapt the Networking part, such as network topology (host/client), lobby, game matching, transform/animation synchronization (NetworkTranform, NetworkAnimation), RPC, etc. I heard of Normcore, but I didn't use it. I guess they should have corresponding components. |
@luffy-yu Thanks for your reply. |
Welcome. FYI, from my experience, Unity Multiplayer Networking is better as it provides the new Distributed Authority. |
Hello, we have released a networking sample using Movement SDK in the v71 release. You can find the documentation for this new sample that shows how to do networking with Movement SDK here: |
If I set the movement enabled player to a networked player prefab once it is instantiated the tracking turns off I get these errors when manually attempting to allow these scripts to.
[OVRBody] Failed to start body tracking with joint set FullBody.
UnityEngine.Debug:LogWarning (object)
OVRBody:StartBodyTracking () (at ./Library/PackageCache/[email protected]/Scripts/Movement/OVRBody.cs:126)
OVRBody:OnEnable () (at ./Library/PackageCache/[email protected]/Scripts/Movement/OVRBody.cs:95)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
The text was updated successfully, but these errors were encountered: