Need help with setting up server brower

For all the help you need with Armagetron!
Post Reply
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Need help with setting up server brower

Post by LOVER$BOY »

Hello...

I'm having difficulty on setting up a server browser on my website (http://alphaproject.pro.tc).

I've seen server browsers like Crazy Tronners and United Tronners and even Rx's Server Browser but I'm having difficulty finding something similar to them.

Any help please?
Image
User avatar
Jip
Round Winner
Posts: 397
Joined: Sat Sep 26, 2009 5:32 pm

Re: Need help with setting up server brower

Post by Jip »

Have you already tried dlh's server browser?
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

ah yes...

I've tried that but for some reason, servers don't load for me...
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

I've tried again using dlh's server browser but it keeps telling me as attached in the picture.
Attachments
server_browser_error1.png
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

I've given up on that cause I found out that fsockopen isn't allowed :(

Hey is there a possibility that I could get a server browser like this working?

http://simamo.de/~manuel/arma-serverlist.js/
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Need help with setting up server brower

Post by Z-Man »

Feel free to iframe just that.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

Oh COOL! Thanks :)

Z-Man, I was in http://simamo.de/~manuel/serverlist/ folder cause I wondered what other awesome stuff there are and saw the things there and I didn't understand what they are used for.

Can you please explain about them?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Need help with setting up server brower

Post by Z-Man »

It's just an svn checkout of
https://armagetronad.svn.sourceforge.ne ... serverlist
I don't know what the other things do or how apart from the obvious. I suppose they're used by the IRC bot.
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1986
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Need help with setting up server brower

Post by kyle »

Z-Man wrote:I don't know what the other things do or how apart from the obvious. I suppose they're used by the IRC bot.
Correct (and some custom server commands)
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

Cool!

You think that lastseen.php will work if I place it in my website?

Z-Man, I'm wondering why connect.php is missing from that link you provided.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Need help with setting up server brower

Post by Z-Man »

LOVER$BOY wrote:Z-Man, I'm wondering why connect.php is missing from that link you provided.
Because you're supposed to create it yourself with the correct database and login data, like so:
mysql_connect('server', 'user', 'password' );
mysql_select_db('database');
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

ah ok.

So it should be like this:

Code: Select all

<?php
$mysql_host = '';
$mysql_username = '';
$mysql_password = '';
$mysql_database= '';

$mysql_cnt = mysql_connect($mysql_host, $mysql_username, $mysql_password);
mysql_select_db($mysql_database);
?>
So I do that and connect it to the database but... when do i do

Code: Select all

mysql_close($mysql_cnt);
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Need help with setting up server brower

Post by Z-Man »

I'm no PHP expert, but wouldn't that happen automatically when the script exits and all sockets get closed?
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help with setting up server brower

Post by LOVER$BOY »

Ah Ok. I get it now :)

Thanks Z-Man!
Image
Post Reply