PDA

View Full Version : Fuq 2.1: live Serverstatus PHP (incl. Mappictures and Documentation)



legacy-Rüpel
07-12-2004, 09:07 AM
*updated 2004/08/12 for version 2.1*

Name: Fuq
Version: 2.1
Compatibility: UTclassic, UT2003 and UT2004
Description: a full-featured PHP-Class for querying UT-Servers and displaying the Results in a handsome Manner
Comments: hmm. yep. please comment. ;)
Screenshots:
* Firefox 0.9.3 Linux (http://utworld.de/ruepel/sshots/fuq_ffoxlnx.jpg)
* IE6 Windows (showing parts of the new Trace-Console) (http://utworld.de/ruepel/sshots/fuq_ie.gif)
* Lynx 2.8.5 (http://utworld.de/ruepel/sshots/fuq_lynx.png)
click here (http://utworld.de/ruepel/fuq/example.php) to see Fuq in Action in your Browser now

Credits:
* Dj_Necro - for sending in some really nice Patches
* HornDog_ut2k3 - for providing high-quality Feedback
* Dalton - for sending me the Jailbreak Pictures
* Revpolar - for doing nasty vBulletin-Things with my Code ^^
* Henry Schack Jensen - for writing the first UT-Query PHP Code I've ever seen (back in 2000 that was)
Homepage: http://utworld.de/ruepel/utserver_en.php
Download: visit the Homepage - my Hoster forbids Downloads from any other Location (especially from this Thread) - Mirrors are highly appreciated :rolleyes:

(a small UTclassic Bug was fixed, so 2.0 -> 2.1) one day, two versions ... d'oh :bulb:

other related Stuff by the Author:

* an Article (http://www.codeproject.com/csharp/ut2003query.asp) on UT2003 Gameserver Queries in C# on Codeproject
* UBuLo (http://utworld.info/ruepel/ubulo.html) - an enhanced external Serverbrowser for UT2003 and UTclassic - Tools Finalist in MSUC Phase 2

legacy-FineWolf
07-12-2004, 11:22 AM
Nice... Any updates for UBuLo's UT2004 support?

legacy-Rüpel
07-12-2004, 04:01 PM
nope. the serverquery itself hasn't changed, but without a masterserverlist it's all in vain (hello mister wilcox!) :rolleyes:

legacy-Revpolar
07-12-2004, 05:28 PM
Do you mind If I incorporate this into Vbulletin and release it to vbulletin.org with full credit to you of course? Ive been looking for a quality php server query to work with. This one looks very nice.

legacy-|HERO|Highlande
07-12-2004, 06:40 PM
Originally posted by Revpolar
Do you mind If I incorporate this into Vbulletin and release it to vbulletin.org with full credit to you of course? Ive been looking for a quality php server query to work with. This one looks very nice.

Now that is something I would be interested in myself. I'll be watching vb.org for this to be released. :) :up:

legacy-Revpolar
07-12-2004, 07:42 PM
Rupel you did a wonderful job on that pdf file. That makes it very easy to port into Vbulletin. Now I just need time to do it. I'll just write some instructiions as I go and post it here for Rupel to use as he pleases. Although he pretty much already nailed it in the PDF under Configuration. Thanks Rupel.

legacy-Rüpel
07-13-2004, 02:34 AM
@revpolar: go ahead. that's fine with me. :) I don't know VB, so... just do it.

legacy-FPSC_KviK
07-13-2004, 03:56 AM
http://www.fpscentral.com/index.php?game=5&site=news&id=6009

feel free to send me updates/exclusives to kvik@fpscetral.com ;)

legacy-Nosnos
07-13-2004, 04:41 AM
Nice script :up:

Tried it with different servers and it worked like a charm but when I tried it on the server I want to use it for it bummed out ^^

The message I get is "Server doesn't respond correctly (Query Error: invalid Package Format (no QueryId))" and the server is 213.167.99.110:7777... Any suggestions?

legacy-Rüpel
07-13-2004, 01:37 PM
"Thanks KviK for pimpin' my Script!" ;)

@Nosnos: This Server does not respond a single Byte on these Ports. Neither Unreal nor Gamespy Protocol. Are you sure, that the Numbers are correct?

legacy-Sadgit
07-18-2004, 11:28 AM
Superb work.. I have incorporated it into my Web sites front page.

See here, I need to tweak it a little still.
http://depravityarena.game-host.org/

legacy-Rüpel
07-18-2004, 02:20 PM
cool. the next version including support for ServQuery is in the works...

if someone likes to test it:
http://utworld.gamesweb.com/ruepel/fuq1/example2.php

there's an html-form before the status on that page that allows you to test your server with the next version of Fuq. but be aware, that this is actually the code i'm working on. might be broken from time to time... (although unlikely, but you never know)

legacy-Sadgit
07-18-2004, 02:42 PM
Nice one... tested it and it works like a dream.. :)

legacy-HornDog_ut2k3
07-18-2004, 02:59 PM
Great program.

My server is located in Chicago but the location on the web page states I'm in Australia. Any fix?

Thanks


http://horndogshouse.com/status/example.php

legacy-Rüpel
07-18-2004, 03:19 PM
oops :D

that will be fixed, i'll move your server back to the US in a minute... ;)

*edit*
ok, it's fixed in the next version. you can check already here:
http://utworld.gamesweb.com/ruepel/fuq1/example2.php

just enter your server-address (horndogshouse.com) and your gameport (7772), press the refresh button and you see that your IP is registered to "Comcast Cable Communications, IP Services..."

either you PM me with your email-address and i'll send you the updated whois.inc.php file or you wait until the next release and take it from there.

sorry @ board-admin-staff. i really thought it _was_ final... :bulb:

legacy-HornDog_ut2k3
07-18-2004, 04:28 PM
Thanks for this great program and also for the fast reply
Check for my PM

legacy-Rüpel
07-18-2004, 04:56 PM
sorry, my PM box was full. should be fixed now. :rolleyes:

legacy-HornDog_ut2k3
07-18-2004, 05:13 PM
Check for my PM

Thanks

legacy-Tekno
07-19-2004, 05:46 PM
Excellent tool! :up:
I registered today and planned on asking if there was anything like this that could be used- glad I saw this thread!
I know you said you needed mirrors, so I decided to host it at: http://www.sky-fury.net/stuff/fuq1.0_full.zip.


Originally posted by Nosnos
Tried it with different servers and it worked like a charm but when I tried it on the server I want to use it for it bummed out ^^

The message I get is "Server doesn't respond correctly (Query Error: invalid Package Format (no QueryId))" and the server is 213.167.99.110:7777... Any suggestions?

That server may be behind a router without DMZ hosting enabled. That was the problem when I first started using it. No one had problems connecting, but Fuq wouldn't work... So I fiddled around a while and figured it out.

legacy-Revpolar
07-21-2004, 06:43 PM
I havnt found a suitable way to fully integrate this into vbulletin without rewriting it completely. So I went with an alternative method. I created a second navbar with links to the servers fuq status. This method is really pretty simple. I will follow up with complete instructions. The reason I decided this was the best method was:
1. If a site admin wants to link more than one servers status they can add as many links as they like to the 2nd navbar. You can also use dropdown links if you had even more servers to display than the navbar can fit.
2. It maintains the integrity of Rupel's original code.
3. It is less intrusive to Vbulletin this way.
See my site for an example.

legacy-Rüpel
08-02-2004, 07:08 AM
there is a new version available for betatesting. refer to this thread (http://www.ina-community.com/forums/showthread.php?s=&postid=5414333#post5414333)

legacy-[HQN]Reijin
08-02-2004, 03:41 PM
Originally posted by Revpolar
Do you mind If I incorporate this into Vbulletin and release it to vbulletin.org with full credit to you of course? Ive been looking for a quality php server query to work with. This one looks very nice.

I know of another good php query, if you're interested. It's the HQ Web Query (http://www.rfhq.com/hqq/hqwq.php) made by a guy named JeT. Go check that one out as well. :)

legacy-Revpolar
08-03-2004, 01:23 AM
I truly like this one the way that ive incorporated it into my site. Sorry I hadnt gotten around to telling just how I did it. Its really not a hard thing to do. Ill get on it soon.

legacy-Dirty_Tampon
08-03-2004, 11:29 AM
All I have to say is that this is fantastic. But I have 2 issues and I am not a php genius by the way but know enough to fumble around:
1) I am querying 2 servers and it is working properly but the second server is only returning mutator information.....It does not matter what server I query or what order they are in, only the second one is lacking the rest of the info...
also, the mutators its picking up for the second server are mutators that the first server is running and the mutators for the second server.....

2) I would like to organize the 2 servers side by side rather than one after the other in a vertical fashion.

Thanks for your help and great script....
You can see it in action at http://www.teambrp.com/modules.php?name=Server

Here is the code from my example.php


<?php

$ip = array('69.28.221.193', '67.167.117.123');

require_once('fuq/utserverdisplay.inc.php');

$server = new UTServerDisplay;
for ($i=0; $i<count($ip); $i++)
{
$server->SetIpAddress($ip[$i]);
$server->Show();
}

?>

legacy-Dj_Necro
08-03-2004, 03:58 PM
I just wanted to submit a comfirmation of the dual server problem. The script works fine with a single server, yet only reports the mutators of the servers after the first. I'm very experianced with php, however, I've never really been able to learn from someone elses code (especially with a project of this size) so I haven't yet been able to find a cause as to why. (note: i have not tried the beta version so i dont know if that will solve the problem.)

Aside from that, I must say KUDOS!!!!! I used a piece meal script i found on the net to get our clan's server status online (cant show it yet, site is still in the testing phase at the moment), and i've been having problems with it not showing all the player names (something i assume has to do with the colour code 'exploit'), however the script i was using was god-awfully slow, it took 15+seconds to query 4 servers that were all up and running (not in a mapchange), your script does it in less than 3.. really, really awesome.

Due to the fact that I'm adept in php programming, I'm planning on doing some minor changes to the script (assuming i can comprehend it enough not to break it) if you would like, I'll e-mail you with the changes that i've made, incase you'd want to incorporate them into a future release.

legacy-Dirty_Tampon
08-03-2004, 04:33 PM
If you find anything, please let me know.
Thanks

legacy-Dj_Necro
08-03-2004, 04:37 PM
Well, I should have done it before, but i went ahead and upgraded to the 1.3 beta, and it seems to have solved the issue. I've already started to make some changes, and hopefully (if i remember to do so) I'll write up a change log at the same time, and send Rüpel the diff so he can incorporate the changes (minor ones, nothing major)

legacy-Dirty_Tampon
08-03-2004, 05:13 PM
Works like a charm........Thanks

Any idea on how I can get the 2 servers side by side?

legacy-Revpolar
08-03-2004, 06:51 PM
Ok this is the simple dirty way to integrate into Vbulletin3.0 and up.
1. Create a directory for your server fuq files and Upload your fuq files. If you have more than one servers info to display make more than one directory and upload all the files into each directory.
2. Create a php page called server.php. (If you have more than one call them server1.php, server2.php, and so on). Use this php code:
chdir('/yourroot/site/public_html/thedirectoryyour filesarein');


// ensure variables get passed through
require_once('utserverdisplay.inc.php');
$server = new UTServerDisplay;
$server->Show();

?>
3. In vbulletin use this method to add links to those pages to your site.


What this does is create another navbar with drop down menu’s by typing $navbar2 in any of your templates. It is just like the one that comes with vBulletin 3.

I put a lot of description tags in the HTML file to help explain what everything does. Once you understand what is going on here you can removed these. With very little modifications you can add to, remove or move items around in this navbar.

1. To install this hack you will have to create a template in you ADMINCP and call it “navbar2” and insert the contents of the code "navbar2" template below into this template file. Right now it is set up for my site. So you will have to modify it to what you want in this navbar for your site.Modify this code to how you want it to appear. (Dropdown menus or just links).

2. Put the following command in your phpinclude_start template:


PHP Code:
eval('$navbar2 = "' . fetch_template('navbar2') . '";');



3. Now put the following command in you header or what ever template where your want the new navbar to be displayed:

PHP Code:
$navbar2

I put mine into the original navbar template.

4. Since the template is uncached you will have an extra query on each page. To fix, open global.php
Find:

PHP Code:
// misc useful



Add below:

PHP Code:
'navbar2',


navbar2 template

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">

<!-- Home link in navbar non drop down menu -->
<td class="vbmenu_control"><a href="/index.php?$session[sessionurl]">Home</a></td>
<!-- / Home link in navbar non drop down menu -->

<!-- Forum link in navbar non drop down menu -->
<td class="vbmenu_control"><a href="/forum/index.php?$session[sessionurl]">Forums</a></td>
<!-- / Forum link in navbar non drop down menu -->

<!-- Setup for drop down menu #1 in navbar -->
<td id="dropdown1" class="vbmenu_control"><a href="#dropdown1">Photo's</a> <script type="text/javascript"> vbmenu_register("dropdown1"); </script></td>
<!-- / Setup for down menu #1 in navbar-->

<!-- Setup for drop down menu #2 in navbar -->
<td id="dropdown2" class="vbmenu_control"><a href="#dropdown2">About WhiteBlaze</a> <script type="text/javascript"> vbmenu_register("dropdown2"); </script></td>
<!-- / Setup for drop down menu #2 in navbar -->

<!-- Non drop down menu's in navbar -->
<td class="vbmenu_control"><a href="/forum/weather.php?$session[sessionurl]">Weather</a></td>
<td class="vbmenu_control"><a href="/forum/links.php?$session[sessionurl]">Links</a></td>
<td class="vbmenu_control"><a href="/forum/2004.php?$session[sessionurl]">2004 Hikers</a></td>
<!-- / Non drop down menu's in navbar -->

<!-- Setup for drop down menu #3 in navbar -->
<td id="dropdown3" class="vbmenu_control"><a href="#dropdown3">Information</a> <script type="text/javascript"> vbmenu_register("dropdown3"); </script></td>
<!-- / Setup for drop down menu #3 in navbar -->
</tr>
</table>
</div>

<!-- / nav buttons bar -->

<!-- NAVBAR POPUP MENUS -->

<!-- Drop down for menu #1 in navbar-->
<div class="vbmenu_popup" id="dropdown1_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Photo's</a></td></tr>
<tr><td class="vbmenu_option"><a href="../gallery">Gallery Homepage</a></td></tr>
<tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=last1&forcat=last7">Last Day</a></td></tr>
<tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=last7&forcat=">Last 7 Days</a></td></tr>
<tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=last14&forcat=">Last 14 Days</a></td></tr>
<tr><td class="vbmenu_option"><a href="../gallery/showgallery.php?cat=all&forcat=">All Images</a></td></tr>
</table>
</div>
<!-- / Drop down for menu #1 in navbar-->

<!-- Drop down for menu #2 in navbar-->
<div class="vbmenu_popup" id="dropdown2_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">About WhiteBlaze</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/aboutus.php">About WhiteBlaze</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/wbpatch.php">Order a patch</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/support.php">Support/Donations</a></td></tr>
</table>
</div>
<!-- / Drop down for menu #2 in navbar-->

<!-- Drop down for menu #3 in navbar-->
<div class="vbmenu_popup" id="dropdown3_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">Thru-hiking Info</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/shelter.php">Shelter and Mileage</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/ferrysched.php">Kennebec Ferry Schedule</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/maildrop.php">Mail Drops/Resupply Package advice</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/articlesresupply.php">Resupply advive</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/terms.php">Trail Terms and Slang</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/wcadvice.php">Inexpesive Thru-hike</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/dattosadvice.php">Datto's Thru-hiking tips</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/threg/index.php">Thru-Hiker Registry</a></td></tr>
<tr><td class="thead">Users's Trip Reports</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/articles600.php">600 Miles</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.net/forum/monadnock.php">Mt. Monadnock</a></td></tr>

</table>
</div>
<!-- Drop down for menu #3 in navbar-->

<!-- / NAVBAR POPUP MENUS -->

Simply put the links to your server.php('s) into your navbar2 template. I threw in other links for my website also into my navbar. To see an example push the www button at the bottom of my post.
Credits to attroll from vbulletin.org.

legacy-Ian Spence
08-03-2004, 06:56 PM
Originally posted by Dirty_Tampon
Works like a charm........Thanks

Any idea on how I can get the 2 servers side by side?



<?php

$ip = array('69.28.221.193', '67.167.117.123');

require_once('fuq/utserverdisplay.inc.php');
for ($i=0; $i<count($ip); $i++)
{
$server = new UTServerDisplay;
$server->SetIpAddress($ip[$i]);
$server->Show();
}
?>


try that

legacy-Revpolar
08-03-2004, 06:59 PM
You mean on the same page? I sure dont see a way unless you do it in template form. That would be alot of additional coding.

legacy-Ian Spence
08-03-2004, 07:14 PM
Originally posted by Revpolar
You mean on the same page? I sure dont see a way unless you do it in template form. That would be alot of additional coding.

oh, I was replying to the guy I quoted who wanted 2 on the same page. I figured the reason he was having the problem is that he didn't reinitialize the query

legacy-Dirty_Tampon
08-03-2004, 08:44 PM
This is no different than what I already have..

*edit* darn..... :(
Sure would look alot nicer side by side...

legacy-Ian Spence
08-03-2004, 09:07 PM
Originally posted by Dirty_Tampon
This is no different than what I already have..

*edit* darn..... :(
Sure would look alot nicer side by side...

wait. so you can get both servers fine, you just want them in side by side?

why the hell don't you just put them in a table?


Also, a nice touch would be the ability to add Favorite servers. This can easily be done via some javascript as seen here (http://www.alforadmin.com/bac.php)

Just view the source to see how I did it

legacy-Dirty_Tampon
08-03-2004, 09:47 PM
I have actually dont this now by inserting columns within the for statement.
But, there must be a break added in somewhere within the main coding because they arent lined up perfect.
Take a peek.
http://www.teambrp.com/modules.php?name=Server
Here is how I did it specifically:


<?php

echo "<table valign='top' border='0' width='100%' cellpadding='2'>";
echo "<tr>";

require_once('fuq/utserverdisplay.inc.php');
$ip=array('67.167.117.123','69.28.221.193');
$server = new UTServerDisplay;
for ($i=0; $i<count($ip); $i++)
{


echo "<td>";


$server->SetIpAddress($ip[$i]);
$server->Show();

echo "</td>";




}
echo "</tr>";
echo "</table>";
//$server->SetQueryProtocol('unreal');

?>

legacy-Dirty_Tampon
08-03-2004, 09:53 PM
Nevermind I got it...I just added valign='top' to my column....DOH....

legacy-Dj_Necro
08-03-2004, 10:38 PM
There is not much point in using a for loop to do that. If you ever add a third server, you'd have to take that into account and add another row or else it will completely mess up your tables (it'll stretch them something fierce)

It would be much easier to just manually hardcode the ip addresses into the SetIpAddress function (or just hardcode the array indexes) such as:


<?php
require_once('fuq/utserverdisplay.inc.php');
echo "<table valign='top' width='100%' cellpadding='2'>"; //border= property is not needed any more
echo "<tr>";
$ip=array('67.167.117.123','69.28.221.193');
$server = new UTServerDisplay;
echo "<td>";
$server->SetIpAddress($ip[0]);
$server->Show();
echo "</td>";
echo "<td>";
$server->SetIpAddress($ip[1]);
$server->Show();
echo "</td>";
echo "</tr>";
echo "</table>";
?>

legacy-Revpolar
08-03-2004, 11:21 PM
Thats precisely why I went with navbar links instead of template blocks for vbulletin. I think that a links column on the left side with a list of servers would work best if you were to have alot of servers listed on a single webpage. But for vbulletin the navbar2 is the best solution. With drop down menus you could list as many servers as you like. I used to use "Server Spy" but hated how they threw there advertisements "watermark" into the map pics. I like FUQ very much. Thanks Rupel. BTW I still need to upgrade but its working good with the old version still.

legacy-Dj_Necro
08-04-2004, 02:20 PM
Rüpel, I sent you an e-mail regarding the changes that I've made to your script to enhance the output/functionality. I'll also send you a pm regarding it as well in case you dont check your e-mail that often. however, briefly outlined, here are the changes I made:

* I added a template tag for the server ip address "<%serverip%>" so
the users of the script can craft their own join link w/o needing to
edit the code for your join link create method.

* I added a line to check whether or not the map-pic file exists, if
not, load up a file called nopic.jpg. Users will be able to have a
generic pic for maps that dont have pictures available, instead of the
ugly picture not found icon that IE has.

* Instead of just returning the cryptic xTeamGame, or ONSonslaughtGame, it will parse the cryptic name and return a more friendly value. Currently I have implemented support
for the all standard gametypes with support for the following mods:

Jail Break, vCTF, iCTF, Red Orchestra, Rocketeer, Air Buccaneers,
Alien Swarm Lobby (not sure what this is, never played the mod), Alien
Swarm Standard, Car Ball, Chaos CTF, Chaos Duel, Frag Ops, SAS. It will return the cryptic gametype name if it is not in the list.

* I made the server setting key values a little more friendly. They were returned with basic formatting (first
letter in caps), I did the same thing as the gametypes, by parsing the plain value thru a switch clause to return a more friendly value.

legacy-Rüpel
08-04-2004, 04:28 PM
wow. awesome things going on here. i'll check my emails in a minute...

i'm really... wow ... :D :D :up:

legacy-Rüpel
08-06-2004, 03:20 AM
@dj_necro:
all your patches are included now in the original source-code. not exactly as you sent them, but generally they are built-in now.

hmm. seems i've got everything together for a release now. I will wait for dalton to send in some more jailbreak pictures and then version 2.0 will be released. :)

legacy-The_dalton
08-10-2004, 07:14 AM
Originally posted by Rüpel
hmm. seems i've got everything together for a release now. I will wait for dalton to send in some more jailbreak pictures and then version 2.0 will be released. :)
I emailed them to you last night, sry to keep you all waiting, didn't know you would hold the release.

legacy-Rüpel
08-12-2004, 06:48 AM
Nevermind. I made some major improvements while "waiting"... :rolleyes:

Since people seem to have difficulties editing the CSS-files, I included now 4 different styles for people to choose from or base their own design on.

2.0 Release is only Minutes away...

legacy-Rüpel
08-12-2004, 07:45 AM
Ok. 2.0 is released.
http://utworld.gamesweb.com/ruepel/utserver_en.html

Changes compared to Version 1.0 include

a lot of Bugfixes and minor Improvements
better Network-Code
ServQuery Support
UT2003/2004 Colorcode Support
Trace-Console for debugging the Network-Communication
4 different Stylesheets included


Because of (1) and (2) everyone should upgrade to the new Version.

Note for Upgraders:
Install the new Version into a fresh Directory and merge your old Configuration by Hand. Do not copy old Configuration Files into the new Directory!

BTW: Mirrors wanted. :rolleyes:

legacy-Dj_Necro
08-12-2004, 12:50 PM
Awesome man! I'm downloading now, and will provide a mirror. However, you should look into a better host for your files to start with... i'm on 4meg dsl, and i'm getting a whopping 1.8kps... i could fly to your house, pick up the file from you personnally, and be back before it's done ;)

legacy-Rüpel
08-12-2004, 02:25 PM
hi all,

sorry, i had to switch to 2.1 - there was a little bug consurning UTclassic which needed some fixing. the only file changed from 2.0 to 2.1 is fuq.inc.php, so downloading the small "PHP Network Class" package and taking the new file from there is all you need to upgrade from 2.0 to 2.1 ...

sorry for the inconvenience :bulb:

btw: @dj_necro: if you live where your (real) name suggests, you could go by bike and be faster... :bulb:

*edit* the slow download-rate is on purpose between 18:00 and 22:00 central european summer time (still 1:20 from now on) - download in 2 hours and it will be faster...

legacy-Dj_Necro
08-12-2004, 04:15 PM
Heh I live in canada, not the NL :( .. though it's my dream to live there for a few months some time in the future though.

I'll post again with the mirrors of all the files once they're online...

legacy-Rüpel
08-12-2004, 04:25 PM
uh, oh. canada. that's a long ride by bike... :rolleyes:

thx for mirroring... :)

legacy-Dj_Necro
08-12-2004, 04:40 PM
PHASSSSST Mirror: http://files.clanci.net/pub/other/fuq/

Enjoy :)

legacy-Rüpel
08-12-2004, 05:08 PM
:up: thank you! :up:

legacy-Dj_Necro
08-13-2004, 01:15 AM
Check your e-mail mate! I added some more stuff!

Sorry to keep doin this to you man, but whenever I incorporate a script into a site i'm making, I inevitably have to make some minor changes in the code to make it fit perfectly. The only difference this time, is that I'm so impressed with your work on this project, that I feel I should contribute anyway I can. Below is what I added this time. :)

* Server Graph (small bar graph showing the amount of players in the
server. It will take the percentage of how full the server is and
translate that into a jpg file named 0-10.jpg, also added a config
file entry for the pic path. Included by a template tag <%playerbar%>)

* Function to set the display name of the server (useful incase the
server name is too long for the area where you need it on the website,
set the server name yourself then! Included by a template tag
<%dispname%>)


:) :) :)

