In short
GMod FastDL lets players download your server's custom maps, models and sounds from a web server instead of the game server. You upload the files to a web server using the garrysmod folder structure, compress them with bz2 and set the URL with sv_downloadurl in server.cfg. For content that's on the Workshop, resource.AddWorkshop is often a simpler and faster alternative.
In this guide
- How GMod content delivery works
- What you need for FastDL
- Step-by-step FastDL setup
- The Workshop alternative: resource.AddWorkshop
- ERROR models and purple-and-black textures
- Keeping your FastDL folder up to date
- Checklist if FastDL isn't working
- More tips to cut join times
- Next step: keep your server fast and lean
If players sit on the "Downloading..." screen for minutes the first time they join your server, or see models labeled ERROR on the map, the problem is content delivery. FastDL (Fast Download) sends custom content to players from an HTTP web server instead of the game server's slow built-in download channel. This guide covers setting up FastDL with sv_downloadurl, compressing files with bz2, the Workshop alternative and what causes missing textures.
How GMod content delivery works
When a player connects, they need to download any files the server has that they don't (maps, models, materials, sounds). GMod has three ways to do this:
| Method | How it works | Speed | Best for |
|---|---|---|---|
| Direct download | The game server sends the file over its own connection | Slow, and it keeps the server busy | Very small files only |
| FastDL | The player pulls the file from the web server at sv_downloadurl | Fast, even smaller with bz2 | Custom content not on the Workshop |
| Workshop | The player downloads content through Steam's infrastructure | Fast, easy to set up | Content published on the Workshop |
In short: if your content is on the Workshop, use the Workshop first, and set up FastDL for content that isn't (custom-made or content you've edited yourself).
What you need for FastDL
- A web server that can serve files over HTTP or HTTPS (nginx, Apache or a web hosting account).
- A copy of the custom content on your server.
- Compression with
bzip2(Linux) or 7-Zip (Windows). - Access to the game server's
server.cfgfile.
The web server doesn't have to be on the same machine as the game server. You can run your game server on a panel-based Garry's Mod server and serve your FastDL files from separate web hosting.
Where should you run the web server?
FastDL doesn't need a heavy web server; its only job is sending static files. What matters is a fast, reliable connection that's geographically close to your players. If you already have a website, creating a separate subdomain (e.g. fastdl.) on that hosting account is enough for most communities. If you run the web server on the same machine as the game server, remember that download traffic will share the same connection as game traffic; during big map updates, a separate machine is more comfortable.
Step-by-step FastDL setup
1. Create the folder structure
The FastDL folder must mirror the structure of the garrysmod folder on the game server exactly. When a player looks for a file, they append the file's relative path to the sv_downloadurl URL.
fastdl/
maps/
rp_ornekharita.bsp.bz2
materials/
ornek/
duvar.vtf.bz2
duvar.vmt.bz2
models/
ornek/
sandalye.mdl.bz2
sandalye.vvd.bz2
sandalye.dx90.vtx.bz2
sandalye.phy.bz2
sound/
ornek/
muzik.mp3.bz2
resource/
fonts/On Linux web servers, paths are case-sensitive. Keeping folder and file names lowercase prevents most "file not found" problems from the start.
2. Compress files with bz2
The GMod client first looks for a .bz2 version of the file and downloads the uncompressed file only if it can't find one. Large files like maps shrink noticeably with bz2.
On Linux, compress the whole folder with a single command (original files are kept):
cd /var/www/fastdl/gmod
find . -type f ! -name '*.bz2' -exec bzip2 -kf9 {} \;On Windows, for a single file with 7-Zip:
"C:\Program Files\7-Zip\7z.exe" a -tbzip2 rp_ornekharita.bsp.bz2 rp_ornekharita.bsp3. Configure the web server
A simple nginx example:
server {
listen 80;
server_name fastdl.ornekalanadi.com;
root /var/www/fastdl;
location /gmod/ {
autoindex off;
try_files $uri =404;
}
}After configuring, open http://fastdl.ornekalanadi.com/gmod/maps/rp_ornekharita.bsp.bz2 in your browser to confirm the file downloads. If it won't download in the browser, the game can't download it either.
4. Set up server.cfg
sv_downloadurl "http://fastdl.ornekalanadi.com/gmod/"
sv_allowdownload 0
sv_allowupload 0- sv_downloadurl: The FastDL root URL. Don't forget the trailing
/; the URL must point directly to the directory containing folders likemapsandmaterials. - sv_allowdownload 0: Stops the game server from sending files over its own channel, so only FastDL is used. You can leave it at 1 as a fallback during the transition.
- sv_allowupload 0: Stops players from uploading files such as sprays to the server.
5. Specify which files to send
The map file is sent to players automatically. But for models, materials and sounds used by addons, the server has to tell the client about them. To do that, create a file under lua/autorun/server/:
-- lua/autorun/server/fastdl.lua
resource.AddFile("models/ornek/sandalye.mdl")
resource.AddFile("materials/ornek/duvar.vmt")
resource.AddSingleFile("sound/ornek/muzik.mp3")resource.AddFile also automatically adds the related files for models and materials (e.g. .vvd, .vtx, .vtf). resource.AddSingleFile adds only the file you specify.
The Workshop alternative: resource.AddWorkshop
If your content is published on the Workshop, you may not need FastDL at all. Add the Workshop item IDs to the same autorun file:
resource.AddWorkshop("123456789")
resource.AddWorkshop("987654321")These lines make players download those Workshop items through Steam when they connect. For the server itself to load the items, you also need to set up a Workshop collection; details are in our guide to adding a GMod Workshop collection.
A practical rule: serve everything that's on the Workshop from the Workshop, and everything else from FastDL. Using both methods for the same content can make players download the same file twice.
ERROR models and purple-and-black textures
A red ERROR sign on the map means a model is missing; purple-and-black checkered surfaces mean a material (texture) is missing. The causes:
- The file is never sent: There's no
resource.AddFileorresource.AddWorkshopline for the content. - The FastDL path is wrong: The file sits in a different folder on the web server or with different letter case.
- Game content is missing: The map or addon uses content from another Source game such as Counter-Strike: Source, and the player doesn't have that game installed. This content is copyrighted, so it shouldn't be distributed via FastDL; the player needs to own the game and mount it in GMod.
- Corrupt cache: A partially downloaded file in the player's cache. It's fixed when the player deletes that file and reconnects.
If you also see Lua errors in the console along with ERROR models, the problem may be code rather than content; see our GMod Lua errors guide.
Keeping your FastDL folder up to date
FastDL most often breaks when new content is added to the server but nobody remembers to copy it to the web server. If the game server and FastDL are on the same Linux machine, a small script that syncs the content folders automates the job:
#!/bin/bash
# fastdl-esitle.sh: copies game server content to the FastDL folder and compresses it
KAYNAK=/home/gmod/server/garrysmod
HEDEF=/var/www/fastdl/gmod
for d in maps materials models sound resource; do
rsync -a --include='*/' --exclude='*.bz2' "$KAYNAK/$d/" "$HEDEF/$d/"
done
cd "$HEDEF"
if [ -f .son-esitleme ]; then YENI='-newer .son-esitleme'; else YENI=''; fi
find . -type f ! -name '*.bz2' ! -name '.son-esitleme' $YENI -exec bzip2 -kf9 {} \;
touch .son-esitlemeThe script only recompresses files changed since the last sync; on the first run it compresses everything. If the files are on different machines, just upload the content over SFTP and run the compression command on the web server. After every content update, connect to the server with a test account from a client with a cleared cache to confirm the files really download from FastDL.
Checklist if FastDL isn't working
- Open the URL in a browser: Append a map path to your
sv_downloadurlvalue and try it in a browser. If you get a 404, the problem is the folder structure or the web server config. - Check the trailing slash: Without a
/at the end of the URL, the client may join paths incorrectly. - Compare letter case: Differences like
Materials/Ornekin the game andmaterials/ornekon the server mean the file can't be found on Linux. - Make sure compressed files are current: If you change the original file but leave the old
.bz2file, players download the old version and get a mismatch with the server. - Check the web server logs: If no request shows up in the access log when a player connects, the client never reaches FastDL; check in the console that
sv_downloadurlis read correctly at server startup.
More tips to cut join times
- Remove unused addons and Workshop items; the shorter the download list, the faster players join.
- Drop very large map packs from the rotation, or keep only the maps that actually get played.
- When you add new content, rerun the compression command and make sure your bz2 files are up to date.
- Show players a message on the loading screen saying a download is in progress; it makes the wait feel shorter.
Next step: keep your server fast and lean
With FastDL and the Workshop set up correctly, your players connect faster, and your game server can focus on running the game instead of sending files. OyunBulut's OB-GMOD-3 Garry's Mod server with 8 GB RAM is a balanced plan for mid-sized DarkRP or TTT servers that host a Workshop collection and custom content, and you can edit server.cfg and lua/autorun files from the web panel. You can compare other capacities on our Garry's Mod server plans page.
Frequently asked questions
What is GMod FastDL?
FastDL serves a server's custom content to players over HTTP from a web server instead of the game server. It's enabled with the sv_downloadurl setting and noticeably shortens join times.
Do I need a separate web server for FastDL?
Yes, you need a web server or web hosting account that can serve files over HTTP or HTTPS. It doesn't have to be on the same machine as the game server.
Should I use FastDL or the Workshop?
If the content is published on the Workshop, resource.AddWorkshop is easier and faster. Use FastDL for custom content that isn't on the Workshop.
I set up FastDL but players still see ERROR. Why?
The file may not be registered with resource.AddFile, the FastDL path may be wrong, or the letter case may differ. ERROR can also come from content of a game the player doesn't have installed, such as Counter-Strike: Source.
Is bz2 compression required?
No; if the client can't find a bz2 version, it downloads the uncompressed file. But because bz2 shrinks file size, it cuts download time, especially for maps.