You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting very recently, any time the Host leaves in Marble Racer, the entire lobby state explodes. All player marbles, the game state controller, and anything else that's a Networked Object is destroyed, at which point the Lobby is irrecoverably broken.
What I BELIEVE is happening is that all Networked Objects, upon Host migration, are being treated as if they were owned by the previous Host, and their Orphaned Mode is treated as being "Destroy", regardless of actual setting.
I've tried several different publishes of Marble Racer from the past month, and all of them now exhibit this behavior when they hadn't previously, which leads me to believe that this is a s&box issue, and not some issue in my own configuration.
To Reproduce
Have two players join Marble Racer
Have the host leave the game
Observe all networked objects destroy themselves, rendering the lobby unplayable.
Expected behavior
Host migration should handle the transfer of networked objects as it did previously, obeying Orphaned Mode settings, and not destroying networked objects which should not be destroyed as part of the transfer.
Media/Files
Additional context
No response
The text was updated successfully, but these errors were encountered:
I have a feeling this might be related to json serialization issues. Have you tried going through your scene and making sure all objects have NetworkOrphaned set correctly? It could have been reset to default which is Destroy.
I have a feeling this might be related to json serialization issues. Have you tried going through your scene and making sure all objects have NetworkOrphaned set correctly? It could have been reset to default which is Destroy.
Here are screenshots of the settings on all networked objects used in Marble Racer as of the most recent publish (the live version):
Game State Controller
Player Container
...that's it. Player Container is a prefab spawned by Network Helper, which naturally sets the owner of each of these Player Containers to be the connection that spawned them. Yet, upon a host disconnecting, all marbles are destroyed. Plus the Game State Controller. It's really weird...
Describe the bug
Starting very recently, any time the Host leaves in Marble Racer, the entire lobby state explodes. All player marbles, the game state controller, and anything else that's a Networked Object is destroyed, at which point the Lobby is irrecoverably broken.
What I BELIEVE is happening is that all Networked Objects, upon Host migration, are being treated as if they were owned by the previous Host, and their Orphaned Mode is treated as being "Destroy", regardless of actual setting.
I've tried several different publishes of Marble Racer from the past month, and all of them now exhibit this behavior when they hadn't previously, which leads me to believe that this is a s&box issue, and not some issue in my own configuration.
To Reproduce
Expected behavior
Host migration should handle the transfer of networked objects as it did previously, obeying Orphaned Mode settings, and not destroying networked objects which should not be destroyed as part of the transfer.
Media/Files
Additional context
No response
The text was updated successfully, but these errors were encountered: