挖哈哈哈哈哈哈!关于CS服务起的问题解决了,不敢独享.

发表于:2007-07-04来源:作者:点击数: 标签:
问题是这样的: 我在RH9上建了个CS1.5的SERVER,可是在别的机器上要访问的时候总是一会儿能看见,一会儿看不见.用HLSW管理软件发现PING时通时断,但是用HLSW强行连进去以后能正常 游戏 ,PING很底,也没有丢包. 开始以为是防火墙在作怪,于是自己定制了规则,无效.关

问题是这样的:
我在RH9上建了个CS1.5的SERVER,可是在别的机器上要访问的时候总是一会儿能看见,一会儿看不见.用HLSW管理软件发现PING时通时断,但是用HLSW强行连进去以后能正常游戏,PING很底,也没有丢包.
开始以为是防火墙在作怪,于是自己定制了规则,无效.关闭防火墙,无效,于是抓狂,上论坛求助.无奈大虾可能认为这种问题不是该发到这里的,而小虾们又爱莫能助.
   碰巧看到一篇关于HL SERVER 41110 WIN32升级到41110A后HLSW无法正常访问的解决办法的文章,而cnbluestar朋友也认为是这个问题,于是马上实验看了一下,现在一切正常!感谢回贴的各位.
   解决办法其实很简单,在CS服务器配置文件SERVER.CFG里加入以下语句:
max_queries_sec "5" 
max_queries_sec_global "10" 
max_queries_window "30"
存盘退出,重起服务器,是不是OK了?
  希望大家能够少走弯路,让LINUX应用先普及起来.

BTW:副上LINUX CS SERVER的组建方法和软件下载联接.
先下载这3个文件,第3个是免CDKEY的补丁,如果要对外开放的话就要用到了。
http://www.cs.sandy.ru/ftp.sandy.ru/pub/games/HL/Linux/hlds_l_3110_full.tar.gz
#HLSERVER

http://www.jetstreamgames.co.nz/files/pub/halflife/cstrike/cs_15_full.tar.gz

免cdkey补丁
http://www.cs.sandy.ru/ftp.sandy.ru/pub/games/HL/Linux/engine_i386.so.tar.gz


建cs目录
cd /
mkdir cs

解压缩
tar zxvf hlds_l_31110_full.tar.gz
tar zxvf cs_115_full.tar.gz
mv hlds_l /cs
mv cstrike /cs/hlds_l/

用补丁覆盖原来的
cp engine_i386.so /cs/hlds_l/

建一个启动脚本叫做cs.sh
vi /cs/hlds_l

#/bin/bash/
export LD_LIBRARY_PATH=/cs/hlds_l:$LD_LIBRARY_PATH
./hlds_run -game cstrike -insecure +ip 192.168.1.100 +port 27015 +maxplayers 32 +map de_aztec -nomaster +sv_lan 1

启动服务
./cs.sh

如果要开两个CS的话,就将mapcycle.txt和server.cfg文件复制一份,改名为mapcycle1.txt和server1.cfg。

在建立一个启动脚本cs1.sh
vi /cs/hlds_l

#/bin/bash/
export LD_LIBRARY_PATH=/cs/hlds_l:$LD_LIBRARY_PATH
./hlds_run -game cstrike -insecure +ip 192.168.1.100 +port 27015 +maxplayers 32 +map de_dust2 -nomaster +sv_lan 1 +servercfgfile server1.cfg +mapcyclefiles mapcycle1.txt

启动服务
./cs1.sh

 wingc 回复于:2003-07-26 00:05:20
大哥,你现在给的这个cd-key破解才是能用的啊,上次给那个是个perl的破解脚本,就是在源文件里查找替换二进制代码,那个是不能用的。
这个能用了,呵呵,以后可以玩了!

 zhaoxfans 回复于:2003-07-26 09:56:20
好东西,收下.呵呵

 great.lin 回复于:2003-07-26 22:12:57
so good !!

 轩辕砍刀 回复于:2003-07-26 22:13:58
不错,支持原创。

 ys93 回复于:2003-07-27 01:36:35
生平第一次发贴被加精华,爽!

 cnbluestar 回复于:2003-07-27 11:38:54
恭喜,有空一起玩两吧?呵呵!

 david5337 回复于:2003-07-27 13:10:25
好!

 osoftware 回复于:2003-07-27 22:33:23
可惜linux下不能玩啊

 ys93 回复于:2003-07-27 23:31:44
就算有LINUX版的也不能玩啊,那个3D性能.................................

 m4a1 回复于:2003-07-28 10:29:35
thanks

 好好先生 回复于:2003-07-28 10:43:18
有机会我也配个游戏服务器玩玩,我是这个游戏的爱好者.可是找到的全是网络版的,玩不了.

 bluelotus 回复于:2003-07-28 11:10:05
呵呵,写得不错,等我也写一个cs服务器的安装指南,你的cs服务器的版本低了一点,我写一个最新的。

 jiasion 回复于:2003-07-30 11:52:41
呵呵~~,有机会偶也学做做。。。

 Anonymous1 回复于:2003-07-30 15:41:04
engine_i386.so 
你提供的这份文件好象不行哦~我换了这个文件才可以http://www.okgogogo.com/download/get.asp?id=6&type=4&url=1
还有就是没有防作弊补丁哦~
http://www.okgogogo.com/download/get.asp?id=96&type=4&url=1
C-D服务端4.1.0 官方版本(linux)

 ys93 回复于:2003-07-30 20:12:50
我提供的这个绝对可以.
关于反作弊:
下载METAMOD,一切插件的基础.
http://metamod.org/dl/dlls/metamod_i386.so.gz
将文件复制到../HLDS_L/CSTRIKE/DLLS下,用任一文本编辑器打开CSTRIKE目录下的liblist.gam文件,把gamedll_linux "dlls/cs.i386.so"改成gamedll_linux "addons/metamod/dlls/metamod_i386.so"
把secure "1"改成:"0",CD和VAC不能同时启动,改成0就是关闭VAC反作弊.
下载Cheating-Death4.1.0服务器端
http://down.ccsk.net/show.php?id=1297&down=4
解压后将文件复制到/CSTRIKE/ADDONS/CDEATH下
然后在CSTRIKE目录下建立文本文件命名为METAMOD.INI输入LINUX ADDONS/CDEATH/CHMOD.I586.SO
路径及文件名根据实际情况决定.
现在重起吧,应该有成果了.

 ys93 回复于:2003-07-30 20:14:51
Auto-restarting the server on crash

Console initialized.
Protocol version 46
Exe version 3.1.1.1
Exe build: 22:35:19 Apr 29 2003 (2378)
Auth Server
Server IP address 127.0.0.1:27016

   Metamod version 1.16  Copyright (c) 2001-2003 Will Day <willday@metamod.org>
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.

CDMOD: Cheating-Death has successfully hooked the game dll.

   Cheating-Death v3.3.1
   This software is free and comes
   with ABSOLUTELY NO WARRANTY.
   http://www.unitedadmins.com/cdeath.php

Master server communication disabled.
看见这个就成功了.

 zuogang 回复于:2003-07-31 09:02:52
我的cs服务器是在rh8下安装的,在rh9下ping值比rh8要高。但不管是rh8还是rh9也好。都有lag现象。别人都说卡。我的服务器是赛扬850的,256M的内存,除了syslogin和network服务外什么服务都没开,8个人玩的时候。用top看cpu才使用了30%。内存也够。为什么还是有lag呢?大家可以来看看,服务器地址:cs.tugbc.com:27016

 Anonymous1 回复于:2003-07-31 11:40:29
Auto-restarting the server on crash
/cs/hlds_l/engine_i386.so: undefined symbol: SteamStartValidatingNewValveCDKey
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with
 solving this problem
Thu Jul 31 11:39:22 HKT 2003: Server Died

 Anonymous1 回复于:2003-07-31 11:58:40
