By setting up download rules you can trim down the amount of files a client has to download when first visiting a server to the essentials for each group. It can recursively add files in directories by listing a directory path.
This plugin was inspired by
SWAT_88's
SM Downloader
Get the plugin: https://github.com/Pheubel/UMC-Downloader/releases
Source code hosted on github: https://github.com/Pheubel/UMC-Downloader
Setting up- In order to set up this plugin on your server follow these steps:
- Download the plugin and put it in your plugins folder.
- Set up your "umc_mapcycle.txt" file with the groups you want.
- Create a file named "umc_downloader.json" in your game's root folder.
- Set up your "umc_downloader.json" file. Bellow is an example
Code:
{
"always": {
"sounds": [
"sound/exampleSound.mp3",
],
"models": [
"models/exampleModels"
]
},
"groups": {
"example group": {
"files": [
"exampleFile.txt"
]
}
},
"maps": {
"ctf_2fort": {
"generic": [
"genericCachedFile.txt"
],
"decals": [
"exampleDecals.vtf"
]
}
}
}
The structure works as follows:
In the top level you have 3 different categories: "always", "groups" and "maps".
"always" - Files and directories assigned here will be put in the downloads table no matter which map is selected.
"groups" - divides files and folders over UMC groups, for example "Dodgeball" or "prophunt", each would require their own set of files.
"maps" - With this category you can specify files to be put in the downloads table on a map by map basis.
There are 5 different categories your files can belong to:
- "files"
- "generic"
- "decals"
- "sounds"
- "models"
When files are listed under "files" they will not be precached.
Dependencies:
Suggesting features/reporting bugs:
If you want to suggest any features for this plugin or if you found any bugs caused by the plugin, you can create an issue ticket with details on
this github page.