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

FREE Multiplayer System!

Discussion in 'Made With Unity' started by GiannisMarinakis, May 12, 2015.

  1. GiannisMarinakis

    GiannisMarinakis

    Joined:
    Sep 7, 2012
    Posts:
    3
    Hello! :)

    This thread is for my advanced multiplayer system, on which I have been working on for a little while. This system was ready to be on sale, but I changed my mind, so I give it for free for you guys! :)

    Advanced Multiplayer System, is a system that allows you to create something a 'online FPS Game' with rooms, chats, user accounts, friend system.
    Each room has his own players, others rooms cannot see the players of your room.
    You have the ability to create a room, set it's name, max players, password.. you can ban chat players of your room or kick them or chat with them on the in-room chat!
    You can search for rooms with the rooms filters, like search for rooms with password or not, search by gamemode, search by name. And more!

    Here's a review video on youtube:

    Click here!


    This project contents 14 scripts (without unity's for character controller).
    These are the names of the scripts & what they do:

    -Player/PlayerMovement.js: It sends the player movement only to the room that he's playing
    through RPCs.

    -Server/PlayersMovement.js: The server sends the movement player that he have been given to all rooms, and then each
    player do his own check to check if the movement player he received is for the room that he's playing.

    -Server/ServerManagement.js: This script is for server owner, it has the GUI & some functionalities, like sending server details for those who're searching for this server.

    -Server/UsersManagement.js: This script is for server owner, it holds all the registrations for the users, it's doing the user login check, adds or removes players from the lobby.

    -FoundServer.js: This script is activated when it successfully finds the server that he's searching for & showing the current server details (players online, ping, server name).

    -FriendsManagement.js: This script is responsible for the friends system. It shows the user the GUI of his friend list, adds friends, removes friends, holds the friends requests.

    -Lobby.js: It's the main GUI of this system which shows the rooms, let you create a room, search for a room, have filters for your search. It adds or removes players from the lobby, it has the system for searching + the filters, it does the connect into the rooms & checks if you typed wrong the password(if the room has password). It registers the rooms to a list, or removes them.

    -MultiplayerManager.js: It's the starting GUI, which gives you the ability to create a server or to connect to a server + connection error messages.

    -NotificationsManagement.js: It shows all the notifications on the top-left of the screen.

    -PrivateMessages.js: It shows the GUI of the privates messages + receives or sends the message to the player.

    -RoomCreation.js: It's the GUI of the room creation, when you press the create button it enables the RoomManagement.js sript & it sets temporary values on it.

    -RoomManagement.js: It shows the room GUI if you're the room owner or not, it has in-room chat, it shows the connected players on the room, you can add the as friend or removes them or chat with them privately, the owner can ban chat a player or kick him out of the room, or start the game. It is also responsible for spawing all the players into the room.

    -ShowServerAnnoucement.js: It shows the servers announcement, it's only GUI & it receives the server announcement message.

    -UserRegistration.js: It's the user registration GUI, it receives the user registration process and it sends the request to register the user on the server.


    NOTE: It will be hard to a very-begginer to edit & modify those scripts.

    --------------------------------------------------------------------
    ====================================================================

    * To open the project:

    -Open Unity 3D
    -Go to 'File > Open Project...'
    -Select the folder where this project is, then press 'Open'
    -Wait to load the scripts
    -Open from the Project the scene that it's called 'Scene'?

    * To run the project with atleast the server and 1 client:

    -Press 'Ctrl + B' to build & run the project.
    -Press 'Play!' on the window that appeared
    -Select a name for the server owner and press 'Continue', then 'Host server'
    -Set a valid & open router port
    -Set the max players
    -Finally, set the server name & press 'Start'
    -Server is ready, now to open 1 client, go back to Unity 3D and start the game
    -Select a username & press 'Continue' then 'Search & Connect'
    For the server ip type 'localhost' & for the port, the port that you have entered when you created the server, then press 'Search'
    -Press 'Connect'
    -If the user did not found, the create one and press 'Register'
    -Then, do the same steps until it asks you to enter your account's password, enter it and press 'Continue'

    That's it! :D
    Now you can play and if you want more than 1 client you can open again and again the .exe file and login with a account!

    DOWNLOAD HERE (Look at description!)
     
    Last edited: May 13, 2015
  2. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    where is the download link buddy?
     
  3. GiannisMarinakis

    GiannisMarinakis

    Joined:
    Sep 7, 2012
    Posts:
    3
    Download it is on the video description!! :)