Auto-restarting the server on crash
Host_Init
Added packfile /cs/hlds_l/valve/pak0.pak (985 files)
Protocol version 46
Exe version 3.1.1.0
Exe build: 14:17:24 Sep 26 2002 (2163)
Auth Server
Server IP address 127.0.0.1:27015
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_battery.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_antidote.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_security.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_longjump.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_9mmclip.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/shotgunshell.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_shotbox.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_weaponbox.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/zerogxplode.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/WXplo1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/steam1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/bubble.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/bloodspray.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/blood.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/b-tele1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/c-tele1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/laserbeam.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/laserdot.spr
PackFile: /cs/hlds_l/valve/pak0.pak : models/grenade.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/explode1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : models/hgibs.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/agibs.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/flare1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/gunpickup2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/9mmclip1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/reload1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/reload3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/357_cock1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/debris1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/debris2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/debris3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/bullet_hit1.wa
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/bullet_hit2.wa
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/weapondrop1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/ammopickup2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/explode3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/explode4.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/weapons/explode5.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/npc_step1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/npc_step2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/npc_step3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/npc_step4.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/debris/wood1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/debris/wood2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/debris/wood3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/plats/train_use1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/buttons/spark5.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/buttons/spark6.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/debris/glass1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/debris/glass2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/debris/glass3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/flashlight1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/bodysplat.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/wpn_hudoff.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/wpn_hudon.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/wpn_moveselect.
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/wpn_select.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/wpn_denyselect.
PackFile: /cs/hlds_l/valve/pak0.pak : sound/player/geiger6.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/player/geiger5.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/player/geiger4.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/player/geiger3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/player/geiger2.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/player/geiger1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/null.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/suitchargeok1.wa
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/bodydrop3.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/common/bodydrop4.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/doors/doormove8.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/doors/doorstop8.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/medshot4.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/medshotno1.wav
PackFile: /cs/hlds_l/valve/pak0.pak : sound/items/medcharge4.wav
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_battery.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_antidote.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_security.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_longjump.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_9mmclip.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/shotgunshell.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_shotbox.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/w_weaponbox.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/zerogxplode.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/WXplo1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/steam1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/bubble.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/bloodspray.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/blood.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/b-tele1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/c-tele1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/laserbeam.spr
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/laserdot.spr
PackFile: /cs/hlds_l/valve/pak0.pak : models/grenade.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/explode1.spr
PackFile: /cs/hlds_l/valve/pak0.pak : models/hgibs.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : models/agibs.mdl
PackFile: /cs/hlds_l/valve/pak0.pak : sprites/flare1.spr
Master server communication disabled.

 Anonymous1 回复于:2003-07-31 12:02:17
还有就是要添加什么才可以使用OP进行远程管理呢?

 tian_005 回复于:2003-07-31 13:33:33
下了个4。0的MYSQL,前面一切都很正常,我/BIN 。/MYSQL 
出现ERROR 2002 :cannot connect to lcoal mysql server through socket "/tmp/mysql.sock" (2)
我不知道那里错,斑竹你能拿,把答案写清楚点,555我很菜的

 ys93 回复于:2003-08-01 11:26:21
在SERVER。CFG里加入rcon_password xxxxxx就能远程控制了。

 mofaser 回复于:2003-08-31 10:13:07
[quote:962b3d57ee="Anonymous1"]Auto-restarting the server on crash
/cs/hlds_l/engine_i386.so: undefined symbol: SteamStartValidatingNewValveCDKey
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with
 ..........[/quote:962b3d57ee]     

我也是这样,请问怎么解决的?

 mofaser 回复于:2003-08-31 10:15:48
up

 nozxb 回复于:2003-09-01 12:33:17
求CS战网程序下载网址,我到那儿都下不完:(
好多下到一半就再也连不上去了:(

 amilus 回复于:2005-03-02 02:42:46
不顶不是人~~~
http://cs.sfku.com

原文转自:http://www.ltesting.net