当前位置:网站首页>CS1.6 service startup tutorial

CS1.6 service startup tutorial

2022-06-23 22:39:00 User 8112612

Basic requirements for server erection

  1) Hardware requirements  

   The minimum hardware configuration of the server is about PIII500、 In memory 128M above , If the memory is low , Then you will often have to endure the pain of overtime .

  2) Line requirements  

   The faster the line, the better , although CS The speed of continuous uploading and downloading in the game is the highest 3K/s, But if PING If it is high, it will not be fun ,ccsk Your server is 10M Exclusive bandwidth . 

2. Server side settings  

  1) First you have to install HLserver, Although in Half Life The server itself comes with the software to build the server , But if you don't play on the server ( No one plays on the server at all ^_^), use HLserver Can reduce a lot of space . Then upgrade HLSERVER To the latest version ( Follow up upgrade HL equally ), Install again CS Latest version ( Just like installing a client CS equally ). 

  2) As a server , There must be many settings , In general, you only need to HLserver\cstrike\ Create under directory server.cfg、mapcycle.txt、motd.txt These three basic documents are sufficient .

server.cfg Is the configuration file of the server  

   You can edit with any text editor . 
  0 by No,1 by Yes. 
  sv_aim 0                 Whether to aim automatically  
  pausable 0                Whether the client can pause the game  
  hostname “CCSK.net counter-strike Server “  Server name  
  mp_timelimit 30              Cycle through each map time  
  mp_c4timer 45               Bomb countdown time  
  mp_chasecam 0               Whether the lens is fixed  
  mp_falldamage 1              Fall from high to kill  
  mp_flashlight 1              Is there a flashlight  
  mp_footsteps 1              Whether there are footsteps  
  mp_freezetime 4              The time when each game starts to buy items  
  mp_friendly_grenade_damage 1       Whether grenade friendly damage  
  mp_friendlyfire 1             Whether weapon friendly damage  
  mp_autoteambalance 2           Automatically adjust the minimum limit of the number difference between the two sides  
  mp_roundtime 4              Time per round  
  rcon_passWord *****            Server password  
  mp_limitteams N              Both parties exceed N People automatically adjust  
  mp_tkpunish 1               Whether to injure friendly forces  
  mp_mapvoteratio 0.2            Voting ratio ( You can vote to kick out ** And change the map ) 
  mp_logfile 1               Whether the server leaves a record file  
  log on                  Start recording  
  mp_hostagepenalty=3            If more than three hostages are injured within the specified time, they will be kicked out automatically  
  Logaddress 202.108.249.81 2000       Set the National cs Listening port of leaderboard 

mapcycle.txt It is the sequence file of map file cycle

mapcycle.txt What is written inside is the name of the map file , Without the suffix , Such as de_dust2.bsp, Take only de_dust2. Where is the map Hlserver\cstrike\maps Under the table of contents , Pick out the map you want to cycle , Then input the file name according to the above rules mapcycle.txt in , Each map is separated by a hard return . Adding a new map doesn't just put .bsp File copy to Hlserver\cstrike\maps Under the table of contents , Also in mapcycle.txt Add the name of the new map , Bear in mind !

motd.txt Is the server documentation

motd.txt For server documentation , When each player enters the server, the first window they see is . You can write as you like .

  3) With the above ,cs The server is almost configured , Let's talk about the server operating parameters .

Right click on the desktop to create a shortcut , Enter the following line on the command line , Note blank space  

c:\Hlserver\hlds.exe -game cstrike -port 27016 +maxPlayers 22 +map  de_dust2 
c:\Hlserver\hlds.exe  Install for you hlserver The catalog of 
  -game cstrike             Specify to run the game as CS 
  -port 27016              Specify the game connection port as 27016 
  +maxplayers 22             The maximum number of people in the game 22 people ( The game only supports 20 people , There are two more people in the audience ) 
  +map de_dust2             Specify the start map as de_dust2

   When others enter the server, they enter Internet game, choice Add server Enter the... Of the server IP And the port you specified above .

4) Setting up a server on the LAN is the same as above , But you can add... To the command line -nomaster Make the server unavailable WON authentication , Avoid server problems caused by the lack of overseas network . At the same time plus +sv_lan 1 Specify it as a LAN server, When others enter the server, they enter LAN game That's all right. .

5) If you don't download hlserver, With normal hl+cs1.0 You can also be a server , The way to do it is : After entering the game, select play cs, choose internet game, choose create game, There is one at the bottom dedicated server The option to , Select it , Click on done. You can use a single machine to do cs The server , This can greatly increase the speed of the game . LAN games also apply , It's just that lan game Just choose one of them . The above settings can also be implemented .

XeqtR Of LAN The ultimate in race clothing **

I have to explain the origin of this method to you first :

   be based on  metamod  be applied to  HLDS*  Of  Booster  The plug-in should be known by everyone . Yes ! It's a  HLDS “ Speed up ” plug-in unit ( In fact, it is an acceleration plug-in , It's not very appropriate , Call it the server  FPS  Forced promotion 、 drop  PING  Tools are more accurate ) So why was this plug-in born ? I am specialized in network communication engineering , stay  Windows  In the environment , Even if the  LAN  Communication quality ( Switch 、 Router 、 Ethernet cable ) No matter how good , Connected to the  HLDS  Of  Clients  Of  PING  The value cannot be stable in single digits ( Moreover,  HLDS  After the data is processed by itself, it will be fed back to  Client  There is also a delay period , It can be said that you saw in the game  ping  The value is not the response time of your platform connecting to the game server platform in the actual network environment , That's why  Booster  And so on )! Someone wants to ask :“ brag x No ? that  ESWC、CPL A network as big as the stadium , Watch the game  DEMO  Inside  PING, It is not stable in single digits ?” I have also considered this problem before , but  XeqtR  The explanation is —— On those occasions  HLDS  More or less, it has been used  Booster , And for those who don't use  Booster  Or demanding purity on the server side ( No plug-ins ) The occasion of ( After all  Booster  Is not  Valve  Officially developed tools , There is no guarantee that there is no problem with compatibility )  Then I used the method I want to mention below .

HLDS:Half-Life Dedicated Server.

Explanation is : half-life “ major ”( Dedicated to services ) Game server .

We usually build our own console to play , Their own CS The client also acts as a server (ListenServer.) The role of the end , and  HLDS  It is dedicated to game services ( Only provide the game platform ), I am not involved in the game . So this is their biggest difference . such , Can “ The heart is useless ”, Ensure the stability of the server , Maximize the use of system resources to ensure the game performance and effect of the game client .

HLDS  The ultimate optimization method

   In fact, it's a technique rather than a method .WEG2006 Masters  Before the race , Most of the players train in Internet cafes , And I also participated in the whole process , In the process of training ,NoA.XeqtR  Presentation theory , The server side is required not to use  Booster ( At that time, they only installed mm+booster), I immediately objected to his proposal . And told that in order to guarantee  HLDS  Of  FPS  and  PING  And you want to use  Booster  When the plug-in ( Although I also know that the server without plug-ins is the most stable ), He smiled and said , He has a way about this problem , So I took him to the server :

First , find …\hlds\cstrike\liblist.gam

The inside of  gamedll  The value of is restored to the default  “dlls\mp.dll”

In addition, the server is not used VAC, therefore  secure “0”.

OK, In this way, the server will not load the plug-ins .

in addition , He also emphasized one point :

sys_ticrate 10000
sv_maxupdaterate 100
sv_maxrate 25000

He said it was LAN The standard configuration of the competition .

( If you also provide services for the Internet , Relevant values can be appropriately reduced .)

Let's start

The result was speechless …… All stable at  510 FPS  above !

You know, you're using  Booster  when , When I open a port  FPS  yes  320  about ,

open  2、3  After that  FPS  Namely  280  Multifocal 230 More places decrease in turn ~~~

Not because of anything else , Just because  Booster  It's very exhausting  CPU  resources ,

Now you just need to open  Windows  System native  wmplayer  player ……  this …… 

The technique is so simple .

stay  WEG2006 Masters  During work , Found in the background  WEG.CAN  This method is also applied to the server of the competition site :)

原网站

版权声明
本文为[User 8112612]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112111757305450.html