godot
godot copied to clipboard
[MP] Path simplification does not take visibility into account
Tested versions
4.3 dev 2
System information
Windows 10 Godot 4.3 dev 2 Vulkan
Issue description
Currently, when you would join into a game as a client with host having some nodes considered to be invisible for the client - you are going to get path simplification trying to access missing node.
Steps to reproduce
- Start server as host
- Create a node that inherits from
MultiplayerSynchronizer - Spawn said node with
MultiplayerSpawner - Set its public visibility to
false - Try joining as a client
- Since this node is not going to be spawned by
MultiplayerSpawnerdue to visibility influenced byMultiplayerSynchronizer, network cache would still try to send node path simplification for a node that does not exist on client, resulting in errors:
Minimal reproduction project (MRP)
...