搜索
查看: 2472|回复: 5

[求助] 有人会做HLTV吗??

[复制链接]
发表于 2002-12-26 19:23:48 | 显示全部楼层 |阅读模式 来自 湖北武汉
限于条件,偶今天试了下在自己的LAN里建一个HLTV服务器,按照英文README里把快捷方式的端口和HLTV端口都填好了,而且HLTV。CFG也设置无误(HLTV快捷方式如下:D:\反恐精英1.5\hltv.exe +10.0.13.61:27015 -port 27021 HLDS快捷方式如下:D:\反恐精英1.5\hlds.exe -game cstrike 10.0.13.61-port 27015 +maxplayers 18 +map de_dust2 -nomaster +sv_lan 1)我的LAN IP是:10.0.13.61,我开始以为是自己建服务器不能用HLTV直接看,后来在LAN里另一台主机上建立游戏,把快捷方式的IP改了,然后点击HLTV快捷方式,可是窗口提示:ERROR! SYSTEM:dispatchcommand:command“10.0.13.61” NOT REGISTERED!
当然了我用D版的CS,难道非要装正版的才能做???不是吧?
我确定快捷方式里的IP和端口都没错(我用LAN里的IP),是什么问题了?望各位有谁熟悉HLTV的指点一下~~~谢谢~~~
 楼主| 发表于 2002-12-26 19:26:23 | 显示全部楼层 来自 湖北武汉
这是我的HLTV。CFG大家看下(我想应该没问题)
-------------------------------------------------------------------------
// HLTV Proxy configuration file

// HLTV proxy executes this file on start up
// This file should only be edited if you want to broadcast a game

// set HLTV proxy name as shown in score board
name                         "606 Xabre HLTV Proxy"

// hostname                 "606 Xabre's CS HLTV Proxy"

// set offline info text clients will see as reject reason if HLTV isn't broadcasting yet
offlinetext "Sorry, game is delayed. Please try again later."

// delays broadcasting for 30 seconds
delay                         30.0

// auto director addes 1/2 slowmotion with a probability of 0.2 for important events
slowmotion 0.5 0.2
               
// keep multicast disabled until you're definitely sure
// that your LAN or ISP supports multicast
multicast                 0               

// allow 3.5 KByte/sec as client rate. This is good a value
// for internet broadcasts. On LAN you may set this value to 10000
maxclientrate                10000               

// log HLTV console in proxy.log
// logfile                1               

// local chatting for HLTV spectators enabled
chatmode                1

// if game server is paswword protected, enable this line
// serverpassword        SecretServerPassword

// proxy's adim password for rcon, commentator etc.
adminpassword        "squall"

// allow joingame for HLTV spectators
allowjoingame                0

// show message for 5 seconds each 60 seconds in center of X axis (-1) and
// above help text bar (0.85). Color given as hexadecimal RGBA .
loopcmd 1 120 localmsg "You're watching HLTV. Visit www.valvesoftware.com" 5 -1 0.9 FFA000FF


// hltv.wad contains the HLTV banner and my be different on each proxy
// banner format should be 240x48, 256 colors (same like player logo in pldecal.wad)
// decalfile "hltv.wad"

// hltv.tga will be shown instead of the default HLTV logo in spectator GUI
// bannerfile "hltv.tga"

// these commands will be executed on connecting spectator client and may be used
// to adjust settings for HLTV (for example voice parameters)
signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for HLTV"

// show message for 5 seconds each 60 seconds in center of X axis (-1) and
// above help text bar (0.85). Color given as hexadecimal RGBA .
//loopcmd 1 60(每隔60秒) localmsg "You're watching Xabre's CSTV. Visit http : / / Beckonline.yeah.net"(显示的信息内容) 5(显示5秒) -1(X轴-1表示中间) -1(Y轴-1表示中间) 7700FFFF(RGBA颜色值:红、绿、蓝、透明度 16进制2位表示)
loopcmd 1 60 localmsg "You're watching Xabre's HLTV. Visit http://beckonline.yeah.net"/ 5 -1 -1 FF0000FF


好象除了快捷方式和这个CFG应该没有要设置的东西了吧???
望强人指点~~谢谢:han:
回复

使用道具 举报

发表于 2002-12-26 19:59:54 | 显示全部楼层 来自 北京

  1. linux下HLTV服务器建设方法(也适合WIN2000)
  2. --------------------------------------------------------------------------------
  3. 作者:欠费停机


  4.   这两天很多网上的朋友给我留言问我关于HLTV的做法加上我那个不在争气的电子邮箱。不得不在此借助CSCHINA向广大网友说声对不起。现在借助这个机会把我没有回答的问题(关于HLTV)告诉大家

  5. 在WIN2000 下建设HLTV服务器的方法网上有很多文章都做了很详细的介绍。在此暂略
  6. LINUX下建设HLTV服务器 和建设CS服务器的方法基本上都一样 只是配置文件的和执行文件不一样而已:HLTV.CFG 在LINUX下需要建启脚本。启动脚本的做法和LINUX下建CS服务器的脚本做法一样:
  7. #/bin/bash
  8. ./hltv +connect 192.168.0.1:27019 -port 27015 -nomaster
  9. 以上是一个最简单HLTV脚本
  10. HLTV的基本脚本如下:
  11. hltv +connect localhost:port -port 27020 +rate 4000 -maxclients 50
  12. 如果是局域网的话就是要加上
  13. hltv +connect localhost:port -port 27020 +rate 5000 -maxclients 50 -nomaster"
  14. 现在详细的说明一下命令行:
  15. connect ip:port 需要连接的服务器IP和端口号
  16. rate x 用户可用的最大带宽或者速率
  17. -maxframes 设置最小缓冲帧(默认是2400)
  18. -port HLTV服务器的端口号
  19. -maxclients 可以连接到该服务器的最大人数(默认128)
  20. -nomaster 局域网用

  21. 现在说HLTV。CFG命令
  22. connect 连接指定端口的服务器
  23. disconnect 断开服务器连接
  24. quit 退出
  25. exit 和QUIT一样
  26. retry 重新连接服务器
  27. autoretry 如果N》0 服务器在每N秒连接服务器
  28. name 设置名字
  29. password 服务器密码
  30. clients 例表所有连接的用户ID
  31. kick 剔除
  32. say 向每个人说话
  33. infotext 设置游戏文本信息
  34. rcon 为另外的游戏设置远程控制
  35. rcon_address 设置远程控制目标
  36. rcon_password 设置远程控制密码
  37. proxypassword proxy的密码
  38. clientpassword 用户密码
  39. rate 每秒发送的字节大小
  40. updaterate 每秒的更新速率
  41. maxclientrate 设置每个用户的带宽大小
  42. delay 延迟时间(推荐为30S)
  43. 。。。。。 其他的可以参看README
  44. 附录 HLTV。CFG

  45. Here is the default
  46. // HLTV Proxy configuration file
  47. //
  48. // HLTV proxy executes this file on start up
  49. // This file should only be edited if you want to broadcast a game

  50. // set HLTV proxy name
  51. name "HLTV Proxy"

  52. // set info text
  53. infotext "Visit [url]http://www.valvesoftware.com[/url]"

  54. // delays broadcasting for 30 seconds
  55. delay 30.0

  56. // keep multicast disabled until you definitely sure
  57. // that you're LAN or ISP supports multicast
  58. multicast 0

  59. // allow 10 KByte/sec as client rate. This is good a LAN value,
  60. // for internet spectators use 3000 or 4000 Bytes/sec
  61. maxclientrate 10000

  62. // log HLTV console in proxy.log
  63. logfile 1

  64. // local chatting for HLTV spectators enabled
  65. chatmode 1

  66. // proxy password for rcon
  67. // proxypassword MyProxyPassword

  68. // disallow joingame for HLTV spectator
  69. allowjoingame 0

  70. Tweaks

  71. Change this to what ever suits you. It will show up when a client presses the "server info" button in the server list window.
  72. // set HLTV proxy name
  73. name "Techies HLTV Proxy"

  74. Set this to what ever you like. It will show up when a client presses the "server info" button in the server list window.
  75. // set info text
  76. infotext "Visit [url]http://www.techie.net.nz[/url]"

  77. Reduce the maxclientrate unless you are on a LAN and have a powerful server. The rate of 5000 is more than adequte.
  78. maxclientrate 5000

  79. Uncomment the proxypassword so that it looks like
  80. // proxy password for rcon
  81. proxypassword catsdogs

  82. set logfile to 0 so that you dont waste hdd space. logfile set to 1 is useful when your debugging your hltv server
  83. // log HLTV console in proxy.log
  84. logfile 0

  85. 好了~! 又是一大篇渣渣~~ 呵呵~~~~~ 有问题的话就快M我哦!
  86. 更正一下我的邮箱是39633733@sina.com.cn
  87. [email]zhangji1979@yahoo.com.cn[/email]
  88. QQ: 5877297 四川成都



  89. 作者:单身的至尊宝  来源:[url]http://nickcs.yeah.net[/url]  类别:服务器类  日期:2002.08.20  今日/总浏览: 7/2568  


  90.   看了上一位朋友的文章感觉介绍的已经十分详细了,呵呵,不过美中不足的是hltv.cfg的内容没有翻译,呵呵,在下不才,翻译了一下,(其实在我的汉化包里早就放了进去但没有宣传,呵呵。)
  91. hltv.cfg内容如下:

  92. // HLTV Proxy configuration file

  93. // HLTV proxy executes this file on start up
  94. // This file should only be edited if you want to broadcast a game

  95. // set HLTV proxy name as shown in score board
  96. // 观众服务器在分数板上的名称
  97. name "nickcs.yeah.net Game TV"

  98. // 观众服务器的名称
  99. hostname "Nick's Game TV"

  100. // set offline info text clients will see as reject reason if HLTV isn't broadcasting yet
  101. // 被观众服务器踢出的客户端看到的踢出原因的文字。
  102. offlinetext "Sorry, game is delayed. Please try again later."

  103. // delays broadcasting for 30 seconds
  104. // 延迟播放比赛多少秒
  105. delay 30.0

  106. // auto director addes 1/2 slowmotion with a probability of 0.2 for important events
  107. slowmotion 0.5 0.2

  108. // keep multicast disabled until you're definitely sure
  109. // that your LAN or ISP supports multicast
  110. multicast 0

  111. // allow 3.5 KByte/sec as client rate. This is good a value
  112. // for internet broadcasts. On LAN you may set this value to 10000
  113. // 最高客户端速率,Internet互联网 3500 , Lan/IPX局域网 10000
  114. maxclientrate 3500

  115. // log HLTV console in proxy.log
  116. // 是否记录HLTV日志文件到proxy.log文件
  117. logfile 1

  118. // local chatting for HLTV spectators enabled
  119. // 谈话模式 0禁止 1连接到同一个观众代理服务器的观众可以相互谈话 2 所有观众都能相互谈话
  120. chatmode 1

  121. // if game server is paswword protected, enable this line
  122. // serverpassword SecretServerPassword

  123. // proxy's adim password for rcon, commentator etc.
  124. // adminpassword "mypassword"

  125. // allow joingame for HLTV spectators
  126. // 允许客户端使用joingame命令加入游戏。
  127. allowjoingame 1

  128. // show message for 5 seconds each 60 seconds in center of X axis (-1) and
  129. // above help text bar (0.85). Color given as hexadecimal RGBA .
  130. //loopcmd 1 60(每隔60秒) localmsg "You're watching Nick's CSTV. Visit http : / / nickcs.yeah.net"(显示的信息内容) 5(显示5秒) -1(X轴-1表示中间) -1(Y轴-1表示中间) 7700FFFF(RGBA颜色值:红、绿、蓝、透明度 16进制2位表示)
  131. loopcmd 1 60 localmsg "You're watching Nick's CSTV. Visit http : / / nickcs.yeah.net" 5 -1 0.85 5577FFFF


  132. // hltv.wad contains the HLTV banner and my be different on each proxy
  133. // banner format should be 240x48, 256 colors (same like player logo in pldecal.wad)
  134. // 观众服务器的自定义Banner(横幅)大小:240x48,256色
  135. // decalfile "hltv.wad"

  136. // hltv.tga will be shown instead of the default HLTV logo in spectator GUI
  137. // 观众服务器的自定义Logo在观察者的界面上
  138. // bannerfile "hltv.tga"

  139. // these commands will be executed on connecting spectator client and may be used
  140. // to adjust settings for HLTV (for example voice parameters)
  141. // 设置客户端的语音部分
  142. signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for Nick's Game TV"



  143. 作者: 单身的至尊宝
  144. 来源: [url]http://nickcs.yeah.net[/url]



复制代码
回复

使用道具 举报

发表于 2002-12-26 23:59:45 | 显示全部楼层 来自 福建厦门
顶 !
回复

使用道具 举报

发表于 2002-12-27 09:13:10 | 显示全部楼层 来自 河北石家庄

cool!

cooool!!!
回复

使用道具 举报

 楼主| 发表于 2002-12-27 09:56:38 | 显示全部楼层 来自 湖北武汉
好文啊~~~~精彩嘿嘿~~~顶
回复

使用道具 举报

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

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