legacy-HolyCha0s
08-14-2004, 08:39 AM
I'm eager to get this up for my server. But aint a whizz kid when it comes to programming - technical side of things.

I uploaded everything. And tried the example.php and it came up with :

http://ut2k4.acj-cripz.com/example.php

Then went onto example2.php put my server details in and got :

http://www.acj-cripz.com/images/fuq-trace.jpg

I know my hosts are running PHP 4.3.2 so any ideas what may be the problem?

legacy-Dj_Necro
08-14-2004, 01:52 PM
post your server's ip address and port, I can try with my installation... it's working for me.

From what the pic show's, The gameserver isn't even responding. Is it online? did you enter the correct Ip address? correct port? etc...

legacy-HolyCha0s
08-14-2004, 06:26 PM
80.68.46.137:7950

Server is online 24/7 and is on RPG invasion.

My Mirror :

http://downloads.acj-cripz.com/ut2k4/fuq2.1_full.zip

legacy-Dj_Necro
08-14-2004, 08:34 PM
Thanks for the mirror!

It's working fine for me.. check this screenie:

http://members.clanci.net/necro/fuq_working.jpg

make sure you're setting the port correctly in example.php... ex:



$server->SetIpAddress("80.68.46.137");
$server->SetPort ("7950");
$server->Show();

legacy-HolyCha0s
08-16-2004, 07:58 AM
Think its my webhosts dude.

As I cant get UTStabDB working either :(

I am with http://webcentre.lycos.co.uk

legacy-Rüpel
08-16-2004, 12:08 PM
have you tried to have a look at the trace-console? you can do so by checking the appropriate box in example2.php (is installed with Fuq 2.1)

maybe you have a contact-address of an administrator for your ISP where you can ask for the firewall-configuration? in your case the ports 7951 and 7960 have to be open for UDP packets.

legacy-Dj_Necro
08-16-2004, 02:10 PM
It's 100% your webhost... I tried to query my own server thru your example2.php, and i got the same error. It seems like they're blocking all outgoing udp packets. my server is located: 66.151.108.77:7777 which works from my local testbed, as well as my own web host...

legacy-HolyCha0s
08-17-2004, 11:30 AM
:( Always pick the wrong people dont I :down:

Ah well. Thanx for the support. :p

legacy-jabarlee
08-17-2004, 12:18 PM
I have been trying fuq (1.3 beta, 2.1) for quite some days now, but it seems to have a problem with recognising the suitable protocol fot thet "playlink".

even though I run 2 UT2004 servers and one UTclassic, the playlink is always: unreal://xxx.xxx.xxx.xxx instead of ut2004://xxx.xxx.xxx.xxx, resulting problems when players try to use it.

Also, I can't get the <%maptitle%> property to work with UT2004, though it works fine with UTclassic.

I use a very simple template for the output ( http://no.need.to.be.still.here/unreal ) or even a simpler one ( http://no.need.to.be.still.here/unreal/index2.php )

does anyone has similar problems, or knows what is wrong?

legacy-Rüpel
08-17-2004, 02:16 PM
you have a strange setup there. your second servers gameport is exactly what the first servers standard gamespy-query-port would be. so i wonder what that port for the first server is. if you didn't change the default offset (10) you'll never get a successful gamespy-answer from the first server, and there's no secure way (there may be hacks) to get to know which game is running without the gamespy-answer.

is that too much, to rearrange the ports of your servers?

7787 is a very bad choice, if some other server runs on 7777 on the same ip-address. try everything else, but not 7778 and not 7787 for the second one... :rolleyes:

btw: the maptitle-problem is of the same source. you don't get any gamespy-answers from your servers, because the gamespy-ports are used for game-data of a different server on your machine...

legacy-Rüpel
08-18-2004, 07:31 AM
i just had another idea. you should check your servers ini-files for the lines

[IpDrv.UdpGamespyQuery]
OldQueryPortNumber=7787
maybe it works, if you just change the port for the Gamespy-query here (and restart the server). you need to tell Fuq that the Gamespy-port is not the default one by using SetGamespyQueryPortOffset(x); where
x = OldQueryPortNumber - Port

Example: you set OldQueryPortNumber=7780, then you need to call SetGamespyQueryPortOffset(3); (=7780-7777) before querying the server with Fuq.

I don't have a server at hand where I can check that, any input from experienced administrators welcome... :rolleyes:

the drawback of moving the second server from 7787 to somewhere else is, that people using their "favorites" to connect to your server, wont be able to do that after the move (they would have to re-add the server to their favorites with the new port).

legacy-jabarlee
08-18-2004, 12:03 PM
Thank you for your answers.

Well, you were partly right about the ports, I have messed it up a little, but there was no problem reaarranging them.
I did not know about the DefaultOffset attribute, now that I saw your 2nd post, I will also try that.

But the main problem was that DoUplink and UplinkToGamespy was false. I did not know that I had to enable the uplink for gameSpy protocol to get activated.

This is a small problem though, since I wouldn't like (at least yet) to have my server listed. Is there any way to baypass this, and still have gamespy protocol on ?

legacy-Rüpel
08-18-2004, 02:46 PM
i have no idea. maybe some experienced administrator or people knowing where to look in the uscript-sources jump in?

or you post that question in the "server administration" board here, or on www.unrealadmin.org or try the ut2004servers mailing-list... :rolleyes:

just to check if i understand that right: the gamespy-queryport is only activated, if you uplink to the (ut2004-)masterserver and the gamespy-masterserver, but you want your server to answer gamespy-requests without linking up to any masterserver? correct?

legacy-jabarlee
08-18-2004, 05:13 PM
correctly.

But I don't want to be off-topic, so I will try to find some info around. I'll search the forums a little more, and probably post somewhere more appropriate.

Thax a lot for the answers.

EDIT: by "playing" a little, I realised that a connection to the master server is not required, only the related boolean in the .ini file to be true. On the other hand, the connection to GameSpy has to be established, for the protocol to be activated.

So, in the [IpDrv.MasterServerLink] section, if one changes the default master address to something invalid:
MasterServerList=(Address="xxx.xxx.xxx.xxx",Port=28902)
and the other options to:
[IpDrv.MasterServerUplink]
DoUplink=True
UplinkToGamespy=True
things work, with the drawback of having continuous error reports about not connecting to the Master Server

not a very proper solution, but better than nothing

legacy-Gomjaba
12-16-2004, 06:11 PM
Link seems to be down ....

legacy-Rüpel
12-17-2004, 01:08 PM
sorry. i switched the server and the site is not completely back up. you should be able to see something again (i changed the link in the opening thread). unfortunately, the downloads doesn't work because of a DNS-issue.

so maybe someone would be so kind to provide me with a mirror where i can upload the files (or send them by email)? :rolleyes:

legacy-Dj_Necro
12-17-2004, 06:40 PM
Rupel, my mirror is still up (v2.1)
http://files.clanci.net/pub/other/fuq/

legacy-Gomjaba
12-18-2004, 04:01 AM
Just made another mirror ..

http://ar3s.net/fuq

legacy-Rüpel
12-18-2004, 07:05 AM
you guys rock :up: thx. :D

legacy-«|SF|Phylloscop
12-20-2004, 04:03 PM
Hi,

It seems promising!

Just like some more map pictures from eg. FP and CBP :D .



THX


Phylloooooooooo

legacy-Rüpel
12-21-2004, 01:15 PM
hmm. you can do that yourself, if you have time. i use the UT Package Tool (http://www.acordero.org/projects/utpt/) to extract the pictures from the original .ut2 files. it's really easy:

* open the map in utpt.exe (takes some time)
* go to the last tab (textures)
* look for the screenshots
* pick one
* right click -> "extract as image" -> "first MipMap as bmp"
* the picture is saved where you told utpt to (in the "file"->"configure" menu)
* use your favorite image-converter to make a jpg out of the bmp

keep both quality and filesize im mind when doing the last step.

copy the file onto the server with a filename similar to the mapname - just change the extension from .ut2 to .jpg.

legacy-«|SF|Phylloscop
12-21-2004, 05:42 PM
Hi,

I clicked on a button which states "Show All Textures".
Then I clicked on a map screenie i liked.
Right mouse button only show me 'menu' and 'view'

Apperently I am a noob. So please help me out here with that program.


THX


Phyllo

legacy-«|SF|Phylloscop
12-22-2004, 05:02 AM
Hi,

Never mind I found out myself.

After all I don't like to be noobish :p


Phyllo out

legacy-Gomjaba
12-22-2004, 05:15 AM
Originally posted by Rüpel
you guys rock :up: thx. :D

If you need another mirror for website / application, give me a PM, space is not an issue :)

legacy-«|SF|Phylloscop
12-22-2004, 06:28 AM
Hi,

Hmz another question from me :D .

Is it possible to use it in combination with Lycos? Because the following is clearly not working, and when testing on a different site it worked.

FUQ not working here (http://www.sexyfraggers.com/fuq/example2.php)

All possible ideas to get this nice thing running is apreciated.


Phylol

legacy-Rüpel
12-22-2004, 06:37 AM
it seems that your host is blocking outgoing UDP-packets and/or Ports. see the output of the Trace-Console in example2.php - nothing is received.

there's nothing I can do about that...

legacy-«|SF|Phylloscop
12-22-2004, 07:21 AM
Hi,

Thank you for this fast reply. I will send an e-mail to the hosting provider with the hope they will let me use that UDP :rolleyes:


Thanks again and keep up the good work :up:

legacy-gammo
12-24-2004, 08:27 PM
Loky here it works good, but the server location is a mysstery.. and no flag shows up..

server is in Australis...

look link here:

kAoS.Server (http://www.kaoshq.com/fuq2.1_full/kAoS1.php)

????

legacy-Rüpel
12-25-2004, 05:22 AM
i did only some basic testing with servers in your area (apnic) - i'll have a look into it, when xmas is over. no time for programming right now... ^^

legacy-«|SF|Phylloscop
12-28-2004, 12:21 PM
Hi Rüpel,

I found a bug I think. It does not show all the mutators from our server. If you got a fix let me know.


Phyllo

legacy-Rüpel
12-28-2004, 01:11 PM
Originally posted by «|SF|Phylloscop
I found a bug I think. It does not show all the mutators from our server. If you got a fix let me know.

i need to debug, before there can be a fix. can you give me the url to the page where you've seen the bug? are all the mutators there, when you use the trace-console in example2.php on your server?

legacy-«|SF|Phylloscop
12-28-2004, 02:33 PM
Hi,

I am using this page (http://81.7.170.146/serverstatus/full1/powerhouse.php), because mine is still not working :) .

It is this server adress: 213.202.197.9:7777. The only mutator that is listed: DMMutator. But I also have noadrenaline and nosuperweapon an final TCC on (see for the correct mutators this link: http://ut2004stats.epicgames.com/matchstats.php?match=10106297).

When I use the trace console:
Fuq 2.1 Trace Console
[Server] This is 81.7.170.146 (81.7.170.146) running Apache/2.0.49 (Win32) PHP/4.3.4
[Server] Document Root is C:/Programmer/Apache Group/Apache2/htdocs
[Server] current Script is /serverstatus/full1/powerhouse.php
[Server] requested URI was /serverstatus/full1/powerhouse.php
[Client] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
2004-12-28 20:31:02:790 > Fuq::Refresh(): called with Protocol='mixed'
2004-12-28 20:31:02:790 > Fuq::Refresh(): sending Gamespy Query
2004-12-28 20:31:02:791 > Fuq::_QueryServer(): called with a 8 Bytes Query on Port 7787 - Gamespy Packetloop enabled - Timeout: 1 Seconds
2004-12-28 20:31:02:791 > Fuq::_QueryServer(): opening UDP Socket for 213.202.197.9:7787

2004-12-28 20:31:02:794 > Fuq::_QueryServer(): sending Query 8 Bytes on Socket Resource id #7 - dumping Query-Packet
\status\
2004-12-28 20:31:02:795 > Fuq::_QueryServer(): waiting for Answer - starting Timestamp: 1104262254.79
2004-12-28 20:31:02:886 > Fuq::_QueryServer(): Socket Status: no pending Data -> received a 722 Bytes Packet in 0.0915701389313 Seconds
2004-12-28 20:31:02:887 > Fuq::_QueryServer(): \final\ received? -> yes
2004-12-28 20:31:02:887 > Fuq::_QueryServer(): extracted Gamespy Packet Number: 1
2004-12-28 20:31:02:887 > Fuq::_QueryServer(): all Packets received - closing Socket
2004-12-28 20:31:02:888 > Fuq::_QueryServer(): complete Answer consists of 722 Bytes
2004-12-28 20:31:02:888 > Fuq::Refresh(): analysing Gamespy Answer
2004-12-28 20:31:02:888 > Fuq::_AnalyseGamespyAnswer(): called with a 722 Bytes Answer
2004-12-28 20:31:02:888 > Fuq::_AnalyseGamespyAnswer(): dumping Data
\gamename\ut2004\gamever\3339\minnetver\3180\locat ion\0\hostname\«|SF|»-clan Server by ngz-server.de\hostport\7777\maptitle\CTF-
FP-Campers Crossing\mapname\CTF-FP-CampersCrossing\gametype\xCTFGame\numplayers\7\max players\10\gamemode\openplaying\gamever\333
9\minnetver\3180\AdminName\#SF.UT2k4\AdminEMail\Ka mpfnudel@gmx.ch\password\0\player_0\$TNT$rml\frags _0\35\ping_0\ 104\team_0\0\p
layer_1\xfs.hugMe.\frags_1\14\ping_1\ 86\team_1\1\player_2\$TNT$XeQter\frags_2\38\ping_2 \ 59\team_2\0\player_3\«|SF|VodkA»\frags
_3\22\ping_3\ 58\team_3\1\player_4\T[SOT]stAchELbeeR\frags_4\36\ping_4\ 58\team_4\1\player_5\«|SF|WarBoss»\frags_5\37\ping _5\ 46
\team_5\0\player_6\$TNT$MrSetup\frags_6\28\ping_6\ 58\team_6\0\queryid\71.1\final\
2004-12-28 20:31:02:891 > Fuq::Refresh(): sending Unreal Query Packet 1
2004-12-28 20:31:02:891 > Fuq::_QueryServer(): called with a 5 Bytes Query on Port 7778 - Gamespy Packetloop disabled - Timeout: 1 Seconds
2004-12-28 20:31:02:891 > Fuq::_QueryServer(): opening UDP Socket for 213.202.197.9:7778
2004-12-28 20:31:02:891 > Fuq::_QueryServer(): sending Query 5 Bytes on Socket Resource id #8 - dumping Query-Packet
0000: 78 00 00 00 01 | x....
2004-12-28 20:31:02:892 > Fuq::_QueryServer(): waiting for Answer - starting Timestamp: 1104262254.89
2004-12-28 20:31:02:927 > Fuq::_QueryServer(): Socket Status: no pending Data -> received a 25 Bytes Packet in 0.0344710350037 Seconds
2004-12-28 20:31:02:927 > Fuq::_QueryServer(): all Packets received - closing Socket
2004-12-28 20:31:02:927 > Fuq::_QueryServer(): complete Answer consists of 25 Bytes
2004-12-28 20:31:02:927 > Fuq::Refresh(): analysing Unreal Answer
2004-12-28 20:31:02:927 > Fuq::_AnalyseUnrealAnswer(): called with 0 Bytes Basic, 25 Bytes Server and 0 Bytes Player Answer.
2004-12-28 20:31:02:928 > Fuq::_AnalyseUnrealAnswer(): dumping Server Packet
0000: 80 00 00 00 01 08 6d 75 74 61 74 6f 72 00 0a 44 | €.....mutator..D
0000: 4d 4d 75 74 61 74 6f 72 00 | MMutator.
2004-12-28 20:31:02:928 > Fuq::Refresh(): finished
2004-12-28 20:31:02:929 >




THX :up:

Phylz0r

legacy-Rüpel
12-28-2004, 03:12 PM
Originally posted by «|SF|Phylloscop

2004-12-28 20:31:02:927 > Fuq::_AnalyseUnrealAnswer(): called with 0 Bytes Basic, 25 Bytes Server and 0 Bytes Player Answer.
2004-12-28 20:31:02:928 > Fuq::_AnalyseUnrealAnswer(): dumping Server Packet
0000: 80 00 00 00 01 08 6d 75 74 61 74 6f 72 00 0a 44 | €.....mutator..D
0000: 4d 4d 75 74 61 74 6f 72 00 | MMutator.


as you can see here, this is not a fuq-bug (nice word btw) - DMMutator is the only thing reported by the server - so it's the only thing displayed by fuq.


don't know. are the mutators enabled?

legacy-«|SF|Phylloscop
12-28-2004, 03:14 PM
Hi,

I guess so :D

http://ut2004stats.epicgames.com/matchstats.php?match=10106297

Mutators: labamuta, DMMutator, NoSuperWeapon, NoAdrenaline, AntiTCCFinal

Phyllie

legacy-Rüpel
12-28-2004, 04:19 PM
hmm. strange. i'll look into it.

legacy-gammo
12-30-2004, 08:22 PM
OK.. no probs man, when ever you got time, to look into the Server Location prob....... thanks...



If any of you are still trying to d/l it, then head over to our website:

http://www.kaoshq.com

and in the d/l's section I have provided a d/l of this excellent mutator.....

For no reason at all.... simply I had a LOT of trouble d/l from authors site, and this mut needs to be a household name... =]

legacy-gammo
01-05-2005, 07:29 AM
Any updates on th elocalization issue, for the server query, in relation to Australian servers?

Flag and location is still unkown....

:(

legacy-Rüpel
01-05-2005, 05:02 PM
it is fixed. you can use this page (http://utworld.de/ruepel/fuq/example2.php) to enter your servers URL (203.17.15.213) and see that the correct country is displayed.

now, if you write me a PM with your emailaddress, i can send you the whois.inc.php file over, and everything should be fine.

legacy-Rüpel
01-06-2005, 03:17 AM
there's another thing that occured to me last night about your issue gammo. maybe your server is unable to send tcp-requests on port 43 and therefor not able to use the whois-service.

write the following php-file into the fuq directory

<?php
require('whois.inc.php');
$d = new WhoIs();
echo $d->QueryWhoIsServer('203.17.15.213',1);
?>


let's name the file wtest.php. now go into your browser and call that file (like http://www.kaoshq.com/fuq2.1_full/wtest.php). what do you see? something that looks like a whois-answer (http://www.utworld.de/ruepel/fuq/au.php) or just nothing or an error-message?

in case that port is blocked, you have to talk to your webserver-admin to open that port (TCP 43 outgoing) for you.

legacy-gammo
01-07-2005, 03:38 AM
kwelll

PM sent

THANKS MAN!!!

http://smilies.jeeptalk.org/cwm/big/Duhard.gif

Ok you are right, check the link you made for the whois test.....
I will contact my Host and request they open the port


=]

legacy-gammo
01-10-2005, 04:57 PM
Ok, there i sno way the provider is going to open such alow number port.

They will open any port above the 1000 cut off point.

Can fuq be configured so can be set to higher port?

legacy-wedgesready
01-11-2005, 01:02 AM
Excellent tool.

Is there a way to get ping orginating from another source rather than where it is being hosted.

Our hosting is in the US but the servers are in Australia...

And I am still having issues with the alignment with side by side listings..

:up:

legacy-Rüpel
01-11-2005, 05:22 PM
Originally posted by gammo
Can fuq be configured so can be set to higher port?

sure. the problem is, that this is the standard port for whois-queries, and you'll have a hard time convincing arin (the company that provides the service for your region) to switch (oder copy) the service to another port. just because the port 43 is hardcoded into the corresponding RFC (http://www.faqs.org/rfcs/rfc954.html) ;) - so tbh: no way. whois was, is and always will be on port 43.

on the other hand, your provider doesn't have to allow incoming traffic on port 43, you only need to be able to initiate the TCP-connection from your webserver, that is outgoing packets. linux for instance knows how to differentiate between connections originating from outside (to bo blocked) and from inside the network. the latter is mostly ok.

and finally, it's just a little graphics. you can disable the line in the fuq-output to get rid of that "red cross on black background". ^^


Originally posted by wedgesready
Is there a way to get ping orginating from another source rather than where it is being hosted.

i don't know of any way to initiate a ping-request from A (you) to B (gameserver) from a third location C (webserver with fuq). i doubt there is one.

legacy-gammo
01-11-2005, 06:12 PM
lol...

Ok thanks Rüpel, I'll see what I can do.. I may just disable it all together and maybe just force it to show the Australian flag.. I mean I know were the webserver is right? lol (Of course that all depends on how I can do that... lol)

Aside from that, I'll try wax lyrical again and hopefully my provider will have a fleeting moment of kindness...

Thanks for everthing Rüpel, particualry for the excellent tool.

Cheers..

=]

legacy-Baer
01-12-2005, 07:53 PM
Hi there,

i googled hours for FUQ ... but i just found dead Links.

Is there still a way to get FUQ ?

Greetz Baer

legacy-Gomjaba
01-12-2005, 09:35 PM
I made a mirror

http://ar3s.net/fuq

legacy-Gomjaba
01-12-2005, 09:38 PM
Originally posted by Rüpel
sure. the problem is, that this is the standard port for whois-queries, and you'll have a hard time convincing arin (the company that provides the service for your region) to switch (oder copy) the service to another port. just because the port 43 is hardcoded into the corresponding

Oder Copy :)

Wie nennt man das Denglisch ? Or Engeutsch :)

HUAAUHUAAA :)

Happens to me all the time *lol*

legacy-Baer
01-12-2005, 11:28 PM
my Quest is over ... no more hosting via utzone.de :D

Thanx a lot

regards baer

legacy-gammo
01-13-2005, 05:09 AM
Rüpel, can I have that ;


whois.inc.php

Please... =]

I sent you a PM... and it looks like my provider is finally coming round...

yay!

=]

legacy-Rüpel
01-13-2005, 12:54 PM
gammo, i didn't change anything. i thought i spotted a bug, but i was working on an old version and found the same bug for the second time. lol.

your version of whois.inc.php in Fuq 2.1 should work correctly. no need for you to update.

legacy-gammo
01-13-2005, 06:26 PM
Yep, the provider did the right thing and enable permissions on port 43

and it now works perfectly.

View it here:

http://www.kaoshq.com/zkaosquery01.php

I have also added this to our downloads database, get it here:

http://www.kaoshq.com/pafiledb/pafiledb.php?action=file&id=60

Thanks for everything Rüpel!

Everyone else DOWNLOAD this mut and get it on!

It's awesome......

legacy-Gomjaba
01-13-2005, 06:40 PM
I have one question .
We are using your script for a while now on ar3s.net (in conjunction with utstatsdb)

BUT : Is it possible to use gif instead of jpg ?

The reason I am asking :

http://www.tdw-clan.com/server/

It is pretty cool to have an animated gif instead ...

Or is there another way to let the pics scrolling to get a better overview of the map ?

legacy-Rüpel
01-14-2005, 06:40 AM
nice idea. but one of those pictures is about 90kB, only one! that would be around 20MB just for the pictures. too much (despite the work to create all those gifs) ;)

