New Master Server

My old master server has been bugging me for ages – connections are funky, and people had to constantly clear their cache and refresh the page, to see each other’s servers! It’s been going on for weeks. Ideas kept popping up in my head, about how I could make my own master server… Eventually these ideas lead to my current concept.

After having had this idea pop up a billion times – and having chaos occur during a beta test because of the old master server – I cracked.

I immediately disconnected from my beta chat, and started work on the PHP, and MySQL.

Here is the concept.

MySQL acts like a list of servers – each list item containing connection information.

When a player starts a server, the connection information for that server is gathered, and then send to MySQL as a list item.

MySQL then has a date function – it tells how long ago that server has pinged. The server pings every five seconds, and if a server doesn’t ping within 30 seconds of the last ping – the server is removed from the list.

This means that the Master Server (List of servers) automatically removes dead servers – when a server is closed (killed/becomes dead), it stops pinging.

The main bug in the old master server, was browser caching. The new system prevents the browsers from caching (Or storing old copies of) the master server. Instead it caches the API (Application Programming Interface) that displays, and controls the Master server. Since the API doesn’t change its self – only the results it sends to Space. Likewise, one’s browser will only store the way that the API works, not the things that the API returns.

The serve list displays the time since the last ping (LSR), in the server list. The text color moves from green, to red depending upon LSR (Last Server Response).

If a server is live, it probably won’t go above 6LSR, but the max is 30LSR for leeway.

Space’s first blog post!

Soo… I’ve lately been working on the layout of the website, and posting informative pages, such as version listings…

However, I haven’t been blogging about the development of Space!

I’ve been working on this bug for about three weeks, and just finished it today! – The bug I was working on was in the winners list of race mode. Whenever someone completed the race, it displayed them as first, no matter what place they were in! Not only that, but no one could see each other in the winners list!

Finally fixed, but along the way a few bugs arose…. (Posted on Humor America).

0th place:

1th place:

Finally working!:

I dubbed the glitch the “PC moment glitch” – because I tried eleven times, all but the last failed – some worse than others. (Joke to those whom have seen the apple commercial)

Space…

Welcome to the Space homesite!

This website is under development, and currently unable to serve any purpose.

Search
Categories
Archives

You are currently browsing the Space blog archives.