Raised This Month: $32 Target: $400
 8% 

SM File/Folder Downloader and Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 07:08   Re: SM File/Folder Downloader and Precacher
Reply With Quote #11

Are there any error messages?
This is a simple "config read" script with AddToDowloadsTable.
It is so simple that I can not imagine that errors occurs.
I do not have TF2.
Please give me more information so that I can begin to fix the errors.

Sidenote:
It works for me perfect. (Windows XP, Dedicated Server, CSS)
But I will test it in other mods.

Thank you for your feedback.
SWAT_88 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 08:50   Re: SM File/Folder Downloader and Precacher
Reply With Quote #12

I tested it in:
CS Source
DoD Source
HL2 MP

No errors, everything works great.
This is another indicator of any mod support.

The most common reason why plugins do not work in other mods are static offsets.
But I dont use static offsets, only SM Pawn functions which should work in any mod.

Maybe you do something wrong?

So can you tell me:
Your version of SourceMod.
Your OS.
The content of your downloads.ini file or downloads_simple file.

Without information I cannot do anything for you.

So please give me information.
Thank you for your feedback.
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 09:03   Re: SM File/Folder Downloader and Precacher
Reply With Quote #13

thx for fast response.

Here is contents of my downloads_simple.ini file:

Code:
materials/models/player/demo/demoman_blue.vmt
materials/models/player/demo/demoman_blue.vtf
materials/models/player/demo/demoman_hands.vmt
materials/models/player/demo/demoman_hands.vtf
materials/models/player/demo/demoman_head.vtf
materials/models/player/demo/demoman_head_blue.vmt
materials/models/player/demo/demoman_head_red.vmt
materials/models/player/demo/demoman_red.vmt
materials/models/player/demo/demoman_red.vtf
materials/models/player/demo/hwm/demoman_head.vtf
materials/models/player/demo/hwm/demoman_head_blue.vmt
materials/models/player/demo/hwm/demoman_head_compress.vtf
materials/models/player/demo/hwm/demoman_head_exponent.vtf
materials/models/player/demo/hwm/demoman_head_red.vmt
materials/models/player/demo/hwm/demoman_head_stretch.vtf
When connecting to my server, it does not download these files to me, I go straight into the game with no downloads.

I also do have the plugin enabled, I double checked it.

I do not get any error messages.
__________________
FunTF2Server is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 09:05   Re: SM File/Folder Downloader and Precacher
Reply With Quote #14

Also I have my cvars set to use the simple.ini file and not the normal one, but here is what's in my normal downloads.ini:

Code:
//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)

materials/models/player/demo/demoman_blue.vmt
materials/models/player/demo/demoman_blue.vtf
materials/models/player/demo/demoman_hands.vmt
materials/models/player/demo/demoman_hands.vtf
materials/models/player/demo/demoman_head.vtf
materials/models/player/demo/demoman_head_blue.vmt
materials/models/player/demo/demoman_head_red.vmt
materials/models/player/demo/demoman_red.vmt
materials/models/player/demo/demoman_red.vtf
materials/models/player/demo/hwm/demoman_head.vtf
materials/models/player/demo/hwm/demoman_head_blue.vmt
materials/models/player/demo/hwm/demoman_head_compress.vtf
materials/models/player/demo/hwm/demoman_head_exponent.vtf
materials/models/player/demo/hwm/demoman_head_red.vmt
materials/models/player/demo/hwm/demoman_head_stretch.vtf

//Decal Files (Download and Precache)

//Sound Files (Download and Precache)

//Model Files (Download and Precache)
__________________
FunTF2Server is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 09:06   Re: SM File/Folder Downloader and Precacher
Reply With Quote #15

Here are the cvars I'm using in my sourcemod.cfg and what they are set to.

sm_downloader_enabled 1
sm_downloader_normal 0
sm_downloader_simple 1
__________________
FunTF2Server is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 09:07   Re: SM File/Folder Downloader and Precacher
Reply With Quote #16

I have http downloads active on my server with sv_downloadurl. The files in the above posts that I want to be downloaded are on my tf2 server, and on my webserver. I have it set to download files from my webserver in bz2 format. All other files, like maps, sounds, etc download perfectly.
__________________
FunTF2Server is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 09:34   Re: SM File/Folder Downloader and Precacher
Reply With Quote #17

Http downloads is not the problem.
I have a friend who also uses http, and for him everything works fine.

Your lines are all correct.

So 2 possible reasons:
You dont have the files on your server.
You have already the files on your computer, so the plugin should not download it for you. (Delete the files from your computer and try it again)

Edit:
My plugin supports folder download.
So you can write:
Code:
materials/models/player/demo
And all files/folders in this folder will be downloaded.

Last edited by SWAT_88; 04-19-2008 at 09:40.
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 09:56   Re: SM File/Folder Downloader and Precacher
Reply With Quote #18

Quote:
Originally Posted by SWAT_88 View Post
Http downloads is not the problem.
I have a friend who also uses http, and for him everything works fine.

Your lines are all correct.

So 2 possible reasons:
You dont have the files on your server.
You have already the files on your computer, so the plugin should not download it for you. (Delete the files from your computer and try it again)

Edit:
My plugin supports folder download.
So you can write:
Code:
materials/models/player/demo
And all files/folders in this folder will be downloaded.
Files are not on my computer locally, I deleted them all before joining the server. It downloads the other files that my plugins call for, but not these files I have listed that I manually added to the downloads.ini which no plugins call for, but that I want my clients to download.

The files are also both on my webserver and on my gameserver. I will double check and make sure I have the /paths/ correctly spelled though and get back to you.

Oh yeah I'll also try doing the folder thing and make it download the whole folder, but that's only a last resort, since I have other files in the folder I do not want it to download (they are too big and do not need to be downloaded, will just waste bandwidth).

well see how this goes..
__________________
FunTF2Server is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 10:16   Re: SM File/Folder Downloader and Precacher
Reply With Quote #19

Can you see the server output?
If you can see it I will edit the plugin.
Then the plugin will print to the server the found files.

So we can find the bugs.
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 10:23   Re: SM File/Folder Downloader and Precacher
Reply With Quote #20

Alright, I double checked the file paths of everything, in the downloads_simple.ini, the path of the files on the server, and even the path of the files on the web host, and everything is fine and matches up.

I put
materials/models/player/demo in the downloads_simple.ini and restarted server, but no dice. For giggles, I changed the foward slashes to backslashes, even added a slash at the end of the path (evne though you say it's incorrect) but after all of that, it still doesn't work.

The plugin is loading, because I can use the SM cvar commands that you included with the plugin while in my server with no problems, if plugin wasn't loading it should say "invalid command" (or whatever it says).

So either the types of files I'm adding to the download list are not supported, or this plugin simply does not work with TF2. That's the only conclusion I can come to. You tested it on every source game but TF2 you said, but TF2 uses the orangebox engine, those other's don't. That's the only thing I can think of.
__________________

Last edited by FunTF2Server; 04-19-2008 at 10:26.
FunTF2Server is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:49.


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