这是一老外写的,好像和斑竹的方法差不多
Allows to start a server for Counter-Strike v1.5 in secure mode without connecting to external net (internet usually). The players also do not need to be connected to internet.The program was written on the java language. That's why the file's extension is JAR - it's an archive with compiled classes. The program needs java-machine (JRE) to work. JRE can be downloaded from java.sun.com and has size of several megabytes.
Program is freeware and there're no garanties for it. Tested under linux and Windows XP. Both server and the program worked in different combinations on different OS.
download
How to run secure server emulator
Install java-machine.
Place the program file to some folder. If you choose to install it to computer with HLDS-server, create separate folder, not in tree of Half-Life.
Get secure modules and put them to this folder. Keep directory structure! Modules can be downloaded from speakeasy.net using the utility.
Change "secure" section of file Half-Life\valve\woncomm.lst on server and client's computers like this:
Secure
{
emulator.machine.ip:27012
}
Make sure you do not have a file called "woncomm.lst" in your Half-Life\cstrike folder. If you do, delete it. This file should only reside in your Half-Life\valve folder.
Start emulator:
cd emulator folder
java -jar vac.jar
Note: It is not good to run like this:
java -jar \vacemufolder\vac.jar
Emulator will attempt to load secure modules from current_directory\cstrike\*.dll and fails if the current_directory don't contains "cstrike" folder with modules.
Start HLDS in secure mode.
How to download modules from speakeasy.net
Find computer directly connected to internet, not behind http-proxy. UPD protocol support required.
Install java-machine, sorry, but java-programs don't work without it.
Place the utility to some folder
Run utility in download mode:
java -jar vac.jar load
For CS module_name is
cstrike/ModuleC.dll for client side
cstrike/ModuleS.dll for windows server
cstrike/ModuleS_i386.so for linux server.
For DoD server:
dod/ModuleC.dll
dod/ModuleS.dll
dod/ModuleS_i386.so
server_ip and port is optional parameters.
Example for linux CS-server:
java -jar vac.jar load cstrike/ModuleS_i386.so
java -jar vac.jar load cstrike/ModuleC.dll
For first time you can download modules from my archive. TNND!好像找到原因了,是不是虚拟服务器必须要建在一个和外网连通的机器上才行? 等了N久,终于建起来了,不用与外网连通也行,就是建主机的时候非常慢,我去别的服务器打了几局,退出来一看,建好了,TNND!
终于不枉费我牺牲了一晚上的睡眠啊!! 哈哈哈 why
good
我顶hahah
没有钱dajiahao
hao谢谢大家的帮助
谢谢大家的帮助 哥们,能不能告诉老外的网址,好让我去访问偶没钱下载这附件。谢谢