Digital Paint Discussion Board

Paintball 2: The Game => Paintball 2 Discussion => Topic started by: Smokey on September 17, 2006, 04:41:02 AM

Title: php serverlist
Post by: Smokey on September 17, 2006, 04:41:02 AM
http://pwndlol.dajoob.com/servers.php


Kinda neat, loads REALLY slowly though, due to having to contact each server for its hostname and client count.

I still need to figure out how to get the amount of people in the server.


Edit: dosent always go slow!
Title: Re: php serverlist
Post by: loial21 on September 17, 2006, 06:08:20 AM
Quote
loads REALLY slowly though
2-3 minutes with cable modem. He is not joking folks.


Commendable job. Is it possible to move the 'players in server' to the first page and make all categories sortable?

I wish a soon to come official release from Jitspoe will address this.

How long did it take you?

Title: Re: php serverlist
Post by: bitmate on September 17, 2006, 06:09:14 AM
That's pretty sweet, but maybe you can add a cool layout. The white page doesn't look that nice ;)

Quote
loads REALLY slowly though
2-3 minutes with cable modem. He is not joking folks.
More like 2 secs for me :)
Title: Re: php serverlist
Post by: loial21 on September 17, 2006, 06:17:12 AM
Bit a custom layout would be nice. White does lack something appealing. But he needs to focus on functionality first.   

To All and Smokey,
Once the page loads do not close it. If you simply refresh  the page it loads with out delay. Any ideas why? Hope that helps with fixing the initial load time it sucked for me. 

Title: Re: php serverlist
Post by: bitmate on September 17, 2006, 07:08:44 AM
Once the page loads do not close it. If you simply refresh  the page it loads with out delay. Any ideas why? Hope that helps with fixing the initial load time it sucked for me.
It's auto-refreshing for me, at least the server status pages are auto-refreshing.


**edit: The main page does not auto-refresh, so when anyone is joining an empty server, it's still displayed as empty.
Title: Re: php serverlist
Post by: Smokey on September 17, 2006, 09:38:18 AM
Quote
loads REALLY slowly though
2-3 minutes with cable modem. He is not joking folks.


Commendable job. Is it possible to move the 'players in server' to the first page and make all categories sortable?

I wish a soon to come official release from Jitspoe will address this.

How long did it take you?


iv had the php server info script for map, players and such already, just did a hour of modifications :D

That's pretty sweet, but maybe you can add a cool layout. The white page doesn't look that nice ;)

Quote
loads REALLY slowly though
2-3 minutes with cable modem. He is not joking folks.
More like 2 secs for me :)

Maybe, id have to fix alot of bugs first


Only reason for slow loading speed is the webserver its on, check the timer at the bottom. Its a crud webserver because arena-zone.com disallows sockets.

Maybe i could store all hostnames in a mysql database or a text file even, just to help with speed.
Title: Re: php serverlist
Post by: KnacK on September 17, 2006, 10:26:20 AM
Quote
Only reason for slow loading speed is the webserver its on, check the timer at the bottom. Its a crud webserver because arena-zone.com disallows sockets.

That's the issue there.  Use sockets and the problem will go away. Time for a new host.
Title: Re: php serverlist
Post by: Smokey on September 17, 2006, 10:29:20 AM
Quote
Only reason for slow loading speed is the webserver its on, check the timer at the bottom. Its a crud webserver because arena-zone.com disallows sockets.

That's the issue there.  Use sockets and the problem will go away. Time for a new host.
i am using sockets.

im only using dajoob because it supports sockets and is free.
Title: Re: php serverlist
Post by: Cobo on September 17, 2006, 02:28:15 PM
Looks like there is a problem there.
Quote
MeMi Pub 1 www.memi-clan.de
217.20.118.15:33333
Map: airtime
Scores: Red:31 Blue:34
Location: Frankfurt, Germany
Admin: M&M, Pureblood
Server Version: 2.00 i386 Feb 28 2006 Linux
Time Left: ÿÿÿÿprint

