Configurar Servidor

From AssaultCube

Jump to: navigation, search

Las siguientes instrucciones son para el sistema operativo Windows XP o Windows Vista.

Configuración Básica

Para configurar un servidor necesitas modificar el archivo assaultcube_server.bat que se encuentra en el directorio de instalación del AssaultCube, una configuración tipica de un servidor seria la siguiente:

bin_win32\ac_server.exe -n"MiServidor" -o"Bienvenidos a mi servidor!" -xMiContraseña -rconfig\maprot.cfg

Lo que el archivo assaultcube_server.bat esta haciendo es lo siguiente:

bin_win32\ac_server.exe, esto manda ejecutar el archivo ac_server.exe el cual se encuentra en el directorio AssualCube\bin_win32.

-n Este es uno de los parametros que seran pasados al programa, el cual esta especificando el nombre que se le dara al servidor, en este caso especificado por lo que se encuentra dentro de las comillas: "MiServidor".

-o Este parametro determina el "MOTD" -Message Of The Day-, este es solo un mensaje que aparecerá cada vez que un jugador se conecta al servidor, puede ser un mensaje de bienvenida o un mensaje para miembros de un clan, en este caso: "Bienvenidos a mi servidor!" es un mensaje de bienvenida.

-x Este parametro especifica la contraseña para conectarse al servidor con privilegios de administrador, no se requiere que la palabra clave este entre comillas.

-r Este parametro apunta a un archivo donde se especifica la rotación de mapas. maprot.cfg es un archivo que se encuentra en el directorio AssaultCube\config y es simplemente una lista que indica el nombre del mapa y orden de aparición, el modo de juego y el tiempo de duración para cada juego.

Configuración Avanzada

Nombre del servidor y MOTD a colores.

(Por ahora esta información esta en ingles pero sera traducida al español en pronto).


MOTD Con lineas multiples

Para que el mensaje MOTD se despliege con varios renglones o lineas de texto se hace lo siguiente.

Esta es una solución avanzada, y por esto puede parecer un poco complicada.

1.- Go to \bin_win32 and click with right mouse button on the file ac_server.exe and select "copy".

2.- Go back to \AssaultCube folder and again click right mouse button and select "Paste shortcut" a new file called "Shortcut to ac_server.exe" will be created.

3.- Right click on "Shortcut to ac_server.exe" file and select "Properties"

4.- On the Properties window select the "Shortcut" tab, on target text you will see something like D:\Games\AssaultCube\bin_win32\ac_server.exe depending on the installation of your AC files.

5.- Add to the end of the text your start-up info so it reads something like: D:\Games\AssaultCube\bin_win32\ac_server.exe -n"My Server" -o"Text line 1 Text line 2 Text line 3" -xpassword

6.- click "OK" or leave properties window open.

7.- Create a new text file You know... right click, "New", "Text Document" and a new file called "New Text Document.txt" will be created open that file for editing and press on spacebar once to type a single space and save yor file.

8.- Open that file on your Hex-Editor and change that space, wich has the Hex code of 20 to 0A this is the "LF" escape code, now save your text file.

9.- Open your "New Text Document.txt" file with windows Notepad, you will see just an empty text but anyway click on "Edit" on the notepad's main menu and select "Select All", and then "Edit" and select "Copy", now you have the "LF" escape sequence on windows clipboard memory.

10.- Now go back to "Shortcut to ac_server.exe" properties window and the server's start-up info and position the cursor right where you want the new line break and paste the escape sequence there.

For example:

Go to the part where it says -o"Text line 1 and put the keyboard cursor next to the 1 character and right click on the text and select "Paste" now move the keyboard cursor to where it says Text line 2 next to the number 2 character and again right click on the text and select "Paste" and click on "OK" to save changes to the shorcut.

That's it! The MOTD message will have 3 separate lines of text.

Personal tools