vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VBphgstats Integration: Game Server Query tool (https://vborg.vbsupport.ru/showthread.php?t=101008)

JTyson 11-16-2005 10:00 PM

VBphgstats Integration: Game Server Query tool
 
This hack integrates the phgstats script into VB.

It's so far only been tested on 3.5.1 but should work on 3.5.x It is still in beta

To install just upload the contents of the upload folder to your forum root and import the product via the admincp, then link to VBGameServer.php however you like. It's already configured with two demo servers so check to ensure they are working before configuring this script.

To Upgrade overwrite all files reimport the product with allow overwrite checked. (You will still lose your servers and have to re add them as there are a couple of extra values needed now.

Demo http://www.fuo-motorsports.com/forum/VBGameServer.php

UPDATE v1.3 - Small Update, Only needed if your are adding servers that require a different queryport than the standard game port..

UPDATE v1.2 - Sorting of servers added, Servers can also be enabled or disabled, Breadcrumb added to the navbar, refresh link added on the server page, Counter-Strike: Source added, Fixed bug in map image only showing the BF2 image.

UPDATE v1.1 - Admincp added. Adds one new table to store the server info instead of having to manually configure the php file.

What is phgstats?
Quote:

phgstats is an realtime gameserver status script, written in php, to display data from one or more gameservers on webpages.

The following gametypes are support:

- American's Army
- Battlefield 1942
- Battlefield Vietnam
- Battlefield 2
- Call of Duty
- Enemy Territory
- Half-Life / Half-Life2
- Medal of Honor
- Return to Castle Wolfenstein
- Rune
- Unreal Tournament
- Unreal Tournament 2003
- Unreal Tournament 2004
- Quake 3

dieselpowered 11-17-2005 03:52 PM

Ummm what is it? :)

nexialys 11-17-2005 04:18 PM

Phgstats - php gameserver status script
is an realtime gameserver status script, written in php, to display data from one or more gameservers on webpages.

Actual Release: phgstats_0.5.tar.gz phgstats_0.5.zip
In Work: phgstats_0.6
10% phgstats_0.6

phgstats Logo The following gametypes are support:

- American's Army
- Battlefield 1942
- Battlefield Vietnam
- Battlefield 2
- Call of Duty
- Enemy Territory
- Half-Life / Half-Life2
- Medal of Honor
- Return to Castle Wolfenstein
- Rune
- Unreal Tournament
- Unreal Tournament 2003
- Unreal Tournament 2004
- Quake 3

EasyTarget 11-17-2005 04:25 PM

cool hack, looking forward to future versions. How hard/is it possible to add support to it for other games?

nexialys 11-17-2005 04:41 PM

Quote:

Originally Posted by EasyTarget
How hard/is it possible to add support to it for other games?

this question is irrelevent to this hack, you would be better go directly to the official website and browse it for FAQ and the forum,... our friend here is just releasing an minimal integration, he is not linked to the development of the software itself...

Zachariah 11-17-2005 05:23 PM

I'll keep my eye on this one. :D

Next on the list:


make config.inc.php:

Code:

$gameserver = array(
/* 2  */ 'et:et.bad-penguins.de:27980',
/* 1  */ 'bf:212.227.65.120:14567'
);

// server country
$country = array(
/* 2  */ 'Germany',
/* 1  */ 'Germany',

- American's Army aa
- Battlefield 1942 bf
- Battlefield Vietnam bfv
- Battlefield 2 bf2
- Call of Duty cod
- Enemy Territory et
- Half-Life / Half-Life2 hl
- Medal of Honor mohaa
- Return to Castle Wolfenstein rtcw
- Rune rune
- Unreal Tournament ut
- Unreal Torunament 2003 ut2003
- Unreal Tournament 2004 ut2004
- Quake 3 q3a


Goto database, options in AdminCP for adding/editing servers so that there is no need to edit config.inc.php to add servers.

JTyson 11-17-2005 09:39 PM

Quote:

Originally Posted by Zachariah
I'll keep my eye on this one. :D

Next on the list:


make config.inc.php:

That was my plan with but i had to move over to another project for the time being so just released what i had. ;)

Zachariah 11-17-2005 10:54 PM

Quote:

Originally Posted by JTyson
That was my plan with but i had to move over to another project for the time being so just released what i had. ;)

