- Home /
Question by
dabigmahmoud · Apr 30, 2021 at 07:42 PM ·
c#multiplayersteammirror
Using Steamworks.net with Mirror - could not resolve host
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();
}
Comment
Answer by unpiixelbar · Jun 01, 2021 at 05:45 PM
@dabigmahmoud Make sure, that you use the specific steamwork script for transport. As for me, I used FizzySteamworks.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Mirror not sending game object data to client 0 Answers
Mirror Networking: How to check if the host IP is an online server? 1 Answer
how to create start the game automatically when all the players are joined using mirror networking? 0 Answers