Re: [STOCK] Smart Download Manager
Quote:
Code:
new String:fileExtension[5]; |
Re: [STOCK] Smart Download Manager
well if its a folder of models that wont really do what hes probably looking for
|
Re: [STOCK] Smart Download Manager
Quote:
Quote:
ztmp is not a critical thing, I'll fix it. |
Re: [STOCK] Smart Download Manager
i have these errors in the log
Quote:
|
Re: [STOCK] Smart Download Manager
i just updated this include finally, got quite a few fixes and new features too, there are 2 stocks that might be useful outside of this include too:
FileExists2 - checks if a file exists either on disk or somewhere inside the custom folder OpenFile2 - capable of opening files inside the custom folder, for example if the path of the file is: "custom/my_plugin/test.txt" then you can just open that like this: OpenFile2("test.txt", "r"); If the file doesn't exist it will just work as the original OpenFile function |
Re: [STOCK] Smart Download Manager
I am getting this when I try to compile a plugin with smartdm included :)
Code:
/sourcemod/scripting/include\smartdm.inc(39) : error 017: undefined symbol "STRING" |
Re: [STOCK] Smart Download Manager
ive reuploaded the fixed inc, STRING was defined in my own stocks that i always include so i totally forgot about it
|
Re: [STOCK] Smart Download Manager
Quote:
|
Re: [STOCK] Smart Download Manager
Quote:
|
Re: [STOCK] Smart Download Manager
1 Attachment(s)
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. |
| All times are GMT -4. The time now is 22:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.