Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to host a game on a server made using ECS and Netcode ?

Discussion in 'NetCode for ECS' started by Jay-D-Ray, May 28, 2020.

  1. Jay-D-Ray

    Jay-D-Ray

    Joined:
    Aug 22, 2015
    Posts:
    3
    I read the documentation of Netcode and made a multiplayer game using ECS and Netcode. The instances can be run on the same computer. How can I host the game on a server ? I didn't find anything written about hosting the game on server.
     
  2. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    Netcode is in 0.0.4 preview state, it will probably take along time till we see ful integration for master server and client discovery API etc, if unity doesn't drop development of it all together :)
     
  3. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    You just violated the first rule of the Unity Developers Club
    "1. Do not talk about Unity dropping development of a feature you are interested in"
     
    CPlusSharp22 likes this.
  4. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    But I am not interested in it, we have custom netcode ;)
     
    MNNoxMortem likes this.
  5. Jay-D-Ray

    Jay-D-Ray

    Joined:
    Aug 22, 2015
    Posts:
    3
    So do know how to host a game on a server like AWS or Google Cloud. The server would work as a authoritative server. Since Netcode solves most of the client side problems like Client Prediction etc. so I was thinking using Netcode on the client side and would host a game on a server. Just like online multiplayer games.
     
  6. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    329
    Im also interested to know about how to use the server build
    now netcode is in v0.2.0
     
  7. Jay-D-Ray

    Jay-D-Ray

    Joined:
    Aug 22, 2015
    Posts:
    3
    Lot of things needs to be considered while writing a game which has authoritative server architecture. I am not sure how to handle those problems using DOTS architecture provided by Unity. They have a sample project for DOTS multiplayer but that can be run locally. I am not sure whether that can be run on a remote host and even if we were able to host it on a remote server how to handle other problems like Load Balancing etc...
     
  8. AdamBebko

    AdamBebko

    Joined:
    Apr 8, 2016
    Posts:
    161
    Anyone make any progress on this?