搜索
查看: 2829|回复: 4

有谁知道PsychoQuery的一些用法?怎么调用?能详细点吗?

[复制链接]
发表于 2002-11-15 23:53:26 | 显示全部楼层 |阅读模式 来自 中国–湖南–湘西土家族苗族自治州–吉首市
PsychoQuery Readme File.
-------------------------

Online documentation can be found out:
http://www.psychostats.com/pqdocs/

There is no installation required for PsychoQuery other then just
uncompressing the archive somewhere. There is a directory called
'themes' in this archive. It contains all the themes for PQ. You can
edit any of them or create your own.

Programmers who want to make their own server query utilities will find
the included pq.pm useful. It contains the core routines to allow anyone
to query Halflife servers for information. Quake3 support is implemented
but is still buggy, not well tested and not all games supporting the Q3
engine will work.


REQUIREMENTS:
--------------
PsychoQuery requires Perl (linux) or ActivePerl (windows). Windows users
can download Perl here:
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/


EXAMPLE SETUP:
---------------
(In any example below the command "pquery.pl" might not work for Windows
users, if this happens to you simply run the command like this:
"perl pquery.pl " ... And then the rest of the command shown in the
examples.
As an example of how pquery works, I setup a cronjob to have it query my
server every minute (yes, thats every minute). It only takes a second
or 2 to receive a query. And pquery updates an html file within my HTML
root folder. Then on my stats page, I use an SSI tag to have the pquery
generated page (rtstats.html) included into my main stats page. The SSI
code is as  follows:
        <!--#include virtual="rtstats.html"-->

"pquery.pl -h" will display the command line syntax.



IMAGES:
--------

The PsychoQuery archive will no longer provide any images within the archive.
You can download images from the PsychoStats.com website in the 'contribs'
section. All themes created for PQ will have its <img> html tags hard coded
for a specific directory and will most likely not work for all systems. So you
might have to manually edit the path in some of the themes in order for the
images to work correctly.


CUSTOM THEMES:
---------------
This archive comes with a kickass default theme. If you want to make your
own all that is required is some HTML knowledge and what variables pquery
looks for in the html theme file. Look through the included file:
theme_notes.txt. It contains all the variables that you can use in the
PQ theme.


FINAL NOTES:
-------------

There is a test.txt file included in this archive which you can use to
test the output of pquery.pl at a command prompt. Simply run pquery.pl
like this:

        pquery.pl -srcfile test.txt -server 1.2.3.4:27015 -gametype=halflife

Make sure the 'server' is set correctly for your server. And you'll see
all the basic info about your server including players and rules. The
test.txt file is not meant to be pretty. Its only meant to show you some
simple text output from pquery.


CONTACTING ME:
---------------

At this time, please do not email me asking how to set this up if you do
not understand what SSI tags are, or how to use CGI on your webserver. I
do not have the time to help people do this. However, the forums on the
psychostats.com website are available for users to post problems and
questions.

Go to the online forums at the http://www.psychostats.com/ website for
more help. This would be the best method to get help for any reason.

--
Jason Morriss
stormtrooper@psychostats.com
http://www.psychostats.com/
发表于 2002-11-15 23:58:59 | 显示全部楼层 来自 中国–广东–江门
我也想知,谁能说说
回复

使用道具 举报

发表于 2002-11-17 00:27:23 | 显示全部楼层 来自 中国–北京–北京
用他不如用webmod来的简单,
或者phprcon
http://bbs.dt-club.net/rcon_install.php
回复

使用道具 举报

 楼主| 发表于 2002-11-17 00:52:38 | 显示全部楼层 来自 中国–湖南–湘西土家族苗族自治州–吉首市

我不喜欢w 的http://x.x.x.x:27015

想看一看,PsychoQuery好像不是实时的,功能是差一些。但网页只要给别人看一部分就够了
回复

使用道具 举报

发表于 2002-11-17 01:41:36 | 显示全部楼层 来自 中国–北京–北京
那就用phprcon吧

时时的,设置也简单
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表