Determine whether an instance is private or group/public
needs more information
Olli42
With the information whether an instance is private or group/public I want to adjust the behavior of the world setup using stored persistence data.
Private instance: only the instance owner can set up the world with saved persistence data. No matter if he is the first player in the instance or follows a bit later.
Group/Public instance: the first player to enter an empty instance can use its persistence data for the setup.
Currently I cannot distinguish for the first player in the instance whether the instance owner (= private instance) still has to be waited for.
This makes it complicated for processes which, once started, cannot be canceled for several minutes (e.g. due to a full queue for image downloading).
Log In
Jar
I would like to see this too, exposing more stuff to Udon just seems like a good idea.
I get asked this a lot about Audience Anarchy and Murder. I like to make sure the Public and Group Public experience of those games are accessible to the average random person visiting public vrchat worlds, but there are some advanced features that I only want to enable when it's a closed group/invite only instance, which make sense for players who can moderate themselves and know each other better. Also vice versa; sometimes you want a world to have more moderation-related/safeguard features in public instances, but optional in private worlds.
Fax
needs more information
Thank you for the request!
Are you familiar with
IsInstanceOwner()
? It allows you to detect Group and Public instances, though it doesn't allow you to distinguish between them.Would this fulfill your feature request, or are you looking for something else?
Olli42
Hello Fax,
no, IsInstanceOwner does not work, because the porperty is bound to an existing player.
I.e. only when the instance owner has entered the world are other players able to find out whether it is a private instance.
An example:
- be traveling with a group of players
- open a portal to a private instance
- let the other players go through _first_ - you are the last one with a significant delay
- as long as you as the instance owner are not in the world, it looks to the other players as if they were in a group/public world. Only when the instance owner enters the world do the others have a way of distinguishing between private and group/public.
However, I need to know whether the instance is private or group/public as soon as the _first_ player enters an empty world.
This controls whether it performs the world setup using stored persistence data or whether it has to wait for the instance owner.