Search Unity

Client-Server Problem (unity 2017.2.1f)

Discussion in 'Multiplayer' started by renawevin, Jan 17, 2019.

  1. renawevin

    renawevin

    Joined:
    Dec 15, 2018
    Posts:
    4
    I'm a starter of UNet,
    I want to make a Client-Server board game so I created 2 project, 1 for server, 1 for user.
    Now I need to send messages between Server and Clients,
    and I use NetworkManager.singleton.client.Send(100, sm); on client to send it
    then I got an error: "SendMessage ABCDEFG has no receiver!"
    but I don't know how to add an receiver to server and client.

    This is my question:
    How to receive messages from client/server?
     
  2. LukeDawn

    LukeDawn

    Joined:
    Nov 10, 2016
    Posts:
    404
    That's a very old version of Unity, and Unet is now deprecated. Try getting the latest version of Unity, and if you want something similar to Unet, look on github for Mirror (I don't know if it has a forum thread too). Mirror is a community reworking of Unet. There are other alternatives for networking too.
     
  3. renawevin

    renawevin

    Joined:
    Dec 15, 2018
    Posts:
    4
    I know there's a new version,
    but since some reason, I have to use in this version this time.
     
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847