maybe i'll add an option to specify the filetype (".jpg" is hardcoded into fuq atm) - such that one can create those gifs for themselves and use them.

legacy-«|SF|Phylloscop
01-15-2005, 03:18 AM
Hi Rüpel,

Any idea on the mutators?


THX,

Phyl

legacy-Rüpel
01-16-2005, 04:06 PM
Originally posted by «|SF|Phylloscop
Any idea on the mutators?

yes and no.

no, because i have no final solution.

yes, because strange things happen. ^^ when you query your server only with the unreal-protocol, it happens from time to time (about 1 out of 10 requests) that your server answers correctly, including all mutators and more. it might be related to UTComp. they do change something in the query-mechanism, but i don't know how much exactly.

if you have some time left, you might disable UTComp for a minute and see if the queries are correct then? you may use my own test-installation for that.
http://utworld.de/ruepel/fuq/example2.php

other than that, i have no idea. i bet it's this gummi bear mutator... ^^

legacy-gammo
02-02-2005, 10:40 PM
Are you goin to do an update on this wonderfull application?

I would like to suggest (I'm sure it's been suggested b4) another line of results in the display area, perhaps, directly under the map name itself:

+++++

current Map: DM-Dust2k5

Number of Times Map Has Been Played: "x"

+++++

Just a thought, but it would be interesting to see which maps are the most popular on the server, at a glance.

