- Home /
RegisterHost - Help With Parameters
Hello,
I'm working on an online multiplayer game, and I'm trying to setup the 'RegisterHost' bit.
I have 3 parameters I need to send as a host: Game Name, Game Type, Game Map.
Game name will be the name of the server the host set, the game type will be like 'Capture the Flag, or Team', and the map.
If I set my game type to, say, Capture the Flag, then my 'MasterServer.RequestHostList()' will only pull out the Capture the Flag games.
I don't want that, I want to be able to list all my game types, so I tried just using 'MasterServer.RequestHostList()', but it requires a valid gameType of some.
Any suggestions?
Answer by whydoidoit · Jun 09, 2012 at 05:06 PM
I'd store it in the comment and just go for the standard gametype - then parse the list of servers that are returned. I store a lot of details in the comment field, I use a class that is serialized as XML and then parse it out when I get the resulting list.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
running servers for networked games 0 Answers
Hosting a server at home 4 Answers
Authoritative server? 1 Answer
How can I transfer hosts once the current host leaves? 0 Answers