AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Simple Downloader (https://forums.alliedmods.net/showthread.php?t=259938)

Drixevel 03-16-2015 04:48

[Any] Simple Downloader
 
3 Attachment(s)
Simple Downloader

Description:
Simple Downloader is a plugin I decided to build in order to allow server operators to add files to precache & add to downloads table without having to worry about coding. This plugin only does checks and loads the code whenever a map first starts so it won't do anything right away. If you disable the plugin with the ConVar, it just won't do anything on map starts, you would have to change it back to on then do a map change for it to work again.

I am aware that 'sm_downloader' is a thing and that's fine as well but this plugin takes advantage of Key value systems plus it allows the server operator to set the path of the config so each map can load a different config.

ConVars:
Code:

simpledownloader_version - Version Control
sm_simpledownloader_status - 1 - Status of the plugin: (1 = on, 0 = off)
sm_simpledownloader_config - configs/simpledownloader.cfg - Full path of the configuration file to load: (IE: configs/simpledownloader.cfg)

Read the example configuration file and download the blank one to edit it and have it do what you need.

Code Repository | Download | Report Bugs | Donate

Drixevel 03-16-2015 04:49

Re: [Any] Simple Downloader
 
Reserved

8guawong 03-16-2015 08:09

Re: [Any] Simple Downloader
 
any difference from
https://forums.alliedmods.net/showthread.php?p=602270
??

Drixevel 03-16-2015 10:52

Re: [Any] Simple Downloader
 
Quote:

Originally Posted by 8guawong (Post 2274429)

You clearly didn't read my post.

aexi0n 03-16-2015 12:41

Re: [Any] Simple Downloader
 
I've been contemplating an SQLlite version of something like this where a table would be created i.e:'content', and the columns would look like so:

Content Name | Type | Path

Hatsune Miku | Model | model/player/anime/miku
Hatsune Miku | Material | materials/model/player/anime/miku

Then if the type is model for example, it will attempt to download/precache miku.mdl, miku.dx90.vtx, and miku.phy, or if the file is a material it would download/precache miku.vmt, miku.vtf, miku_normal.vtf, etc.

Not really sure if this would be efficient or not, but just an idea I had been pondering.

Mitchell 03-16-2015 14:45

Re: [Any] Simple Downloader
 
Quote:

Originally Posted by aexi0n (Post 2274533)
I've been contemplating an SQLlite version of something like this where a table would be created i.e:'content', and the columns would look like so:

Content Name | Type | Path

Hatsune Miku | Model | model/player/anime/miku
Hatsune Miku | Material | materials/model/player/anime/miku

Then if the type is model for example, it will attempt to download/precache miku.mdl, miku.dx90.vtx, and miku.phy, or if the file is a material it would download/precache miku.vmt, miku.vtf, miku_normal.vtf, etc.

Not really sure if this would be efficient or not, but just an idea I had been pondering.

How would you config a sqlite db as a server operator?
Sounds inefficient.

ThatKidWhoGames 03-17-2015 06:09

Re: [Any] Simple Downloader
 
This is a very awesome looking plugin! Will have to test it. :D


All times are GMT -4. The time now is 19:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.