Thanks. :)

legacy-Gomjaba
02-02-2005, 11:58 PM
If you implement this you need to start using MySQL ..

And this can be done easily with UTStats, by the way gammo, still waiting for you ICQ or Mail to help yea :)

legacy-Rüpel
02-03-2005, 02:38 PM
Originally posted by gammo
Number of Times Map Has Been Played: "x"

i like the idea, but i suspect it can't be done without adding a mutator to the server that enhances the the serverquery classes. and, to complicate things even more, someone has to actually code that mutator, which i can't do (because i've never done any unreal-scripting - yes, it's a shame! someone better invent the 30-hours-day ^^)

what is currently shown in Fuq is all the information the server gives.

if you want to have it the other way around and generate and save the statistics on your webserver (like gombaja suggested), you would have to call fuq regularly, which is simply not possible in a simple webhosting environment (without cron-jobs). but wait. there is one way. you sit in front of your browser all day long and keep refreshing the Fuq-page. F5 - F5 - F5 - F5 - ...

in the end: nice idea. no way. sorry.

legacy-Gomjaba
02-03-2005, 04:39 PM
As I said :) Combine it (Still waiting to help you)

Or do you want to avoid using UTStatsdb :D :D

Otherwise this is actually what you need and it is working perfectly :):

http://ar3s.net/upload_imagez/uploads/fuq2.JPG

