Part 2
Part 1: ServerSystem - Devlog #1 - Server creation
I created github where you can see my progress: https://github.com/luketeam5/Roblox-Server-System/blob/main/Module.lua
Trello board: Trello
Soo, today i was working on getting server info, after fixing some errors caused by my stupidity i finished with this.
local reply = require(script.Parent.ModuleScript).GetServerData(12)
print(reply)
This will return entire dictionary of server info (12 is the ServerID)
It also works for your custom data:
local reply = require(script.Parent.ModuleScript).GetCustomData(12)
print(reply)
And i added some errors to tell you what is wrong:
"[ServerSystem]: Error 102, invalid SID, SID can't be NIL and must be a number."
"[ServerSystem]: Error 101, missing arguments when creating server"
Then i started working on connection to server, little did i know this will take forever.
First of i decided to store server people are trying to connect to in Datastore, that will allow me to make history of servers player visited later. (Probbably in part 3 or after release)
After 2 hours of bug fixing it was working and the System was connecting me to server!
Now it’s time to make system that connects me to private server and creates new one if it doesn’t exist. After while of debuging it worked!
Server 27:
Server 28:
Here is small DEMO: LobbySystem Demo - Roblox
Only servers 27 and 28 are currently working (others may work too but aren’t tested)
You can’t create new server or browse servers YET
I will add Server List and ServerCreation soon.
I will make #3 tommorrow.