.:: Servidor dedicado de Counter-Strike (Half-Life) ::.
Este tutorial esta hecho para las versiones HLServer 4.1.0.8, Half-Life,
Update Half-Life 1.1.0.8 y Counter-Strike 1.3, pero para las nuevas versiones de
HLServer, Update Half-Life 1.1.1.0 y Counter-Strike 1.5.
Consiste en instalar el HLServer 4.1.0.8, pero también Half-Life,
Update Half-Life 1.1.0.8 y Counter-Strike 1.3. También sirve para cualquier MOD de Half-Life.
Para servidor de otro MOD de Half-Life tendremos que instalar el MOD deseado.
Algunos como DeathMatch Classic vienen incluidos con el Update de Half-Life.
Aquí vemos un ejemplo de un servidor dedicado iniciado.

Los requisitos mínimos para que funcione bien son:
 |
233MHz, 128MB RAM como mínimo, 256MB recomendado, 900MB de
disco duro, |
 |
una linea Internet de al menos 256/128kbs, |
 |
Half-Life con clave original, Parche Half-Life 1.108, Counter-Strike
1.3, HLServer 4.1.0.8. |
Se controla ejecutando una línea con comandos escritos en una
ventanita de comandos tipo ms-dos, pero lo que haremos será un archivo
start.bat escribiremos los comandos de configuración a nuestro gusto y para
arrancar el servidor haremos doble click sobre el start.bat, pero es opcional.
1. Instalar todo
Primero descargamos todo lo que necesitemos:
Lo mas importante es que instalemos todo en el mismo directorio.
Yo lo instalo en C:\HLServer.
-
Instalar Half-Life, no hace falta introducir crack. Muy
importante es que tengas Cd key original. Instalalo en C:\HLServer.
-
Instalar Parche de actualización de Half-Life 1.1.0.8. Instalar
tambien en C:\HLSever
-
Instalar Counter-Strike. En el directorio C:\HLServer asegurate
de que su contenido este en C:\HLServer\cstrike. Como sabemos todos el Juego
Half-Life ya lleva el servidor incorporado e incluso se puede poner dedicado,
pero como aun no se que es mejor instalo también el HLServer 4.1.0.8 que para
algo estará.
-
Instalar HLServer 4.1.0.8 en el directorio C:\HLServer, que es
su directorio default.
2. Encender y Configurar
Para encender el servidor abrimos una ventanita de comandos tipo ms-dos y
escribiremos:
C:\hlserver\hlds.exe
-game cstrike +map cs_italy
Tal como se muestra en la foto:

Y al pulsar intro se abrirá una ventana negra tal como esta:

Con eso se creara una partida de Half-Life Counter-Strike en el mapa cs_italy.
Una configuración completita seria ejecutar esto:
C:\half-life\hlds.exe +maxplayers 32
-game cstrike +port 27015 -nojoy -noipx -heapsize 250000 +map cs_italy
+servercfgfile server.cfg +lservercfgfile +mapcyclefile mapcycle.txt +motdfile
motd.txt +logsdir logs -zone 2048
Ahora describimos para que sirve cada item para que lo configures a tu gusto.
 | C:\hlserver\hlds.exe - this is the path and filename of hlds, the
Half-Life dedicated server. And the HLDS options can be in any order: |
 | +maxplayers 32 - the max players
for the server |
 | -game cstrike - the mod to use |
 | +port 27015 - the port to use |
 | -nojoy - turn off joystick support on the server (clients can use
joysticks - this maybe just makes the cpu footprint a tiny bit smaller because
it won't listen on the joystick port) |
 | -noipx - turn off NetWare IPX support (not necessary unless playing
on a NetWare LAN) |
 | -heapsize 250000 - use 250 MB RAM (if you have that much - it
doesn't seem to need more) |
 | +map cs_italy - the map to start on (pick a good one! it will be the
most common map) |
 | +servercfgfile server.cfg - the name of the server.cfg file
|
 | +lservercfgfile - not used for a dedicated server |
 | +mapcyclefile mapcycle.txt - the name of the map list file
|
 | +motdfile motd.txt - the name of the message of the day file
|
 | +logsdir logs - the name of the log directory |
 | -zone 2048 - i think this causes it not to crash when it gets a long
console line? not sure |
 | C:\serverdoc\serverdoc.exe - I use server doc to keep the server
running. if the server crashes, serverdoc will automatically restart it.
Escribir antes del c:\hlserver\hlds.exe |
Comandos de consola de configuración de la partida creada por el
servidor.
|
Command /
Variable Name |
Description |
|
mp_autokick 1
|
Toggles automatic team-killer
banning and kicking of idle clients - Setting of 1 = 'on', and 0 = 'off' |
|
mp_autoteambalance 1
|
Toggles the forcing of clients
to join teams to make it balanced - Setting of 1 = 'on', and 0 = 'off' |
|
mp_c4timer 45
|
Sets the amount of time in
between C4 placement and its explosion - ranges between 15 and 90 seconds |
|
mp_flashlight 1
|
Toggles the use of flashlights
by clients - Setting of 1 = 'on', and 0 = 'off' |
|
mp_footsteps 1
|
Toggles footstep sounds -
Setting of 1 = 'on', and 0 = 'off' |
|
mp_forcechasecam 0
|
Toggles the chasecam to follow
teammates only - useful for LAN games - Setting of 1 = 'on', and 0 = 'off' |
|
mp_freezetime 6
|
Sets the amount of "freeze"
time at the beginning of each round to buy weapons and equipment - Use a
setting of '0' to disable |
|
mp_friendlyfire 0
|
Toggles friendly fire - Setting
of 1 = 'on', and 0 = 'off' |
|
mp_hostagepenalty 2
|
Sets the number of hostages a
player can kill before they are booted from the server - Setting this to '0'
turns the function off |
|
mp_limitteams 2
|
Sets the maximum number of
players that one team can have more than the other team - Use a setting of
'0' to completely disable the team limiting. |
|
mp_logmessages 1
|
Toggles logging of chat
messages in the log files - Setting of 1 = 'on', and 0 = 'off' |
|
mp_mapvoteratio 0.6
|
Set the ratio of players
required to vote on the same map before a map will change. The default is
0.6 , which means that 60% of the players on a server must vote on the same
map in order for the server to change to that map. The range is 0.0-1.0 |
|
mp_roundtime 5
|
Sets the maximum amount of time
for each round - ranges between 3 and 15 minutes |
|
mp_timelimit 0
|
Sets the maximum amount of time
in minutes between map rotations |
|
mp_tkpunish 1
|
Toggles the forcing of a player
to sit out the next round if he has just killed a teammate - Setting of 1 =
'on', and 0 = 'off' |
|
sv_restartround 0
|
Sets the amount of time before
resetting the game, including frags, weapons, money, and scores - Use
setting of '0' to disable these restarts. |
3. Abrir puerto 27015 UDP
Lo primero que tienes que hacer es entrar en el router para abrir el puerto
27015 de UDP, que es el que utiliza el Counter Strike. ¿Cómo se hace? En la
pantalla inicial del router tienes que ir a la opción CONFIGURATION del menú de
la izquierda.

En la siguiente pantalla entras en la opción REMOTE SITE PROFILES.

Llegas a otra pantalla (Remote Sites WAN), tienes que pinchar en MODIFY
(tiene que estar seleccionado el sitio Internet, si tienes configurado más de un
site)

En la siguiente pantalla le tienes que quitar el "tic" a la opción "ENABLE
REMOTE SITE", luego pulsas NEXT (recordar esta pantalla, pues luego volveremos a
ella, ok?)

En esta pantalla, en el apartado ADRESS TRASLATION tienes que pulsar el botón
UDP (Static Ports).

Así se añade un puerto UDP, tendremos que poner:
Public UDP Port: 27015
Private IP Address: 192.168.0.2 (Aquí tienes que poner la IP privada del
ordenador donde tengas el Counter Strike)
Private UDP Port: 27015
Ahora pulsas ADD. Vuelves a la pantalla anterior.
Ahora tienes que pinchar PREV hasta la primera pantalla (esta es la que dije que
recordarais), donde estaba ENABLE REMOTE SITE, lo vuelves a marcar (pones un
tic) y le das a MODIFY.

Luego tienes que salvar los cambios con el botón SAVE CONFIGURATION del menú
de la izquierda.
Ahora tenemos abierto el puerto 27015 de UDP.
Como has podido ver, es muy sencillo, ¿no? Pues que sepas que muchos de los
juegos con opción multijugador funcionarán en modo multipuesto abriendo los
puertos que usen de la forma que lo hemos hecho ahora. Solo necesitas saber el
puerto concreto que usan.
4. Probar
Ejecutamos el CS como siempre, le damos a partida en LAN y deberia salir
nuestra partida. Tambien se puede hacer escribiendo en consola connect
IP_sever:puerto, el puerto por default es el 27015.
Para conectar desde Internet al servidor debemos escribir en consola connect
IP_internet_server:puerto.
5. Instalar anticheat y adminmod
Próximamente.
by agustin_d, www.principiantes.org, 9-3-2002.
|