I hear ya, just shooten some ideas sir. :)

JTyson 11-17-2005 10:58 PM

Yup keep them coming, First thing i have planned for this is to add a generic class to query gamespy servers as im currently using gsQuery as my servers run the gamespy protocol. http://www.fuo-motorsports.com/Serve....61.122/32140/

Mith 11-17-2005 11:02 PM

I get a blank page.

Any pointers,

Uploaded all content, set IP addresses of servers.. and thats all i get. :-(

JTyson 11-17-2005 11:04 PM

Did you import the product?

twitch 11-17-2005 11:56 PM

cool hack, look forward to support for games like CoD2 and F.E.A.R

Slave 11-18-2005 01:07 AM

Very nice .. I've been waiting for something like this for ages :) Thank you.

A couple of things that are needed if you have time:

AdminCP interface
vBAdvanced module

Apart from that .. it rocks! .. :)

jugo 11-18-2005 02:46 AM

hmmm...I think It's time to get playin....

Thanks...

Kru 11-18-2005 04:10 AM

Really good. I could need an intergration for my counter strike server. You think you can add this to the list? :)

JTyson 11-18-2005 06:49 AM

Quote:

Originally Posted by Slave
Very nice .. I've been waiting for something like this for ages :) Thank you.

A couple of things that are needed if you have time:

AdminCP interface
vBAdvanced module

Apart from that .. it rocks! .. :)

Admincp is not far away at all,

vba module not yet planned but wouldnt be too hard

sensimilla 11-18-2005 06:49 AM

great game arcade :) seems its working with vb 3.5.1 :)

JTyson 11-18-2005 06:50 AM

Also dont forget to click install so you get the updates :)

Rhoads 11-18-2005 08:25 AM

This is terrible extensions for vbulletin, I now use gsQuery for our raceserver (F1 Challenge), I hope that we can monitor soon also F1 Challenge with these extension

Thnx, CLICK INSTALL

eXtremeTim 11-18-2005 08:47 AM

Quote:

Originally Posted by Kru
Really good. I could need an intergration for my counter strike server. You think you can add this to the list? :)

Hahaha this hack might make me setup a counterstrike server. If we get support for it that is.

JTyson 11-18-2005 08:55 AM

Quote:

Originally Posted by drl2005
This is terrible extensions for vbulletin, I now use gsQuery for our raceserver (F1 Challenge), I hope that we can monitor soon also F1 Challenge with these extension

Thnx, CLICK INSTALL

Is that just using the gamespy protocol? As im ging to be looking at modifying one of the existing classes for the gamespy protocol.

JTyson 11-18-2005 08:58 AM

Quote:

Originally Posted by eXtremeTim
Hahaha this hack might make me setup a counterstrike server. If we get support for it that is.

Well seeing as phgstats 0.6 is only 10% complete i think we may have to do it ourselves ;) You also never know, one of the existing protocols may work.

Slave 11-18-2005 09:04 AM

Not tried it I admit .. but shouldn't the hl2 one work for cs-s .. and hl work for cs ?

Rhoads 11-18-2005 09:07 AM

Quote:

Originally Posted by JTyson
Is that just using the gamespy protocol? As im ging to be looking at modifying one of the existing classes for the gamespy protocol.

Jups, it uses game server Query Protocol (Gamespy)

JTyson 11-18-2005 09:07 AM

Quickly looking at the configuration hl and hl2 share the same class for the query.

Also i'm just about to update this with the admincp so servers are stored in the db, just have to write the install code for the tables.

gator777 11-18-2005 10:04 AM

Very nice ...Installed. :)

JTyson 11-18-2005 10:15 AM

Quote:

Originally Posted by Slave
Not tried it I admit .. but shouldn't the hl2 one work for cs-s .. and hl work for cs ?

