Posts: 30
Threads: 3
Joined: Aug 2010
20 Jun 11, 06:13PM
(This post was last modified: 20 Jun 11, 11:58PM by sputnik.)
I was playing around with the "AssultCube" PHP-Class from Fiz,
see: http://forum.cubers.net/thread-2259-post...l#pid43706
and build with it a small PHP-based Server-browser. Since the result is well working, i decided to publish it here.
With the AC|Server-browser, you can list the AC-Servers that are currently online and search for online-players.
The Application is very basic & lightweight, without js/ajax frameworks, and with minimalistic-style.
Screenshots:
Server-list:
When you click on a server, you get detailed information:
Online player-search, here searching for "|". Its also possible to make a blank-search, so that all online-players will be displayed
Credits:
It would be great, if clans or people with performant servers could host it.
The installation is very easy. First, make sure that "fsockopen" is enabled in your php-configuration.
Then just unzip and put the files somewhere in your web-directory - thats it.
Download:
// EDIT
New Version (1.1) Add all AC-Colors / clean code
Download (9kb)
Posts: 414
Threads: 12
Joined: Feb 2011
Has anyone actually managed to download this???
I get sent to a download site without a download button and it is not possible to download the file from the links on the page :(
Posts: 70
Threads: 3
Joined: Jun 2010
Very interesting thing, I'll talk with aerkefiende if it is possible to host it.
Posts: 30
Threads: 3
Joined: Aug 2010
20 Jun 11, 07:08PM
(This post was last modified: 21 Jun 11, 10:08AM by sputnik.)
(20 Jun 11, 06:39PM)DES|Anderson Wrote: Has anyone actually managed to download this??? its a multiple file-hosting-sites download-page. Just scroll down and choose one hosting site from the list.
Or use this direct-link from MediaFire:
//EDIT: new DL-link, ver 1.1:
Download
Posts: 392
Threads: 28
Joined: Jun 2010
20 Jun 11, 07:33PM
(This post was last modified: 20 Jun 11, 07:40PM by pwnage{TyD}.)
Very nice indeed!
I put it on a web directory on this link if anyone would like to see it running: http://servers.tearyoudown.com
Original code for those who are interested: http://pastebin.com/4u5SdH0q
Posts: 1,038
Threads: 96
Joined: Jun 2010
20 Jun 11, 07:36PM
(This post was last modified: 20 Jun 11, 07:37PM by Andrez.)
Looks awesome, sputnik!
+1000 internets for you!
PS: use Rapidshare as mirror and then choose FREE DOWNLOAD. It's the most reliable I think.
Posts: 1,436
Threads: 7
Joined: Jun 2010
20 Jun 11, 08:06PM
(This post was last modified: 20 Jun 11, 08:07PM by tempest.)
Rapidshare sucks IMO. Mediafire is much better. Problem is, none of those links works for me.
EDIT: Oh lol.
Quote:Also, make sure that your browser does not have any addons which disable "send referrer" option
Yeah right. Thanks for the link then, Sputnik.
Posts: 951
Threads: 23
Joined: Jun 2010
One thing: I know this isn't your problem per say, but I just checked my server on the list and I see this:
ReQ.|XPandora (My color codes are not used often, Note to devs: ADD THESE IN THE EXAMPLE TO THE CFG! ;-D)
Could support for this be added Fiz pl0x.
Posts: 1,436
Threads: 7
Joined: Jun 2010
20 Jun 11, 08:42PM
(This post was last modified: 20 Jun 11, 09:04PM by tempest.)
If someone gets a flood of warnings (like I did), you may want to apply this diff.
Posts: 30
Threads: 3
Joined: Aug 2010
(20 Jun 11, 07:33PM)pwnage{TyD} Wrote: I put it on a web directory on this link if anyone would like to see it running: http://servers.tearyoudown.com Thx for hosting. I hope this wont kill your server.. ;)
(20 Jun 11, 07:36PM)Andrez Wrote: +1000 internets for you! thanks mate
(20 Jun 11, 08:09PM)Viper Wrote: Could support for this be added Fiz pl0x. It´s not a problem to update the Class, so that all color-codes will work. If Fiz dont want/dont have time for it, I could make it.
Posts: 301
Threads: 5
Joined: Feb 2011
really really nice!
just im waiting for someone to do something that makes you talk to people in AC from a website (like this) without anyone getting lagg or anything :P
Posts: 30
Threads: 3
Joined: Aug 2010
(20 Jun 11, 08:42PM)tempest Wrote: If someone gets a flood of warnings (like I did), you may want to apply this diff. Thx for advice. I should check my PHP-logs more often..
I will rework the syntax (especially array-syntax ;) ), perhaps also add the new color-codes and post an updated version here soon.
Posts: 1,436
Threads: 7
Joined: Jun 2010
(20 Jun 11, 09:37PM)sputnik Wrote: I should check my PHP-logs more often.. Or, if you have a local server or something dedicated to development, you could set display_errors to 'On' in your php.ini
Oh, and did I mention - nice work! ;)
Posts: 30
Threads: 3
Joined: Aug 2010
(20 Jun 11, 09:53PM)tempest Wrote: ... you could set display_errors to 'On' in your php.ini Yes I know, but since my coding-style is quick&dirty its set to OFF, so I dont have to see the truth.. ;)
Posts: 951
Threads: 23
Joined: Jun 2010
(20 Jun 11, 10:00PM)sputnik Wrote: (20 Jun 11, 09:53PM)tempest Wrote: ... you could set display_errors to 'On' in your php.ini Yes I know, but since my coding-style is quick&dirty its set to OFF, so I dont have to see the truth.. ;)
Hehe :) That's what we all want xD
Posts: 30
Threads: 3
Joined: Aug 2010
i just upload a new version (1.1) with clean code and
cool new colors for Viper.
Posts: 108
Threads: 2
Joined: Jun 2010
Awsome stuff!!! RK should totally put that on this official website
Posts: 1,038
Threads: 96
Joined: Jun 2010
By the way, sputnik, you should consider to upload it either on Akimbo or Quadropolis. Important stuff like this shouldn't be so "hidden" ;)
Posts: 3,462
Threads: 72
Joined: Jun 2010
pwned, for very good reasons, I doubt RK would put this on the site.
Or he might just be lazy.
Posts: 951
Threads: 23
Joined: Jun 2010
(21 Jun 11, 12:01AM)sputnik Wrote: i just upload a new version (1.1) with clean code and
cool new colors for Viper.
;-)
Thanks a ton!
Posts: 30
Threads: 3
Joined: Aug 2010
@pwned, Anvil & others:
Thx for the compliments!
I just want to point out that the main work - the PHP-Class to retrieve Server-Infos - was made by fiz.
So most of the credits go to him.
Posts: 108
Threads: 2
Joined: Jun 2010
21 Jun 11, 01:30AM
(This post was last modified: 21 Jun 11, 01:31AM by pwned.)
(21 Jun 11, 12:31AM)Ronald_Reagan Wrote: pwned, for very good reasons, I doubt RK would put this on the site.
Or he might just be lazy. better than that Cube Server Lister this way
Posts: 534
Threads: 10
Joined: Oct 2010
Oh dang..
Posts: 1,981
Threads: 63
Joined: Jun 2010
Posts: 560
Threads: 10
Joined: Jan 2011
(21 Jun 11, 12:31AM)Ronald_Reagan Wrote: pwned, for very good reasons, I doubt RK would put this on the site. Something something old forums?
Posts: 586
Threads: 24
Joined: Jun 2010
I did my own web-based serverbrowser - in python, not PHP though - but IMHO it's not a good idea to make this a publically available service on this website.
The reason being: we really need all the responsiveness & bandwidth we can for the masterserver - I guess you folks will understand that it'd be no good if it led to problems in-game. The forum already takes up a lot of ressources.
Also, in such a high-impact application as this (web-serverbrowser) is, for this site to use an unbuffered version would be equal to having a "Go Go Go DDoS"-button blinking away :-P
For a time I was actually contemplating building the buffered version from my proof-of-concept python-code - just showing the Top-10 servers (from an editorial list!) and their states as buffered from a (let's say) run-every-10-minutes poll.
Posts: 218
Threads: 1
Joined: Jun 2010
ah, i remember ZinK made a more basic one of these in php too
Posts: 1,981
Threads: 63
Joined: Jun 2010
Posts: 718
Threads: 23
Joined: Jun 2010
Very, very nice sputnik :)
Posts: 951
Threads: 23
Joined: Jun 2010
I'll be adding this to the eQ.| Server page soon :)
Nice job!
|