RSSy MYGO.pl Opublikowano Lipiec 30, 2021 o 17:20 RSSy Udostępnij Opublikowano Lipiec 30, 2021 o 17:20 Description A simple plugin that loads and precached files and directories based on UMC groups and map names. 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) Attached Files umc_downloader.inc (423 Bytes) Get Plugin or Get Source (umc_downloader.sp - 8.7 KB) umc_downloader.smx (17.1 KB) Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi