How to make a gmod server
How to make a gmod server
How to make a gmod server
1,595 | уникальных посетителей |
17 | добавили в избранное |
>Go Into Local Disk. (C:\, D:\, E:\)
>Make a folder named «gmodserver» [no spaces in the folder name, just to make things easier.)
>Download SteamCMD if it’s not aready installed.
>Let it run fist time set up. (If you had SteamCMD alredy dowloaded it will auto-update)
>then type «login anonymous» no caps with one space.
>Then you need to make sure the garry’s mod server files go to the right place (gmodserver folder)
>Type «force_install_dir X*:\gmodserver *X being a place holder for C:\, D:\ or E:\ [Example: I would type «C:\gmodserver»]»
>That sets the install directory as the text implies, now you need to actually install the server files
>Type «app_update 4020» (4020 being the specific file group you want to download for the server)
>Once thats done installing you’ll get the text»Success! App ‘4020’ fully installed» (this takes like 5 min)
>Now thats done you need the CSS files
>Go to X:\gmodserver and make a file called «css»
>Now go to SteamCMD and type «force_install_dir X:\gmodserver\css»
>Then «app_update 232330»
>Wait for that to dowload
>drag the cstrike folder to X:\gmodserver
>Now all the server stuff is ready for setup!
>Go to the gmodserver file you made, make a new Text Doc and name it «start.bat» its good that it stays a Text Doc
>Editing this file can help in qite a few ways. (I touch more on this later)
>now double click on the start.bat Text Doc and save as: «start.bat» now it’s a batch file!
>If you launch the «start.bat» now it will start the server on your local network. meaning it’s not public until you port-forward.
>(i’ll also touch on that)
>Also on properly shutting down the server,
>Also im sure if you have done that you realise it’s not a Dark RP server. (Yet!)
>To fix this you have to download a zip file but before i send you off doing that, go into X:\gmodserver\garrysmod\gamemodes
>Good now keep that up and goto this link: https://github.com/FPtje/DarkRP
>Once on the websitesite, click «Clone or Download» then «Download Zip».
>Open up the zip and drag the «DarkRP-master» folder into X:\gmodserver\garrysmod\gamemodes (Should still be up!)
>Rename it to «darkrp» (Now we need to make sure that the «start.bat» runs it as that specific gamemode)
>Go back to «gmodserver» and edit the «start.bat»
>After «+maxplayer XX» add «+gamemode darkrp» It should look like this:
>Also doing admin stuff is a bishh ulx you have ULX or some form (ulx being an admin manager tool)
>Most recent ULX is (http://ulyssesmod.net/archive/ulx/install-ulx-v3_73.exe) [also that link is a staight download for ULX]
>Click «OK» then «I Agree» then make sure to change the download path to: X:\gmodserver\garrysmod\addons
>You will get a popup that says nothing to usefull except «Use «ulx help» in console to see list of commands, say «/!menu» for ulx admin menu»
>The ‘un-usefull’ stuff is just saying to look up instructions for ading users as admins but ill touch on that.
>Also ulx is installed! boot up your server (start.bat) and see your glorious darkrp server with admin tools and. oh it’s still a sandbox map.
>before you go, go to the server console and type:
«ulx adduser superadmin»
>Since stock maps are crappy brows the workshop till you find something you like (Ill be touching on multi-part maps)
>To see the map you dowloaded from the workshop go to X:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons
>This is easly done by using gmad extractor and good news. you already have it!
>go to «X:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin» to find «gmad»
>Keep the addons file open in your steam garrysmod folder open as you re-open X:\Program Files (x86)\Steam\steamapps\common\GarrysMod
>Copy the name of the map and make sure you get the whole name and replace «gm_construct» (Example: +map gm_flatgrass / +map rp_danktown)
>And now you have changed the map!
>If the map has multipule parts you have to add them like you would add workshop mods to your server (Including the main map!)
>Adding workshop mods is pretty easy and even easier to add more workshop apon
>First you make a collection of mods that you are going to add to your server.
>Make sure you are subscribed to your mods your adding to your server (Should be obvious..)
>Launch the game to actually download them into your gmod.
>Once the worshop mods finish installing exit gmod and edit to your servers start.bat
>I get yor confused on what that is. It calls your workshop collection key with +host_workshop_collection
>You can find the ID by copying the id at the end of your collection url
>But then theres the «-authkey» after the «+host_workshop_collection INSERTCOLLECTIONID». the «authkey» is your steam API key
>If the «Domain Name» is empty just type: steamidfinder.com then check «I agree» and «Register». theres your key
>Add that key next to «-authkey»
>Nice! you added your mods.
>Not alot of people will spend twenty minuets to get on your server just waiting for the downloads I recommend FastDL
>It takes a little bit extra time but its worth it!
>Go to X:\gmodserver\garrysmod\lua\autorun\server and make a new Text Doc named workshop.lua
>Edit this file and type «resource.AddFile(«»)» copy and paste the ♥♥♥♥♥ out of that.
>Go to your Web browser and go to your workshop collection for your server (This must be done from Web Browser!)
>just like your collections id you have to get the id for every individual mod you have installed
>So i take «xxxxxxxxx» and paste it like so: resource.AddFile(«XXXXXXXXX»)
>You end up with:
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
resource.AddFile(«XXXXXXXXX»)
>This is good! this makes your server auto load thoes files insted of just fetching them from a pool that is your collection
>Now you have a server thats darkrp, fastdl and your own workshop mods added
>Dont forget about ULX
How to make a gmod server
14,059 | уникальных посетителей |
200 | добавили в избранное |
So your probably wondering what all this dose don’t worry I will explain you need to know.
The only line we will be looking at is the 8th line.
Code explanation
«start /wait srcds.exe» this doesn’t matter don’t touch it.
«-console» this doesn’t matter don’t touch it.
«-game garrysmod» this is just what game it is again don’t touch it.
«+map gm_construct» ok so this is what map it will be running don’t change this unless you know how to add maps that will be in another guide.
«+maxplayers 16» this is easy to understand this is simply the max amount of players change the number to change the max players.
Ok so once you’ve changed the code to what you need to look like you need to press control+s or go to file save as then find where you server folder is and save it as start.bat (don’t save it yet) under the name of the file when saving it you need to click on it and find where it says «all files» click on that then you can save it.
Ok so now you want to go into your gmod server folder then garrysmod > cfg and then open server.cfg or my directory would look like this «C:\gmodserver\garrysmod\cfg» then open it with notepad++ or notepad. Now even I wouldn’t write this on my own but you can if you want but I’m going to show you a generator to make it for you «http://gmod-servercfg.appspot.com». (don’t worry if you don’t understand all the settings I will explain the main ones)
Settings Explanation
hostname «(name of server)»
rcon_password «(you need one, keep it private)»
sv_password «(password to get on server)»
sv_region 3 (don’t worry the generator will let you know what this it)
sv_lan 0 (is the server only for people using your internet 0 = No 1 = yes if its 0 any one on the internet can get on)
Ok so you’ve filled that in accordingly then you press generate cfg at the bottom then copy the code it gives you and paste it in the server.cfg and save. Your finished with this section!
There is away of doing this with out disabling your firewall but its a bit more complicated this can be found at the bottom of this section. I would highly not recommend disabling your firewall as this is extreamly dangerous
Easy Way (NOT RECOMMENDED)
To disable your firewall go to your start menu and type «firewall» click on where it says «Windows Firewall» (note: if you not an admin on your computer you will have to right click and run as admin and get your computer admin to type in there password). Once the window has opened click on «turn off/on firewall» to the left of the window. Then under home/work network click turn off.
Advanced Way (RECOMMENDED)
go to your start menu and type «firewall» click on where it says «Windows Firewall with Advanced security» (note: if you not an admin on your computer you will have to right click and run as admin and get your computer admin to type in there password). When it has opened click on outbound rules and then click create new rule. You’ll get a window popup you need to click «program» then click next. On the next page click «This program path» then press browse and find you gmod server dir and once you select the program called «srcds» and then click next. On this page click on «Allow the connection» and then click next. On this page it will ask for a name it doesn’t matter what the name is just name it some thing you can remember, then click finished. You will want to repeat the process for inbound rules and then you can continue to the next section.
(Personally I hate this bit) press start and type in cmd and then click enter. You will get a command prompt type «ipconfig» and press enter under the first section you will see some thing called «default gateway» and some numbers next to it you want to write the numbers down some where you’ll need them. Go in to your Internet browser and at the top bar type in those numbers that’s your ip. It will take you to your Internet settings page login and find the portfowarding section (This might be different depending on what your router is don’t ask me I don’t have every router under the sun).
You want to make a portfoward
Starting Port: 27015
Ending Port: 27015
Traffic Type: UPD And TCP (listed as «TPC/UPD»)
Once you have done that create another port exactly the same but with the starting and ending port 27005
Where I have typed ipv4 you need to put yours to find it out go back to your command prompt under the same section your got your ip from you need to find «IPv4 Address» and get the numbers from that and put them in there. The rest of the setting should be fine. Then you save your settings and should be good to close it.
Ok so your done to run your server just click on run.bat and then your away. If you would like to add addons to your server I will make a guide about that soon. If you would like to add maps to your server I will make a guide about that soon as well. Have fun.
If you have noticed any part of the guide not working please contact me so I can fix it 🙂
(I will add stuff here if people are having problems in the comments)
I had a few questions in the comments so I’m going to answers some of them:
Q. Does it cost money?
A. No it doesn’t but if you wish to do it with a hosting company they will charge
Q. I can’t get on to the page to download steamcmd what should I do?
A. If the link doesn’t work then type in google «steamcmd» and you should find it some where
Q. Server Not Responding for other people?
A. Please check your portforward try delete your portforward and make it again. (some times is the issue)
Q. Do I accept friend requests?
A. Normally Just To Help People
Q. How do I make my self admin?
A. You can’t but you can install an addon like ulx to make permissions etc
How to make a gmod server
14,059 | уникальных посетителей |
200 | добавили в избранное |
So your probably wondering what all this dose don’t worry I will explain you need to know.
The only line we will be looking at is the 8th line.
Code explanation
«start /wait srcds.exe» this doesn’t matter don’t touch it.
«-console» this doesn’t matter don’t touch it.
«-game garrysmod» this is just what game it is again don’t touch it.
«+map gm_construct» ok so this is what map it will be running don’t change this unless you know how to add maps that will be in another guide.
«+maxplayers 16» this is easy to understand this is simply the max amount of players change the number to change the max players.
Ok so once you’ve changed the code to what you need to look like you need to press control+s or go to file save as then find where you server folder is and save it as start.bat (don’t save it yet) under the name of the file when saving it you need to click on it and find where it says «all files» click on that then you can save it.
Ok so now you want to go into your gmod server folder then garrysmod > cfg and then open server.cfg or my directory would look like this «C:\gmodserver\garrysmod\cfg» then open it with notepad++ or notepad. Now even I wouldn’t write this on my own but you can if you want but I’m going to show you a generator to make it for you «http://gmod-servercfg.appspot.com». (don’t worry if you don’t understand all the settings I will explain the main ones)
Settings Explanation
hostname «(name of server)»
rcon_password «(you need one, keep it private)»
sv_password «(password to get on server)»
sv_region 3 (don’t worry the generator will let you know what this it)
sv_lan 0 (is the server only for people using your internet 0 = No 1 = yes if its 0 any one on the internet can get on)
Ok so you’ve filled that in accordingly then you press generate cfg at the bottom then copy the code it gives you and paste it in the server.cfg and save. Your finished with this section!
There is away of doing this with out disabling your firewall but its a bit more complicated this can be found at the bottom of this section. I would highly not recommend disabling your firewall as this is extreamly dangerous
Easy Way (NOT RECOMMENDED)
To disable your firewall go to your start menu and type «firewall» click on where it says «Windows Firewall» (note: if you not an admin on your computer you will have to right click and run as admin and get your computer admin to type in there password). Once the window has opened click on «turn off/on firewall» to the left of the window. Then under home/work network click turn off.
Advanced Way (RECOMMENDED)
go to your start menu and type «firewall» click on where it says «Windows Firewall with Advanced security» (note: if you not an admin on your computer you will have to right click and run as admin and get your computer admin to type in there password). When it has opened click on outbound rules and then click create new rule. You’ll get a window popup you need to click «program» then click next. On the next page click «This program path» then press browse and find you gmod server dir and once you select the program called «srcds» and then click next. On this page click on «Allow the connection» and then click next. On this page it will ask for a name it doesn’t matter what the name is just name it some thing you can remember, then click finished. You will want to repeat the process for inbound rules and then you can continue to the next section.
(Personally I hate this bit) press start and type in cmd and then click enter. You will get a command prompt type «ipconfig» and press enter under the first section you will see some thing called «default gateway» and some numbers next to it you want to write the numbers down some where you’ll need them. Go in to your Internet browser and at the top bar type in those numbers that’s your ip. It will take you to your Internet settings page login and find the portfowarding section (This might be different depending on what your router is don’t ask me I don’t have every router under the sun).
You want to make a portfoward
Starting Port: 27015
Ending Port: 27015
Traffic Type: UPD And TCP (listed as «TPC/UPD»)
Once you have done that create another port exactly the same but with the starting and ending port 27005
Where I have typed ipv4 you need to put yours to find it out go back to your command prompt under the same section your got your ip from you need to find «IPv4 Address» and get the numbers from that and put them in there. The rest of the setting should be fine. Then you save your settings and should be good to close it.
Ok so your done to run your server just click on run.bat and then your away. If you would like to add addons to your server I will make a guide about that soon. If you would like to add maps to your server I will make a guide about that soon as well. Have fun.
If you have noticed any part of the guide not working please contact me so I can fix it 🙂
(I will add stuff here if people are having problems in the comments)
I had a few questions in the comments so I’m going to answers some of them:
Q. Does it cost money?
A. No it doesn’t but if you wish to do it with a hosting company they will charge
Q. I can’t get on to the page to download steamcmd what should I do?
A. If the link doesn’t work then type in google «steamcmd» and you should find it some where
Q. Server Not Responding for other people?
A. Please check your portforward try delete your portforward and make it again. (some times is the issue)
Q. Do I accept friend requests?
A. Normally Just To Help People
Q. How do I make my self admin?
A. You can’t but you can install an addon like ulx to make permissions etc
How to make a gmod server
21,301 | уникальных посетителей |
464 | добавили в избранное |
Creating Your Install Folder
Before you download anything, I first recommend that you already have in mind where you wish to install the necessary files for your server.
In this guide, the installation directory I will be using is «E:/GMOD/» and any references made to the installation directory will always be where you decide to make your directory.
NOTE: It is recommended that you do NOT place SteamCMD in a directory with spaces as this can cause problems. (Pointed out by ATLAS)
This is just an example of my folder location, yours may vary.
Downloading SteamCMD
SteamCMD is a terminal program created by Valve used to download and install Source Dedicated Servers, such as Garry’s Mod.
SteamCMD can be downloaded here.
I will only be using the Windows version and cannot confirm if this guide will work on any other OS.
Upon first launch, SteamCMD will update itself a few times. This is normal.
After updating, you will be met with a blank command line. You are ready to continue to the next section!
Connecting to the Valve Servers
Before the server is downloaded, you must connect to the Valve servers so all the server content may be requested and downloaded.
To connect to the servers, you must login. There are two ways to login: Anonymously or with your Steam account. Anonymously is usually the best and quickest, but does not always work.
To login simply type the following command:
«login anonymous»
If this method does not work you can always login with your own info:
Ex: login bobby B0bby$P@ssw0rd
Directory and Installation
Now, we are met with the longest part. Downloading the server.
First you need to tell SteamCMD where we wish to install the garrysmod server. This is the same folder you created at the beginning.
Simply enter the command:
«force_install_dir E:\GMOD»
(Note: E:\GMOD will probably be different for you)
Now to download and install the server files, enter the command:
«app_update 4020 validate»
Please note this will take some time to complete. Simply leave the terminal running.
When this is finished you will see the message «Success! App ‘4020’ fully installed.
This file will be blank so we must add some content to it. This code will tell the server how to start.
Go to this website and scroll to the «Extra) Restarting srcds at crash [www.srcds.com] » Section.
At this point you should start up Garry’s Mod and ensure you can connect through local network.
When connecting, check the console. It should say that you have connected:
Once you have confirmed you can connect, close your server.
Background Info
Configuring your server can be just as important as getting it to start. This section will try to be as detailed as possible to ensure you can customize your server any way you want to. Configuring the server involves the internal settings and basic admin addons that may be useful.
Locating the Server Configuration File
Inside of your server folder, the same one as srcds.exe and your start.bat, there should be a folder called garrysmod. This is where a lot of the configuration will be done inside. If you are using a file structure similar to mine. It will be located in «E:\GMOD\garrysmod\»
To get to the main configuration file, go from the garrysmod folder to cfg and open the file named server.cfg (I recommend using Notepad++ for this):
«garrysmod/cfg/server.cfg/»
This file will be initially blank and this is where you need to add your settings.
Setting Up the Configuration
There is a great website tool that will generate a server.cfg file for you to past into your own server.cfg
I will not be going over all of these settings, however there are some that are very crucial to ensuring a smooth playing experience.
Background Info
Portforwarding is always the section where the most people have issues. It is not really a hard concept to understand, and while some people genuinely have issues, it is just a matter of knowing how to access your router.
Accessing Your Router
To access your router, you will need to know your default gateway. This is IP of your router. You can find the gateway IP for your router using Command Prompt.
Using Command Prompt
Press the «Start» button and search for «CMD.» There should be a program called cmd.exe
RIGHT CLICK THIS AND RUN IT AS AN ADMINISTRATOR.
Type in the command «ipconfig«
You may see many things come up, however most likely one one will have the IP next to Default Gateway.
In my case, my default gateway is 192.168.0.1
Also copy down the IPv4 address associated with the default gateway.
My IPv4 address is 192.168.0.15
Find your router brand, mine is Motorola, and select the game you are trying to port forward. This site will tell you the default login and gateway IP for your router.
Logging on to Your Router
On an internet browser, type in the default gateway IP that you found. You will most likely have to login. Find the login info if you do not know it on http://portforward.com/english/routers/port_forwarding/routerindex.htm
Forwarding the Required Ports
In your router home screen, try and find a section labeled «Forwarding» or «Port Forwarding» just something along those lines.
By default, the ports that all source games use are usually in the 27015-27020 range. Because of this, it is good to forward ports in that range. Note: If your router only supports single port forwarding, you can just forward 27015 and be fine.
Create a new forwarding setting, on some routers there will be no button and you just enter into boxes. That works the same way.
When creating the new forward, it will ask for a local IP. This is the same local IP that I had you copy down earlier when you found the default gateway as well.
For the sake of convenience, you can just copy my settings in the picture above (click the picture to make it bigger).
Remember to hit apply! Your router may restart.
NOTE: Some routers may require an extra step like mine. If your router has a DMZ Host setting, it is good to enter your IPv4 address there. See the picture below if you have this setting.
Checking Your Port
Now is a good time to check your port, to make sure you did everything right.
This website allows you to check if your server is visible to the open world.
Start up your server and wait for the VAC message. Then on that website, type in the port 27015 into the port box. Now click «Check Port’
If you have succesfully port forwarded, you will get the message «Success: I can see your service on YOURIPHERE on port (27015)»
If you get an error message, you did something wrong in port forwarding. Please try again.
Finding Your Public IP
Your public IP is the address that you can give your friends so they can connect to the server when it is online, of course they could also find the same of your server in the game or join on you if you join the server; but nonetheless it is a good thing to have.
That string of numbers is what you can give to your friends to connect to your server, I recommend having somebody try to connect to makesure people who are not in your home network can connect.
If your friends cannot connect you have a portforwarding issue.
Background Info
ULX is an administration addon that many servers use to manage users and run commands through a nice interface. The addon is very easy to install and setup, so this section is recommended to do.
This is what ULX looks like with the GUI.
Download the ULib 2.51 (.zip) and ULX 3.61 (.zip) (Requires ULib v2.51+) from that page
Installation
Go to your server installation folder, in this case «E:\GMOD»
Then go to the ‘garrysmod > addons» folder
That’s all there is to installing.
Making Yourself a Super Admin
Start up the server and join it yourself.
Once you have joined, alt+tab out of garrysmod (leave it running).
Inside of your server console type the command «ulx adduser superadmin»
Where name is your Steam name.
Since I am «The Doctor Jew» that is what I will put:
ulx adduser «The Doctor Jew» superadmin (I recommend putting quotes if your name has spaces)
Using the GUI with ULX
Great, you have installed ULX and you are now a superadmin. You may be wondering, how do I bring up the fancy GUI? Well that’s easy. Just type xgui into the console!
Now, we don’t want to have to type xgui into the console EVERY time we want to use the GUI right?
To avoid this you can bind a key to the command.
Take for instance the «i» key. That isn’t really used in GMod, so that is the key I picked. You can use any key on the keyboard, just make sure nothing else uses it in game.
Open up the console and type: bind «i» xgui (replace «i» with any other key)
Many times people do not successfully get their server working the first try, and while I could just tell you to look to Google for help, I will at least try to go over some common issues.
SteamCMD
Most SteamCMD issues can be resolved simply by trying again. Yes, I know the download takes a while, but sometimes it is just necessary.
Open up SteamCMD again.
Simply enter the command:
«force_install_dir E:\GMOD»
(Note: E:\GMOD will probably be different for you)
Now to download and install the server files, enter the command:
«app_update 4020 validate»
This will check all of your files and update them. If you accidently delete a file or corrupt/change one, don’t worry this will redownload them.
In case you want a video to go along with this text guide I will be providing some helpful resources, trust me using them both together can clear up a lot of issues.
Here are two videos I believe do a good job at going through this process:
Please join the group if you need further help and ask anybody!
How to make a gmod server
2,063 | уникальных посетителей |
12 | добавили в избранное |
First, you need to know how to port forward. this is pretty simple! The way you do this is by opening cmd and typing IP config, Now keep cmd open and do not touch that it is needed for later on. Now what you need to do is type in what is my IP on the internet, then search this number where the»http://www.whateversthere.com» once you are there you must go into (bare in mind I’m using a sky router) security tab after logging in then from security>services and then add custom service. Right once there put these in the order I have
Service Definition
Name: Gmod
Type: TCP/UPD
Start Port:27015
Finish Port:27016
now what you do is click «Apply» then you should see it there then what you need to do is go to firewall rules which are right next to the services tab in security. Right for me, I had to add an inbound service which is what you’re meant to do. for a sky router, it should look something like this
Service: Gmod(TCP/UPD:27015:27015)
Action ALWAYS ALLOW
Send to LAN Server: right the cmd-tab I told you to leave open fill in the IPV4 address with it for example «192.160.0.5»(not a real IP) it will look similar to that.
WAN Users Any
Start:0.0.0.0
Finish:0.0.0.0
Log Never
Then click apply then simply make sure the box that says enable has a tick in it then you just simply log out and test DO NOT START SINGLE PLAYER. I did this mistake first time make sure when you press start a new game you change the single player tab to I don’t know something like 4 players allowed then mess with whatever settings you want and hit start.
The downside to this is the fact that your friends will have download all your addons so give them links to them so they don’t have to download too much. I would have put pic’s on this guide but steam wouldn’t let me any questions PM me ill try help you. If I can’t ill try to find someone who can if not I’m sorry I couldn’t help.BTW this server also depends on your connection if you have terrible connection DO NOT HOST THIS WILL CAUSE MASSIVE LAG FOR EVERYONE IF YOU HAVE A BAD CONNECTION!
|Note| I forgot to tell you your IP does change just fix it with CMD IP config if it does change.