Search Unity

Unity3d Tutorial - Server Client tutorial series (new)!!

Discussion in 'Community Learning & Teaching' started by Wikened, Jan 18, 2012.

  1. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Last edited: Jan 23, 2012
    kyleshell, AraelLight and Recons like this.
  2. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Any feedback? I would love to know what people think of this tutorial series!
     
  3. phime-studio

    phime-studio

    Joined:
    Nov 16, 2009
    Posts:
    49
    Wicked network tutorials :) I'm going to use some of your routines to quickly mash-up red box VS blue box shooter test :)
     
  4. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Welcome!! Since my first login tutorial I have always wanted to make a networked one :) Well here it is!
     
  5. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Just saw this here. Need to take a look! Unity networking is powerful but under-documented, so any resources for this would be good.
     
  6. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Do you want me to upload the source code? I am upload it now :D
     
  7. ZooT_aLLures

    ZooT_aLLures

    Joined:
    Dec 11, 2011
    Posts:
    15
    I'll agree with little angel.............any network tutorial is a good network tutorial.
    I kinda' took over another 3d FPS network tutorial thread...............but there's BIG holes in my quite limited knowledge and experience..............and it'd be a good thing if I could learn from your efforts thus that you might also learn from my different point of view in this giant all purpose 3d tool kit called unity..........

    And in case no one has told you yet.............thanks MUCH for your efforts *smile*
     
  8. Mr.T

    Mr.T

    Joined:
    Jan 1, 2011
    Posts:
    546
    Hey there Wikened, your tutorial series is really picking up now. I watch almost all your videos with great interest.

    I have a request.
    Once you are finished with this Networking tutorial, if and when you have the time, could you consider making another server client tutorial series where

    Client = Unity
    Server = Custom Coded.
    (In some situations it is necessary to create ones own custom coded server as the Unity server may not be ideal in all cases)

    This kind of tutorial is very hard to come by. Even if it is very difficult to make such a tutorial completely, any information or baby steps on how to get a project like that started would be very useful.

    Please consider something like this in your leisure. Thanks for all the other tutorials. Great work !!
     
  9. rockysam888

    rockysam888

    Joined:
    Jul 28, 2009
    Posts:
    650
    Thanks a lot, Wikened.
     
  10. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    I actually planned to create a tutorial like this using Photon's Networking Socket. First I must get better with it and then I will create one! :)
     
  11. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Welcome!
     
  12. giyomu

    giyomu

    Joined:
    Oct 6, 2008
    Posts:
    1,094
    nice tutos, thanks for the effort, as Little Angel said , there is not that much on this topic , so every bit of infos added is always welcome ;)
     
  13. gasros123

    gasros123

    Joined:
    Feb 7, 2012
    Posts:
    2
    Hi Wikened, thank you so much for this tutorial. However, I have one question during my own implementation for your first video.
    The problem is I need to switch back to server to make the game app updated. Do you know how is that happening?
     
  14. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Hello gasros123,
    Can you please explain your problem a bit better and then I'll see what I can do :) Maybe even make another tutorial on it!
     
  15. gasros123

    gasros123

    Joined:
    Feb 7, 2012
    Posts:
    2
    Sorry, let me explain again.
    I followed your first video in this tutorial and tried to connect two instance (one server and one client) on my laptop.
    The problem is that when I click client button on my client instance, there is no change neither on client nor server. Then i switch back to server, then the number of logged client change to 1. Same thing, when I change the color, the color on server is not updated until I switch to the server.
     
  16. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
    Ah yes! When u build your project you need to make sure "Run in Background" is checked! So go to build settings and look for "Run in background"! This should fix it.
     
  17. Wikened

    Wikened

    Joined:
    Oct 31, 2011
    Posts:
    271
  18. poacher2k

    poacher2k

    Joined:
    Feb 29, 2012
    Posts:
    4
    Thanks! Great tutorials to learn the basic concepts and get started! :D
     
  19. D10ny5u5

    D10ny5u5

    Joined:
    Mar 7, 2013
    Posts:
    1
    Thanks! Great tutorial(s).

    Did you know the videos at the end are uploaded in the wrong order.

    Cheers
     
  20. Spacez

    Spacez

    Joined:
    Apr 19, 2013
    Posts:
    22
    Thanks this is really great. watched them all and they help me a lot !

    also i went check your channel in youtube and found sooooo many tutorials which are really helpful indeed.


    ps. btw, the video 7th in this forum is in the wrong order though :D

    Cheers
     
  21. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,008
    This is very cool!

    How does this compare to useing photon or Smartsfox?

    Would this support thousands of users? What about hundreds?

    Is it based on system resources?
     
  22. Sildaekar

    Sildaekar

    Joined:
    Jul 8, 2013
    Posts:
    95
    Very nice tutorial on the basics of networking, followed along and kinda did my own thing. Would love to see more tutorials from you!
     
  23. mrbdrm

    mrbdrm

    Joined:
    Mar 22, 2009
    Posts:
    510
    Thanks :)
    love this.
     
  24. AlexWang

    AlexWang

    Joined:
    Nov 25, 2013
    Posts:
    1
    I've try with your tutorial and complete all.
    It's a good way to create a server/client work in unity.

    But is it has different way? just like sever and client are separate?

    Because I only use it on first day..so I have no idea now.
    Thx for your good tutorial video, and if you don't feel upset , please teaching me again.




    Forgive my poor English..Have a good day.


    ------
    Past for 1 day.
    It's a very strong server that I found, called photon server, try it. ^_^
     
    Last edited: Nov 26, 2013
  25. urfx

    urfx

    Joined:
    Dec 12, 2013
    Posts:
    12
    very helpful and nice pace. thanks.

    a couple of things I did that might help you or others.

    1. in the first part, use a random colour it shows that the function gets executed on each client... so effectively the server broadcasts the rpc... but the clients do not continually request an update. so using a random colour helped me get my head round the illusion and brace myself for future issues

    2. in the second part where your using one node as server for login... try many clients
    step 1. start all the clients
    step 2. register a client
    step 3. login that client (oops) // all clients get logged in

    I have a fix for that issue, if you are still following the feedback.

    Top tutorial and I am very grateful...
     
  26. LIU YI-CHENG

    LIU YI-CHENG

    Joined:
    Dec 19, 2014
    Posts:
    1
    Thanks!
    This is very great
     
  27. NejakoSecond

    NejakoSecond

    Joined:
    Mar 18, 2015
    Posts:
    2
    Nice work Wikened.

    I like your videos, cause they're easy to understand with some help in unity scripting wep page.
     
    Last edited: Jul 19, 2015
  28. NejakoSecond

    NejakoSecond

    Joined:
    Mar 18, 2015
    Posts:
    2
    One question.

    Can host play a game? I think you set that only to clients, so if the host wants play, he musts open another tab of the game and connect as a client?
     
  29. K2aN

    K2aN

    Joined:
    Apr 4, 2017
    Posts:
    1
    This is awesome!. Thanks for this tutorial
     
  30. htmoore

    htmoore

    Joined:
    Nov 18, 2016
    Posts:
    6
    Great tutorial. Just what I been looking for. I noticed it is around 5 years old. Anything new with unity 5 or 2017?