搜索
查看: 2528|回复: 6

大家快进啊?救救我啊?

[复制链接]
发表于 2003-10-9 03:21:21 | 显示全部楼层 |阅读模式 来自 中国–广东–佛山–南海区
关于CS排行榜的问题?
我按照单身的至尊宝写的操作操作步骤做了个CS排行榜?
我的系统是WIN2000 ,CS服务器目录安装在c:\Hlserver
装有IIS
首先安装了ActivePerl
然后安装从点通网友俱乐部下载下来的psychostats汉化版,
第三个步骤选了dedicated server独立服务器(hlds.ese)即每三个选项
第四个步骤即你的cs服务器的日志文件所在目录在C:\hlserver\logs
第五个步骤即你的排行榜web页面文件所在目录C:\hlserver\cstrike\stats\stats
之后我选择的是html模式?

stat.cfg设置文件如下:# PsychoStats main config file.
#
# NOTE: This file is not case sensitive & whitespace does not matter,
#       unless noted. Set your tab size to "8" in your editor, if this
#        file does not format correctly on your system.
#

  # location of logs directory(s). 'logpath' can have more then
  # one directory listed. PsychoStats will parse through each directory
  # for the number of days specified and read all logs found into one
  # stats page. Note the "{", "}" are required, and each directory name
  # must be on its own line. The directories are loaded in the order given.

# 你的cs服务器的日志文件所在目录
LogPath                = {
C:\hlserver\logs\cstrike\logs
}

  # Destination HTML directory. This will usually be a path in your
  # webserver root somewhere.
# 你的排行榜web页面文件所在目录
HtmlPath        = C:\hlserver\cstrike\stats\stats

  # Define what type of server you're running. Changing this affects how
  # weapon and map images are loaded. The word here is prefixed to all
  # images, ie: cstrike_mp5navy.gif for a CS weapon.
  # known valid options: cstrike, dod

modType                = cstrike

  # Control the layout of the generated HTML pages. The word value given
  # should be a directory name under the 'themes' directory. Make sure
  # you're using a theme that is compatable with the MOD you're using.
# 排行榜的工作模式html或php
HTMLtheme         = cstrikehtml19
# HTMLtheme         = cstrikephp19

  # 'picspath' is where your thumbnail pictures are located for the
  # map names. These should be full pathnames, NOT URLs.
  # The 'dlpath' directory marks the location of where you store your
  # maps for download. If you don't provide maps for download, you don't
  # need to worry about it.
# 你的排行榜中地图图片的位置
PicsPath        = C:\hlserver\cstrike\stats\stats\images\mappics
# 你的CS服务器的地图目录的位置
DLPath                = C:\hlserver\cstrike\maps

  # If a theme has a 'copy' option it will copy any files listed for it
  # to the HTMLPATH if it does not already exist. Setting this option to
  # 1 will force the files to be copied even if the file already exists
  # in the HTMLPATH directory. If you're having problems with images not
  # coping correctly, make sure this is set to 1.

ForceThemeCopy        = 1

  # Ignore log files that were not closed properly? A log file that wasn't
  # 'closed' properly means that either the server crashed during the
  
  # server info.
  # CS服务器的名称
serverName        = AOSEN CS SERVER
  # CS服务器的地址:端口
serverIP        = 192.168.0.90
  # web服务器的名称
serverDomain        = http://192.168.0.90

  # info on server admin/owner. leave anything blank to be anonymous.
  # You can also edit the index file(s) for the theme and just remove
  # these variables if you do not want them shown.
  # 管理员的ID
adminAlias        = BBS
  # 管理员的电子邮件
adminEMail        = mynet8848@sina.com

  # enable/disable reporting verbosity

ReportErrors        = 1        # If enabled, NON-fatal errors will be logged
ReportCrashes        = 0        # If enabled, server crashes (detected from logs) will be logged.
                        # Note, ReportErrors must be 1 for this to report anything.

  # control how player stats are reported.

RegisteredOnly        = 0        # Only rank players that are registered?
BaseSkill        = 1000  # Base skill for all players. Do not set this too low (<500)

MaxDays         = 14          # number of days of logs to scan.
MaxPlayers         = 150        # MAX# of players shown in Ranking list.
MinConnected         = 2        # min# of players that must be connected in order
                        # for stats to start gathering from a log file.
MinSkill         = 500        # Skill rank needed.
MinKills         = 10          # min# of kills needed to appear in list
MinDeaths         = 1         # min# of deaths needed to appear in list
MinKDR          = 0.10        # min Kill:Death ratio needed to appear in list
MinTime         = 10m        # min game time needed to rank. format: "1d1h1m"
                        # where d=day,h=hour,m=minutes.
MinRounds         = 0        # min# of rounds played needed to rank (not valid in DOD)

UseAliases        = 1        # Toggle the use of player aliases
RemovePlayers        = 1        # 1 = Remove players that have ZERO kills + deaths.
                        # This is useful to save memory and to get rid of  
                        # all those useless names.

AutoBanDeny        = 1        # toggle auto denying for players that have been BANNED
MaxKickDeny        = 5        # total times plr was kicked before they are denied
MaxCheatDeny        = 2        # total times plr cheats before they are denied
                        # set to 0 to disable

DeleteOldPlayers = 1        # Deletes all old Player HTML files before new files are
                        # created. This stops player pages from building up in the
                        # HTMLPATH (only useful when PlayerHTMLtype is not RANK)
DeleteOldClans   = 1        # Deletes all old Clan files, same as above.
DeleteOldWeapons = 1        # Deletes all old weapon files.
DeleteOldAwards  = 1        # Deletes all old award files.
DeleteOldMaps    = 1        # Deletes all old detailed map files.


  # How to create player and clan files.
  # RANK  = use rank
  # NAME  = use name
  # WONID = usr plr wonid (playerHTMLtype only)
  # MIME  = encode name with base64 (recommended)

