Skip to content

InvalidOperationException using latest Netcode for GameObjects #11

@cchristensen-supernatural

Description

I'm using current Unity 2021 LTS version. The current Netcode for Game Objects package (1.0.2). I've applied the patch to Photon realtime mentioned in Issue #10.
Everything seems to work fine until you get 2 or more players in a room, and then the log is spammed with:
"InvalidOperationException: Client is not allowed to write to this"

And some of the players see the other players unable to move.

It seems that the updated Netcode for Game Objects removed the ability for clients to write to NetworkVariables as mentioned here: https://forum.unity.com/threads/networkvariable-write-permission.1176548/
So that seems like a likely culprit here. It would be nice to get this sample app working again.
Any pointers on how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions