Skip to content
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

Store realtime server data #4709

Open
cs716 opened this issue Feb 4, 2024 · 2 comments
Open

Store realtime server data #4709

cs716 opened this issue Feb 4, 2024 · 2 comments

Comments

@cs716
Copy link

cs716 commented Feb 4, 2024

For?

S&Box

What can't you do?

  • Access the current lobby LobbyInformation easily
  • Set data on the lobby (maybe on the LobbyInformation.Data dictionary) that can be accessed from QueryLobbies
  • Add host latency into the LobbyInformation struct or create a way to get the latency from the menu client to the host

How would you like it to work?

Access the LobbyInformation after GameNetworkSystem.CreateLobby(); or through another method available to the host and allow us to set options to the lobby that outside players can access for a matchmaking system or lobby browser such as privacy status, gamemode options that can be changed between lobbies, etc.

What have you tried?

N/A - No way to do this that I can find. For the time being (unless this is an easy implement or there is a way to do this that I'm missing) I'll be using an external API to store and retrieve lobby information by the Id.

I can see the two internal functions that may allow for this:
image

Additional context

This was brought up by Carson previously in #4482 but was a reply to the issue and doesn't appear to have been implemented

@garrynewman
Copy link
Member

What kind of things do you want to store?

In the network system I'm trying to avoid using lobby specific features, because if you're running a dedicated server etc, it won't have a lobby.

@cs716
Copy link
Author

cs716 commented Feb 5, 2024

For my game, the state of the game in progress is mainly what I’m trying to store (like preparing, in progress, etc). The idea being players who want to get in and play aren’t joining lobbies where a round is in progress if they don’t want to.

@garrynewman garrynewman changed the title Get and set current lobby data Store server data Feb 12, 2024
@garrynewman garrynewman changed the title Store server data Store realtime server data Feb 12, 2024
@garrynewman garrynewman moved this from To triage to Backlog in s&box tracker Feb 12, 2024
@handsomematt handsomematt moved this from Backlog to Ready in s&box tracker Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

3 participants