PlayerHTMLtype         = NAME
ClanHTMLtype         = NAME


  # PlayerID: How players are tracked and recorded.
  # NAME   = use player names as the unique ID for each player. (case sensitive)
  # LCNAME = use player names (case in-sensitive)
  # WONID  = use player WONIDs ...
  # 排行榜的统计模式
PlayerID         = NAME


  # Create Clan HTML stat pages. PsychoStats can try and figure out what
  # clans have connected to the server and groups all the members in each
  # clan together.  This has side-effects since PsychoStats can't be 100%
  # accurate as to what is a clan (it does a pretty good job, however).
  # But with the settings below and the help from the clantags file you can
  # help tweak what a clan is defined as.

CreateClans                 = 1                # 1 = Create clan stats. 0 = don't.
MinClanMembers                = 3                # Min # of members needed to pass as a 'clan'.
MinClanKills                = 50                # Min # of combined kills needed to pass.
MinClanSkill                = 500                # Min avg skill needed for the clan to pass.
MinClanKdr                = 0.0                # Min Kill Ratio needed for the clan to pass.
MinClanRank                = 0                # Min avg rank needed for the clan to pass.
MinClanMemberKills        = 1                # Min kills needed for member to be included in clan
MinClanMemberDeaths        = 1                # Min deaths ...


  # Enable clan debugging. This should always be disabled unless you're having a
  # clantag or clanmember problem (like a 'valid' clan never appears in the
  # clan listing). This will cause PS to output the reason why a clan was denied
  # from the clan listings. So on large servers, this will OUTPUT A LOT of info.
  # All info is LOGGED, so you can simply view the stats.log after you update to
  # view the results.

ClanDebug                = 0               


  # Create detailed map stat pages. PsychoStats will create detailed pages
  # for each map, showing the top players in many different views of the
  # map. Such as most kills, hostage rescues, or bombings, etc.
  # This requires some extra processing time and you can toggle this
  # option on or off. Toggling this off does not effect the creation of
  # the standard 'maps.html' file.

CreateMapPages        = 1
MapAwardMax        = 10        # Maximum # of players to list for each detailed
                        # map player listing

  # Maps that should NOT be included in stats. Partial words can be used to
  # exclude all maps that match. e.g.: using "es_" would exclude all "ES" type maps.
  # format: one line, each mapname or partial word is seperated by a space.
  # e.g.: ExcludeMaps = cs_speedball de_suckmap as_

ExcludeMaps = unknownmap


  # default map used when the current map is unknown. This is only needed
  # if you use the command 'log on' in your server.cfg, instead of the
  # 'autoexec.cfg'.  Its recommended you use the autoexec.cfg for the
  # 'log on'. If the server.cfg is used, then the HLDS engine will not
  # report the first map loaded, and thus this option will need to be set
  # to the map you use to start the server.

DefaultMap  = unknownmap

this is extremely verbose!
                                # But is useful for troubleshooting FTP problems
C:\hlserver\logs\cstrike\logs




并在CS服务器的server.cfg 加入logs on 具体设置如下
// 这个文件将会设置您的服务器,当您换局时。
// 单身的至尊宝/小凡 制作

log on

//服务器密码(客户端进入游戏密码) "" 表示没有
sv_password ""

// 每局时间30分钟
mp_timelimit 45
.........
// 战术手电 允许1/禁止0
mp_flashlight 1


之后执行执行c:\psychostats1.9\stats.pl
查看排行榜首页在c:\hlserver\cstrike\stats\index.html

之后我和我的同事打开服务打了50分钟左右,换了一次地图,
之后执行执行c:\psychostats1.9\stats.pl 并查看查看排行榜首页c:\hlserver\cstrike\stats\index.html
发觉没有显示内容,只显示服务器信息和最近更时间是2003年10月8日的7点59分,请大家帮下我?为什么啊?
还有怎看有没有log生成,生成的文件是什么内型的?谢谢




18
发表于 2003-10-9 07:42:21 | 显示全部楼层 来自 中国–辽宁–沈阳
尽管WINDOWS下的我没用过,但我知道在LINUX下有个定时执行的文件,用于生成新的LOG,我想在WIN下也应该有此文件,只要设定定时执行,就可以生成阶段性的LOG文件,显示就有内容了


我之所以回答你是因为你确实想搞清楚,继续努力,一定能成功的
回复

使用道具 举报

 楼主| 发表于 2003-10-9 09:08:28 | 显示全部楼层 来自 中国–广东–佛山–南海区
打了幅图了,log文件也生成了,但六个文件log文件才5.5K这么小,但在c:\hlserver\cstrike\stats\index.html  显示no players to display
高手指点一下啊?
回复

使用道具 举报

 楼主| 发表于 2003-10-9 16:57:46 | 显示全部楼层 来自 中国–广东–佛山–南海区
会的讲下原因啊啊?
回复

使用道具 举报

 楼主| 发表于 2003-10-10 01:45:40 | 显示全部楼层 来自 中国–广东–佛山–南海区
我要晕了啊?怎么搞也不行啊, 问题还是这样啊,大家请看如网址
http://bbs.dt-club.net/showthread.php?s=&threadid=6924
回复

使用道具 举报

 楼主| 发表于 2003-10-10 05:37:30 | 显示全部楼层 来自 中国–广东–佛山–南海区
没人帮手吗?
回复

使用道具 举报

 楼主| 发表于 2003-10-10 10:01:08 | 显示全部楼层 来自 中国–广东–佛山–南海区
很无奈
回复

使用道具 举报

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

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