http://ar3s.net/upload_imagez/uploads/fuq.JPG

legacy-gammo
02-03-2005, 08:17 PM
Gomjaba damm you, you're making me green with envy... lololol

YES.. dat is exakly what I want... but i'm going throught a blo*dy nightmare intrying to get UTStastdb and OLStats to work, I simply can not get them to work.

The reason I have not contacted you in the last couple of weeks has been , becaseu I'm coding our clan's website from scracth... and have been pushed for time...

Expect an Email form me in the next couple of days, if not sooner...

I desperatly need to get the stats to work, desperatly.. lol...



Pity Rüpel, it would be an excellent addition to the fuq sytem... =[

legacy-Gomjaba
02-03-2005, 08:21 PM
But why re-invent the wheel :) ?

But I am in the middle of creating my new website as well ...

But anyway ... Maybe the best way (for you maybe hardest) is giving me your ftp accounts and I take a look myself (UT and Web)...

Anyway, we gonna talk I assume .. If not sooner, then later :)

legacy-SupW
03-14-2005, 05:32 PM
Hi Rüpel, great query. I've been looking for a good php query that does a nice job with UT2K4. Anyway I'm wonder if you could tell me if there's a way to edit the ordering of the servertable info?
So for example instead of the first return being ping I could have it be Server name or whatever else instead.

