Version 3: Server Information Script (Outdated)

Server Information Script downloads, mappics, news and discussions.

Moderator: Clan Members

Postby Rac00n on 13 Dec 2005, 14:59

ok im going to try it. Is that THE kingpin btw?? :P
jo
User avatar
Rac00n
 
Posts: 135
Joined: 10 Oct 2005, 18:01


Postby Dan on 14 Dec 2005, 04:18

Hiya, I just downloaded this script after a quick search on google, and it looked like it was exactly what I was looking for and more :D Now... the problem. First I was getting the allow_call_time_pass_reference errors, but I quickly fixed that by setting it to on in the php.ini (didn't need to read the forums to find that :P). But now I'm having a bunch of different errors... as if the variables never get initialized somehow. But it still is able to query the server and get all the info, it just gives me a crapload of errors. I've tried turning register_globals on, but that didn't help at all.

The address to the script is http://www.dansbasement.us:85/si2/si2.php and I run apache 1.3 with php version.. um.. don't remember lol, but it's not 5. Anyway, any ideas as to what would cause all those errors... or rather how I could fix them? I haven't thoroughly looked at it, but I took a quick glance at the code. Btw, I was the one trying to add you on MSN if you saw the request already :P lol. Thanks for your time and I look forward to adding this awesome script to my site :D
Dan
 

Postby Dan on 14 Dec 2005, 05:22

Ok, I got rid of a crapload of messages (3 per player to be exact :P) by puting single quotes around the indecies in lines 159,160, and 161 (name, frags, time) in the class_query.php. Now to figure out the three other missing indecies from class_display.php :)
Dan
 

Postby Dan on 14 Dec 2005, 05:29

Sorry for the triple post, but after looking at the code, it seems like the errors were quite trivial, so I just turned off error reporting of notices for the time being, but I'll post the errors that I was getting so you know what exactly I was having issues with :)
Code: Select all
Notice: Undefined index: ShowsMeColors in c:\easyphp1-8\www\si2\inc\class_display.php on line 151
Notice: Undefined index: ShowsMeColors in c:\easyphp1-8\www\si2\inc\class_display.php on line 151
Notice: Undefined index: PrettyAsAPicture in c:\easyphp1-8\www\si2\inc\class_display.php on line 152
Notice: Undefined index: PrettyAsAPicture in c:\easyphp1-8\www\si2\inc\class_display.php on line 152
Notice: Undefined index: reset in c:\easyphp1-8\www\si2\inc\class_display.php on line 153
Notice: Undefined index: reset in c:\easyphp1-8\www\si2\inc\class_display.php on line 153


Thanks for the great script, just took a bit of time to get it working with no errors lol. Now to see if I can get the player boxes to move over to the right so if I have the Blocks on the left of a page some of the data isn't missing... lol.[/code]
Dan
 

Postby Tim on 14 Dec 2005, 18:48

Hmm, so far I havne't seen anyone else get the same errors,
but I see you've fixed them in your case after some intial trial
and error...
If I get anymore complaints about this error I'll look into it, but
for now development is at a standstill as I'm quite busy with my
education at the moment...
I am working on a new version, which is a compete rewrite of
the old one, so I hope I'll be able to get bugs like these out by
rewriting my old code. Just don't expect a new version soon... =)

:bye: Tim
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby kingpin on 10 Jan 2006, 21:14

Hiya Tim just dropping by and wanted to thank you again for the script which is still working perfectly, so thanx man :)
kingpin
 
Posts: 20
Joined: 17 Aug 2005, 15:02
Location: Brooklyn, NY

Postby Tim on 11 Jan 2006, 14:16

:) Thanks, good to hear... 500 Downloads and counting! =D
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby kingpin on 21 Jan 2006, 19:36

Tim how did you get your script to display horizontally? instead of all vertical? thanx
kingpin
 
Posts: 20
Joined: 17 Aug 2005, 15:02
Location: Brooklyn, NY

Postby Tim on 21 Jan 2006, 19:54

@ Kingpin:
Wrap them inside another table...
For instance:
Code: Select all
<? include("si_include.php"); ?>
<table>
<tr>
  <td><? show::Block("194.171.252.93:27015"); ?></td>
  <td><? show::Block("194.171.252.93:27025"); ?></td>
  <td><? show::Block("194.171.252.93:27035"); ?></td>
  <td><? show::Block("194.171.252.93:27035"); ?></td>
</tr>
</table>
This should give you 4 small blocks in a horizontal line...
Much like (or actually exactly like) the example I'm using here:
http://www.un4given.nl/tim/si2/si2.php (top row)

@ Daveyw:
Ze werken wel, ze staan in dit topic:
http://forum.un4given.nl/viewtopic.php?t=261
Als dat niet werkt geef dan even iets preciezer aan wat wel / niet werkt.
Last edited by Tim on 21 Jan 2006, 19:56, edited 1 time in total.
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby kingpin on 21 Jan 2006, 19:56

thanx :)

/Edit by Tim: NP =)
kingpin
 
Posts: 20
Joined: 17 Aug 2005, 15:02
Location: Brooklyn, NY

Postby Guest on 27 Jan 2006, 16:27

Tim wrote:If you keep getting the the message that your server is down,
than your webhost probably does not allow you to use UDP socket
connections... If you have any other, more liberal hosts, try installing
it there, as I guess the problem is host related...

You can see a working preview for your server here:
http://www.student.ru.nl/bennitebeek/tim/si2/gits.php

So it's not a problem with your gameserver. It's your webhost not
allowing you to make UDP socket connections, or they are not made
properly, which both result in the server down message... =\

Try asking your webhost to allow these connections, or host the script
on a different host...

:bye: Tim


We have your script running on our web serverhttp://www.theville.org and it works for a couple of the servers, but tv3.theville.org comes up offline no matter what we tried. After checking around, we ran your script on a different web server and it still showed offline. I tried it on your "customized link" from one of your sticky forum messages and it showed offline there too. It almost appears to be a time-out issue, but pinging the server ip returns packets in under 100ms. Is there some kind of log I can look at or create to try and determine if the query from your script is actually making it to the game server?
Guest
 

Postby Tim on 27 Jan 2006, 17:17

As for diagnostic tools I really wouldn't know, I've tried getting it to
work with your server myself, but I haven't figured it out just yet...
I've tried all I know that could influence it to time-out, in which I
allowed the script to use a longer-than-ussual time-out for the sockets,
but it still ended up with nothing...
All I can say at this point is that this is an error that sometimes happens,
and of which I really don't know what causes it...
This could either be in the script or in the (firewall) connection to the
UDP sockets it uses on the server.

In short: I'm sorry but I haven't got a clue how to solve this. =?
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby Guest on 27 Jan 2006, 18:25

Thanks for looking into it.

Right now, both the game servers that work are windows, and the one that doesn't is linux if that makes any difference.(my network guru here doesn't think it matters since he swears he had it running before with a linux game server)
Guest
 

Postby Tim on 27 Jan 2006, 20:47

Well I'm not sure but then it might just be up to the networkconfiguration
of both computers... It's not a direct windows/linux problem, as it works
on both, but it might just be up to the network security settings you've got...

That's about as far as my knowledge on the whole network thing goes,
but you might want to try to look at the network security a little...
Just to make sure it allows the UDP socket connections to your gameserver.
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

PreviousNext

Return to Server Information Script


Who is online

Users browsing this forum: No registered users and 1 guest

cron