Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Thanks for the help though, im new to making servers
If you want to see how I do it ( makes things a LOT easier ) then read this guide: https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_a_server_with_steamcmd.lua.html
https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_downloads_using_recursive_resource_system.lua.html
and follow a few extra steps ( if I didn't mention them in the guide; I'll update it soon ):
What I do to make testing as efficient as possible is to set up a bat file to launch the server with several things happening:
1) Delete both client and server log files ( if logging is enabled, these files can become quite large very fast ).
2) Update a client config file ( autoexec_lastlocal.cfg which is executed in autoexec.cfg ) alias "lastlocal" to the current server address.. ie: alias lastlocal "connect 10.0.0.2:27015" except using aliases so local = 27015, local16 = 27016, and so on... I have aliases set in autoexec.cfg for 15-25 or so.
3) Launch the server with the gamemode, map, port, etc...
3) varies a bit depending.. If I need to test with multiple players, I use +sv_lan 1 and -insecure so I can run Garry's Mod client multiple times using command line: -multirun and -steam
The first SteamID will be yours, the second will be STEAM_0:0:0, next will have the last 0 become a 1, then 2, and so on.
Here's the bat file should anyone else like to use it ( NOTE common may be your steam user-name depending how old your installation of gmod is for the client... you will need to use your own paths for the server and client... [ you could even set up variables to make it easier ] ):
---------------------------------------------------------------------------------------
del "Z:\dedicated_servers\server_1\garrysmod\console.log"
del "C:\Program Files (x86)\Steam\steamapps\common\garrysmod\garrysmod\console.log"
SET _file="C:\Program Files (x86)\Steam\steamapps\common\garrysmod\garrysmod\cfg\autoexec_lastlocal.cfg"
SET _data=alias lastlocal local
>%_file% ECHO %_data%
Z:\dedicated_servers\server_1\srcds.exe +gamemode acecooldev_framework +map gm_construct -port 27015 -insecure -game garrysmod -tickrate 33 +r_hunkalloclightmaps 0 +rcon_password 1234 +exec server.cfg -console -condebug
exit
---------------------------------------------------------------------------------------
Client cfg/autoexec.cfg contains this pasted in
---------------------------------------------------------------------------------------
alias dc disconnect
alias local15 "connect 10.0.0.2:27015"
alias local16 "connect 10.0.0.2:27016"
alias local17 "connect 10.0.0.2:27017"
alias local18 "connect 10.0.0.2:27018"
alias local19 "connect 10.0.0.2:27019"
alias local20 "connect 10.0.0.2:27020"
alias local21 "connect 10.0.0.2:27021"
alias local22 "connect 10.0.0.2:27022"
alias local23 "connect 10.0.0.2:27023"
alias local24 "connect 10.0.0.2:27024"
alias local25 "connect 10.0.0.2:27025"
alias local26 "connect 10.0.0.2:27026"
alias local27 "connect 10.0.0.2:27027"
alias local28 "connect 10.0.0.2:27028"
alias local29 "connect 10.0.0.2:27029"
alias local30 "connect 10.0.0.2:27030"
alias local31 "connect 10.0.0.2:27031"
alias local32 "connect 10.0.0.2:27032"
alias local33 "connect 10.0.0.2:27033"
alias local34 "connect 10.0.0.2:27034"
alias local35 "connect 10.0.0.2:27035"
alias local local15
exec autoexec_lastlocal.cfg
---------------------------------------------------------------------------------------
You can create autoexec_lastlocal.cfg or let the bat file create it for you. Use the appropriate alias ( or simply set the server launch bat file to set the ip instead of managing the aliases )
I also use the following launch commands when launching gmod through Steam:
-multirun -steam -condebug +lastlocal
which lets me launch a second gmod client ( through bat file only ) and auto connect to the last dev server I launched immediately after starting the game.
I also use an automatic restart app on crash app when developing so any client crash will relaunch the client and reconnect ( without any interaction from me ) and since the long is only removed when the server starts, I can run benchmarks and crash the game as many times as I need to see what works in keeping a stable server [ with clients ] and what doesn't. ).
My memory management methods allows me to have a server with many addons running at 300-400mb ( down to 160mb over time ), and the client low amounts compared to other servers, for weeks on end without restarting ( Declining health limits my use of the computer, sitting and walking so I leave benchmarks running 24/7 most days ).
Here's a list of apps I use: https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_useful_programs_and_notepadpp_upgrades.lua.html