Digital Paint Discussion Board

Paintball 2: The Game => Paintball 2 Discussion => Topic started by: mRokita on June 25, 2014, 09:50:34 AM

Title: Web Serverbrowser by hTml
Post by: mRokita on June 25, 2014, 09:50:34 AM
Hi!
I had some free time and i wrote a web serverbrowser.
It's available at http://htmldp.com/sb (http://htmldp.com/sb).
Server stats are refreshed every 20 seconds, serverlist is updated every 1 minute.
Enjoy & post your feedback here :)
Title: Re: Web Serverbrowser by hTml
Post by: rockitude on June 25, 2014, 10:15:22 AM
Nice work. One thing, you forgot to add the port to "Join Game".

Edit: You should just show one line of server info and when someone clicks on it, it will pop up a div under it with all  info.
Title: Re: Web Serverbrowser by hTml
Post by: Malware on June 25, 2014, 10:44:48 AM
Where are Arctic servers?
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on June 25, 2014, 10:59:18 AM
Hmm strange looks like they don't respond
EDIT: fixed after application restart
EDIT 2: @rocki: thanks, fixed
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on June 26, 2014, 04:01:30 PM
v1.1
[BUGFIX] Connecting players are displayed now on a grey background.
[FEATURE] You are now able to link a server/make an iframe with its stats. Help page is available at http://sb.htmldp.com/addsb.html (http://sb.htmldp.com/addsb.html)
[FEATURE] Linked map names to their downloads
[FEATURE] The player list is now scrollable, so the table isn't resized when there are more players online.
[FEATURE] Server's IP and port are now displayed.
[FEATURE] You can now access the website from http://sb.htmldp.com (http://sb.htmldp.com)
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on June 27, 2014, 07:02:48 AM
[FEATURE] Global stats added (Current player count and average players online).
Title: Re: Web Serverbrowser by hTml
Post by: vLaD on June 28, 2014, 04:36:53 PM
i would bold the blue against the black or make it a white color. Its hard to see it against the black.
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on July 10, 2014, 03:00:45 AM
[BUGFIX] The app doesnt crash when the list from http://dplogin.com/serverlist.php (http://dplogin.com/serverlist.php) is downloaded as empty because of no connection to dplogin.com.
Title: Re: Web Serverbrowser by hTml
Post by: Clipz on July 10, 2014, 09:34:22 AM
As less rude as possible why would people use this instead of the server browser that comes with the game?
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on July 10, 2014, 09:45:22 AM
As less rude as possible why would people use this instead of the server browser that comes with the game?
Clipz, you have a smartphone, don't you?
Title: Re: Web Serverbrowser by hTml
Post by: ic3y on July 10, 2014, 10:56:15 AM
Clipz, you have a smartphone, don't you?
You have Paintball on your smartphone ?
Title: Re: Web Serverbrowser by hTml
Post by: Clipz on July 10, 2014, 11:03:12 AM
Yeah I have a smartphone but as ic3y is referring to I don't play pball on it.
Title: Re: Web Serverbrowser by hTml
Post by: Ace on July 10, 2014, 11:04:26 AM
Yeah I have a smartphone but as ic3y is referring to I don't play pball on it.

What if you're stranded in the wilderness and NEED to see who's online. ;)
Title: Re: Web Serverbrowser by hTml
Post by: xrichardx on July 10, 2014, 01:06:10 PM
What if you're stranded in the wilderness and NEED to see who's online. ;)
If you're stranded in the wilderness this wont help either - or are you able to pull a mobile transmission tower supplying internet access out of your ***?
Title: Re: Web Serverbrowser by hTml
Post by: Clipz on July 10, 2014, 01:11:17 PM
I just personally think it's a waste of time. Unless you added a friend system and could track and see when your friends play and if they are currently on. Also adding some type of messenger could be cool.

But just another server browser is useless when the game comes with one.
Title: Re: Web Serverbrowser by hTml
Post by: Ace on July 10, 2014, 01:47:27 PM
If you're stranded in the wilderness this wont help either - or are you able to pull a mobile transmission tower supplying internet access out of your ***?

