Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question What service do I use?

Discussion in 'Multiplayer' started by Kiour_gr, Apr 7, 2024.

  1. Kiour_gr

    Kiour_gr

    Joined:
    Dec 6, 2017
    Posts:
    18
    Hello I have read a bit about netcode, fishnet and fusion.
    I am building a multi-player game where you are a manager at a research facilty. I would like you choice on to what network technology I should use based primarily on price. Some key points about the game:
    1. There is no need to show any movement, it is mostly ui based. You don't see any of the othe players choices.
    2. Every turn the server offers all players the same 3 contracts , each player bids on a contract ( bid amount, project duration) the server then notifies who one each contract .
    3. I want to make it work solo offline, on same wifi, and through lobby room system.
    4. Each player has 5 minutes per turn until the next turn. So you see 3 bids choose one. Then do various stat changes. Each players game can do these calculations not much is send to the server. Players can choose to steal or sabotage other players then A request is sent to the server, then the next round the server calculates is it was successfully or failed and the damage done and notify both players.
    5. The server need to randomly trigger some events on random players lab inspection, Ira inspection lab Accident etc.
    6. The players per game I think will be 3-6.
    7. I believe the data sent and received is alot less that your typically shooter, that tracks movement and actions colitions, animations each frame.
    8. I would prefer to not use ads so have a one time fee.
    9. Pc and android interconnectivity.
    Any ideas would be appreciated on to what to use.
     
  2. Kakr-98

    Kakr-98

    Joined:
    Apr 29, 2020
    Posts:
    36
    Hi,

    I think anything can work for this type of game. Netcode for GameObjects is probably what you want to use, it's always better to use the official solution when it fits the requirements of your game.
     
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,943
    The frameworks you meantioned are realtime networking frameworks intended for synchronizing game state multiple times per second. This is not your use case. Your game can be considered a turn-based game with minimal interactivity. Typically one would implement this with UnityWebRequest and a stateless REST service.

    Realtime networking is suboptimal because it requires players to remain connected with the game for the entire time (stateful), which can be troublesome for mobile users. Or which generally will be an issue for them because mobile users expect such a game for them not having to wait 5 minutes for other players to complete their turns. And be able to come back at any time, play a turn, and leave the game unattended again for a couple days.
     
  4. Kiour_gr

    Kiour_gr

    Joined:
    Dec 6, 2017
    Posts:
    18
    Thanks for the reply, just to clarify all players get 5 minutes at the same time to execute their actions then another 3 contracts are given and repeat. I like the idea with the webrequest but i still need a lobby system. I dont now much about multiplayer but say a create a client version of the game and a server version (in unity or c application in VS) that just keeps data and send out the appropriate info at the start of each turn. How does the server application handle multiple games?