搜索
查看: 51306|回复: 145

[技术类][原创讲义]:Psychostats2.2.b调试、安装、使用帮助[国内首发]

[复制链接]
发表于 2004-8-25 03:52:11 | 显示全部楼层 |阅读模式 来自 中国–江苏–苏州–张家港市
这是国内第一份PS2.2说明文档,如果您要转摘/引用本主题,希望您注明出处(点通论坛)及我的名字Songsong,谢谢,我的邮件地址为zjgaxis@yahoo.com.cn

Psychostats自从2000年底的Ver1.0到今天的Ver2.2.b,不断升级,在吸收了UCSTATS、HLSTATS及其它软件的基础上,已经成长为HL系列游戏最为著名的排名系统。

2.X版本(2.2.B)与1.X版本相比的特点?

第一:采用MySQL大大提高刷新效率,避免1.x版本的重复刷新,每次只需要刷新新日志
第二:支持多语言系统,目前最新的2.2.B发行版中包含英语、俄语、葡萄牙语(巴西)、中文(简体)、中文(繁体)、丹麦语、斯洛伐克语。更多的语言包将在不远的将来在其论坛上发布。由于PS官方没有UA那样具备统一的翻译团队,所以它的语言翻译全部由各国玩家自发提供翻译稿,中文(简体)是由我来完成的。
第三:全面支持更多MOD及Steam,包括CS、DOD、NS等
第四:强大的后台管理功能,更加人性化的设计

运行系统要求?
支持全系列Windows2000/2003及Linux/Unix/BSD系统

您的系统应该具备以下权限
Web服务,建议采用Apache,IIS不是官方推荐的系统,本人也从来不在IIS下跑PHP
PHP权限,Linux Fedora Core 1/Linux Red Hat 9.0系统自带PHP都支持Psychostats2.2系统
MySQL数据库,Linux Fedora Core 1/Linux Red Hat 9.0系统自带MySQL数据库系统都支持
Perl权限

一旦您具备以上条件,则说明您可以安装并运行Psychostats2.2。

如果您需要远程传递Log及自动导出/导入数据库,则需要自行架设FTP服务器及用Shell编写脚本程序,这属于Psychostats2.2的扩展应用,一般网络管理员都有能力完成,在此不多废话

怎样调试运行系统?
如果您使用Linux,并且对于Linux不是非常熟练的话,建议在安装时,选择“定制”安装,然后在“安装包”中选择最后一项(全部安装),这样经过漫长等待完成安装的系统完全具备了运行Psychostats2.2全部要素,相关内容见后。

如果您使用Windows2000,则需要自行安装,全部安装包下载地址

ActivePerl
http://61.132.118.125/soft/ActivePerl-5.8.4.810-MSWin32-x86.msi
Apache_2.0
http://61.132.118.125/soft/apache_2.0.50-win32-x86-no_ssl.msi
MySQL4.0
http://61.132.118.125/soft/mysql-4.0.20d-win.zip
PHP4.3.8
http://61.132.118.125/soft/php-4.3.8-Win32.zip
psychostats2.2.1b
http://www.psychostats.com/downloads/


PHP安装
使用文件:php-4.3.8-Win32.zip,注意:目前不支持PHP5.0

第一步:
解开后拷贝到C盘根目录下,并修改php-4.3.8-Win32为PHP,最终形成C:\php这样的目录结构,这是PHP官方推荐的结构

第二步:
拷贝C:\Php\Php4ts.dll到Windows的系统文件夹C:\WINNT\System下(C:\WINNT\System取决于您的系统安装地址)
拷贝C:\php\php.ini-dist到C:\WINNT下,将php.ini-dist修改为php.ini

第三步:
修改C:\WINNT\php.ini,将Windows Extensions下包含的;extension=php_gd2.dll修改为extension=php_gd2.dll

Apache安装调试
使用文件:apache_2.0.50-win32-x86-no_ssl.msi

如果您的系统无法打开msi发行的Windows Installer程序,请去微软的网站升级

安装过程中
Network Domain:服务器域名,可以使用IP,外网使用外网IP,内网使用内网IP,如果需要映射的,填写内网IP
Server Name:服务器名称,随便填写
Admin Mailbox:管理员名称,随便填写

修改C:\Program Files\Apache Group\Apache2\conf下的httpd.conf,以下内容是特别需要注意

ServerRoot "C:/Program Files/Apache Group/Apache2"
服务器执行地址(填写您需要的,一般这里是系统自动探测,没有特别需要,请不要修改)

LoadModule php4_module C:\php\sapi\php4apache2.dll
使Apache支持PHP,在Dynamic Shared Object (DSO) Support添加上面一行,其中php4apache2.dll所在地址取决于您的PHP安装地址

DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
Web文件地址(填写您web发布地址,"C:/Program Files/Apache Group/Apache2/htdocs"是举例)

DirectoryIndex index.html index.html.var index.php
索引文件类型,添加index.php类型

AddDefaultCharset GB2312
web服务的缺省语言修改成GB2312

AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps
AddType application/octet-stream .reg
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php

在AddType application/x-tar .tgz下面添加以上类型的MIME

安装MySQL
建议安装到c:\下,安装完后在DOS模式(附件/命令提示)下进入c:\mysql\bin执行mysqladmin

第一步:
设置超级用户密码:mysqladmin -uroot -password 您的密码
如果要修改超级用户密码可以使用:mysqladmin -uroot -p你的旧密码 password 你的新密码
牢记您的帐号为root及您的密码

第二步:
为Psychostats创建一个数据库
mysqladmin -uroot -p creat ps22
输入密码

安装Perl
Perl的安装与Apache类似,非常简单,建议安装到c:\下
完成安装后开始/程序/ActiveSate ActivePerl5.8/Perl Package Manager执行

ppm> install TermReadKey
耐心等待完成,然后
ppm> install DBI
耐心等待完成,然后
ppm> install DBD-mysql
耐心等待完成,然后
ppm> quit

如果您可以顺利完成上面的步骤,则意味着系统构建已经全部完成

解开psychostats2.2.1b.zip到c:\下,修改为ps2,形成c:\ps2.2
这个目录是程序执行目录,不应该被web所发布,否则会有安全隐患

执行安装程序
通过附件/命令提示符进入DOS模式,到c:\ps2.2下执行install.pl

