mirror of
https://codeberg.org/spire/mapdownloader.git
synced 2026-11-30 05:10:46 +01:00
Automatically download missing maps
- SourcePawn 86.7%
- Nix 13.3%
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. |
||
|---|---|---|
| plugin | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
Map Downloader
Automatically download missing maps.
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