Search Unity

Unity + Steam lobby system?

Discussion in 'Multiplayer' started by tommohawkaction, Feb 9, 2018.

  1. tommohawkaction

    tommohawkaction

    Joined:
    May 20, 2017
    Posts:
    27
    Hello all,
    I've been looking into putting my game onto steam, my game would require multiplayer at most a simple P2P.
    However I can't seem to find much online, about how to do such a task or where to even start.

    So far the best I can find is this UNET connection with Steam which is awesome, but contains a ton of bugs as its not really the way UNET was designed.
    https://spacewavesoftware.com/blog/2017/10/28/unity-unet-hlapi-and-steam-p2p-networking

    So how does games like The forest, 7 Days to die, handle multiplayer?

    I also found this http://blog.theknightsofunity.com/steamworks-and-unity-p2p-multiplayer/
    but all they show is how to send a string of chars to another peer, which from what i see in the tutorial wasn't even done by a lobby, and doesn't mention about sending other data types and when reading the data differentiating what has been sent.
     
  2. tommohawkaction

    tommohawkaction

    Joined:
    May 20, 2017
    Posts:
    27
  3. Nimorum

    Nimorum

    Joined:
    Aug 20, 2017
    Posts:
    1
    Steamworks.NET is what is used by 7days
    im not a pro but they have a wrapper for the steam sdk you shuld start by looking at the info at https://steamworks.github.io/
     
  4. Alloc

    Alloc

    Joined:
    Jun 5, 2013
    Posts:
    241
  5. SuperNeon

    SuperNeon

    Joined:
    Mar 16, 2014
    Posts:
    85
    You should consider to do not use the HLAPI as it is no more maintain (and will be removed ?!)
    If your game is only on PC/Steam you can use the steamwork API you will get all you need :)
    Otherwise you can still use the LLAPI and use the steamwork for the matchmaking for your steam build.

    The forest is using photon bolt by the way.
     
    Stanchion likes this.
  6. SweatyChair

    SweatyChair

    Joined:
    Feb 15, 2016
    Posts:
    140
    It's been 2+ yrs, did you guys end up using which solution? Any example to easily kick start?
     
    Last edited: Jan 20, 2021
    ScriptsEngineer likes this.
  7. SweatyChair

    SweatyChair

    Joined:
    Feb 15, 2016
    Posts:
    140
  8. IElectric

    IElectric

    Joined:
    May 31, 2016
    Posts:
    215
    Last edited: Jan 20, 2021
    marcospgp and SweatyChair like this.
  9. SweatyChair

    SweatyChair

    Joined:
    Feb 15, 2016
    Posts:
    140
    @IElectric, your game looks impressive, having all features we wanted to develop such as Steam matchmaking, multiplayer and VR.
     
    IElectric likes this.