legacy-Rüpel
03-15-2005, 03:55 AM
Originally posted by SupW
I'm wonder if you could tell me if there's a way to edit the ordering of the servertable info?

nope. not really. but since PHP is open-source by default, you could have a look at source and see what you can do.

* you can use GetServerProps() and get a list of key-value-pairs for all properties. sort/filter/skip whatever you want
* you can GetProp(key) to get a specific value, if you only want to display specific settings.

it's up to you. :rolleyes:

don't know if i have the time to include more features like this... :cry:

legacy-jsumners
04-13-2005, 03:04 PM
Here is a patch I created for FUQ API 2.1 a long time ago to enable the display of the map rotation. It requires that you call "$fuq->SetTryServQuery()" to enable the maplist query. You can then call "$fuq->GetMapList()" to get an array of the map names. If you need to see it in action -- http://ug.dyndns.org/ut2k4.php


*** fuq.inc.php Mon Sep 27 11:32:02 2004
--- fuq2.inc.php Mon Oct 4 10:05:18 2004
***************
*** 1,7 ****
<?php

/* vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 foldmethod=marker: */
-
// {{{ history

/************************************************** **************************\
--- 1,6 ----
***************
*** 233,238 ****
--- 232,251 ----
*/
function SetTryServQuery($switch = true) { $this->_tryServQuery = $switch; }

