-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultiplayerSynchronizer doesn't expose replication_config in Inspector #80717
Comments
It's in the bottom area, not as a property |
@AThousandShips What bottom area? |
It's not supposed to be treated as a resource I believe, that's why it's separated like this It's by design, not a bug |
Because they aren't supposed to be shared, or reset, they are fixed to that one synchronizer, they aren't the same as other resources It has a dedicated inspector which is much much cleaned and specialised, it doesn't belong in the normal inspector, there wouldn't be anything to show there, so it'd be pointless and confusing imho |
I'd argue it is confusing for it not to be in the inspector, hence I opened the issue. Well, automatic bottom section reveal, could have changed that. Non-copying/ non-sharing doesn't feel like a correct reasoning too. If I duplicate the scene it essentially created a copy of setup. If a NodePath matches I don't see a reason why it couldn't be copied to an other setup. If I'm copying nodes from a one scene that has references to different nodes I'm fully expecting for references to break (AnimationPlayer as example). With a native code an interface in the Inspector also could be cleaner than creating it with a GDscript. |
Given that it's actually very easy do duplicate a MultiplayerSynchronizer node and that subsequently its replication config gets duplicated too, with no user-facing way to remove the duplicate, I'd say this not being in the inspector is a problem. It's not like the replicator config is any different from, say, an AnimationNode resource in the AnimationTree. |
It is indeed inspired by the AnimationPlayer, so my feeling is that it should go in the in the bottom panel (like the |
I think the solution is to prevent the duplication and ensure the replication is unique, and then prevent direct access to it, it shouldn't be shared or edited directly |
One thing not mentioned yet is that, without exposing this in the inspector, it's not currently possible to inspect the real-time state of a replication config of a running project. The bottom panel does not respond to selections of the "remote" scene dock. I'd been experimenting with programmatically syncing sub-resource properties, and was irked by the lack of ability to easily verify that the replication config was getting set up as I expected! |
I think it should be exposed, because replicationconfig may be useful to share, and in combination with #86779 you can even extend config and add properties |
Godot version
v4.1.1.stable.official [bd6af8e]
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.3203) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
I was checking out @ic3bug repository https://github.com/ic3bug/SMP and encountered problems opening player scene.
Project version is 4.1. in project file while I have 4.1.1. from official godotengine.org.
Looking through scene file with text editor I saw that MultiplayerSynchronizer has property
replication_config
that is not in my editor inspector but it is mentioned in documentation.Steps to reproduce
-> replication_config is not exposed to editor
Minimal reproduction project
SMP.zip
Project by @ic3bug.
player.tscn
has packed SceneReplicationConfig resource. I tried to recreate it withplayer_2.tscn
but editor doesn't exposereplication_config
.The text was updated successfully, but these errors were encountered: