hello, sorry if this is a stupid question I’m fairly new to unity
I tried combining “steamworks” with mirror using a tutorial I found online and faced the following error:
“could not resolve host [steam user ID]”
Code:
void OnLobbyCreated(LobbyCreated_t pCallback)
{
networkManager.StartHost();
SteamMatchmaking.SetLobbyData(
new CSteamID(pCallback.m_ulSteamIDLobby),
"address",
SteamUser.GetSteamID().ToString()
);
}
void OnLobbyEntered(LobbyEnter_t pCallback)
{
if (NetworkServer.active) { return; }
string hostAddress = SteamMatchmaking.GetLobbyData(
new CSteamID(pCallback.m_ulSteamIDLobby),
"address"
);
networkManager.networkAddress = hostAddress;
networkManager.StartClient();
}