+ /**
+ * Enables ServQuery's map list feature
+ *
+ * ServQuery can return the server's map rotation list. This is an expensive
+ * function so it is disabled in FUQ by default. If you don't mind the
+ * performance hit you can enable it by calling this function.
+ *
+ * @access public
+ * @param bool $switch a bool tell whether to activate (true) or
+ * deactivate the map list extension
+ * @return void
+ */
+ function SetServQueryMapList($switch = true) { $this->_getMapList = $switch; }
+
/**
* Returns the ServQuery mode
*
***************
*** 346,351 ****
--- 359,365 ----
*/
function GetTraceCols() { return $this->_traceCols; }

+
// }}}

// {{{ accessing the results
***************
*** 460,465 ****
--- 474,491 ----
*/
function GetSpectators() { return $this->_spectators; }

+ /**
+ * Returns an array of the current map rotation
+ *
+ * This function only returns the map list if the gameserver has
+ * El Muerte's ServQuery installed. If not, you will get an emtpy array.
+ *
+ * @access public
+ * @return array a single dimension array contaning a list of the
+ * map names in the server's map rotation
+ */
+ function GetMapList() { return $this->_mapList; }
+
// }}}

/************************************************** ************************\
***************
*** 526,538 ****
// ServQuery detected?
if ($this->_tryServQuery && $this->_servQueryInstalled)
{
! // we don't ask for the \maplist\, because that takes way too long
! // and most Servers have enabled Mapvoting anyways...
! $this->_gamespyAnswer = $this->_QueryServer(
! '\\teams\\\\spectators\\\\gamestatus\\\\echo\\fuq' ,
! $this->_port + $this->_gamespyOffset,
! true
! );

// now let's have a look at what we've got
$this->_Trace("Fuq::Refresh(): analysing ServQuery Answer");
--- 552,573 ----
// ServQuery detected?
if ($this->_tryServQuery && $this->_servQueryInstalled)
{
! if (!$this->_getMapList) {
! // we don't ask for the \maplist\, because that takes way too long
! // and most Servers have enabled Mapvoting anyways...
! $this->_gamespyAnswer = $this->_QueryServer(
! '\\teams\\\\spectators\\\\gamestatus\\\\echo\\fuq' ,
! $this->_port + $this->_gamespyOffset,
! true
! );
! } else {
! // the user wants it so give it to him/her
! $this->_gamespyAnswer = $this->_QueryServer(
! '\\teams\\\\spectators\\\\gamestatus\\\\maplist\\\ \echo\\fuq',
! $this->_port + $this->_gamespyOffset,
! true
! );
! }

// now let's have a look at what we've got
$this->_Trace("Fuq::Refresh(): analysing ServQuery Answer");
***************
*** 826,831 ****
--- 861,874 ----
*/
var $_tryServQuery = false;

+ /**
+ * Switching ServQueryMapList on/off
+ *
+ * @var bool
+ * @access private
+ */
+ var $_getMapList = false;
+
/**
* Gameserver has ServQuery (not) installed
*
***************
*** 875,880 ****
--- 918,931 ----
var $_spectators;

/**
+ * Current default map list
+ *
+ * @var array
+ * @access private
+ */
+ var $_mapList;
+
+ /**
* Trace-console turned on/off
*
* @var bool
***************
*** 1188,1194 ****
} elseif (!strncmp($key,'spectator_',10)) {
$this->_spectators[intval(substr($key,10))]['name']=$val;
} elseif (!strncmp($key,'specping_',9)) {
! $this->_spectators[intval(substr($key,9))]['ping']=$val;
} else {
$this->_serverProps[strtolower($key)]=$val;
}
--- 1239,1247 ----
} elseif (!strncmp($key,'spectator_',10)) {
$this->_spectators[intval(substr($key,10))]['name']=$val;
} elseif (!strncmp($key,'specping_',9)) {
! $this->_spectators[intval(substr($key,9))]['ping']=$val;
! } elseif (!strncmp($key,'maplist_',8)) {
! $this->_mapList[intval(substr($key,8))]=$val;
} else {
$this->_serverProps[strtolower($key)]=$val;
}

legacy-Rüpel
04-13-2005, 04:18 PM
wow. that was october last year when you sent me the patch :eek:

i forgot that it was in my inbox :confused:

that patch looks good, indeed. watch out for the size of your maplist. it tends to get huge... :rolleyes: but yeah. n1 :up:

i don't think i have the time to merge this into fuq itself. if there ever is a new release (envy, anyone?), it's incorporated. trust me. :D

legacy-jsumners
04-13-2005, 05:28 PM
Cool. I didn't figure it would warrant a new release and would just make it in in the next one :)

I haven't noticed any problems with the size maplists I use, but I also have a rather hefty server (dual hyper-threading zeons ;) ). But, that is why I didn't enable the maplist by default. I wouldn't want to hurt someone else's performance just because I want to be able to show the maplist on my site.