AAO25.com

America's Army => General Chat => Topic started by: Spanky on Sunday, March 04, 2012, 22:12:35 PM

Title: Online Server List
Post by: Spanky on Sunday, March 04, 2012, 22:12:35 PM
Before I go on and show off this cool code, keep in mind that all of this is unreleased so it may not work properly or look good. This is purely a thread for testing, updating and fixing this list.

Jonny has made a new server list for Assist so rather than using Gamespy, I grab his list with PHP and put it into my own with formatting:
*EDIT UPDATE URL*
http://s.aao25.com/

This is the same list that Assist uses. I've formatted it to be 320px wide which should be good for most mobile devices. It just shows the server name, map name and player amount with a total at the bottom. Pretty simple. You can then click on the server name to get advanced information such as player names, round time and all sorts of other stuff. Basically, it's double-layer. The first page is Jonny's Assist list, when you click on the server name, you're sending a query directly to the server itself and it replies with the information.

*EDIT*
Beta Version 1 is up and running with all the features working.
Title: Re: Online Server List
Post by: BlueBlaster on Sunday, March 04, 2012, 22:27:20 PM
Baus
Title: Re: Online Server List
Post by: ^^UnDiSpUtEd^^ on Monday, March 05, 2012, 03:42:43 AM
404: Page Not Found

We are terribly sorry, but the URL you typed no longer exists. It might have been moved or deleted, or perhaps you mistyped it. We suggest searching the site:

For safari and firefox?
Title: Re: Online Server List
Post by: Spanky on Monday, March 05, 2012, 03:45:32 AM
Whoops. Me and Jared worked some more on this today and I renamed some files. Check the main post again for a working link.
Title: Re: Online Server List
Post by: ^^UnDiSpUtEd^^ on Monday, March 05, 2012, 03:49:07 AM
Whoops. Me and Jared worked some more on this today and I renamed some files. Check the main post again for a working link.

No problem, quite similar and cool stuff, i like it:) Thanks
Title: Re: Online Server List
Post by: Spanky on Monday, March 05, 2012, 03:51:16 AM
Thanks :) The main goal is to have it be a server list for on the go, to check on your iPhone or whatever you have, without having to load Assist. Simple and small is what we're aiming for.
Title: Re: Online Server List
Post by: ^^UnDiSpUtEd^^ on Monday, March 05, 2012, 03:53:18 AM
Cool, finally i will see servers, and whos playing via my phone:)
Title: Re: Online Server List
Post by: BlueBlaster on Monday, March 05, 2012, 04:05:50 AM
I forgot what it is you do to request the server's information, but does it give you which player is on what team? I think that would be kinda cool to display.
Title: Re: Online Server List
Post by: ^^UnDiSpUtEd^^ on Monday, March 05, 2012, 04:10:04 AM
I forgot what it is you do to request the server's information, but does it give you which player is on what team? I think that would be kinda cool to display.

Kinda be cool too:)
Title: Re: Online Server List
Post by: Spanky on Monday, March 05, 2012, 13:01:51 PM
I don't think it replies with who's on what team. Here's the default script with all the info:
http://s.aao25.com/original.php?IP=64.126.161.69&PORT=1717
Title: Re: Online Server List
Post by: Archeh on Monday, March 05, 2012, 15:41:58 PM
Country where the server is based, maybe?
Title: Re: Online Server List
Post by: Spanky on Monday, March 05, 2012, 17:11:38 PM
Added country next to IP.
Title: Re: Online Server List
Post by: BlueBlaster on Monday, March 05, 2012, 17:20:53 PM
Serverlist looks awesome when there's a lot of servers.
Title: Re: Online Server List
Post by: Archeh on Monday, March 05, 2012, 19:17:00 PM
Added country next to IP.

Good stuff, looking great.
Title: Re: Online Server List
Post by: Spanky on Tuesday, March 06, 2012, 21:13:07 PM
All of this code will be broken for a bit as I'm moving files and updating things to release a more final version. Be patient, it will be worth it.
Title: Re: Online Server List
Post by: Spanky on Tuesday, March 06, 2012, 22:07:42 PM
Alright guys, here's the permanent URL:
http://s.aao25.com/

Pretty easy to remember. It shouldn't ever change, any updates shouldn't break URL's now.
Title: Re: Online Server List
Post by: Alex on Tuesday, March 06, 2012, 22:47:43 PM
Good job.
Title: Re: Online Server List
Post by: BlueBlaster on Tuesday, March 06, 2012, 23:29:11 PM
Looks great
Title: Re: Online Server List
Post by: Archeh on Wednesday, March 07, 2012, 02:04:06 AM
Just like I wanted it to be :D
Title: Re: Online Server List
Post by: Spanky on Wednesday, March 07, 2012, 04:03:08 AM
Added a link up top in the main navigation for easy access :)
Title: Re: Online Server List
Post by: Spanky on Tuesday, March 13, 2012, 22:13:24 PM
Spent the better part of 4 hours today researching and writing code to sort the list by the amount of players. This will also be used for something else coming soon :)
Title: Re: Online Server List
Post by: BlueBlaster on Wednesday, March 14, 2012, 01:17:23 AM
Waiting for epicness :D
Title: Re: Online Server List
Post by: Spanky on Thursday, March 15, 2012, 21:27:38 PM
Another thing I started working on;

(https://aao25.com/forum/proxy.php?request=http%3A%2F%2Fs.aao25.com%2Fstats%2Fnumplayers2.php&hash=836c7a944c78f606f9781583bf79cb4a)

It isn't a total users online kinda stat but it poll's the server list every 5 minutes and gets a value and puts it into a chart. Just a test version so far, it still needs work and more values before it will be useful.
Title: Re: Online Server List
Post by: BlueBlaster on Thursday, March 15, 2012, 21:35:45 PM
Interesting....you're putting me in the dust man.
Title: Re: Online Server List
Post by: Spanky on Thursday, March 15, 2012, 21:42:10 PM
Just building on stuff I already know :) It's the GD stuff that PostQuote uses for the signatures. I also added another query for the "Online Users" to stick it in a row in another table that will store about 300 values to generate this graph. Should be quite a bit more accurate than the BattleTracker one.