No one knows everything at birth, just like I don't know anything, so I learned it slowly. I know there are many experts in Dcoo. If there are any mistakes in this article, please feel free to correct them. The following is basically the experience I learned about server erection in Dcoo and other forums. Send it out for everyone to see, so that everyone can transform from a novice to a junior server erection expert. Grasp the main points, step by step:
First of all,
You must have a high-profile computer. If you are a server, you'd better have a machine with more than 5 12M memory. As for the influence of memory CPU on setting up a CS server, please see other posts! Then I want to know the network structure of your internet access, whether it is through Modem++route+switch or proxy server+switch. My forum post is also introduced, so I won't go into details here. You can go to my signature address to see!
Second, the server-side file of CS.
Since CS 1.6 is already the version of the competition, I will focus on CS 1.6, and CS 1.5 is actually the same, except that there will be many special effects, such as 1.5 does not support Chinese. Here is the server-side version of DcOo 1.6 32 13.
Third, start setting up the server.
Don't run it when it's finished. If you run it, you will enter the game instead of starting the server! Enter the folder you just installed, find the Hlds.exe file, and create a shortcut, as shown in the following figure:
Then change the name of the shortcut just now to facilitate future use, or even to Server, and then focus on it. . . . Please pay attention!
See the parameters behind hlds.exe?
When the server is running, some startup parameters must be used. Different parameters have different effects when the server is running! Even taking this as an example,
-game cstrick+servercfgfileserver.cfg-nomaster-unsafe-port 270 16+max players 32+ map de _ dust 2+SV _ LAN 1- console.
I explained them one by one:)
-Game cstrike This is the Mod that designates the anti-terrorist elite as the game. If not specified, it is a half-life mode. I heard it's good, too. It's fun. I've never played.
+servercfgfile server.cfg This is the configuration file of the specified server. The file server.cfg is placed under cstrike, and I will introduce this file in detail later.
-nomaster loads this parameter to prevent the server from being authenticated by WON and avoid server problems caused by foreign network failure.
I don't remember what this parameter is for. Other friends who know, please advise, thank you!
-port 270 16 specifies the port when the server is running, and the range is preferably between 270 15-27020. According to my test, the LAN list can be printed within this range. Of course, if you want to use it as a competition server and don't want others to enter, you can specify any unoccupied port.
+maxplayers 32 This parameter is the maximum number of players who enter the specified server. In theory, the maximum number of people can be 32, and some maps can only be 20, such as CS _ Italy's early rescue map. Not 32 people at most, it should be related to your network situation and server configuration. Please search on Dcoo or go to my forum to find out the connection between CPU memory and network bandwidth. Only with the right number of people can your server run in a fast and stable state!
+map de_dust2 This parameter is the first mapping that will be run when the server starts running. You can set it at will, but please note that it is best to use the map in the directory cstrike\maps, otherwise the server will make an error!
The files ending in bsp in the figure are all mapping files. Note: The parameter does not need the full name of the file, such as de_dust2. There is no need to do so.
-console console, if you don't take this parameter, the server you set can't enter some server commands in the window with black background and white characters.
+sv_lan 1 is an important parameter to control whether the server is a local area network or a battle network. When it is 0, players outside the network can also enter. When it is 1, only LAN players can enter. If you want to face public network and intranet (if you don't know what public network and intranet are, please find your own materials to learn), this parameter is suggested to be 0.
Based on the above explanation, it is easy to understand.
-game cstrick+servercfgfileserver.cfg-nomaster-unsafe-port 270 16+max players 32+ map de _ dust 2+SV _ LAN 1- console.
The server set with these parameters is a CS 1.6 anti-terrorism elite, which failed the WON verification. Game port 270 16, with a maximum of 32 people. The first game map is Desert 2, a server for LAN!
If you want to face the internal and external networks, remove two parameters-nomaster+SV _ LAN1.
After the parameters are correctly configured, you can start running the server. Don't worry, it hasn't been fully configured, and there is still an important file server.cfg that hasn't been configured yet!
Under cstrike in the installation directory, you can see a Server.cfg file, which is a text file, but it is not associated with any text editing software. That is to say, when you open it, you will be prompted to open it, and you can choose to open it with Notepad. When opened, you will see the following information:
(Note: The following information is the Server.cfg file written by Caterpillar at that time. Moreover, I didn't refer to the caterpillar script when I wrote it, but set it according to the standards of the international competition server. Please pay attention to this! ! )
rcon_password "dcoo "
Host name "DcOo CS 1.6 server"
sv_maxspeed 320
Mp _ auto kick 0
mp_autocrosshair 0
Mp _ auto-balance 0
mp_buytime 0.25
mp_consistency 1
mp_c4timer 35
mp_fadetoblack 1
mp_falldamage 1
Mp _ flashlight 1
mp_forcecamera 3
mp_friendlyfire 1
mp_freezetime 10
mp_fraglimit 0
mp_hostagepenalty 0
mp_limitteams 6
Mp _ log file 1
mp_logmessages 1
Mp _ Log Details 3
mp_maxrounds 0
mp_playerid 0
Mp _ Round trip time 2.5
mp_startmoney 800
mp_timelimit 60
Mp _ penalty 0
mp_winlimit 0
Service target 0
sv_airaccelerate 10
sv_airmove 1
Sv _ Allow download 0
sv_clienttrace 1.0
SV _ clip mode 0
sv_allowupload 0
Sv _ Cheating 0
Gravity 800
sv_maxrate 25000
sv_maxspeed 320
SV _ maxupdaterate 10 1
System rate 10000
Decahydronaphthalene 60
Pause 0
log in
Decahydronaphthalene 60
Edge friction 2
Host frame rate 0
exec listip.cfg
exec banned.cfg
Wow *,,, Dcoo is too simple, I remember explaining it before, and now it's all like this? !
Forget him, I can understand what it means anyway. Let me explain! Explain only some commonly used and unexplained recommended default values. Generally 0 off, 1 on.
Rcon _ password“dcoo "This is the password to enter the server. If you don't change it, it is equivalent to a server with a password. It is suggested to delete the ""section.
Hostname "DcOo CS 1.6 Server" The name of the server certainly needs to be changed, just change it to the name you want.
Sv_maxspeed 320 gravity speed or something, it is not recommended to modify the default. .
Mp_autokick 0 automatically kicks people. When the player stays still for a long time or crashes due to other factors, the system will kick the player out, with 0 as off and 1 as on.
The size of the alignment center of mp_autocrosshair 0 is automatically adjusted, and it is recommended not to change it.
Mp _ autoteambalance 0 is automatically balanced by both sides, so it is recommended to turn it on, otherwise the number of teams on both sides will be unbalanced.
Mp_buytime 0.25 The time to buy weapons is 60 seconds, 60 * 0.25 = 15 seconds.
The explosion time of mp_c4timer 35 C4 seems to be 35 seconds in international competitions, so this value is recommended.
Mp_fadetoblack 1 black screen after death. It is suggested to change it to 0.
Mp_falldamage 1 fall injury, this need not be changed.
Mp _ flashlight 1 flashlight on
There are three viewing modes after the death of mp_forcecamera 3: 0 1 2 3, where 0 is a fixed viewing mode, 1 is a teammate-specific viewing mode, 2 is a teammate-specific viewing mode, and the first viewing mode is a free viewing mode.
Mp_friendlyfire 1 self-injury mode, one person can hit another person, if it is not a competition suit, it is recommended to turn it off.
The freezing time of Mp_freezetime 10/0 seconds when buying guns is too exaggerated. Three seconds is enough.
Mp_roundtime is 2.5 times per round, in minutes, and 2.5 is two and a half minutes. It is suggested to change it to 3 or 3.5. If it is death mode, it can be changed to 5.
The initial capital of mp_startmoney 800 is generally 800, and the maximum capital can be changed to 16000. It is not recommended to change!
Mp_timelimit 60 60 minutes applies to every map. If it is changed to 0, there is no time limit.
The black boy of MP _ tk prempt 0 team killed his team in the last game, and this game will be punished, just like a dead game. It will only be used if it is turned on at the same time as the previous MP _ Friend Ammunition 1.
Mp_winlimit 0 When one side wins many games, change the map, and 0 means close.
Of course there are other more detailed introductions. I'm just making a general introduction and occasionally showing you the service:
Sv _ password ""
Rcon_password "Flying Wolf"
Hostname "Nanning Flying Wolf Network CS 1.6 Competition Clothing [CD]"
sv_maxrate 10000
sv_minrate 1000
sv_maxspeed 320
//Pause the game and prohibit 0/ Allow 1
Pauseable
//Cheating mode off 0/ on 1
Sv _ Cheating 0
//Auto aiming off 0/ on 1
Service target 0
//Tactical flashlight allowed 1/ No 0
Mp _ flashlight 1
//Step on 1/ Off 0
Mp _ Footsteps 1
//Falling injury is on 1/ off 0.
mp_falldamage 1
//Players who cannot be kicked out automatically turn on 1/ turn off 0.
mp_autokick 1
//Observer mode on 1/ off 0
Allow _ Audience 1
//The server sets the game reset time, including death toll, weapons, money and scores. Set 0 to not reset.
sv_restartround 2
//30 minutes per game.
mp_timelimit 45
//The freezing time (0-45) for purchasing weapons is suggested to be within 5 seconds.
Mp _ freeze time 3
//4 minutes per round
Mp _ Round trip time 3
//The time for purchasing weapons and equipment (0.25- 1.5) is 15 -90 seconds.
mp_buytime 0.25
//bomb countdown time (15-75)
mp_c4timer 35
//The amount of money at the start of the game (800- 16000)
mp_startmoney 800
//Post-mortem viewing angle 1, there is no limit for our teammates to be in the same place.
mp_forcechasecam 1
//After death, visual angle mode 0 follows freely/1 follows fixedly.
mp_chasecam 1
//Character 0/ 1 The screen is not black after death.
mp_fadetoblack 0
//friendly fire off 0/ on 1.
mp_friendlyfire 0
//Grenade friendly damage off 0/ on 1
Mp _ Friendly _ Grenade _ Damage 0
//Punishment for killing friendly troops 0 No punishment/Punishment: Kill more than (1-n) teammates and die automatically in the next round.
Mp _ penalty 0
//Automatically adjust the balance of both teams. Do not adjust 0/ adjust (1-n) individuals.
Mp _ automatic balance 1
//If the number difference between the two parties exceeds n, the number difference of 0 will be automatically adjusted and closed.
mp_limitteams 2
//Punishment for killing hostages: no punishment/punishment: those who hurt hostages more than (1-n) within the specified time will be kicked out automatically.
mp_hostagepenalty 0
//The death toll and the upper limit of the score are none/none (1-n). If it exceeds the upper limit, change the map.
mp_fraglimit 0
//The upper limit of the number of victories is none (1-n). If it exceeds the upper limit, change the map.
mp_winlimit 0
//The round limit is none/none (1-n). If it exceeds the upper limit, change the map.
mp_maxrounds 0
//Allow downloading to open 1/ close 0.
sv_allowdownload 1
//allowdownload (SV _ allowdownload1) controls whether the player's LOGO is allowed to be transmitted when it is turned on. Allow 1/ prohibit 0.
sv_send_logos 1
//allowdownload (SV _ allowdownload1) controls whether resource file transfer is allowed when opening. Allow 1/ prohibit 0.
sv_send_resources 1
//Allow uploading Close 0/ Open 1
sv_allowupload 1
//The server gravity setting defaults to normal gravity 800, ranging from -999 to 99999.
Gravity 800
//Turnout rate (cheaters can be kicked out by voting, for another picture) (0. 1- 1)
mp_mapvoteratio 0.6
//Set the ghost mode refresh value (0. 1- 1)
Mp _ frequency 0. 1
//server high quality texture Off 0/ On 1
Sv _ transmission speed 0
//The server reduces the lag phenomenon (high requirements on the server). Close 0/ open 1.
mp_lowlag 0
//The default server detail data sending is 300, which can be reduced to 250 and 200 to improve the speed.
Mp _ decal 300
//Does the server allow microphone voice communication? Allow 1/ Prohibit 0
sv_voiceenable 1
//Does the server allow voice communication between clients? Yes 1/ No 0
sv_alltalk 0
Sv _ Region 4
//fourth area is Asia.
CD required "1"
Cdrequiredversion automatic
// 1 indicates that a CD is needed, and the second behavior automatically detects the CD version.
//Does the server record files but not 0/ record 1?
Mp _ log file 0
//Do you want to record the conversation in a recording file? Do not record 0/ record 1
mp_logmessages 0
//load ban file
exec listip.cfg
exec banned.cfg
Copy the red font and paste it into your server.cfg file, just like my server settings. Of course, you should remember to change your password and server name!
Of course, you can also directly use the server built by several bat batch files in the cs 1.6 directory!
The editor added 69.28.151.178: 27010. Do you see it? This is definitely not your IP. All you have to do is change it to your own IP. Note: 192. 168. X.X This is not your public IP, but your local IP. If you are a technician in an Internet cafe, try to find the IP of the line you use in your Internet cafe and map the corresponding port. Mapping is beyond the scope of this post, so I won't teach it here. Please go to my forum to learn about the drawing methods of various routes.
Next, we will explain the files that other personalization servers must modify, and these two are also part of it:
The Mapcycle.txt map list file, that is, when the server runs, will only run from top to bottom in all the maps in this file.
Dust removal 2
Deinfell
de_cbble
get off (a vehicle)
Denuk
De cpl factory
De Aztec
dust
From beginning to end, and then go back and forth.
Motd.txt is a special file. This is the first welcome sign that players see when they enter your server. It exists in the form of a text file, but it is indeed the source code of an html webpage. If you have the basic skills of web page making, you can do it well. I'll make a fool of myself here and show you the effect of my modification of this file:
If you don't have that skill, you can find a friend to help you make one. Not difficult.
The next step is to ask the most external questions. Click here to download the files used.
Unzip to the addons directory of cstrike, and the directory structure after completion is as follows:
The first amxmodx is the home folder of amx plug-ins, and the configuration below it is the settings of some plug-ins. Amxx.cfg is the setting of some amx, plugins.ini is the call configuration management of plug-ins, and users.ini is the user profile, where some permissions of users are set. There is a help file in amxmodx\doc, where you can learn more about the management and use of amx. Amxmodx\plugins is the storage location of source files of some plug-ins, which roughly introduces where each folder is placed. I will explain the most important configuration of amx.cfg, plugins.ini and users.ini in detail later!
Addons\Booster This is a server acceleration plug-in. It is recommended to turn it on and let the server run at high speed. I will introduce it later;
Addons\cdeath this is a CD anti-cheating server version of the file, many friends do not know how to use it, I will introduce it later!
The Plugins.ini under addons\metamod \ plugins.ini under amx MODX \ Configs is different. This plugin.ini is the foundation of all plugins, and the other one is just a plugin loaded for amx!
So it may take a long time and space to explain the following plug-ins:
addons\metamod\plugins.ini
addons \ amx modx \ configs \ amxx . CFG
addons \ amx modx \ configs \ plugins . ini
addons \ amx modx \ configs \ users . ini
Now let me explain the basis of all plug-ins, the configuration of addons\metamod\plugins.ini!
Win32Addons \ Booster \ Booster _ mm.dll This is an acceleration plug-in for a server. If this thing is not loaded, the maximum server size is 99Fps.
; Win32DLLS \ Chicken _ mm.dll This is an entertainment plug-in, which is to become a chicken.
; Win32Addons \ AMX \ DLLS \ AMX _ mm.dll This is a plug-in for loading AMX. If it is not loaded, many AMX-based plug-ins will be useless, such as death.
; Win32addons \ amx \ dll \ fun _ ms.dll This is also a plug-in that must be used in the Death and Warcraft server.
; Win32addons \ amx \ dll \ csstats _ ms.dll This is also a plug-in that must be used in the Death and Warcraft server.
; Win32addons \ Amx \ dll \ war3 _ ms.dll This is a child plug-in of the Warcraft plug-in amx, which can be configured in this plugin.ini or loaded into another plugin.ini (addons \ amxmodx \ configs \ plugins.ini), but only one can be loaded, and duplicates are not counted.
; Win32DLLS \ monster _ mm.dll This is also a sub-plug-in of Amx, and can also be configured here or in another plugins.ini
; Win32addons/wwcl/dll/pcawwconfig _ mm.dll wwcl This is a rule plug-in, which can also prevent some players from cheating to some extent.
Win32addons/cddeath/cdmod.dll This is the well-known cheat-dead CD anti-cheat plug-in. However, if you load the latest 4.29 carefully, the server will have an error. I will introduce how to load the latest version of the CD in detail later!
All plug-ins are marked with ";" (semicolon in half-angle mode) opens and closes. In other words, if you want to open a plug-in, you can't use this symbol in front of the line. If you don't want to open a plug-in, just add this before this line, which is win32, and the plug-in will stop running!
For example:
I want to block the Chickenmod1.0.5.1plug-in, and add it at the beginning of Win32DLLS \ Chicken _ mm.dll; Just block this line with comment symbols, that is, change Win32DLLS \ Chicken _ mm.dll to; win32 dlls \ chicken _ mm.dll
So when we start the server, the server will not start the chickenmod1.0.5.1plug-in. If you want to open the chickenmod1.0.5.1plug-in again, just put; Delete the symbol and save the plugins.ini file. The same is true for the shielding/opening of other plug-ins.
Maybe you don't know much about this. I found a picture for your reference:
This picture was not taken when installing the Dcoo version, but was in the commemorative version of cs 1.5 in Fan Xiao. The significance of publishing it is to let everyone know the meaning of each command line more intuitively!
This version of this file is too simple, but the basic functions are not lost, as follows
; Description:
; Please delete the semicolon before opening the module.
; Please add a semicolon before closing the module.
; ////////////////////////////////////////////////////////////
; //-Booster-//
; ////////////////////////////////////////////////////////////
; Please press your CPU to select the program you need. Only one of the following two programs can be opened.
Win32 plugin /Booster/booster_mm.dll
; Win32 plugin /Booster/booster_686_mm.dll
; ////////////////////////////////////////////////////////////
; // - AMX Mod X - //
; ////////////////////////////////////////////////////////////
Win32 plugin /amx modx/dll/amx modx _ mm. dll
; Linux, please select the required program according to your own CPU. Only one of the following two programs can be opened.
Linux addons/amx modx/dll/amx modx _ mm _ i386 . so
; Linux addons/amx modx/dll/amx modx _ mm _ amd64 . so
; ////////////////////////////////////////////////////////////
; //-Deceiving death-//
; ////////////////////////////////////////////////////////////
; Win32, please select the required program according to your own CPU. Only one of the following five programs can be opened.
Win32 plugin/cddeath/cdmod.dll
; win32 addons/CDeath/cdmod _ i486 . dll
; win32 addons/CDeath/cdmod _ i586 . dll
; win32 addons/CDeath/CD mod _ k7 . dll
; win32 addons/CDeath/CD mod _ P4 . dll
; Linux, please select the required program according to your own CPU. Only one of the following five programs can be opened.
Linux addons/CDeath/CD mod _ i386 . so
; Linux addons/CDeath/CD mod _ i586 . so
; Linux addons/CDeath/CD mod _ i686 . so
; linux addons/CDeath/cdmod_k7.so
; linux addons/CDeath/cdmod_p4.so
It's a little messy, just pay attention to the part without semicolon! Linux is beyond the scope of this article. I know nothing about linux servers, although I am still learning.
Next, explain the configuration of amxx.cfg, plugins.ini and users.ini, starting with amxx.cfg:)
In fact, there are already many tips in the amxx.cfg file, so I will briefly introduce them! Let's take a look at the parameters of amxx.cfg in this Dcoo I installed:
// AMX MOD X configuration file.
Echo execution AMX Mod X configuration file
//The default permissions of users can be defined as ordinary players plus various permissions. Please refer to the permission description in the uers.ini file for related permissions.
This is the default permission of the player, and related permissions are set in users.ini.
The remote login password of AMX (the same for all OPs) must be modified when it is first configured.
// setinfo information saves the password in the config.cfg file. To avoid revealing the password, please delete your config.cfg after the game. )
//(When the administrator logs in, please enter setinfo _pw "administrator password" in the console, or directly write it into your own config.cfg file).
Amx_password_field "_pw "This is the password of AMX remote OP and must be changed. Just don't confuse it with the password in server.cfg
//Log mode options for the server
//0- Permission to log in is prohibited, and all players have no permission.
// 1- normal mode
//2- Kick out all players without accounts in the users.ini file.
The recording mode of amx_mode 1 server is generally the default.
//Does the op display the action of the op when executing the command?
//0- Off
// 1- Don't show the action of OP.
//2- Display the operation of OP.
Amx _ show _ activity 2
//The server periodically scrolls the following server information in seconds.
Amx_scrollmsg "Welcome to% hostname %- this server uses the AMX Mod X management plug-in" 600.
Here are the settings of some scrolling characters seen in the game. You can set more, but pay attention to the last time, otherwise only the first one will be displayed!
// clanmod style server MOTD color information, the color RGB code behind can be modified by itself.
Amx_imessage "Welcome to %hostname%" "000255 100"
Amx_imessage "This server uses the AMX Mod X management plug-in \ nDownload address mand (with KICK permission).
; D-amx_ban and amx_unban commands (with the permission of ban)
; E-amx_slay and amx_slap commands (with the right to kill by force)
; F-amx_map command (with permission to change the map)
; G-amx_cvar command (setting parameters of amx can be set, but not all).
; H-AMX_cfg command (cfg setting file permissions of AMX can be loaded)
; I-amx_chat and other chat commands (you can post messages as an administrator)
; J-amx_vote and other voting commands (you can start voting events)
; K- access sv_password cvar (you can change the password of the server)
; L- access amx _ RCONcommand and rcon _ password CVaR (via amx _ CVaRCommand) (you can log in to the server as an OP using the rcon command).
; M- Custom Level A (user-defined management level, permission level reserved for add-ins)
; N-custom level b
; O-custom level c
; P-custom level d
; Q-custom level e
; R-custom level f
; S-custom level g
; T-custom level h
; U menu access (allow to open menu management menu)
; Z user (normal user rights)
; Account type:
; A- Disconnect the player with an invalid password (the password needs to be detected when the user's id enters the server).
; B-tag (this user's id has a team tag)
; C- this is steamid/wonid (this user *steamid/wonid enters the server).
; D- this is ip (this user *ip enters the server)
; Do not check E-password (only name/ip/steamid is required) (the user only needs id or ip or steamid, and does not need to check the password when entering).
; Password:
; Add: setinfo _ pw ""
; Here _pw represents the password set by the parameter amx_password_field.
; Administrator account format:
; & ltName | ip | steamid & gt& lt administrator password >< authority level >< account type >