注释,因为在DOS下拷贝文字有点麻烦,所以在Linux通过SSH命令执行install.pl以拷贝文字,其步骤及解释与在win2000下完全一致

Linux/Unix detected (Perl v5.8.1)
Loaded language file 'english' successfully.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The PsychoStats v2.2 installation has several steps, all of which will be
handled automatically by this setup wizard. The wizard is interactive and will
ask you several questions along the way. New and veteran users will both find
this setup quick, easy and helpful.

*** UPGRADE NOTES ***
If you are upgrading from the previous version 2.1 and everything is currently
working for you, DO NOT run this install wizard. Run the 'upgrade.pl' script
instead. That will alter your database to the new format w/o losing any of
your current stats and will update your PsychoStats files on your website.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Press enter to continue ...
按回车继续

Before we begin installing PsychoStats v2.2 on your system I need to know
where your web server is located. If your web server shown below is set to
'localhost' this means the web server will be considered local to the machine
that you're running this install wizard.

Web server host: localhost [127.0.0.1]
Do you want to change your settings? [Y,n]:
是否要更改您的服务器类型设定,不要管127.0.0.1这个IP,一般选择n,如果是远程则选择Y,进行修改

Press enter to continue with next step
按回车继续下一步

>>> STEP: Verifying required perl modules ...
Searching for required perl modules ...
   x = module installed
  [x] DBI           v1.37
  [x] DBD::mysql    v2.9002
  [x] Data::Dumper  v2.121
All required perl modules are installed! Congratulations!

Press enter to continue with next step
检测系统是否支持DBI及DBD::mysql,如果全部为[x]则为通过,按回车继续下一步

>>> STEP: Database initialization and setup ...
SQL initialization file successfully loaded (34 tables).

A database needs to be setup for PsychoStats to use. In order to verify and
create the database you need to provide a user that has admin privileges on
the DB server. Follow the prompts below to setup the database. Each prompt
will show its current setting in [brackets]. If you do not want to change a
setting just press enter at the prompt.

WARNING: Your password, if given, will be echoed to the screen!

Most databases will require a username to connect with. If a default username
appears in the [] brackets and you need to use a blank username type in 'none'
(w/o quotes) at the prompt.
DB Username []: root
数据库用户,输入root或者您的帐号

Most databases will require a password to connect with. If a default password appears in the [] brackets and you need to use

a blank password type in 'none' (w/o quotes) at the prompt.
DB Password []: xxxxxx
数据库密码,输入上步骤用户所使用的密码

Where is the MYSQL server? Enter 'localhost' if its on this same machine
otherwise enter the IP or hostname of the server.
DB Hostname [localhost]: localhost
数据库连接类型,一般使用localhost

Each database on a server has a different name. Which name will you use for
PsychoStats? We will try to create this DB later if it doesn't already exist.
DB Name [ps_stats]: ps22
Psychostats使用的数据库,这里使用我们在安装MySQL时建立的ps22

Choose a table name prefix. The default prefix is "pstats_" this helps keep
all related tables in the DB together. Each table in the DB will start with
this prefix. Just accept the default if you're not sure.
DB Table prefix [pstats_]: pstats_
ps22数据库的表前缀,便于数据库操作,可以采用pstats_或者您喜欢的

Should compression be used for your DB connection? This may or may not help performance (especially if your DB server is

remote). If you experience any problems disable this.
DB Compression [0]: 0
数据库连接时是否压缩,建议为0

Checking for DB ps22@localhost ...DB EXISTS!
Preparing to create database 'ps22' table structure ...

If a table already exists with the same name in the 'ps22' database should it
be deleted and replaced with a new empty table? (any data in the original
table will be lost).
Delete existing tables first? [y,N]: N
是否删除已经存在的,选择N(因为您创建的数据库是空的,没有必要删除,如果失败后再次安装可以选择Y)

  Creating table 'pstatsclans' ...OK
  Creating table 'pstatsdefs_awards' ...OK
  Creating table 'pstatsdefs_events' ...OK
  -----------------省略-----------------
  Creating table 'pstatsplrvictims' ...OK
  Creating table 'pstatsplrweapons' ...OK
  Creating table 'pstatsrcons' ...OK
  Creating table 'pstatssessions' ...OK

Congratulations! DB 'ps22' has been fully initialized!

Press enter to continue with next step
按回车继续下一步

>>> STEP: Basic Configuration ...

Each question will show your current config setting in [brackets], If you do
not want to change the current setting just press <enter> at the prompt.

The 'logsource' option specifies where your logs are stored for your game
server. You can specify multiple log directories and each will be scanned in
the order given. Enter a blank line if you do not want to enter any more log
directories. To delete a directory from the list enter the number shown next
to it and press enter.

Current log sources (enter a blank line to stop).
An asterix '*' in front of the directory means the directory does not exist!
  0. * none *
LOGSOURCE 1: D:\cstrike1\logs
您的第一日志地址(填写您自己的地址)

Current log sources (enter a blank line to stop).
An asterix '*' in front of the directory means the directory does not exist!
   1. /root/old_logs
LOGSOURCE 2: D:\cstrike2\logs  
您的第二日志地址(填写您自己的地址)   

Current log sources (enter a blank line to stop).
An asterix '*' in front of the directory means the directory does not exist!
   1. /root/old_logs
   2. * /root/old
LOGSOURCE 3:
如果您有第三个日志地址,可以继续填写,直到您满意,否则就回车退出日志地址填写

The 'modtype' option specifies what MOD of the primary 'gametype' you're
playing.
Valid mods: cstrike, dod, ns
MODTYPE [cstrike]: cstrike
游戏类型,选择您的类型

The 'uniqueid' option specifies how players are tracked in the game logs.
Note: 'wonid' and 'steamid' are the same thing as 'worldid'.
Valid options: ipaddr, name, steamid, wonid, worldid
UNIQUEID [worldid]: name
统计类型,根据您的情况来决定
ipaddr适合针对IP统计
name适合针对玩家名字,比较常用,特别适合于大型网吧
steamid适合针对Steam系统,比较常用
wonid适合针对WonID系统(目前好象淘汰了)
worldid适合PS自己的全球ID系统


The [decay] 'skill' option specifies a percentage that will decay a players
skill value for each day they do not play since their last played date. It is
recommended that this value be kept low (less than 5%).
DECAY.SKILL [0%]: 2%
技巧统计对比率为2%,可以为0%-5%,不要超过5%

