Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I fix the "join bug" I'm currently having?

Asked by 3 years ago

My game works like this:

There is a main place, with a list of multiple games, and the "client" place, which stores the games. When a player joins the main place, and clicks "Play" on a game, the server picks it up, gets the "ID" of the place, reserves a server, notifies all other main place servers about it, and sends the player over with the ID. The "client" place then retrieves the ID, and loads in the corresponding place.

The bug I'm having is when the main place notifies all other main place servers, when a new main place server is created, they don't have that information. This is an issue in case, let's say my friend joins, and I'm already in a game. What I need to happen is when a new main place server is created, they get the information needed, regardless if other main place servers exist or not. I can't keep all these games in separate places (for certain reasons).

My idea is the "client" place stores the players and server information as well, and when a new main place server is created, the "client" place sends the information to that main place server.

But if there is a better way (or not), how would I accomplish this? If you can help, thank you. Have a nice day!

Answer this question