Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question COOP GAME - Netcode for Gameobjects and Vivox

Discussion in 'Netcode for GameObjects' started by foxyyhappyw, Jul 24, 2023.

  1. foxyyhappyw

    foxyyhappyw

    Joined:
    Aug 8, 2022
    Posts:
    60
    Hi everyone,

    I'm currently working on developing my coop game (for 2 people in one lobby max) in Unity, and I'd like to implement a player connection system and real-time voice chat similar to the one seen in the game We Were Here (public/private lobby with password).

    Can anyone tell me if I can achieve this by using solutions like Netcode for Gameobjects and Vivox? Will these tools allow me to create public lobbies (where one player is host) where players can join random games and utilize real-time voice communication?

    Additionally, I'm interested to know if there's any cost associated with using Netcode for Gameobjects and Vivox? And can someone explain how the 5000 PCU limit works (for Vivox) and whether there are any additional fees if we exceed this limit?


    or if there are any better or more suitable alternatives to Netcode for Gameobjects and Vivox that you might recommend for creating a similar multiplayer experience?
     
    Last edited: Jul 24, 2023
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,128
    According to how it‘s advertised: yes to the first two questions.

    Cost: you pay for Unity Gaming Services (Hosting, Lobby, Matchmaking, …). PCU 5000 means you can have up to this many players playing simultaneously at any given time, worldwide. If you get to that point, your sales must be roughly ten times that. You can do the math whether to worry about paying services at that point. ;)

    Generally speaking it‘s actually rare to see a game that passes these CCU limits of any framework. In that sense: make the game first. ;)
    And when you do have to pay, the payments are comparatively minor to what you earn in revenue - provided you don‘t sell too cheap or you are maintaining a legacy game that still gets played a lot but doesn‘t sell anymore.
     
  3. foxyyhappyw

    foxyyhappyw

    Joined:
    Aug 8, 2022
    Posts:
    60

    Thanks for the response!

    Vivox gives the PCU limit, not the CCU, that's why I'm asking because I don't know what exactly is the difference, but actually this limit will be enough for my game, but...

    I don't fully understand - "you pay for Unity Gaming Services (Hosting, Lobby, Matchmaking, …)".
    So, is Netcode for Gameobjects paid? From what I just checked, it's free, unless it refers to something else... or maybe it requires the Unity Pro package to use Netcode?
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,128
    foxyyhappyw likes this.
  5. lavagoatGG

    lavagoatGG

    Joined:
    Apr 16, 2022
    Posts:
    226
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,128
    Yeah, sorry. I meant the english page. ;)

    Damn Unity page always wants to show me everything in my local language. And that translation sucks, like really bad. Like the kind of bad where commonly used technical english terms are translated to the weirdest sounding german word constructs nobody ever uses to mention said technology, not even locals who don't speak english. To top it off the grammar is often like the way only a stiffnecked person would phrase sentences.

    Sorry for ranting. :D
     
    lavagoatGG likes this.
  7. foxyyhappyw

    foxyyhappyw

    Joined:
    Aug 8, 2022
    Posts:
    60
    oh okaaay I understand now - I don't pay for NGO, but i need to pay for Relay to keep players connected.
     
    lavagoatGG likes this.