The [decay] 'minskill' option specifies the minimum value a players skill is
allowed to decay to. A players skill will never automatically decay lower than
this value but its still possible for a player to go lower if they simply
aren't playing that well.
DECAY.MINSKILL [1000]: 1000
技巧基础得分(每一个玩家一旦进入排名,赋予每人一个公平的起始分数),一般为1000,不要小于750

The 'servername' option should be a short name for your game server. The
themes can use this in their output.
SERVERNAME [Powered By PsychoStats v2]: Powered By PsychoStats v2
出现在页面顶部的标识,随便填

The 'serverip' option should be the IP:Port for your game server. The theme
will use this to show real-time server information by querying the server. If
you do not want this information to be displayed just leave the field blank.
SERVERIP []: 192.168.1.10:27015
监控服务器地址,这一监控是动态的,可以随时反映其在线状况,如果没有,可以为空

Very Important: You must provide a valid directory that the website files for
PsychoStats will be copied or uploaded to. This directory should be within
your web server directory tree.

'statsroot' specifies the directory where your PsychoStats website files will
be located.
THEME.STATSROOT [c:\inetpub\wwwroot\stats\]: C:\Program Files\Apache Group\Apache2\htdocs\
这是Psychostats2.2发布的主地址,这里填写上绝对地址

'statsurl' is an absolute URL pointing to the location of your stats on your
website. You do NOT put http://domain.com in front of this option. This will
usually resemble the statsroot option you entered above but w/o the phyiscal
directory path in front of it. Often only leaving the last directory name.
Example: If statsroot = '/var/www/stats/', then statsurl would be '/stats/'.
THEME.STATSURL [\stats\]: \
这是Psychostats2.2发布的文件所在的相对地址,这里是\
这两个地址非常关键,但是第一次安装往往容易搞错,错误的话导致图片显示不正常,当然可以在后面的配置文件中修改


Updating configuration ...
Press enter to continue with next step
>>> STEP: Test PS subsystems ...
Attempting to initialize PS CORE system ...OK
Attempting to initialize PS SAVER sub-system ...OK
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Required installation is now complete!
PsychoStats should now be able to load and store logs from this system.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press enter to continue with next step
按回车继续下一步

>>> STEP: Copying theme to web server ...

PsychoStats uses 'themes' to produce its output for the stats. Listed below
are all the themes currently available on your system. Choose the theme you'd
like to use.

Available themes: psweb
Choose your theme [psweb]: psweb
psweb是目前唯一的选择,请输入psweb然后确定
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Theme config loaded for 'psweb':
  Theme name:  Psychostats.com
  Version:     2.2
  Author:      Stormtrooper
  Email:       stormtrooper@psychostats.com
  Total files: 235 (size: 421.10 KB)
  Dep. files:  12 (size: 96.07 KB)

Notes from the author:
        The "psweb" theme was designed to look just like the Psychostats.com
website. It will work for any of the currently supported mods. Adding new
support for a mod is as simple as adding a few new files to the theme. No
changes would have to be made to any of the current files within the theme.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Do you want to install this theme? [Y,n]: Y
是否安装这一风格,选择Y


The files for this theme will be copied into your statsroot
'C:\Program Files\Apache Group\Apache2\htdocs\'.

Copying [  0.08%][  324.00 B] themes\psweb\admin.html ...OK
Copying [  0.85%][   3.28 KB] themes\psweb\admin_body_awards.html ...OK
Copying [  2.37%][   6.38 KB] themes\psweb\admin_body_db.html ...OK
-----------------省略-----------------
Copying [ 99.64%][  442.00 B] themes\psweb\languages/slovak/usersearch.lng ...OK
Copying [ 99.87%][  994.00 B] themes\psweb\languages/slovak/weapon.lng ...OK
Copying [100.00%][  541.00 B] themes\psweb\languages/slovak/weaponlist.lng ...OK

The theme has dependant files that need to be copied over to your website. All
paths will be created automatically starting within the statsroot specified in
your config: 'C:\Program Files\Apache Group\Apache2\htdocs\' on your web
server.

Copying [  7.98%][   7.67 KB] psweb.css ...OK
Copying [  8.25%][  270.00 B] images\arrow_blue_asc.gif ...OK
-----------------省略-----------------
Copying [ 99.64%][  361.00 B] images\title_left.png ...OK
Copying [100.00%][  357.00 B] images\title_right.png ...OK
Done copying files.

Press enter to continue with next step
按回车继续下一步


>>> STEP: Uploading web related files ...

Updating web/config.php based on your local config ...
done.

Copying web files to web server.
Root destination: C:\Program Files\Apache Group\Apache2\htdocs\
Copying [  0.82%][   4.61 KB] admin.php ...OK
-----------------省略-----------------
Copying [100.00%][  925.00 B] smarty\plugins\shared.make_timestamp.php ...OK
Done copying files.

Copying weapon images to web server.
Root destination: C:\Program Files\Apache Group\Apache2\htdocs\images\weapons\
Copying [  0.31%][   1.08 KB] cstrike_ak47.gif ...OK
-----------------省略-----------------
Copying [ 97.38%][   8.91 KB] large\cstrike_usp.jpg ...OK
Copying [100.00%][   9.05 KB] large\cstrike_xm1014.jpg ...OK
Done copying files.

Copying map images to web server.
Root destination: C:\Program Files\Apache Group\Apache2\htdocs\images\maps\
  No files to copy.
Done copying files.

Press enter to continue with next step
按回车继续下一步

*** Install has been completed ***

Now that you've installed PsychoStats v2.2 the next step would be to run a
'stats update' to scan your log direcories for game and player stats.

Linux users can run the stats update by typing "./stats.pl" at your shell
prompt (w/o the quotes).

The first time you run the stats update it may take a long time depending on
the number of logs you have. Subsequent updates will be much quicker since
only new logs (after your last update) will have to be scanned. You will need
to periodically run the stats update so new stats are collected and inserted
into your DB.

Linux users can use their crontab and have the stats.pl process run
automatically at set intervals.

Once you have data in the database you should be able to browse to your
website stats URL to view the stats. For example: http://localhost/stats/

Press enter to exit installation.

Installation completed!
安装完成

附:怎样修正图片?

修正web地址下的config.php中的以下内容

http://192.168.0.1可以访问到C:\Program Files\Apache Group\Apache2\htdocs\为例

