Garry's Mod

Garry's Mod

57 ratings
How to Create and Run a Successful TTT Server for Windows and Linux
By Concrete Werk and 1 collaborators
English:
In this guide, I will teach, and show you:
  • How to create a server with steamcmd
  • How to turn your server to the Trouble in Terrorist Town Gamemode
  • Guide, and provide support for port-forwarding
  • Give tips on how to keep your server running succesfully
  • Necessary Addons for Moderating
  • How to attract others to your server
Español:
En esta guía, voy a enseñar, y le mostrará :
  • ¿Cómo crear un servidor con steamcmd
  • ¿Cómo dar vuelta a su servidor a la Dificultad en Terrorist Town Gamemode
  • Guía, y proporcionar apoyo para el puerto de reenvío
  • Dar consejos sobre cómo mantener su servidor que ejecute con éxito
  • Complementos necesarios para moderar
  • ¿Cómo atraer a otros a su servidor
   
Award
Favorite
Favorited
Unfavorite
Downloads and Links
English:
Keep in mind, you will most likely want to create a folder to store all these items, so they will be easier to track down than sorting through a downloads folder.

Necessary Tools
Necessary Links
Español:
Herramientas necesarias
Enlaces necesarias
Setting Up Steam CMD
English:
To begin we will go into our Command Prompt. For Windows, you can merely press, and hold
Home + R, and type "CMD" in the Run window, or for you can go into the run Menu through the start menu, and type "Command Prompt". Now that you have CMD opened, you want to type "steamcmd" into the CMD, or if you have linux type "./steamcmd.sh". The steam program will auto-update, and open Steam Prompt. When you have Steam Prompt, you will use it to login anonymously to download the server and its files. So once you are in Steam Prompt, you type "login anonymous"; however, if this does not allow you to download the server you must type in "login <username>", replacing <username> with your steam username (not your steam display name). Enter your password. Then check your e-mail for your Steam Guard access code and enter it (you'll only need to do this once per computer). You should see a message stating that you have successfully logged in with your account. Now, we will want to minimize the SteamCMD Window, and go into a Windows Explorer, or Linux file area such as your hard drive or desktop for example C:\, now for this keep in mind windows uses backslashes, while linux uses foraward slashes. Create a folder, and call it anything, for example, I will place this in my C:\ drive, and call it GMOD, it must be a folder. Now, reopen SteamCMD, and type into the prompt "force_install_dir <path>"; <path> being your directory, such as C:\GMOD. Now, still in the SteamCMD menu, type in "app_update 4020". This command downloads, and looks for updates for the specific game code you put in, in this case the game code is 4020, which is garrysmod. Here is a list of all the Steam CMD Game Id's.

HLDS for Half-Life and Counter-Strike 1.6 90
Counter-Strike: Condition Zero dedicated server 90 +app_set_config "90 mod czero"
Deathmatch Classic dedicated server 90 +app_set_config "90 mod dmc"
Day of Defeat dedicated server 90 +app_set_config "90 mod dod"
Half-Life: Opposing Force dedicated server 90 +app_set_config "90 mod gearbox"
Ricochet dedicated server 90 +app_set_config "90 mod ricochet"
Team Fortress Classic dedicated server 90 +app_set_config "90 mod tfc"
Counter-Strike: Global Offensive dedicated server 740
The Ship dedicated server 2403
Garry's Mod dedicated server 4020
Natural Selection 2 dedicated server 4940
Serious Sam 3 dedicated server 41080
Nuclear Dawn dedicated server 111710
Red Orchestra: Ostfront 41-45 Windows dedicated server 223240
Red Orchestra: Ostfront 41-45 Linux dedicated server 223250
Red Orchestra 2: Heroes of Stalingrad and Rising Storm Windows dedicated server 212542
Killing Floor Windows dedicated server 215350
Killing Floor Linux dedicated server 215360
Left 4 Dead 2 dedicated server 222860
Team Fortress 2 dedicated server 232250
Day of Defeat: Source dedicated server 232290
Counter-Strike: Source dedicated server 232330
Half-Life 2: Deathmatch dedicated server 232370
Blade Symphony Beta dedicated server 228780
Source SDK Base 2006 MP dedicated server (i.e. Fortress Forever) 205
Source SDK Base 2013 MP dedicated server 244310
Half-Life Deathmatch: Source dedicated server 255470
Pirates, Vikings, and Knights II dedicated server 17575

Now, we will validate the download by typing: "app_update 4020 validate", again the number 4020 being the game ID.


Español:
Para empezar vamos a ir a nuestro símbolo del sistema. Para Windows , puede simplemente pulse y mantenga
Inicio + R, y escribe "cmd " en la ventana Ejecutar, o para que usted puede entrar en el menú de ejecución a través del menú Inicio y escriba " Símbolo del sistema " . Ahora que ha abierto CMD , que desea escribir " steamcmd " en el CMD , o si usted tiene el tipo linux " . / Steamcmd.sh " . El programa de Steam, se auto- actualización, y el indicador de Steam abierta. Cuando usted tiene Prompt de Steam, lo va a usar para iniciar sesión de forma anónima para descargar el servidor y sus archivos . Así que una vez que esté en el símbolo de Steam, se escribe "login anónimo" , sin embargo , si esto no permite que usted descargue el servidor debe escribir en "login <username> " , en sustitución de <username> con su nombre de usuario de Steam (no el Steam mostrar nombre). Introduzca su contraseña . A continuación, compruebe su e -mail para el código de acceso de la Guardia de Steam y entrar en él ( lo único que necesita hacer esto una vez por equipo ) . Usted debe ver un mensaje que indica que se ha conectado correctamente con tu cuenta . Ahora, vamos a querer minimizar la ventana SteamCMD , y entrar en un área de archivos del Explorador de Windows, o Linux , tales como el disco duro o en el escritorio , por ejemplo, C: \ , ahora para esta tenga en ventanas mente usa barras invertidas , mientras que Linux utiliza barras foraward . Crear una carpeta, y lo llaman nada , por ejemplo , voy a poner esto en mi unidad C: \ , y lo llaman GMOD , debe ser una carpeta. Ahora , vuelva a abrir SteamCMD y escriba en el símbolo del " force_install_dir <path> "; <path> siendo su directorio , como C : \ GMOD . Ahora , todavía en el menú SteamCMD , el tipo de " app_update 4020 " . Este comando descarga , y mira si hay actualizaciones para el código específico del juego que usted pone en , en este caso el código del juego es 4020 , que es garrysmod . Aquí está una lista de todos los juegos de Steam CMD Id de .

HLDS para Half -Life y Counter- Strike 1.6 90
Counter- Strike: Condition Zero servidor dedicado 90 + app_set_config " 90 czero mod "
Servidor Deathmatch Classic dedicado 90 + app_set_config " 90 dmc mod "
Servidor de Day of Defeat dedicado 90 + app_set_config " 90 mod dod "
Half-Life : Opposing Force servidor dedicado 90 + app_set_config " 90 la caja de cambios mod "
Servidor dedicado Ricochet 90 + app_set_config " 90 rebotes mod "
Servidor de Team Fortress Classic dedicado 90 + app_set_config " 90 TFC mod "
Counter- Strike: Global Offensive servidor dedicado 740
The Ship dedicado servidor 2403
Mod servidor dedicado de Garry 4020
Natural Selection 2 servidor dedicado 4940
Serious Sam 3 servidor dedicado 41.080
Servidor Amanecer nuclear dedicado 111710
Red Orchestra : Ostfront 41-45 servidor de Windows dedicado 223240
Red Orchestra : Ostfront 41-45 Linux de servidor dedicado 223250
Red Orquesta 2 : Heroes of Stalingrad servidor y Rising Reparación Ventanas dedicadas 212542
Servidor de Windows dedicado Killing Floor 215350
Killing Floor Linux de servidor dedicado 215360
Left 4 Dead 2 servidor dedicado 222860
Team Fortress 2 servidor dedicado 232250
Day of Defeat: servidor fuente, dedicado 232290
Counter- Strike: Fuente servidor dedicado 232330
Half-Life 2 : Deathmatch servidor dedicado 232370
Servidores Blade Symphony Beta dedicado 228780
Source SDK Base 2006 MP servidor dedicado (es decir Fortress Forever ) 205
Source SDK Base 2013 MP servidor dedicado 244310
Deathmatch Half-Life : Fuente servidor dedicado 255470
Piratas, vikingos y caballeros II servidor dedicado 17.575

Ahora , vamos a validar la descarga escribiendo: " app_update 4020 validate " , de nuevo el número 4020 es el ID de juego.
Setting up Your "Watchdog"
English:
To start up your server, we will want to create a "Watchdog", it prevents crashes as well as reboots it if it does happen to crash. It does this by re-running the startup code. The following code is what we will use to create the server.
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

After you have created this file, you must change it to a .bat file using the save as technique, that entails saving the document as, selecting all files for the files type, and renaming it to "launch.bat".Now, this is highly customizable, the link I gave you is for a csstrike watchdog, which works exactly the same, however you will have to change a few things. You would have to change the game to "garrysmod", and change the map to a map you posses, we will talk about getting maps later. Also, bear in mind, we will have to edit this some more later. The reason I had you get notepad++ was so that we could edit this with ease, it has a better layout, and corrects your mistakes.

Español:
Para iniciar el servidor , vamos a querer crear un " perro guardián " , que evita los accidentes , así como reinicios que si sucede a estrellarse . Para ello, volver a ejecutar el código de inicio . El código siguiente es lo que vamos a utilizar para crear el servidor .
@ echo off
cls
echo Proteger srcds de accidentes ...
echo Si desea cerrar srcds y este script , cierre la ventana srcds y tipo Y en función de su idioma , seguido de Enter.
Watchdog título srcds.com
:srcds
echo ( %time% ) srcds comenzaron .
start / wait srcds.exe -console -game garrysmod + map de_dust + maxplayers 16
echo ( %time%) ADVERTENCIA: srcds cerrados o se estrellaron , reiniciando .
Ir srcds

Después de haber creado el archivo, debe cambiar a un archivo bat. Utilizando el guardar como técnica, que implica guardar el documento como, la selección de todos los archivos para el tipo de archivos, y cambiar el nombre a "launch.bat". Ahora, esto es altamente personalizable , el enlace que te di es para un perro guardián csstrike , que funciona exactamente de la misma , sin embargo , tendrá que cambiar algunas cosas . Usted tendría que cambiar el juego a " garrysmod " , y cambiar el mapa a un mapa que posees , vamos a hablar acerca de cómo obtener los mapas más tarde. Además, tenga en mente, vamos a tener que editar esto un poco más tarde. La razón por la que había que conseguir notepad + + fue para que pudiéramos editar esto con facilidad , tiene un mejor diseño , y corrige tus errores.
Changing your Server to the TTT Gamemode
English:
Now, to change the server to Trouble in Terrorist Town. In yourserver folder locate your "garrysmod" folder. Within that folder there will be a folder called "cfg", your configuration folder. Open that folder, and search for a file called autoexec.cfg. If you do not posess it, you must right click, go to the option for a new text document, open it, and type in "gamemode terrortown", then save as, where it says .txt files, click there, scroll down to all files, and name it autoexec.cfg. Terrortown is the gamemode file location for TTT. Now, edit your watchdog, the bat file we setup. There, at the end is an area after +map de_dustbowl, after that you must put a space followed by "+gamemode terrortown". Now, you should have a TTT server.

Español:
Ahora, para cambiar el servidor a Trouble en Ciudad del Terrorismo. En yourserver carpeta localizar su carpeta "garrysmod". Dentro de esa carpeta habrá una carpeta llamada "cfg", la carpeta de configuración. Abra esa carpeta, y la búsqueda de un archivo llamado autoexec.cfg. Si usted no posee él, debe hacer clic en la derecha, vaya a la opción de un nuevo documento de texto, ábralo, y escriba "terrortown modo de juego", a continuación, guardar como, donde dice. Txt, haga clic allí, desplácese hacia abajo para todos los archivos, y el nombre que autoexec.cfg. Terrortown es el archivo de modo de juego ubicación para TTT. Ahora, edite su perro guardián, el programa de instalación nos bat. Allí, al final es un área después de + mapa de_dustbowl, después de que se debe dejar un espacio, seguido de "terrortown + modo de juego". Ahora, usted debe tener un servidor de TTT.
Port Forwarding
English:
In this section, I will only help people with Belkin routers, however if you go to google, and type in "Port forwarding <router name>" replacing <router name> with the name of your router. It should bring up multiple tutorials.
To port Forward a Belkin router, you will have to go into your command prompt, a skill we have already learned, and type in "ipconfig/all", and look for your "Default Gateway", and the number most likely 192.168.2.1 that follows it is your Default Gateway. You will take this number, and input it into your adress bar for your internet search bar. It will bring up an area showing all your outer information. And, on the left side there will be many tabs, and under the "Firewall" tab, there is a link called "Virtual Servers". Click on it, and it will bring you to a page for oyur password, if you have a password for your router, input it, or if oyu do not have one setup, just leave it blank, and click Login. It should bring you to an area with alot of empty slots, now open back up your cmd, and scroll through until your find your IPV4 adress. Take that number, and under private IP adress, use the last number/ last digit in the dotted list of numbers, and place it into the only slot within The "Private IP Adress" tab. Now, where it says "Inbound Port", and "Private Port", fill in 27015 for all 4 slots. And, unser "Type" scroll down to "Both". Now, ou should have a port setup for others to access your internet, however, if it doesen't work, you will need to disable all your firewalls such as antivirus, and even just windows or linux ones.

Español:
En esta sección , sólo voy a ayudar a la gente con los routers de Belkin , sin embargo, si usted va a Google y escriba " <nombre de reenvío de puertos <router " reemplazando <router name> con el nombre de su router. Debe abrir múltiples tutoriales.
Redirigir puertos de un router de Belkin , tendrá que entrar en su línea de comandos , una habilidad que ya hemos aprendido , y escriba " ipconfig / all" y busque su " Puerta de enlace predeterminada " , y el número más probable es 192.168.2.1 que sigue es su puerta de enlace predeterminada . Usted tomará este número , y la entrada en la barra de dirección de tu barra de búsqueda en Internet. Nos aparecerá un área que muestra toda la información externa . Y , en el lado izquierdo habrá muchas pestañas , y en la pestaña " Firewall" , hay un enlace llamado "Servidores Virtuales" . Haga clic en él , y que le llevará a una página para oyur contraseña, si tiene una contraseña de su router, de entrada , o si oyu no tienen una configuración, déjala en blanco y haga clic en Login. Se debe llevar a un área con una gran cantidad de espacios vacíos , ahora abrir una copia de seguridad cmd , y desplazarse a través hasta su encuentro su dirección IPV4 . Toma ese número , y bajo dirección IP privada , utilice el último número / último dígito en la lista de puntos de los números, y colóquelo en la única ranura dentro de la pestaña " IP Adress privado" . Ahora, donde dice " puerto de entrada " , y " Puerto Privado " , siga los pasos de 27.015 para las 4 ranuras. Y , unser "Tipo" , desplácese hacia abajo a " Both" . Ahora , ou debe tener una configuración de puerto para que otros puedan acceder a su conexión a Internet , sin embargo, si doesen't trabajo, tendrá que desactivar todos los servidores de seguridad , como antivirus , e incluso sólo las ventanas o las de Linux .
Ulx Admin, and TTT Commands
English:
ULX is one of the most famous admin mods in GMOD, and i have provided you with a copy within the ZIP folder. To install the simply go to garrysmod, addons, and unzip the ulx, and the ulib into the directory. Now, there is an ULX website, called ullyses. To get there, go onto Google, and search up Ulysses ULX Commands, or when you start up your server type ulx help. The addon porivdes it's own tutorials. As for the other plugin(s) I have provided, those are also very famous, and helpful, so again, unzip those into the appropriate folder.

Español:
ULX es uno de los más famosos mods de administrador en GMOD, y te he dado una copia de la carpeta ZIP. Para instalar el solo ir a Garrysmod, addons, y descomprima el ulx y el ulib en el directorio. Ahora, no es un sitio web ULX, llamado Ullyses. Para llegar allí, ir a Google y buscar hasta Ulises ULX Comandos, o cuando se arranque el tipo de servidor ulx ayuda. El addon porivdes es poseer tutoriales. En cuanto al otro plug-in (s) que he proporcionado, los que también son muy famosos, y servicial, así que de nuevo, descomprimir aquellos en la carpeta adecuada.
How to Keep it Running Successfully
English:
Always keep your server running, never turn it off. More people will eventually accumulate if the server stays on. Also, do not promote with ease, for some people are only there to grief and have their way with your server. Mkae sure to consitently ban people for misdemeanors that are against your rules, and have a strong-fitted line of punishments, that won't be disobeyed.

Español:
Siempre mantener su servidor en funcionamiento, nunca apagarlo. Más gente finalmente se acumularán si el servidor permanece encendida. Además, no promover con facilidad, para algunas personas sólo están ahí a la pena y tienen su manera con su servidor. Mkae seguro para prohibir consitently personas por delitos menores que están en contra de las reglas, y tienen una línea fuerte cabido de las penas, que no se desobedeció.
Extra Notes
If you run your server on the same computer you play on, it has a high potential for latency, lag, and other complications, while it does still run, you may want to consider playing on another system. If your server is not a LAN server, and people cannot connect, type the word heartbeat into the Console. To give your server a name, and an RCON password go to the SRCDS Cfg Maker, and fill in the info for the first 2 lines, run it, and copy the first two lines to your garrysmod, cfg, server.cfg. Now, your server has a name, and an RCON password that your Officers, and you can use ingame to access the console, however this is a required feature. Andm obviously to launch the server, open your launch.bat watchdog.
Thanks
Thank you to Coolguy6099, Sammi, MelodyPond, and Moralist for inspiring me to create my own server, and this guide :)
61 Comments
Snoop Dogg Dec 14, 2018 @ 10:34am 
ALw d:steamsalty:
[L1V1NG ON A PRAYER] Jun 13, 2018 @ 8:25am 
I WANT FRIENDS WHO HAVE GMOD AND HALF LIFE 2 INSTALLED TO PLAY HALF LIFE 2 IN MY PRIVATE SERV IN GMOD ITS A GAMEMODE PLUS I HAVENT ACTUALLY ENDED HALF LIFE 2
Juble Dec 30, 2017 @ 5:08am 
I got the problem now that the server doesn't download the new workship items
it says "Downloading" but nothing happens
beewyka819 Aug 9, 2017 @ 9:55am 
The server says it cant find de_dust map
adonis May 26, 2017 @ 3:08pm 
can anyone told me how i can add for example more traitor or detective weapons
Juble Jan 19, 2017 @ 9:36am 
thank you
Weedpen Jan 3, 2017 @ 2:56pm 
Sleepy1End, you go to multiplayer > local > you should see your server. You can't connect to it through your own ip.
Sleepy'TillTheEnd Dec 27, 2016 @ 7:28pm 
I wanted to change it to TTT and while it is now more or less running, I can´t seem to "find" my server. Could you help me with this?
Ahg Nov 21, 2016 @ 3:53am 
update links :)