RSSy MYGO.pl Opublikowano Lipiec 31, 2021 o 10:44 RSSy Udostępnij Opublikowano Lipiec 31, 2021 o 10:44 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 upIn 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:sm-json Updater (optional) 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. Attached Files Get Plugin or Get Source (umc_downloader.sp - 8.7 KB) umc_downloader.inc (423 Bytes) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi