Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[Any] UMC Downloader ( v1.0.0 )


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
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
  1. In order to set up this plugin on your server follow these steps:
  2. Download the plugin and put it in your plugins folder.
  3. Set up your "umc_mapcycle.txt" file with the groups you want.
  4. Create a file named "umc_downloader.json" in your game's root folder.
  5. 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:
  1. "files"
  2. "generic"
  3. "decals"
  4. "sounds"
  5. "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.

Attached Files
File Type: sp Get Plugin or Get Source (umc_downloader.sp - 8.7 KB)
File Type: inc umc_downloader.inc (423 Bytes)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...