kafeijao / Kafe_CVR_Mods

Collection of Melon Loader mods for ChilloutVR
GNU General Public License v3.0
21 stars 13 forks source link

[OSC] Feature request : world info read / send #24

Open NovaVoidHowl opened 1 year ago

NovaVoidHowl commented 1 year ago

It would be good to have a world endpoint set like the following

world:
    id: read to get the current guid of the world, write to switch world
    status: (all are readonly)
      - flying_allowed: (bool)
      - noclip_allowed: (bool)
      - props_allowed: (bool)
      - portals_allowed: (bool)
      - number_of_users: (int)
      - number_of_props: (int) 
      - instance_id: (string)
      - instance_region: (string) EU/US/JP
      - instance_type: (string) private/public/invite etc.

The reason for this is to allow OSC apps to behave differently depending on world conditions.

Example 1, have a contact on the arm of your avatar, and in worlds that allow props have it spawn in a prop menu for avatar config, but in world that does not allow props the same contact would cause a smaller less feature rich on avatar menu to become active.

Example 2, have a contact on the arm of your avatar which would in worlds that permit it toggle flight mode, and in worlds that don't would cause a warning message to be shown (or indeed disable the contact and provide visual representation on the avatar ie. change a texture)