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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Server created with WPF Component

Discussion in 'Multiplayer' started by Naografix, Nov 20, 2015.

  1. Naografix

    Naografix

    Joined:
    Sep 16, 2014
    Posts:
    16
    Hey !

    I want to create a little server with WPF (Windows Presentation Fundation) but i found only tutorial where all server are created with the client, like this tutorial :

    http://www.paladinstudios.com/2013/07/10/how-to-create-an-online-multiplayer-game-with-unity/

    The client is the server.

    Well, if you have a tutorial to create server with console or WPF like this :



    (I have already created a online game with XNA/Monogame, but now i wanna switch on Unity and test this cool tool ;) )

    But i think, in this video, its not TCPListener and TCPClient to create a online multiplayer, he use Photon PUN or something like that no ?

    Thank you
     
  2. Naografix

    Naografix

    Joined:
    Sep 16, 2014
    Posts:
    16
    Small up !
     
  3. shopguy

    shopguy

    Joined:
    Jan 12, 2013
    Posts:
    282
    I don't think you'd want to use the Unity Network Client with your own custom server. I wouldn't think it would be good to mix-match.. either do it all the Unity Networking way, or do it all custom. If you ant to use all custom, server and client, then you don't really need to find Unity specific tutorials, any network tutorials will do. You'll have to write native code though, for whatever platforms you want to target.. I don't think TcpClient is cross platform. If it is, well there you go, easy enough, just find C# TcpClient tutorials :)

    The reason I wouldn't mix/match is because the Unity protocol probably isn't documented, and might change from one version to the next... so really not much reason to go that route.
     
  4. Naografix

    Naografix

    Joined:
    Sep 16, 2014
    Posts:
    16
    In fact, if I understood correctly, in unity the client is the server too ?
    I don't like this method :/...

    The game Rust (By Facepunch Studio) will be created with Unity, how the server work ? It's like you said : "You'll have to write native code though, for whatever platforms you want to target." or they use a connection method by Unity ?

    I remember, if i want to create a rust server, the server is the console : http://playrust.com/dedicated-server/

    Thx