Oh, and btw. Very nice ;)
Title: Re: php serverlist
Post by: TinMan on September 17, 2006, 02:47:58 PM
Quote
This page created in 122.794294 seconds
I love it.
Title: Re: php serverlist
Post by: Smokey on September 17, 2006, 02:52:03 PM
Looks like there is a problem there.
Quote
MeMi Pub 1 www.memi-clan.de
217.20.118.15:33333
Map: airtime
Scores: Red:31 Blue:34
Location: Frankfurt, Germany
Admin: M&M, Pureblood
Server Version: 2.00 i386 Feb 28 2006 Linux
Time Left: ÿÿÿÿprint

Oh, and btw. Very nice ;)
its an older server build, worthless i know.


Quote
This page created in 122.794294 seconds
I love it.

got hosting?
Title: Re: php serverlist
Post by: SkateR on September 17, 2006, 02:52:23 PM
HEY I can actually see GT servers!
Title: Re: php serverlist
Post by: TinMan on September 17, 2006, 03:03:02 PM
Smokey, yeah, it's not great, but its better than that is, send me teh phpsourzeorz.
Title: Re: php serverlist
Post by: b00nlander on September 17, 2006, 03:28:04 PM
its an older server build, worthless i know.

why not catch both versions?  The old servers have the "TimeElapsed", the newer the "TimeLeft" Variable ^^ it only takes an if... ;)
Title: Re: php serverlist
Post by: Smokey on September 17, 2006, 03:42:14 PM
its an older server build, worthless i know.

why not catch both versions?  The old servers have the "TimeElapsed", the newer the "TimeLeft" Variable ^^ it only takes an if... ;)
waste of my time because then i have to create a function to get the true timeelapsed, just update memi servers please :)

Title: Re: php serverlist
Post by: b00nlander on September 17, 2006, 03:45:04 PM
as soon as build17 is out, I will
Title: Re: php serverlist
Post by: Smokey on September 17, 2006, 04:17:33 PM
::)
Title: Re: php serverlist
Post by: loial21 on September 17, 2006, 09:14:43 PM
its an older server build, worthless i know.

why not catch both versions?  The old servers have the "TimeElapsed", the newer the "TimeLeft" Variable ^^ it only takes an if... ;)
waste of my time because then i have to create a function to get the true timeelapsed, just update memi servers please :)


You now sound like Jitspoe. :(
Title: Re: php serverlist
Post by: Eiii on September 17, 2006, 09:45:55 PM
Oh no, updating servers! Scary!
Title: Re: php serverlist
Post by: loial21 on September 17, 2006, 10:25:03 PM
No its not. "It's exciting and new. Come aboard, we're expecting you!" -Jack Jones

Title: Re: php serverlist
Post by: Smokey on September 18, 2006, 09:31:26 AM
i managed to cut off 3/4 seconds from my average load time... now to cut of the other 80 seconds...(on my webserver, used proxies to test some also.)



i also started on a rcon tool made in php, works good so far, i don't expect any server admins to trust me with entering there rcon password into it, so ill post the source when I'm done.


Title: Re: php serverlist
Post by: KnacK on September 18, 2006, 10:49:31 AM
Quote
i also started on a rcon tool made in php, works good so far, i don't expect any server admins to trust me with entering there rcon password into it, so ill post the source when I'm done.

Thanks Smokey, that's actually a very good idea as it will promote further improvements in the app.
Title: Re: php serverlist
Post by: Smokey on September 18, 2006, 11:44:50 AM
orly knack?  :)


http://pwndlol.dajoob.com/show.php?a=servers.php

source for servers.php as it is right now, tinman dont upload it yet, i still got alot to doto it.


edit:

added commnets, so someone who dosent know how it works can see, sorta.
Title: Re: php serverlist
Post by: Smokey on September 18, 2006, 04:10:02 PM
anyways thank you tinman, a bit of a faster host, ill work on hostname cache


