Multiplayer Server Client Implementation
A downloadable tool
DEMO WORK
While this works fully, it is only a demo of what's possible using the multiplayer server/client scripts that I've created.
Full documentation provided along with the unity package and a EXE demo.
Be sure to allow the demo through windows firewall when testing and forwarding of ports if no UPnP.
This package is completely independent from everything else and all thats required to expand on the functionality is for new dataPackets to be creates and sent, alongside a correct packet handler to process the sent data.
This makes for creating a multiplayer game in just a few simple additions of required functionality on the server and client side, without having to change a whole load of code to add in a new feature.
This demo project includes...
Server:
- Server instancing
- Max player count
- Port
- WAN code
- LAN code
- Global code
- TCP Send/Recieve
- Packet Handlers
- Connected Client Data
Client:
- Local instance
- Online Instance
- TCP Send/Recieve
- Packet Handlers
- Movement Example
Data Packets:
- Welcome
- Spawning
- Disconnect
- Movement
- CloseServer
Network Functionality:
- Get local IP of the Server or Client
- Check if IP's are valid or not when trying to connect to a server
- Encrypt the Server IP into a LAN/WAN/Global Room Code that can be uaed by anyone and that is 100% unique to every possible server.
- Decrypt a Room Code into both a LAN and WAN IP address in order to provide better connectivity to computers that are either internal or external IP's
UI Implimentations:
- Room Code Display
- Server Start Buttons
- Client Connect Buttons
- Client Room Code Input Box
Online Game Manager (Player Examples):
- Movement
- ID
- Rotation
- Leave
- Spawn/Join
Debugging Tools:
- Simple printing out of Client debug issues
- Simple printing out of Server debug issues
- Colour based debug messages (OK, Warning, Error, Info)
Status | Prototype |
Category | Tool |
Author | Musical-Phenix |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.