FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.38k stars 149 forks source link

Predicted Spawning Object Reference not set to an instance of object #752

Closed zcharef closed 2 months ago

zcharef commented 3 months ago

General Unity version: 2022.3.40f1 (Mac OS Silicon) Fish-Networking version: 4.4.1 Pro Discord link: https://discord.com/channels/424284635074134018/1034477094731784302/1271874234091700311

Description When Spawning with Predicted Spawning, the object spawning the second one is getting a Null Reference Error and getting kicked. Also, I am using basic CSP for the Player and ObjectToSpawn, don't know if it's related but I included basic working CSP code from the manuals.

Replication Steps to reproduce the behavior:

  1. Start a Client + Server window
  2. Start a Client only window
  3. On the "Client only" window, use Left Mouse Click to make the "Player" spawn a CSP object
  4. Client only gets kicked, See error

Expected behavior No error should happen after spawning an object with Predicted Spawning

Screenshots Error from Client Only : image

Error from Server+Client : image

Minimal Test Project : FishNet Predicted Spawning Error.unitypackage.zip

FirstGearGames commented 2 months ago

This will only be troubleshot if updated to the latest version. Please grab 4.4.5 (coming out today) and let me know if the issue persist.

FirstGearGames commented 2 months ago

Closing in a week if no activity.