Acording to the phg forums someone said that this does work, If ome can give me details on a server to test i'll create a new class for it.

gator777 11-18-2005 10:27 AM

Small issue, but when I set up a BF2 server and click on the link, it displays a BF1942 pic. Also, is there a way I could add my own pics for the maps? :)

It would also be nice to save the display order, and also to set the server active/not active so as to omit if needed. :)

Again ...very nice work. :)

Slave 11-18-2005 10:45 AM

Quote:

Originally Posted by gator777
Small issue, but when I set up a BF2 server and click on the link, it displays a BF1942 pic.

I've seen that too with the ET server I'm using it for .. frontpage is fine with the small pic .. but when you click on the details page you get a big BF logo instead of the map pic ..

Slave 11-18-2005 10:48 AM

If you could create a class for q4 that would be cool .. (I know, the developer is working on it, but anything you can do to speed the process up would be good) ..

If you need some q4 ips ..

Savage - Q4 DM
213.230.209.100:28004

Savage - Q4 CTF
213.230.209.100:28005

Savage - Q4 Arena CTF
213.230.209.100:28006

JTyson 11-18-2005 10:48 AM

The bf2 map error is a bug in the original phgstats but can easily be fixed by overwriting the images phgstats\maps this is also where you put your own map images with the mapname.jpg naming structure.

I was actually thinking of the same thing with the ordering and enable/disable server, let me add that shortly.

JTyson 11-18-2005 10:52 AM

Edit my mistake the bf image is my fault i will fix it now.

/me slaps himself.

JTyson 11-18-2005 10:58 AM

To fix the image the issue you can either wait an hour or two for me to update this again or you can edit the phgstats_srv template as follows

Find:
Code:

<img alt="omaha charlie-sector-1944" src="./phgstats/maps/bf/default.jpg" border="0">
Replace:
Code:

<img alt="{$srv_rules['mapname']}" src="{$srv_rules['map']}" border="0">

gator777 11-18-2005 11:08 AM

Quote:

Originally Posted by JTyson
To fix the image the issue you can either wait an hour or two for me to update this again or you can edit the phgstats_srv template as follows

Find:
Code:

<img alt="omaha charlie-sector-1944" src="./phgstats/maps/bf/default.jpg" border="0">
Replace:
Code:

<img alt="{$srv_rules['mapname']}" src="{$srv_rules['map']}" border="0">


That did the trick. I will be staying tuned for more updates as you make them. This installed nicely and works great. Thanks again for your hard work. :)

Slave 11-18-2005 11:11 AM

Quote:

Originally Posted by JTyson
To fix the image the issue you can either wait an hour or two for me to update this again or you can edit the phgstats_srv template as follows .....

That did the trick .. thanks :)

Slave 11-18-2005 11:39 AM

A couple of suggestions ..

Add a breadcrumb trail for the page ..
Add a back button to the "sh_srv=" page .. (not sure if that's needed if you have a breadcrumb trail ;))

JTyson 11-18-2005 11:45 AM

Will do ;) I kicked myself about that last night, then forgot to add it again, Ive also just converted the hl class for Counter-Strike: Source with it's own map folders and default image and what not.

Rhoads 11-18-2005 12:06 PM

Quote:

Originally Posted by JTyson
Will do ;) I kicked myself about that last night, then forgot to add it again, Ive also just converted the hl class for Counter-Strike: Source with it's own map folders and default image and what not.

Do you think that it is possible add F1 Challenge
https://vborg.vbsupport.ru/showpost....0&postcount=19
I have gsQuery-0.1.1 for you if you want ?

JTyson 11-18-2005 12:19 PM

I will get there eventually as my main aim with playing with phgstats was to get away from gsquery as i am using it myself for my 3 game servers

I have also got gsquery integrated into vba but it's more hacked up specifically to my site, The link below is an example of gsquery+vb
http://www.fuo-motorsports.com/Serve....61.122/32140/

flup 11-18-2005 12:43 PM

Are you gonna update for Q4 support?


All times are GMT. The time now is 06:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01326 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete