mobeigi / EasyDownloader

Download and Precache files the easy way.
https://forums.alliedmods.net/showthread.php?t=292207
GNU General Public License v3.0
8 stars 3 forks source link


Easy Downloader

Download and Precache files the easy way.


Description

This plugin is a simple downloader plugin which downloads/precaches files on any mod.

Instructions

Configuration

Use file/directory paths relative to gamedir root (so include "sound/", "materials/" etc).
One file/directory path per line in the relevant config file.
Directory paths should NOT end with a separator character ('/')
Directories are downloaded recursively.
Blank lines and comment lines (starting with //) are ignored.

Options

Extension whitelisting
You can whitelist certain extensions when using recursive directory downloading.
When using this option, only files with the provided extensions will be downloaded/precached.

Example in models.txt:

//Download all .mdl files from the folder below
models/player/custom_player/some_folder|exts=.mdl

Example in downloadsonly.txt:

//Download the other model files required
models/player/custom_player/some_folder|exts=.dx90.vtx,.phy,.vvd
materials/models/player/some_folder|exts=.vmt,.vtf

Acknowledgements

I decided to write this plugin after SM File/Folder Downloader and Precacher (https://forums.alliedmods.net/showthread.php?t=69005) stopped working for me.
Huge props to SWAT_88 though, RIP buddy ❤️

Powerlord: CSGO/DOTA Asterisk fake precache method (https://forums.alliedmods.net/showthread.php?t=237045)

AlliedModders Plugin Thread

Link: https://forums.alliedmods.net/showthread.php?t=292207

Contributions

Contributions are always welcome! Just make a pull request.

Licence

GNU General Public License v3.0