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

Lobby.GetData return Null #797

Open
SG-KaAp opened this issue Jan 17, 2025 · 0 comments
Open

Lobby.GetData return Null #797

SG-KaAp opened this issue Jan 17, 2025 · 0 comments
Assignees

Comments

@SG-KaAp
Copy link

SG-KaAp commented Jan 17, 2025

Bug
When I try to get lobby data not on the lobby creator client, I get Null.

Calling Code

// The code you're using to call into Steamworks
private void LobbyEntered(Lobby lobby)
{
            CurrentLobby = lobby;
            CurrentLobbyId = lobby.Id;
            Debug.Log(lobby.GetData("LobbyName"));
            fishyFacepunch.SetClientAddress(CurrentLobbyId.ToString());
            fishyFacepunch.StartConnection(false);
            Debug.Log("Entered the lobby");
}

Expected behavior
In the console, if this is launched on the player's client (not the lobby creator's), it will not write anything, if it was called on the lobby creator's client, then we will get the expected value in the console.

Desktop (please complete the following information):

  • OS: Windows
  • Unity: Unity 6.0033f1

Additional context
I am developing a multiplayer game in Unity using Fishnet, FishyFacepunch and Facepunch.Steamworks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants