Server (Server/es)

From Terraria Wiki
Jump to navigation Jump to search

Un servidor de Terraria permite a los jugadores conectarse y disfrutar de partidas multijugador.

Por defecto, en una instalación de Windows de 32 bit, TerrariaServer.exe se puede encontrar en:

%PROGRAMFILES%\Steam\steamapps\common\terraria

En una instalación de Windows de 64 bit, se puede encontrar en:

%PROGRAMFILES(x86)%\Steam\steamapps\common\terraria

Los jugadores pueden unirse a un servidor desde el menú del juego seleccionando la opción Multijugador.

Los servidores se ejecutan en el puerto 7777 por defecto para que los demás puedan unirse. También se pueden utilizar otros servicios VPN como Hamachi o Tunngle. El número máximo predeterminado de jugadores es 8, pero se puede modificar en el archivo serverconfig.txt.

Descargas

El servidor de Terraria estándar va incluido al instalar Terraria, pero también se puede descargar:

La interfaz de servidor dedicado es una extensión de terceros que proporciona controles gráficos:

Tshock y TDSM son paquetes de servidor de terceros que proporcionan funciones adicionales, como comandos, listas blancas, contraseñas y extensiones para añadir características (como facciones):

Archivos de servidor

Los servidores constan de 3 archivos:

  • TerrariaServer.exe: El archivo principal. Puede ejecutarse solo.
  • serverconfig.txt: El archivo de la configuración. Define los parámetros del servidor.
  • start-server.bat: A Windows Batch file which starts the server using the serverconfig.txt file. Also contains a loopback to restart the server if it should crash.

Lista de comandos de consola\pc

Mientras se ejecuta un servidor dedicado se pueden introducir los siguientes comandos:

  • help: Muestra una lista de comandos.
  • playing: Muestra la lista de jugadores. Puedes también verla en juego escribiendo /playing en el chat.
  • clear: Vaciar la consola (para trabajar mas cómodo).
  • exit: Guardar y cerrar el servidor.
  • exit-nosave: Cerrar sin guardar cambios en el mundo.
  • save: Guardar el mundo.
  • kick <player>: Kickea a un jugador del servidor (lo saca, pero puede ingresar nuevamente).
  • ban <player>: Banea un jugador del servidor (lo saca y no puede ingresar nuevamente).
  • password: Mostrar contraseña.
  • password <pass>: Cambiar contraseña.
  • version: Muestra la versión del juego en la que el servidor se está ejecutando.
  • time: Muestra la hora del juego.
  • port: Muestra el puerto (por defecto 7777, éste es requerido para ingresar al servidor luego de colocar la ip).
  • maxplayers: Elejir el numero máximo de jugadores.
  • say <words>: Envía un mensaje a todos los jugadores. Lo verán en amarillo y de parte de <Server> en el chat.
  • motd: Seleccionar lema del día.
  • motd <words>: Cambiar lema del día.
  • dawn: Cambiar tiempo a madrugada (4:30 AM).
  • noon: Cambiar tiempo a mediodía (12:00 PM).
  • dusk: Cambiar tiempo a anochecer (7:30 PM).
  • midnight: Cambiar tiempo a medianoche (12:00 AM).
  • settle: Reajusta todo el agua.

Note that a forward-slash / is not required to precede the command, as some command interfaces require. For a list of Tshock commands, refer to this forum thread.

Parámetros de comandos

Esta es una lista de los parámetros que pueden ser utilizados en el TerrariaServer.exe:

  • -config <config file>: Specifies a configuration file to use (see Server config file below).
  • -port <port number>: Specifies the port to listen on.
  • -players <number> / -maxplayers <number>: Elejir el numero máximo de jugadores.
  • -pass <password> / -password <password>: Colocar contraseña.
  • -motd <text> - Colocar el lema del día.
  • -world <world file>: Cargar un mundo y comenzar el servidor.
  • -autocreate <#>: Creates a world if none is found in the path specified by -world. World size is specified by: 1(small), 2(medium), and 3(large).
  • -banlist <path>: Specifies the location of the banlist. Defaults to "banlist.txt" in the working directory.
  • -worldname <world name>: Sets the name of the world when using -autocreate.
  • -noupnp: Disables automatic universal plug and play.
  • -secure: Adds additional cheat protection to the server.

Archivo de configuración del servidor

It is possible to start the dedicated server using a configuration file that enters the above parameters automatically. The config file must be called using the -config parameter. The file can have any name, but must be in the same folder as TerrariaServer.exe. If a server config file is defined and the file is not located during the server boot, then the server will ask the user to input the parameters as it would if run without a defined config file.

The following is a list of available config commands:

  • maxplayers=8: Sets the max number of players allowed on a server. Value must be between 1 and 255
  • world=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\world1.wld: Load a world and automatically start the server.
  • port=7777: Set the port number
  • password=p@55w0rd*: Set the server password
  • motd=Please don’t cut the purple trees!: Set the message of the day
  • worldpath=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\: Sets the folder where world files will be stored
  • autocreate=3: Creates a new world if none is found. World size is specified by: 1(small), 2(medium), and 3(large).
  • worldname=World: Sets the name of the world when using autocreate
  • banlist=banlist.txt: The location of the banlist. Defaults to "banlist.txt" in the working directory.
  • secure=1: Adds additional cheat protection.

Comment lines can be included using the hash symbol (#). Lines that begin with # will be skipped entirely.

Prohibir y readmitir jugadores

El comando "ban <player>", banea al jugador indicado del servidor. Un jugador baneado no puede entrar nuevamente al servidor. Para desbanear a éste, uno debe abrir el archivo "banlist.txt" que se encuentra en la carpeta de terraria (Por defecto C:Archivos de programa(x86)/Steam/Steamapps/Common/Terraria/banlist.txt) y eliminar el nombre del usuario que se quiera desbanear. De esta manera el podrá ingresar nuevamente al servidor.

Requisitos del sistema

  • Windows Operating System
  • 500 MB free RAM for a small world (RAM depends on world size and number of players)
  • .NET Framework 4.0
  • XNA Framework

An easy method of installing .NET and XNA is to simply install the Terraria client, which should install both as part of its regular installation.

Notas

  • The server will auto-save the world now and then, but will not auto-save on shutdown. You should save manually prior to shutdown.
  • When you launch a server, it will ask if you want to auto port forward, however this doesn't always work.
  • Servers are often set up using Hamachi. This removes the need of having to port-forward, but relies on a third party program.

Historial

  • Desktop 1.2.3.1: Fixed crashes when starting the dedicated server in a language other than English.
  • Desktop 1.0.2:
    • Servers now listen to all IP addresses on the hosting PC, regardless of how many network connections are active.
    • Typing "localhost" instead of your own local IP address will connect to your own same-PC server.
    • The games default port is no longer ELEET (31337) it is now 7777.
    • Client will now resolve a hostname into its IP address, for example, if randomsite.org ran a server, you could type randomsite.org as the IP address and be able to connect.
  • Desktop-Release: Introduced.
  • Console-Release: Introduced.
  • Mobile-Release: Introduced.
  • 3DS-Release: Introduced.