Some server owners out there have surely asked themselves how to get a cheap host for their files.
Well… the answer is simple. In this tutorial i assume you’ve downloaded and installed dropbox from www.dropbox.com.
To make your server less laggy, you can make the players joining your server download the server content from another place. This is done by the fancy console command called “sv_downloadurl”.
Here are some easy steps to set up your server to use a download url:
[WARNING: WALL OF TEXT]
Create a folder called “garrysmod” in your public folder inside your “My Dropbox” folder.
Create these files inside the “My Dropbox/public/garrysmod/” folder:
if you want to add addons, you have to copy the base files, addons are purely emulators for garrysmod.
-. Go to your addon folder, in this example I will use the phx addon from my garrysmod folder.
-. in “garrysmod/addons/phx” copy: maps, materials, models and sound.
- settings, scripts and data are server side files (will not be needed by people that are joining)
-. paste them in “My dropbox/public/garrysmod/”, and overwrite
-. Hint: You can not copy other folders than the one mentioned in step 2 and paste them in the
dropbox, it won’t work…
In this step, we will get the lua files needed by the client.
-. go to “garrysmod/cache” and copy the “dua” file.
- PS. If you don't want this file to be gigantic, delete it, delete the addons you're not using (back them up if you want) from the garrysmod folder on your computer. - Start up garrysmod - Create a listen server (play multiplayer). - Exit garrysmod - now copy the dua folder from "garrysmod/cache"
-. paste the dua folder in the garrysmod folder located in your dropbox.
go to a random file (not folder) in the garrysmod folder in the dropbox, right click it, open “dropbox” and press “copy public link”.
Make it start!
-. Go to your game.cfg located in the cfg folder inside your garrysmod folder/the server’s garrysmod folder. (or server.cfg)
-. paste the link you copied in a notepad, and remove the last parts of the link until it looks like this:
-. paste this on the bottom: (change the link to yours)
You are ready to go!