|
| 26 Jun 2016 12:27 AM |
Does anybody know how to get all the instance ids of a running place from inside a lobby? I'm curious to know how it's done, because I'd like to have a lobby and server list in my game.
Apoc Rising is a good example of what I'm talking about.
I've looked around the wiki at the teleportservice, but I didn't see anything for getting instance ids.
Any help is appreciated.
|
|
|
| Report Abuse |
|
|
|
| 26 Jun 2016 12:45 AM |
i was wondering the same thing :^)
Assassins's lenny brotherhood-- ( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°) ͜ʖ ͡°) ͡°) --R$1,454 |
|
|
| Report Abuse |
|
|
| |
|
Yamno
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 123 |
|
|
| 26 Jun 2016 02:48 PM |
one idea would be to use datastores in conbination with the teleportservice.
datastores can be shared between instances and places in a game, and teleportservice lets you move between instances and places in a game. |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2016 02:54 PM |
Yeah, I've thought about that route. However, datastores are slow and fail on occasion. If a datastore script failed to remove the instanceid from a table holding all the running servers before the place closed down, it would lead to an error in the lobby. You can always keep the place open using the appropriate yield function, but at that point, it opens the possibility that somebody could join the game while it was in the process of removing itself. Then, a server would exist that wasn't on the list.
I've also thought about using http requests, but that would require a server. I don't really want to set up a server, or pay for one. It might be worth it, but it'd be a hassle.
|
|
|
| Report Abuse |
|
|
|
| 26 Jun 2016 03:08 PM |
On the thought of a server, does anybody know of any small, simple software that can be used to set up a small, very light database?
It needs to have a library for interfacing with node.js or python, as that's what I'd use to make the web application.
|
|
|
| Report Abuse |
|
|
| |
|