Automatically download missing maps
  • SourcePawn 86.7%
  • Nix 13.3%
Find a file
Arie 5e1842753a Download maps to a temp file and rename it when complete
Players or pugbots repeating the changelevel command before the download
was finished caused files to get cut off before their end. The server
was then unable to load that map, and since the map was technically
'present', no new download would be attempted. Effectively
breaking the map on that server.
2026-10-14 15:04:35 +02:00
plugin Download maps to a temp file and rename it when complete 2026-10-14 15:04:35 +02:00
.envrc flake 2023-11-11 18:02:45 +01:00
.gitignore flake 2023-11-11 18:02:45 +01:00
flake.lock flake update 2025-10-27 00:48:52 +01:00
flake.nix flake update 2025-10-27 00:48:52 +01:00
LICENSE add license 2020-05-08 19:11:33 +02:00
README.md allow switching to level by url 2023-11-11 18:03:26 +01:00

Map Downloader

Automatically download missing maps.

Download Plugin

Usage

To use the plugin simple change the level using rcon changelevel ... as normal, the plugin will detect when you're trying to load a non existing map and will automatically attempt to download the map before changing to it.

Additionally, you can pass a url to changelevel to download a map from a different location. Due to limitations with tf2 you do need to replace the :// in the url with :/: rcon changelevel https:/someserver.com/somemap.bsp.

Configuration

You can control the location where it tries to download the map from by setting sm_map_download_base (defaults to 'https://fastdl.serveme.tf/maps')

The plugin looks for maps at ${sm_map_download_base}/${map_name}.bsp