The joke was lost in translation somewhere in there
Title: Re: Web Serverbrowser by hTml
Post by: xrichardx on July 10, 2014, 03:46:48 PM
The joke was lost in translation somewhere in there
Oops, sorry
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on July 10, 2014, 03:57:23 PM
Unless you added a friend system and could track and see when your friends play and if they are currently on.
I'll add a 'last seen playing' function in the next update. I mean something like Yuri's !seen on irc.
Also adding some type of messenger could be cool.
I'll have to run a python script on every pb server to make it real.
Title: Re: Web Serverbrowser by hTml
Post by: Clipz on July 10, 2014, 04:10:48 PM
Not a messenger to message people in game. Something more of if people are on the site you can message them like Facebook has.
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on July 10, 2014, 04:13:07 PM
U mean sth like a shoutbox?
Title: Re: Web Serverbrowser by hTml
Post by: Clipz on July 10, 2014, 04:14:13 PM
No, its a messenger. Once you login to the site you can message other players who are logged in. Do you use facebook? Its a perfect example.
Title: Re: Web Serverbrowser by hTml
Post by: Ace on July 10, 2014, 06:46:04 PM
I dont think so, i think my sentence is clear, but i will try again for you: If you are lost in the wilderness, you won't have internet access with your smartphone anyway.

That was the joke, it's useless in every situation.

I vote for the messenger that clipz mentioned. IRC is nice, but not overly friendly to the 12yo's that play.
Title: Re: Web Serverbrowser by hTml
Post by: aborted on July 11, 2014, 02:18:36 AM
I like this sb . Just because I can see who is playing when im on my mobile
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on July 11, 2014, 02:20:23 PM
I like this sb . Just because I can see who is playing when im on my mobile
Thanks, im so happy that its useful for some people (including myself) :)
No, its a messenger. Once you login to the site you can message other players who are logged in. Do you use facebook? Its a perfect example.
Yep, i use fb, but i dont know much about writing web apps, but i'll try to learn python's DJango or PHP ;)
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on December 17, 2014, 12:58:17 AM
Arctic is no longer displayed, i don't really want to waste time on fighting with that.
If you want to see Arctic again, talk to ic3y, not to me
Title: Re: Web Serverbrowser by hTml
Post by: ic3y on December 17, 2014, 08:34:06 AM
Arctic is no longer displayed, i don't really want to waste time on fighting with that.
If you want to see Arctic again, talk to ic3y, not to me
Okay, thanks for the information
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on December 17, 2014, 09:25:42 AM
Okay, thanks for the information
xD
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on January 03, 2015, 06:15:23 PM
Version 1.1 released, it has many great features.
Now it works in a bit different way.
If you dont want to enable javascript (its enabled by default in all the browsers but Lynks, Links etc. ;D ), use this url: http://sb.htmldp.com/index.py?expandall=1 (http://sb.htmldp.com/index.py?expandall=1).
If you want to use it for hidden servers (servers with public set to 0), use a link like this:
http://sb.htmldp.com/index.py?server=SERVER'S_IP:PORT
Example:
http://sb.htmldp.com/index.py?server=htmldp.com:27910 (http://sb.htmldp.com/index.py?server=htmldp.com:27910)
Title: Re: Web Serverbrowser by hTml
Post by: T3RR0R15T on January 03, 2015, 08:11:53 PM
Maybe you can remove the website and email links, if they are show "None". And i would link the ip to paintball2:// instead of http://.
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on January 03, 2015, 09:18:57 PM
Maybe you can remove the website and email links, if they are show "None". And i would link the ip to paintball2:// instead of http://.
Done
Title: Re: Web Serverbrowser by hTml
Post by: mRokita on June 02, 2016, 05:45:01 AM
I've started working on the new SB, source and installation tutorial is available at https://github.com/mRokita/WebSB.
I'll add some AngularJS based frontend soon.
Feel free to contribute or install it on your own server.

At the moment, the only thing it provides is API with server list history.
There's no documentation yet, just play with thise urls:

https://sb.mrokita.pl/api/v1/scans
https://sb.mrokita.pl/api/v1/scans/latest
https://sb.mrokita.pl/api/v1/scans/3
https://sb.mrokita.pl/api/v1/servers
https://sb.mrokita.pl/api/v1/scans/latest/?show_players=1&show_variabes=1
https://sb.mrokita.pl/api/v1/scans/latest/?show_players=1&show_variabes=1
https://sb.mrokita.pl/api/v1/scans/latest/5.189.151.21:27920?show_players=1&show_variabes=1
https://sb.mrokita.pl/api/v1/servers/5.189.151.21:27920?show_players=1&show_variabes=1