AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Auto File Loader (Automatic Precaching/Downloads) (https://forums.alliedmods.net/showthread.php?t=293254)

Drixevel 01-27-2017 00:50

[ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Auto File Loader


Description:
This plugin handles precaching of files and adding those files to downloads automatically. This is an automated plugin which is meant to be drag, drop and forget in order to handle all custom files on the server. This plugin precaches models and sounds and adds all the necessary materials/models/sound files to the downloads list. This plugin also handles the 'custom' subfolders as well for games and server operators that use it.

ConVars:
  • sm_autofileloader_version - N/A - Version Control
  • sm_autofileloader_status - 1 - Status of the plugin.
  • sm_autofileloader_exclusions_file - configs/afl_exclusions.cfg - File location to use for the exclusions config.

Code Repository | Download | Plugin Updates | Report Bugs | Donate

Drixevel 01-27-2017 00:51

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 

Addicted. 01-27-2017 01:03

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Nice, can confirm this works on csgo for downloading and preaching.

Great release!

Nolongerinthegame 01-27-2017 07:02

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
So this will take any custom file and folder it picks up in the csgo directory and download and precache them?

I'm running zombie reloaded and there is a config to specify which files to download. I don't think it precaches though.

It would be better to use this instead? As it would pick up anything else I have which needs precaching. Like models

Drixevel 01-27-2017 07:45

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by nelioneil (Post 2490241)
So this will take any custom file and folder it picks up in the csgo directory and download and precache them?

I'm running zombie reloaded and there is a config to specify which files to download. I don't think it precaches though.

It would be better to use this instead? As it would pick up anything else I have which needs precaching. Like models

Yes.

Maxximou5 01-27-2017 17:10

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Top notch once again friendo! :bacon!:

Drixevel 02-01-2017 07:10

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Update 1.0.1:
  • Added functionality to whitelist certain files to be added to the downloads table.
  • Cleaned up exclusions code internally.
  • Added functionality to precache decals if they're in the 'materials/decals' folder.

Drixevel 03-11-2017 11:04

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Update 1.0.2:
  • Added sound files to the acceptable downloads table.
  • Added the generation command to generate a file with all of the custom content found on the server.
  • Cleaned up debug text lines.
  • Added the config file for exclusions to the repository even though the plugin auto generates it if it doesn't exist.

Abusador 04-28-2017 07:33

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
i love you

ScrapEngineer 05-13-2017 07:49

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
This is rather useful, extremely useful.

kgns 06-01-2017 21:02

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
just a question, in terms of general functionality, is this different than SDownloader?

ScrapEngineer 06-02-2017 06:00

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by kgns (Post 2525320)
just a question, in terms of general functionality, is this different than SDownloader?

Well unlike plugins like that, you don't have to worry about listing things since it just does it for you, no hassle.

Drixevel 06-02-2017 12:35

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by kgns (Post 2525320)
just a question, in terms of general functionality, is this different than SDownloader?

You would use other precacher/downloader plugins if you want to have full control over which files are sent to the client and which files are precached while this plugin is meant to precache every file on the server and add it to the downloads table so you don't have to worry about it. There is a config file you can use to add file exclusions so the plugin doesn't handle those files via a blacklist system.

Agent Wesker 06-02-2017 16:23

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Surprised this wasn't invented sooner, great work!

Starbish 07-04-2017 11:18

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Drixevel (Post 2525493)
You would use other precacher/downloader plugins if you want to have full control over which files are sent to the client and which files are precached while this plugin is meant to precache every file on the server and add it to the downloads table so you don't have to worry about it. There is a config file you can use to add file exclusions so the plugin doesn't handle those files via a blacklist system.

my plugin does not precache all the files on the server -_-...

it excludes every valve's default files and my plugin also has blacklist feature -_-..

of course similar plugin can be made but dont post your plugin link on my plugin thread. that's quite rude.

Drixevel 07-04-2017 19:34

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Starbish (Post 2533384)
my plugin does not precache all the files on the server -_-...

it excludes every valve's default files and my plugin also has blacklist feature -_-..

of course similar plugin can be made but dont post your plugin link on my plugin thread. that's quite rude.

:bacon!:

QuantumToast 07-10-2017 01:41

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
1 Attachment(s)
Could you give an example of the contents of the exclusions file? I'm not sure if I'm doing it incorrectly, but it does not seem to be excluding files properly.
Also, could it have something to do with the files on the FastDL server being .bz2 files as opposed to their native extentions (.mp3, .vtf, .vmt, etc)? I'm attaching (one of) my exclusion files - I just put in what I assumed to be the correct way to do this.

Viper2026 07-18-2017 21:56

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
I don't know if I'm just dumb or if something is broken but this doesn't seem to work for me. I even tried recompiling with #debug defined and still can't figure out why it won't work...

TrappaTroopa 09-26-2017 17:39

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Drixevel (Post 2533466)
:bacon!:

Like the user above I also can't get this to work. I don't see any error logs. Users just aren't getting the files.

Drixevel 09-27-2017 01:44

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Viper2026 (Post 2536250)
I don't know if I'm just dumb or if something is broken but this doesn't seem to work for me. I even tried recompiling with #debug defined and still can't figure out why it won't work...

Quote:

Originally Posted by TrappaTroopa (Post 2551032)
Like the user above I also can't get this to work. I don't see any error logs. Users just aren't getting the files.

Input the command 'sm_generateexternals' in either the client console as admin or server console and send me the output file via PM or post it here if you don't care about people seeing your list of files.

Drixevel 11-30-2017 21:52

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Update 1.0.3

Moved the functionality from OnConfigsExecuted to OnMapStart.

killertudse 12-01-2017 07:05

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Hey-
Just wanna make sure i've understood the plugin correct.

Currently i use https://forums.alliedmods.net/showthread.php?p=780243 to prevent players from getting errors when using custom models on my server. I have to list everything there manually.

This just does it automatically?

Drixevel 12-01-2017 14:28

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by killertudse (Post 2563858)
Hey-
Just wanna make sure i've understood the plugin correct.

Currently i use https://forums.alliedmods.net/showthread.php?p=780243 to prevent players from getting errors when using custom models on my server. I have to list everything there manually.

This just does it automatically?

That's the goal, it should take every custom file and precache it if it needs to and adds it to the downloads table with an exclusion system for certain files or a blacklist with the config.

etazh69 12-26-2017 11:40

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Hello, i got this error , after i installed your plugin.

Host_Error: Index error writing string table baseline downloadables

Please, help me

Bananensap 01-17-2018 17:44

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
It doesn't seem to do anything...?

Drixevel 01-17-2018 23:06

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Bananensap (Post 2572608)
It doesn't seem to do anything...?

What game? any errors? have you used the debug command to see what it's doing?

Bananensap 01-18-2018 09:25

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Drixevel (Post 2572638)
What game? any errors? have you used the debug command to see what it's doing?

Yes I used debug, it precaches all the files but when I (client) join the server nothing triggers/happens.

I'll show you the debug when I get home.

CSGO btw.

Plunkin 03-26-2018 13:31

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Kudos Drixevel! Plugin worked great after I loaded it. Clients downloaded all the files I wanted done, namely sound files.

Need help here... Today I uploaded a single sound file (.mp3) to my server for a custom server intro sound. It won't download (tested on my box). I tried placing the file in a separate new directory and it still won't download. It is listed in the "autofileloader.generate.log".

Running DOD:S

EDIT: If I delete the original sound folder on my box that was downloaded from my server, it will download again but only with the original files. The new sound file will not download when included in that folder on the server.

infinitephantasm 06-28-2018 12:13

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
1 Attachment(s)
hello.
seem to be having a bit of an issue with this plugin. files seem to...cache? but don't actually download.

i'm not sure if this is an issue with the plugin, though, as its output when i checked in debug is very strange.
i don't exactly care about people seeing what files i have, so the debug log is attached. (i'm assuming it doesn't show up without debug being declared, as it didn't output without it recompiled with it uncommented)
the basic jist is that i can download sound files just fine, but models and textures seem unable to download no matter what.

any help is much appreciated.

EDIT: the game is team fortress 2, by the way.

rikka0w0 07-16-2018 02:27

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Is there any way to let the client download vpk-packed addon maps from the workshop?

Robin955 11-30-2018 00:19

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Not working, it downloads half the files, around 1200 folders / - 220 folders 114mb

when mapchange it tries to redownload the missing materials and models, this is normaly because gameserver detect files but they are not on FASTdl, but thats not the issue here, if i just move over skinchooser plugin its downloading everything.

Restart + mapchange = Tries to download files but they dont download to client. click image for zoom.

By the way, like store, it precaches models you add to equipment and skins plugin, i dont know if thats the store plugin or skins/equipment, but will this deny option also block other plugins FASTDL files? if so this might be usefull for my project to remove fastDL cacher from the server completely. where other plugins dont interfer.

Edit, excluding models/ and materials/ did not stop other plugins from downloading. (even its own plugin) you should make a plugin with "allowed" materials only that overrides everything any other plugin might have added. so excludes all besides choosen materials models.

Nexd 02-25-2019 15:57

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Isn't this skip material files with (Instance) in the filename?

Drixevel 02-25-2019 16:28

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Nexd (Post 2640950)
Isn't this skip material files with (Instance) in the filename?

Don't think it does, can add that though if it's a CSGO thing.

Nexd 02-26-2019 09:14

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Its only download the half of the files :c:

Drixevel 02-26-2019 12:14

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Quote:

Originally Posted by Nexd (Post 2641041)
Its only download the half of the files :c:

Depending on the settings, it may require tweaks to in a few places for files I've missed internally though there should be functions to set that stuff up yourself.

What kinds of files is it missing?

Nexd 02-27-2019 03:37

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Like
Its download the half of the materials for a model, or if its download all of them, still wont precache them or idk, half of the model are completely black, if i install sm downloader that’ll download everything and everything work fine

wolvez04 12-21-2019 11:01

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Yes this plugin has always had this issue with not downloading certain things randomly.

cssbr1 10-23-2023 12:45

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
Instructions?

cssbr1 10-23-2023 12:45

Re: [ANY] Auto File Loader (Automatic Precaching/Downloads)
 
derp


All times are GMT -4. The time now is 22:18.

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