question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NetworkObject binding failed on Host and Client

See original GitHub issue

Describe the bug Main error : Cannot find pending soft sync object. Is the projects the same? When starting an host that switch scene, the binding between any new client for any networkedobjects is not working. That result with different network id for scene objects (one that have networkedobject on).

To Reproduce Steps to reproduce the behavior: Go to this github repository : https://github.com/Pourfex/IssueSceneHostMlapi Make 2 projects with this repository. One should start playmode and press space to be the host. One should start playmode and press b to be a client.

An error on client occured, you can check on the interaction scene the network id that are not the same.

The workaround for now is on the same repository on the branch “workaround”

https://github.com/Pourfex/IssueSceneHostMlapi/tree/workaround which is using Unity Scene loader before starting the host.

Expected behavior The networked behaviour should have the same networking id and no error should be displayed

Screenshots Error on client : image

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2019.3.3f1
  • MLAPI Version: 6.0.1

Additional context Use in another context, find the bug and discuss it with NFMynster on discord. The workaround is to use the Unity Scene loader before starting the host like this :

SceneManager.LoadScene("InteractionScene");
SceneManager.sceneLoaded += (arg0, arg1) => {
            NetworkingManager.Singleton.StartHost();
        };  

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:39 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
dawoncommented, Aug 3, 2021

Ok, I am an idiot, I had the problematic code commented out in the NetworkController in master, that is why it was working for you. If you pull you should have the exact same project as I have now with the same problem.

I am sorry for the confusion, that was a bad mistake.

1reaction
dawoncommented, Aug 2, 2021

I have invited you to the project on GitHub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parenting a host NetworkObject causing soft ...
The error code backs up this theory exactly: [Netcode] NetworkPrefab hash was not found! In-Scene placed NetworkObject soft synchronization ...
Read more >
Netcode for GameObjects (Netcode) Error Messages
This exception should only occur if your scenes aren't the same, for example if the scene of your server has a NetworkObject which...
Read more >
Changelog | Netcode for GameObjects | 1.3.1
Dirty NetworkObject are reset at end-of-frame and not at serialization time. NetworkHide() of an object that was just NetworkShow() n produces a ...
Read more >
Unity netcode for gameobject can't connection host
My netcode for the gameobject package version is 1.0.2, and I import the sample scene "Bootstrap", the same situation occurred(when I click ...
Read more >
How To Make A Game With Unity Multiplayer Netcode
IsServer because if you're joining first as a host, only the NetworkManager's ... NetCode For Game Objects Pt 3 - Client Network Transform....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found