AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [STOCK] Smart Download Manager (https://forums.alliedmods.net/showthread.php?t=206496)

mrkos9i4ok 08-30-2017 17:32

Re: [STOCK] Smart Download Manager
 
not work for https://gamebanana.com/skins/145956

guard1
-guard1.dx90.vtx
-guard1.phy
-and all textures
prisoner2
-prisoner2.dx90.vtx
-prisoner2.phy
-prisoner2_arms.dx90.vtx
-prisoner2_arms.vvd
-and all textures
prisoner3
-prisoner3_arms.dx90.vtx
-prisoner3_arms.vvd
-gi_head_14.vtf
-gi_head_nml.vtf

Ermert1992 10-28-2017 16:02

Re: [STOCK] Smart Download Manager
 
Really useful. Thank you!

Alienmario 11-17-2022 17:26

Re: [STOCK] Smart Download Manager
 
Has anyone expanded on this since? If not, I may have another look at it.
I recall having occasional issues with it back in 2015, though I could be wrong.

I think this is still the best solution for downloads. You could use full folder downloaders, but still have to specify the files somewhere (some config or in code) anyways.
With this include, a plugin actually using a resource, model for example, automagically parses all its dependencies without any fluff getting through. At least, that's what it should do.

sviridov_artem 12-10-2022 10:10

Re: [STOCK] Smart Download Manager
 
Quote:

Originally Posted by Alienmario (Post 2364585)
I've discovered a bug with model's materials that are inside custom folder not downloading. Turns out FileExists2 compares cached files by names but doesn't correctly format the filenames/paths to match.

So I did a quick fix by replacing "" with "/" and turning filenames lowercase before comparing.

Great Stock Btw, very useful:)!

Edit: added fix for some uppercase paths that still weren't downloading
Edit2: everything is now converted lowercase before adding to the downloads table (due to linux issues). It might not be very efficient but I'm done with this for now. Someone could probably rewrite this to use new syntax and streamline it a bit more but it appears to be working finally.



Hello everyone, there is no downloading of files, in capital case. Can you help fix include ?


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

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