@small zodiac, your codeblock was automatically pasted to https://paste.myst.rs/rsvy4cw4
a powerful website for storing and sharing text and code snippets. completely free and open source.
1 messages · Page 1 of 1 (latest)
@small zodiac, your codeblock was automatically pasted to https://paste.myst.rs/rsvy4cw4
a powerful website for storing and sharing text and code snippets. completely free and open source.
I am using FishNet + SteamHeathens + FishySteamworks and am experiencing an issue with steam. Could not parse address 76561199270820816 to IPAddress.
It seems to be to do with this section of code below
private void OnLobbyCreated(LobbyCreated_t callback)
{
if (callback.m_eResult != EResult.k_EResultOK)
return;
CurrentLobbyID = callback.m_ulSteamIDLobby;
SteamMatchmaking.SetLobbyData(new CSteamID(CurrentLobbyID), "HostAddress", SteamUser.GetSteamID().ToString());
SteamMatchmaking.SetLobbyData(new CSteamID(CurrentLobbyID), "name", SteamFriends.GetPersonaName().ToString() + "'s lobby");
_fishySteamworks.SetClientAddress(SteamUser.GetSteamID().ToString());
_fishySteamworks.StartConnection(true);
Debug.Log("Lobby creation was successful");
}
private void OnJoinRequest(GameLobbyJoinRequested_t callback)
{
SteamMatchmaking.JoinLobby(callback.m_steamIDLobby);
}
private void OnLobbyEntered(LobbyEnter_t callback)
{
CurrentLobbyID = callback.m_ulSteamIDLobby;
MainMenuUI.LobbyEntered(SteamMatchmaking.GetLobbyData(new CSteamID(CurrentLobbyID), "name"), _networkManager.IsServerStarted);
_fishySteamworks.SetClientAddress(SteamMatchmaking.GetLobbyData(new CSteamID(CurrentLobbyID), "HostAddress")); // <--- RIGHT HERE
_fishySteamworks.StartConnection(false);
}
I'm unsure why it is asking for an IP address when I am inputting a steamID. I'd also like to note I have used this method before and it has worked completely fiine until now.