http://neonpulse.net/dp/servers.php



eiii, don't even say it.
Title: Re: php serverlist
Post by: Eiii on September 18, 2006, 04:48:22 PM
Too late. Retroactively.
Title: Re: php serverlist
Post by: Smokey on September 18, 2006, 05:09:09 PM
i meant dont comment on the double post.
Title: Re: php serverlist
Post by: Spook on September 18, 2006, 05:16:13 PM
lmfao well thanks for this i actually used to to browse player lists to see if it was even worth playing pub. it wasnt but oh well its still handy
Title: Re: php serverlist
Post by: SkateR on September 18, 2006, 05:18:16 PM
Do you mind not double posting, smokey?
Title: Re: php serverlist
Post by: XtremeBain on September 18, 2006, 05:25:50 PM
Nice rocket jump, SkateR.
Title: Re: php serverlist
Post by: Smokey on September 18, 2006, 05:26:15 PM
lmfao well thanks for this i actually used to to browse player lists to see if it was even worth playing pub. it wasnt but oh well its still handy
hmm, good idea spook!

you've sparked an idea.



oh wow hi xbain. any ideas on how to speed it up? :D
Title: Re: php serverlist
Post by: SkateR on September 18, 2006, 06:17:26 PM
Nice rocket jump, SkateR.

wow bain.....................................     ..
Title: Re: php serverlist
Post by: bitmate on September 19, 2006, 08:17:23 AM
Quote
This page created in 3.641010 seconds
That's definitely better :)
Title: Re: php serverlist
Post by: TinMan on September 19, 2006, 02:45:19 PM
Wow, yesterday it was taking a long time to load on my own box, maybe it takes a bit for it to get http://dpball.com/serverlist.php
Title: Re: php serverlist
Post by: Smokey on September 19, 2006, 04:46:47 PM
not to long, im working on a way for it to store the hostname.
Title: Re: php serverlist
Post by: TinMan on September 19, 2006, 04:51:49 PM
There could be a static list that it'd use, but then it'd have to be updated once in a while. SCRIPT IT!!!
Title: Re: php serverlist
Post by: jitspoe on September 19, 2006, 05:01:30 PM
Retrieving the list should be pretty quick.  Takes less than a second for me in my standalone server browser.
Title: Re: php serverlist
Post by: Smokey on September 19, 2006, 05:17:10 PM
http://neonpulse.net/dp/serverlist.php

its not slow, 1-2 seconds.
Title: Re: php serverlist
Post by: jitspoe on September 19, 2006, 05:38:17 PM
Took like 6 seconds just for the 404 error to come up...
Title: Re: php serverlist
Post by: loial21 on September 19, 2006, 05:44:34 PM
Lil...that has to be aggravating
Title: Re: php serverlist
Post by: TinMan on September 19, 2006, 05:54:38 PM
http://neonpulse.net/dp/servers.php

I removed the serverlist.php a while ago since I didn't see the point in mirroring the serverlist, want me to put it back up?
Title: Re: php serverlist
Post by: Smokey on September 19, 2006, 06:21:14 PM
There could be a static list that it'd use, but then it'd have to be updated once in a while. SCRIPT IT!!!


hmm what?


ehh, my bad. tinman if you could please.
Title: Re: php serverlist
Post by: TinMan on September 19, 2006, 07:03:52 PM
Rofl, j00 know I suck at php. Get it to grab the dpball.com and digitalpaint.org lists once a day and merge them.
Title: Re: php serverlist
Post by: Smokey on September 19, 2006, 07:19:47 PM
they're the same arnt they?
Title: Re: php serverlist
Post by: TinMan on September 19, 2006, 07:21:43 PM
Yeah...nvm...I think they're just each sorted differently. I thought some people changed their master servers to just one of em, my bad.
Title: Re: php serverlist
Post by: jitspoe on September 19, 2006, 07:24:55 PM
They're there for redundancy purposes.  If one goes down, hopefully the other won't.