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. Dismiss Notice

Seeking advice on how to build systems for multiplayer

Discussion in 'Scripting' started by stephenq80, May 17, 2021.

  1. stephenq80

    stephenq80

    Joined:
    Jun 20, 2018
    Posts:
    34
    Hello and thanks for reading my post.

    I am interested in learning how to build systems for multiplayer games. Specifically, I'm looking to learn how to make things like player inventory, equipment, stats, and combat systems work in a multiplayer context. Thus far, I've looked for courses on Udemy (none seemed to be truly well regarded), Pluralsight (couldn't find anything extensive), and of course YouTube (everything I came across was older). So here I am asking the community, hoping someone knows something I don't. I would like to learn good practices and on a version of Unity that isn't like five years old. Oh, good books would be appreciated well.

    Thank you!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    I doubt there's any one place that would have it all, but luckily there are thousands of tutorials for all the different parts of it.

    Just remember multiplayer ranges from couch co-op two player on through competitive pvp and on up through mmos with massive persistent worlds and millions of players.

    Making non-trivial game systems in a vacuum is a complete waste of time. Systems need generally to be iteratively developed against a specific context and use case, as well as iteratively integrated and debugged. That's not optional.

    Define your target set and start trying some tutorials to get a sense of what is involved.
     
  3. stephenq80

    stephenq80

    Joined:
    Jun 20, 2018
    Posts:
    34
    Thanks for the response. The fact that there are thousands upon thousands of tutorials out there is kind of the problem. Some of them use five year old versions of Unity. Some of them are done by kids that barely know anything. Some of them are done by "professionals" that barely know more than the kid. Some barely fit my use case, and others are just down right bad. Trust me, I've been on YouTube, LinkedInLearning, PluralSight, Udemy, these forums. I feel I've spent a lot of time looking and not enough time...doing.

    I totally get what you're saying. And your right about iterating and debugging. And I've done that. I have a stat system, an inventory system, an equipment system, a simple AI system and combat system that all works...for single player.

    I don't have a clue how to make those systems work in a multiplayer context. For example, I use a singleton pattern in my inventory, and equipment systems. I don't think something like that would work in multiplayer. But how would I change that? That's the stuff I'm seeking to learn in a good way. I don't know if my systems can be "converted", or have be rebuilt from the ground up for multiplayer. I hope that is more clear.