$conf['statsroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\';
$conf['imagesroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\image\';
$conf['weaponsroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\images\weapons\';
$conf['mapsroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\images\maps\';

上面是绝对地址

$conf['statsurl']         = '\';
$conf['imagesurl']         = '\images\';
$conf['weaponsurl']         = '\images\weapons\';
$conf['mapsurl']         = '\images\maps\';

下面是相对地址


附:地图图片
游戏HL游戏的地图数目众多,所以发行版不包含任何地图,可以去下载
http://www.psychostats.com/reque ... -02-09.zip?download
引用自
http://www.psychostats.com/downloads/miscellaneous
解开后拷贝到C:\Program Files\Apache Group\Apache2\htdocs\images\maps即可
如有其它地图,自己可以截图后修改,图片文件名与地图一致(不带BSP)然后上传就可以


附:超级管理员设置
首先通过游戏登陆服务器,使您的名字或者其它信息被记录然后
pspass.pl -name 玩家的名字 -password 密码
psadmin.pl -name 玩家的名字 -accesslevel 10

玩家的名字如果有空格可能会导致匹配错误,无法成功赋予

如果要给玩家设置密码,则只需要上面的第一步,然后可以登陆系统,超级管理员需要上面两步
accesslevel定义级别
1 = 普通玩家
5 = 战队管理员(管理战队内资料)
10 = 超级管理员
pspass.pl与psadmin.pl直接回车可以获得简单帮助

附:怎样在线升级
从2.0开始提供了在线升级,当发现可能存在BUG,但您无法确定问题所在时,您可以使用update.pl
升级所用的帐号为您登陆Psychostats论坛所用的帐号,帐号注册
http://www.psychostats.com/register.php
无法升级,请确认updates.psychostats.com是否响应及您网络的20563端口是否被防火墙禁止通讯

附:怎样清除数据库内的数据
第一个办法
mysqladmin -uroot -p drop ps22(你当前使用的数据库名称)
输入密码后确认删除
mysqladmin -uroot -p creat ps22(你原来使用的数据库名称)
输入密码后确认
然后修改CS文件地址,比原来是d:\logs,可修改成d:\logs_old
stats.cfg的log地址,然后刷新
这是一个笨办法~但是最实在,MySQL数据库的操作可以使用empty命令清空
第二个办法
install.pl -step db -reset

附:历史记录及服务器记录无显示
确认您的PHP是否已经装载GD2
如果http://您的web地址/testgd.ph ... 于PHP安装部分
如果排除上述问题,则
编辑/web/includes/panachart.php
添加header("Content-type: image/png"); 到panachart.php

附:怎样翻译awards
awards的相关内容在数据库awards表内,您可以通过MySQL管理工具phpmyadmin连接修改
您也可以设置超级管理员帐号登陆后在系统后台修改,相关内容的翻译是
Most Headshot Kills (kills > 50)
最多爆头杀人 (杀人数 > 50)
Most Active Bomber
放雷包最多
Most Kills
杀人最多
Highest Headshot Kills % (kills > 50)
爆头杀人率最高 (杀人数 > 50)
Most Damage Given
最大杀伤
Most Bombs Defused
拆弹最多
Most Time Online
游戏时间最长
Highest Kills to Death Ratio
杀人比死亡率最高
Best Sharpshooter (kills > 50)
精确度最高 (杀人数 > 50)
Lowest Death to Kills Ratio (kills > 50)
死亡比杀人率最低 (杀人数 > 50)

附:Hitbox射击部位图全是0的解决办法
这是没有在服务器上安装插件造成的,请安装statsme,关于statsme的安装,点通论坛有大量的资料可以查阅
然后删除您原来的LOG记录,启用新的记录即可以

附:战队标识问题?
修改修改ps2安装目录下的clantags.cfg,这是ps2.2中需要玩家动手最复杂的一项事情,如果您无法完成,请阅读网络上Perl语法

附:关于帐号登陆过程中说到的PsychoStats plugin interface安装
需要
HLDS Server
AMXMOD 0.93即可
AMXMOD MYSQL组件被使用

注明:AMXMOD MYSQL组件被使用的标志为/addons/amx/modules.ini文件中
; MySQL access
addons/amx/dlls/mysql_ms_i386.so

安装PsychoStats plugin interface
第一步:拷贝ps22安装目录下的plugins\ps.amx到您游戏服务器的amx\plugins目录下,比如:addons\amx\plugins\
第二步:拷贝ps22安装目录下的plugins\ps.cfg到您游戏服务器的amx目录,比如:cstrike\addons\amx\
第三步:编辑amx的plugins.ini,安装ps.amx
以上方法是安装AMX插件的通用办法
第四步:编辑ps.cfg以符合您的数据库
第五步:重新启动游戏服务器

这样玩家可以自己定义名字,方法如下
游戏中打开控制台(按~键), 接着输入: "ps_password [password]" (示范中的 [password] 部分请输入您的密码)
您可以使用您的帐号(玩家游戏名)与密码登陆,能否登陆方式取决于您游戏服务器的类型及PS排名系统统计方式是否匹配,建议Steam服务器

使用该功能

附:中文CSS解决办法?
2.2目前还不提供CSS风格选择,所以可以下载这一CSS文件覆盖到您的web地址下的CSS文件即可以解决字体过小的问题,下载地址为http://61.132.118.125/psweb.zip

附:地图列表中出现unknow的解决办法?
修改ps2安装目录下的stats.cfg中defaultmap,使其与您的HLDS启动地图保持一致,如果您的HLDS启动地图是de_inferno,defaultmap为de_inferno,然后执行./install.pl -step db -reset最后执行stats.pl即可

附:过滤NO-CD的符号?
修改ps2安装目录下的stats.cfg中
[filters]
stripcd = 0为1
然后执行./install.pl -step db -reset最后执行stats.pl即可

附:远程游戏服务器日志取得办法?
首先运行游戏的服务器开通FTP相关服务,权限设置正确
然后修改修改ps2安装目录下的stats.cfg相关配置,可以登陆多台服务器,读取多个log目录
[downloadlogs]
binary     = 0
delete     = 0
download   = 0
host       = myhost.domain.com
localpath  = /home/lifo/logs/downloaded1
pass       = password
pasv       = 0
port       = 21
remotepath = logs/test1/
skiplast   = 1
user       = username

附:游戏服务器状态中能否显示中文服务器名称
很抱歉,只能使用字符,不能使用中文

附:怎样删除某个特定的玩家?
首先登陆管理员后台,查询玩家ID序号,这个ID序号应该是数据库序号
比如http://192.168.0.1.1/player.php?id=15中的ID序号
这个翻译当初不是很到位,PsychoStats没有向我提供语境


附:linux环境帮助?
环境,请在终端或者SSH登陆完成

第一步:配置网卡
#setup
选择Network configuration
填写相关参数
#reboot
重新启动服务器


第二步:服务选项
#setup
选择System services

保留
network
crond(如果您需要它执行计划任务)
sshd(如果您需要远程登陆)

启动
httpd
mysqld

linux下的安全问题是一个宽泛的东西,如有需要可以去www.chinaunix.com查询相关内容

第三步:修改apache及mysql
#cd /etc/httpd/conf
# vi httpd.conf

修改apache
ServerRoot "/etc/httpd"
服务器执行地址(填写您需要的,一般这里是系统自动探测,没有特别需要,请不要修改)

DocumentRoot "/var/www/html/songsong/web"
Web文件地址(填写您web发布地址,"/var/www/html/songsong/web"是举例)

DirectoryIndex index.html index.html.var index.php
索引文件类型,添加index.php类型

AddDefaultCharset GB2312
web服务的缺省语言修改成GB2312

AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps
AddType application/octet-stream .reg
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php

在AddType application/x-tar .tgz下面添加以上类型的MIME


修改MySQL
进入mysql目录
#cd /usr/bin

第一步:
设置超级用户密码
#./mysqladmin -uroot -password 您的密码
如果要修改超级用户密码可以使用
#./mysqladmin -uroot -p你的旧密码 password 你的新密码
牢记您的帐号为root及您的密码

第二步:
为Psychostats创建一个数据库
#./mysqladmin -uroot -p creat ps22
输入密码
然后可以安装了,安装步骤与上面的Windows部分一致


计划任务刷新
#crontab -r
删除全部计划任务
#crontab -e
59 23 * * 0-6 ./root/ps2.2/stats.pl
然后根据vi编辑工具进行编辑(字母A是开始编辑,完成后使用esc键然后:wq保存退出)
上面59 23 * * 0-6 ./root/ps2.2/stats.pl意思是每天晚上23:59执行/root/ps2.2目录下的stats.pl

激活
#cd etc/init.d
#./crond stop
#./crond start

其它问题参考Window2000,基本一致
发表于 2004-8-25 08:46:15 | 显示全部楼层 来自 中国–浙江–嘉兴
高高手啊,实在是高!!!!!

psychostats2.2.1b
现在它可以自动更新没??????
以前我用计划任务来刷新的!!!
回复

使用道具 举报

发表于 2004-8-25 10:51:56 | 显示全部楼层 来自 中国–广西–柳州
PS2和PS1采用完全不同的更新数据方式,PS2接收数据后直接便可写入MYSQL里,即与服务器端同步,而PS1则不行,所以不必用用计划任务来实现更新数据.

楼主的原创作品,希望可以加精!

还有一个我不太明白,PS2可以支持中文?应该是说楼主汉化吧,不知道是否汉化完成没?能否提供下载,谢谢!
回复

使用道具 举报

发表于 2004-8-25 11:27:12 | 显示全部楼层 来自 中国–浙江–杭州
佩服songsong
回复

使用道具 举报

发表于 2004-8-25 11:41:13 | 显示全部楼层 来自 中国–广西–玉林
顶一下!!慢慢看`
回复

使用道具 举报

发表于 2004-8-25 11:52:03 | 显示全部楼层 来自 中国–山东–青岛

有个问题

我安装过程中,当到了下面一步应该是:
>>> STEP: Test PS subsystems ...

Attempting to initialize PS CORE system ...OK

Attempting to initialize PS SAVER sub-system ...OK


但我出现的却是:

STEP: Test PS subsystems ...

Attempting to initialize PS CORE system ...
-------------------------------------------------------
Globle Symbol "$conf" requires explicit package name at c:\ps2.2/game/halflife/scanner.pm line 677
Compilation failed in require at c:\ps2.2\ps.pm line 1113
---------------------------------------------------------

不只是什么原因!请指教!
回复

使用道具 举报

 楼主| 发表于 2004-8-25 12:22:30 | 显示全部楼层 来自 中国–江苏–苏州–张家港市
Post by johndxj
我安装过程中,当到了下面一步应该是:
>>> STEP: Test PS subsystems ...

Attempting to initialize PS CORE system ...OK

Attempting to initialize PS SAVER sub-system ...OK


但我出现的却是:

STEP: Test PS subsystems ...

Attempting to initialize PS CORE system ...
-------------------------------------------------------
Globle Symbol "$conf" requires explicit package name at c:\ps2.2/game/halflife/scanner.pm line 677
Compilation failed in require at c:\ps2.2\ps.pm line 1113
---------------------------------------------------------

不只是什么原因!请指教!


这是PS的BUG~你去PS论坛注册一个帐号并激活,然后使用update.pl进行升级就可以解决你的问题

官方的解释在这里
http://www.psychostats.com/forums/viewtopic.php?t=10106
回复

使用道具 举报

发表于 2004-8-25 12:30:47 | 显示全部楼层 来自 中国–山东–青岛
按照官方的方法已经解决,非常感谢!
回复

使用道具 举报

发表于 2004-8-25 12:31:35 | 显示全部楼层 来自 中国–宁夏–银川
hoho...欢迎Songsong来发原创帖...^^

语言包还没提到?是不是有一个修正完整版的发布?
回复

使用道具 举报

 楼主| 发表于 2004-8-25 13:15:29 | 显示全部楼层 来自 中国–江苏–苏州–张家港市
这是国内第一份PS2.2说明文档,如果您要转摘/引用本主题,希望您注明出处(点通论坛)及我的名字Songsong,谢谢
内容不断完善,将不断更新完善,提供Windows及Linux下的全部使用帮助及问题解决办法


Psychostats自从2000年底的Ver1.0到今天的Ver2.2.b已经成长为HL系列游戏最为著名的排名系统。

2.X版本(2.2.B)与1.X版本相比的特点?

第一:采用MySQL大大提高刷新效率,避免1.x版本的重复刷新,每次只需要刷新新日志

第二:支持多语言系统,目前最新的2.2.B发行版中包含英语、俄语、葡萄牙语(巴西)、中文(简体)、中文(繁体)、丹麦语、斯洛伐克语

。更多的语言包将在不远的将来在其论坛上发布。由于PS官方没有UA那样具备统一的翻译团队,所以它的语言翻译全部由各国玩家自发提供翻

译稿,中文(简体)是由我来完成的。

第三:全面支持更多MOD及Steam,包括CS、DOD、NS等

第四:强大的后台管理功能,更加人性化的设计


运行系统要求?
支持全系列Windows2000/2003及Linux/Unix/BSD系统

您的系统应该具备以下权限
Web服务,建议采用Apache,IIS不是官方推荐的系统,本人也从来不在IIS下跑PHP
PHP权限,Linux Fedora Core 1/Linux Red Hat 9.0系统自带PHP都支持Psychostats2.2系统
MySQL数据库,Linux Fedora Core 1/Linux Red Hat 9.0系统自带MySQL数据库系统都支持
Perl权限

一旦您具备以上条件,则说明您可以安装并运行Psychostats2.2。

如果您需要远程传递Log及自动导出/导入数据库,则需要自行架设FTP服务器及用Shell编写脚本程序,这属于Psychostats2.2的扩展应用,一

般网络管理员都有能力完成,在此不多废话

怎样调试运行系统?
如果您使用Linux,并且对于Linux不是非常熟练的话,建议在安装时,选择“定制”安装,然后在“安装包”中选择最后一项(全部安装),

这样经过漫长等待完成安装的系统完全具备了运行Psychostats2.2全部要素,相关内容见后。

如果您使用Windows2000,则需要自行安装,全部安装包请在此下载

PHP安装
使用文件:php-4.3.8-Win32.zip

第一步:
解开后拷贝到C盘根目录下,并修改php-4.3.8-Win32为PHP,最终形成C:\php这样的目录结构,这是PHP官方推荐的结构

第二步:
拷贝C:\Php\Php4ts.dll到Windows的系统文件夹C:\WINNT\System下(C:\WINNT\System取决于您的系统安装地址)
拷贝C:\php\php.ini-dist到C:\WINNT下,将php.ini-dist修改为php.ini

第三步:
修改C:\WINNT\php.ini,将Windows Extensions下包含的;extension=php_gd2.dll修改为extension=php_gd2.dll


Apache安装调试
使用文件:apache_2.0.50-win32-x86-no_ssl.msi

如果您的系统无法打开msi发行的Windows Installer程序,请去微软的网站升级

安装过程中的
Network Domain:服务器域名,可以使用IP,外网使用外网IP,内网使用内网IP,如果需要映射的,填写内网IP
Server Name:服务器名称,随便填写
Admin Mailbox:管理员名称,随便填写

修改C:\Program Files\Apache Group\Apache2\conf下的httpd.conf,以下内容是特别需要注意

ServerRoot "C:/Program Files/Apache Group/Apache2"
服务器执行地址(填写您需要的,一般这里是系统自动探测,没有特别需要,请不要修改)


LoadModule php4_module C:\php\sapi\php4apache2.dll
使Apache支持PHP,在Dynamic Shared Object (DSO) Support添加上面一行,其中php4apache2.dll所在地址取决于您的PHP安装地址


DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
Web文件地址(填写您web发布地址,"C:/Program Files/Apache Group/Apache2/htdocs"是举例)


DirectoryIndex index.html index.html.var index.php
索引文件类型,添加index.php类型

AddDefaultCharset GB2312
web服务的缺省语言修改成GB2312


AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps
AddType application/octet-stream .reg
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php

在AddType application/x-tar .tgz下面添加以上类型的MIME



安装MySQL
建议安装到c:\下,安装完后在DOS模式(附件/命令提示)下进入c:\mysql\bin执行mysqladmin

第一步:
设置超级用户密码:mysqladmin -uroot -password 您的密码
如果要修改超级用户密码可以使用:mysqladmin -uroot -p你的旧密码 password 你的新密码
牢记您的帐号为root及您的密码

第二步:
为Psychostats创建一个数据库
mysqladmin -uroot -p creat ps22
输入密码



安装Perl
Perl的安装与Apache类似,非常简单,建议安装到c:\下
完成安装后开始/程序/ActiveSate ActivePerl5.8/Perl Package Manager执行

ppm> install TermReadKey
耐心等待完成,然后
ppm> install DBI
耐心等待完成,然后
ppm> install DBD-mysql
耐心等待完成,然后
ppm> quit


如果您可以顺利完成上面的步骤,则意味着系统构建已经全部完成

解开psychostats2.2.1b.zip到c:\下,修改为ps2,形成c:\ps2.2
这个目录是程序执行目录,不应该被web所发布,否则会有安全隐患

执行安装程序
通过附件/命令提示符进入DOS模式,到c:\ps2.2下执行install.pl

注释,因为在DOS下拷贝文字有点麻烦,所以在Linux通过SSH命令执行install.pl以拷贝文字,其步骤及解释与在win2000下完全一致

Linux/Unix detected (Perl v5.8.1)
Loaded language file 'english' successfully.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The PsychoStats v2.2 installation has several steps, all of which will be
handled automatically by this setup wizard. The wizard is interactive and will
ask you several questions along the way. New and veteran users will both find
this setup quick, easy and helpful.

*** UPGRADE NOTES ***
If you are upgrading from the previous version 2.1 and everything is currently
working for you, DO NOT run this install wizard. Run the 'upgrade.pl' script
instead. That will alter your database to the new format w/o losing any of
your current stats and will update your PsychoStats files on your website.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Press enter to continue ...
按回车继续

Before we begin installing PsychoStats v2.2 on your system I need to know
where your web server is located. If your web server shown below is set to
'localhost' this means the web server will be considered local to the machine
that you're running this install wizard.

Web server host: localhost [127.0.0.1]
Do you want to change your settings? [Y,n]:
是否要更改您的服务器类型设定,不要管127.0.0.1这个IP,一般选择n,如果是远程则选择Y,进行修改

Press enter to continue with next step
按回车继续下一步

>>> STEP: Verifying required perl modules ...
Searching for required perl modules ...
   x = module installed
  [x] DBI           v1.37
  [x] DBD::mysql    v2.9002
  [x] Data::Dumper  v2.121
All required perl modules are installed! Congratulations!

Press enter to continue with next step
检测系统是否支持DBI及DBD::mysql,如果全部为[x]则为通过,按回车继续下一步

>>> STEP: Database initialization and setup ...
SQL initialization file successfully loaded (34 tables).

A database needs to be setup for PsychoStats to use. In order to verify and
create the database you need to provide a user that has admin privileges on
the DB server. Follow the prompts below to setup the database. Each prompt
will show its current setting in [brackets]. If you do not want to change a
setting just press enter at the prompt.

WARNING: Your password, if given, will be echoed to the screen!

Most databases will require a username to connect with. If a default username
appears in the [] brackets and you need to use a blank username type in 'none'
(w/o quotes) at the prompt.
DB Username []: root
数据库用户,输入root或者您的帐号

Most databases will require a password to connect with. If a default password appears in the [] brackets and you need to use a blank password type in 'none' (w/o quotes) at the prompt.
DB Password []: xxxxxx
数据库密码,输入上步骤用户所使用的密码

Where is the MYSQL server? Enter 'localhost' if its on this same machine
otherwise enter the IP or hostname of the server.
DB Hostname [localhost]: localhost
数据库连接类型,一般使用localhost

Each database on a server has a different name. Which name will you use for
PsychoStats? We will try to create this DB later if it doesn't already exist.
DB Name [ps_stats]: ps22
Psychostats使用的数据库,这里使用我们在安装MySQL时建立的ps22

Choose a table name prefix. The default prefix is "pstats_" this helps keep
all related tables in the DB together. Each table in the DB will start with
this prefix. Just accept the default if you're not sure.
DB Table prefix [pstats_]: pstats_
ps22数据库的表前缀,便于数据库操作,可以采用pstats_或者您喜欢的

Should compression be used for your DB connection? This may or may not help performance (especially if your DB server is remote). If you experience any problems disable this.
DB Compression [0]: 0
数据库连接时是否压缩,建议为0

Checking for DB ps22@localhost ...DB EXISTS!
Preparing to create database 'ps22' table structure ...

If a table already exists with the same name in the 'ps22' database should it
be deleted and replaced with a new empty table? (any data in the original
table will be lost).
Delete existing tables first? [y,N]: N
是否删除已经存在的,选择N(因为您创建的数据库是空的,没有必要删除,如果失败后再次安装可以选择Y)

  Creating table 'pstatsclans' ...OK
  Creating table 'pstatsdefs_awards' ...OK
  Creating table 'pstatsdefs_events' ...OK
  -----------------省略-----------------
  Creating table 'pstatsplrvictims' ...OK
  Creating table 'pstatsplrweapons' ...OK
  Creating table 'pstatsrcons' ...OK
  Creating table 'pstatssessions' ...OK

Congratulations! DB 'ps22' has been fully initialized!

Press enter to continue with next step
按回车继续下一步

>>> STEP: Basic Configuration ...

Each question will show your current config setting in [brackets], If you do
not want to change the current setting just press <enter> at the prompt.

The 'logsource' option specifies where your logs are stored for your game
server. You can specify multiple log directories and each will be scanned in
the order given. Enter a blank line if you do not want to enter any more log
directories. To delete a directory from the list enter the number shown next
to it and press enter.

Current log sources (enter a blank line to stop).
An asterix '*' in front of the directory means the directory does not exist!
  0. * none *
LOGSOURCE 1: D:\cstrike1\logs
您的第一日志地址(填写您自己的地址)

Current log sources (enter a blank line to stop).
An asterix '*' in front of the directory means the directory does not exist!
   1. /root/old_logs
LOGSOURCE 2: D:\cstrike2\logs  
您的第二日志地址(填写您自己的地址)   

Current log sources (enter a blank line to stop).
An asterix '*' in front of the directory means the directory does not exist!
   1. /root/old_logs
   2. * /root/old
LOGSOURCE 3:
如果您有第三个日志地址,可以继续填写,直到您满意,否则就回车退出日志地址填写

The 'modtype' option specifies what MOD of the primary 'gametype' you're
playing.
Valid mods: cstrike, dod, ns
MODTYPE [cstrike]: cstrike
游戏类型,选择您的类型

The 'uniqueid' option specifies how players are tracked in the game logs.
Note: 'wonid' and 'steamid' are the same thing as 'worldid'.
Valid options: ipaddr, name, steamid, wonid, worldid
UNIQUEID [worldid]: name
统计类型,根据您的情况来决定
ipaddr适合针对IP统计
name适合针对玩家名字,比较常用,特别适合于大型网吧
steamid适合针对Steam系统,比较常用
wonid适合针对WonID系统(目前好象淘汰了)
worldid适合PS自己的全球ID系统



The [decay] 'skill' option specifies a percentage that will decay a players
skill value for each day they do not play since their last played date. It is
recommended that this value be kept low (less than 5%).
DECAY.SKILL [0%]: 2%
技巧统计对比率为2%,可以为0%-5%,不要超过5%

The [decay] 'minskill' option specifies the minimum value a players skill is
allowed to decay to. A players skill will never automatically decay lower than
this value but its still possible for a player to go lower if they simply
aren't playing that well.
DECAY.MINSKILL [1000]: 1000
技巧基础得分(每一个玩家一旦进入排名,赋予每人一个公平的起始分数),一般为1000,不要小于750

The 'servername' option should be a short name for your game server. The
themes can use this in their output.
SERVERNAME [Powered By PsychoStats v2]: Powered By PsychoStats v2
出现在页面顶部的标识,随便填

The 'serverip' option should be the IP:Port for your game server. The theme
will use this to show real-time server information by querying the server. If
you do not want this information to be displayed just leave the field blank.
SERVERIP []: 192.168.1.10:27015
监控服务器地址,这一监控是动态的,可以随时反映其在线状况,如果没有,可以为空

Very Important: You must provide a valid directory that the website files for
PsychoStats will be copied or uploaded to. This directory should be within
your web server directory tree.

'statsroot' specifies the directory where your PsychoStats website files will
be located.
THEME.STATSROOT [c:\inetpub\wwwroot\stats\]: C:\Program Files\Apache Group\Apache2\htdocs\
这是Psychostats2.2发布的主地址,这里填写上绝对地址

'statsurl' is an absolute URL pointing to the location of your stats on your
website. You do NOT put http://domain.com in front of this option. This will
usually resemble the statsroot option you entered above but w/o the phyiscal
directory path in front of it. Often only leaving the last directory name.
Example: If statsroot = '/var/www/stats/', then statsurl would be '/stats/'.
THEME.STATSURL [\stats\]: \
这是Psychostats2.2发布的文件所在的相对地址,这里是\
这两个地址非常关键,但是第一次安装往往容易搞错,错误的话导致图片显示不正常,当然可以在后面的配置文件中修改


Updating configuration ...

Press enter to continue with next step

>>> STEP: Test PS subsystems ...

Attempting to initialize PS CORE system ...OK

Attempting to initialize PS SAVER sub-system ...OK

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Required installation is now complete!
PsychoStats should now be able to load and store logs from this system.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Press enter to continue with next step
按回车继续下一步


>>> STEP: Copying theme to web server ...

PsychoStats uses 'themes' to produce its output for the stats. Listed below
are all the themes currently available on your system. Choose the theme you'd
like to use.

Available themes: psweb
Choose your theme [psweb]: psweb
psweb是目前唯一的选择,请输入psweb然后确定

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Theme config loaded for 'psweb':
  Theme name:  Psychostats.com
  Version:     2.2
  Author:      Stormtrooper
  Email:       stormtrooper@psychostats.com
  Total files: 235 (size: 421.10 KB)
  Dep. files:  12 (size: 96.07 KB)

Notes from the author:
        The "psweb" theme was designed to look just like the Psychostats.com
website. It will work for any of the currently supported mods. Adding new
support for a mod is as simple as adding a few new files to the theme. No
changes would have to be made to any of the current files within the theme.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Do you want to install this theme? [Y,n]: Y
是否安装这一风格,选择Y


The files for this theme will be copied into your statsroot
'C:\Program Files\Apache Group\Apache2\htdocs\'.

Copying [  0.08%][  324.00 B] themes\psweb\admin.html ...OK
Copying [  0.85%][   3.28 KB] themes\psweb\admin_body_awards.html ...OK
Copying [  2.37%][   6.38 KB] themes\psweb\admin_body_db.html ...OK
-----------------省略-----------------
Copying [ 99.64%][  442.00 B] themes\psweb\languages/slovak/usersearch.lng ...OK
Copying [ 99.87%][  994.00 B] themes\psweb\languages/slovak/weapon.lng ...OK
Copying [100.00%][  541.00 B] themes\psweb\languages/slovak/weaponlist.lng ...OK

The theme has dependant files that need to be copied over to your website. All
paths will be created automatically starting within the statsroot specified in
your config: 'C:\Program Files\Apache Group\Apache2\htdocs\' on your web
server.

Copying [  7.98%][   7.67 KB] psweb.css ...OK
Copying [  8.25%][  270.00 B] images\arrow_blue_asc.gif ...OK
-----------------省略-----------------
Copying [ 99.64%][  361.00 B] images\title_left.png ...OK
Copying [100.00%][  357.00 B] images\title_right.png ...OK
Done copying files.

Press enter to continue with next step
按回车继续下一步


>>> STEP: Uploading web related files ...

Updating web/config.php based on your local config ...
done.

Copying web files to web server.
Root destination: C:\Program Files\Apache Group\Apache2\htdocs\
Copying [  0.82%][   4.61 KB] admin.php ...OK
-----------------省略-----------------
Copying [100.00%][  925.00 B] smarty\plugins\shared.make_timestamp.php ...OK
Done copying files.

Copying weapon images to web server.
Root destination: C:\Program Files\Apache Group\Apache2\htdocs\images\weapons\
Copying [  0.31%][   1.08 KB] cstrike_ak47.gif ...OK
-----------------省略-----------------
Copying [ 97.38%][   8.91 KB] large\cstrike_usp.jpg ...OK
Copying [100.00%][   9.05 KB] large\cstrike_xm1014.jpg ...OK
Done copying files.

Copying map images to web server.
Root destination: C:\Program Files\Apache Group\Apache2\htdocs\images\maps\
  No files to copy.
Done copying files.

Press enter to continue with next step
按回车继续下一步



*** Install has been completed ***

Now that you've installed PsychoStats v2.2 the next step would be to run a
'stats update' to scan your log direcories for game and player stats.

Linux users can run the stats update by typing "./stats.pl" at your shell
prompt (w/o the quotes).

The first time you run the stats update it may take a long time depending on
the number of logs you have. Subsequent updates will be much quicker since
only new logs (after your last update) will have to be scanned. You will need
to periodically run the stats update so new stats are collected and inserted
into your DB.

Linux users can use their crontab and have the stats.pl process run
automatically at set intervals.

Once you have data in the database you should be able to browse to your
website stats URL to view the stats. For example: http://localhost/stats/

Press enter to exit installation.

Installation completed!
安装完成

附:怎样修正图片?

修正web地址下的config.php中的以下内容

http://192.168.0.1可以访问到C:\Program Files\Apache Group\Apache2\htdocs\为例

$conf['statsroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\';
$conf['imagesroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\image\';
$conf['weaponsroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\images\weapons\';
$conf['mapsroot']         = 'C:\Program Files\Apache Group\Apache2\htdocs\images\maps\';

上面是绝对地址

$conf['statsurl']         = '\';
$conf['imagesurl']         = '\images\';
$conf['weaponsurl']         = '\images\weapons\';
$conf['mapsurl']         = '\images\maps\';

下面是相对地址


附:地图图片
游戏HL游戏的地图数目众多,所以发行版不包含任何地图,可以去下载
http://www.psychostats.com/reque ... -02-09.zip?download
引用自
http://www.psychostats.com/downloads/miscellaneous

解开后拷贝到C:\Program Files\Apache Group\Apache2\htdocs\images\maps即可

如有其它地图,自己可以截图后修改,图片文件名与地图一致(不带BSP)然后上传就可以


相关下载

ActivePerl
http://61.132.118.125/soft/ActivePerl-5.8.4.810-MSWin32-x86.msi

Apache_2.0
http://61.132.118.125/soft/apache_2.0.50-win32-x86-no_ssl.msi

MySQL4.0
http://61.132.118.125/soft/mysql-4.0.20d-win.zip

PHP4.3.8
http://61.132.118.125/soft/php-4.3.8-Win32.zip

psychostats2.2.1b
http://www.psychostats.com/downloads/
回复

使用道具 举报

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

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