Raised This Month: $12 Target: $400
 3% 

SM File/Folder Downloader and Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
vadik24
Senior Member
Join Date: Aug 2009
Location: Bothell,Wa
Old 02-01-2010 , 11:55   Re: SM File/Folder Downloader and Precacher
Reply With Quote #141

nevermind its not this script bugs... its my server... even zombie mod skin people doesnt get .mdl file if they dont have that skin!!! my sv_pure is set 0 so idk what it cause
vadik24 is offline
karil
SourceMod Donor
Join Date: Jan 2010
Old 02-17-2010 , 11:32   Re: SM File/Folder Downloader and Precacher
Reply With Quote #142

Is there a way to force redownload of files already on players disc? There was an error with skins then I reuploaded them and they work. Now I'm having problems because loads of people are seeing errors, I've written instructions for fixing in MOTD but half of them don't seem to bother.

Any ideas?

Regards
karil is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 02-17-2010 , 17:34   Re: SM File/Folder Downloader and Precacher
Reply With Quote #143

Quote:
Originally Posted by karil View Post
Is there a way to force redownload of files already on players disc? There was an error with skins then I reuploaded them and they work. Now I'm having problems because loads of people are seeing errors, I've written instructions for fixing in MOTD but half of them don't seem to bother.

Any ideas?

Regards
In my opinion, you should use a new model name. For instance use a suffix like name_v2 or so.

But there is another way of forcing a client to download the new files.
There is a variable sv_pure, and there are whitelists and blacklists.
Just google it. You can force a client to use the same files as on your server, if version number or file size is different, then the client cannot connect until he deleted or replaced this files.
__________________
SWAT_88 is offline
karil
SourceMod Donor
Join Date: Jan 2010
Old 02-17-2010 , 17:40   Re: SM File/Folder Downloader and Precacher
Reply With Quote #144

So using

materials/models/player/techknow/l4dv2/louis_color.vmt
materials/models/player/techknow/l4dv2/louis_color.vtf
materials/models/player/techknow/l4dv2/louis_color_n.vtf
materials/models/player/techknow/l4dv2/louis_head.vmt
materials/models/player/techknow/l4dv2/louis_head.vtf
materials/models/player/techknow/l4dv2/louis_head_n.vtf


models/player/techknow/left4deadv2/louis.dx80.vtx
models/player/techknow/left4deadv2/louis.dx90.vtx
models/player/techknow/left4deadv2/louis.mdl
models/player/techknow/left4deadv2/louis.phy
models/player/techknow/left4deadv2/louis.sw.vtx
models/player/techknow/left4deadv2/louis.vvd

will work if I also change the current l4d and left4dead folders to +v2? I'm asking this because I've noticed some weird things in console like can't find... when first installing skins (I've changed the folders a bit the first time, but the skins were defined with the right paths) so I didn't use the changed original folders for the second time.

I'll delete this post after you answer as this is off-topic.
karil is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 02-17-2010 , 17:58   Re: SM File/Folder Downloader and Precacher
Reply With Quote #145

Quote:
Originally Posted by karil View Post
So using

materials/models/player/techknow/l4dv2/louis_color.vmt
materials/models/player/techknow/l4dv2/louis_color.vtf
materials/models/player/techknow/l4dv2/louis_color_n.vtf
materials/models/player/techknow/l4dv2/louis_head.vmt
materials/models/player/techknow/l4dv2/louis_head.vtf
materials/models/player/techknow/l4dv2/louis_head_n.vtf


models/player/techknow/left4deadv2/louis.dx80.vtx
models/player/techknow/left4deadv2/louis.dx90.vtx
models/player/techknow/left4deadv2/louis.mdl
models/player/techknow/left4deadv2/louis.phy
models/player/techknow/left4deadv2/louis.sw.vtx
models/player/techknow/left4deadv2/louis.vvd
That will not work because the model stores the path to the Material-files in itself.

1.) You can recompile the model with the new paths to the materials, or edit the paths in a hex editor (google it).
2.) You can use sv_pure and all other function to prevent old versions.
__________________
SWAT_88 is offline
natex2012
Member
Join Date: Dec 2009
Old 03-05-2010 , 05:33   Re: SM File/Folder Downloader and Precacher
Reply With Quote #146

hi. is this right in the downloads file?.

//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)
//Decal Files (Download and Precache)
//Sound Files (Download and Precache)
//Model Files (Download and Precache)

materials/models/pack.vmt
materials/models/pack.vtf
materials/models/pack_1.vmt
materials/models/pack_1.vtf
materials/models/parachute_ice_v2
materials/models/parachute_ice_v2.vtf
materials/models/parachute_ice_v2_1.vmt
materials/models/parachute_ice_v2_1.vtf
models/parachute_ice_v2.dx80.vtx
models/parachute_ice_v2.dx80_1.vtx
models/parachute_ice_v2.dx90.vtx
models/parachute_ice_v2.dx90_1.vtx
models/parachute_ice_v2.mdl
models/parachute_ice_v2.sw.vtx
models/parachute_ice_v2.sw_1.vtx
models/parachute_ice_v2.vvd
models/parachute_ice_v2.xbox.vtx
models/parachute_ice_v2.xbox_1.vtx
models/parachute_ice_v2_1.mdl
models/parachute_ice_v2_1.vvd

OR ?

//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)
//Decal Files (Download and Precache)
//Sound Files (Download and Precache)
//Model Files (Download and Precache)

materials/models/pack.vmt
materials/models/pack.vtf
materials/models/pack_1.vmt
materials/models/pack_1.vtf
materials/models/parachute_ice_v2
materials/models/parachute_ice_v2.vtf
materials/models/parachute_ice_v2_1.vmt
materials/models/parachute_ice_v2_1.vtf

models/parachute_ice_v2.dx80.vtx
models/parachute_ice_v2.dx80_1.vtx
models/parachute_ice_v2.dx90.vtx
models/parachute_ice_v2.dx90_1.vtx
models/parachute_ice_v2.mdl
models/parachute_ice_v2.sw.vtx
models/parachute_ice_v2.sw_1.vtx
models/parachute_ice_v2.vvd
models/parachute_ice_v2.xbox.vtx
models/parachute_ice_v2.xbox_1.vtx
models/parachute_ice_v2_1.mdl
models/parachute_ice_v2_1.vvd
natex2012 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 03-05-2010 , 11:46   Re: SM File/Folder Downloader and Precacher
Reply With Quote #147

Quote:
Originally Posted by natex2012 View Post
hi. is this right in the downloads file?.
-- cut --
None of both.

Have you ever downloaded the downloads_example.ini?
I'm sure you don't have ...

To answere your questions:
Empty lines doesn't matter. You can make as many empty lines as you like.
The plugin ignores empty lines.

Here is the right structure of your downloads.ini:
Code:
//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)

models/parachute_ice_v2.dx80.vtx
models/parachute_ice_v2.dx80_1.vtx
models/parachute_ice_v2.dx90.vtx 
models/parachute_ice_v2.dx90_1.vtx
models/parachute_ice_v2.sw.vtx
models/parachute_ice_v2.sw_1.vtx
models/parachute_ice_v2.vvd
models/parachute_ice_v2.xbox.vtx
models/parachute_ice_v2.xbox_1.vtx
models/parachute_ice_v2_1.vvd

//Decal Files (Download and Precache)

materials/models/pack.vmt
materials/models/pack.vtf
materials/models/pack_1.vmt
materials/models/pack_1.vtf

materials/models/parachute_ice_v2
materials/models/parachute_ice_v2.vtf
materials/models/parachute_ice_v2_1.vmt
materials/models/parachute_ice_v2_1.vtf 

//Sound Files (Download and Precache)
//Model Files (Download and Precache) 
 
models/parachute_ice_v2.mdl
models/parachute_ice_v2_1.mdl
NOTE:
You don't have to add the parachute files to downloads.ini.
My parachute plugin downloads and precaches the needed files automatically!
__________________
SWAT_88 is offline
eradeejay
Junior Member
Join Date: Mar 2010
Old 03-07-2010 , 13:06   Re: SM File/Folder Downloader and Precacher
Reply With Quote #148

Quote:
Originally Posted by SWAT_88 View Post
Quote:
Originally Posted by karil View Post
Is there a way to force redownload of files already on players disc? There was an error with skins then I reuploaded them and they work. Now I'm having problems because loads of people are seeing errors, I've written instructions for fixing in MOTD but half of them don't seem to bother.

Any ideas?

Regards
In my opinion, you should use a new model name. For instance use a suffix like name_v2 or so.

But there is another way of forcing a client to download the new files.
There is a variable sv_pure, and there are whitelists and blacklists.
Just google it. You can force a client to use the same files as on your server, if version number or file size is different, then the client cannot connect until he deleted or replaced this files.

Hello, thanks for the plugin, works great, but i have the same issue, when I upgrade a file.

I already try with sv_pure, but the only sv_pure can do is kick the player. by the way is a little difficult to configure sv_pure and some times donīt kick.

Changin the name_v2 is not a god option, because have to change many names for many files, and the client will have many Unnecessary junk files.

Is there any way you add crc check in the plugin, so this way if crc check fails the file is forced to download for the server, It would be great!...

Thanks!...

A tip:
sv_pure can do crc check adding allow_from_disk+check_crc modifier for files, so the engine can do crc checks.

Look this Example pure_server_whitelist.txt
Code:
whitelist
{
    //
    // 3 modifiers are allowed on file specifications:
    //
    //    from_steam            - only check the Steam cache for the file (ignore anything on disk)
    //    allow_from_disk        - allow the file to come from disk
    //    check_crc            - used with allow_from_disk - server does CRC checks on the client's file to make sure it matches
    //
    //    The default modifier on all files is allow_from_disk. Thus, all files can come from disk and don't need CRC checks unless 
    //    allow_from_disk can be set at the same time as check_crc. Use the + character in between them to signify this: allow_from_disk+check_crc.


    //
    // Three types of file specifications:
    //
    //    1. directory\*.*            - refers to all files under the directory
    //    2. directory\...            - refers to all files under the directory and all directories under that (recursively)
    //    3. directory\filename        - refers to a single file
    

    //    
    // By default, when in pure server mode, most content file types are only allowed to come from Steam.
    //
    materials\...        from_steam
    models\...            from_steam
    sound\...            from_steam
    sound\gl_endmusic\*.*    allow_from_disk+check_crc
    
    
    //
    // Allow custom player models. Don't do CRC checks on them because the clients may all
    // have different custom models and the server won't have them all.
    //    
    //models\player\...            allow_from_disk
    //materials\models\player\...    allow_from_disk

    //
    // Allow custom spray decals.
    //
    materials\temp\...            allow_from_disk
    materials\vgui\logos\...    allow_from_disk
    materials\vgui\logos\ui\...    allow_from_disk
    
    
    //
    // (Uncomment and edit these for mods).
    // Allow mod resources to come from disk.
    //
    materials\mymod\...        allow_from_disk+check_crc
    models\mymod\...            allow_from_disk+check_crc
    sound\mymod\...            allow_from_disk+check_crc

}
Thaks again!....
eradeejay is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 03-07-2010 , 13:40   Re: SM File/Folder Downloader and Precacher
Reply With Quote #149

Since the last two L4D2 Patches (Valve changed sv_consistency workings) this Plugin causes people to get stuck on loading screen
AtomicStryker is offline
plude220
New Member
Join Date: Mar 2010
Old 03-08-2010 , 23:21   Re: SM File/Folder Downloader and Precacher
Reply With Quote #150

Im trying to get a new prop model in my server I loaded up your plugin and it seemed to work when I join the server it acts like its downloading the files but it just flys thru them and doesnt actualy download to my client side?

Ive checked everything i know the files are on the server the file paths look right and i dont have the files on my client side.

Heres the log

L 03/08/2010 - 23:068: [sm_downloader.smx] Start
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: //Don't modify or remove the Comment Lines ( // )
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: //Files (Download Only No Precache)
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: models/xbox.dx80.vtx
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: models/xbox.dx80.vtx
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: models/xbox.dx90.vtx
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: models/xbox.dx90.vtx
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: models/xbox.sw.vtx
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: models/xbox.sw.vtx
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: models/xbox.vvd
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: models/xbox.vvd
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: models/xbox.phy
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: //Decal Files (Download and Precache)
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: materials/models/xbox.vmt
L 03/08/2010 - 23:068: [sm_downloader.smx] PrecacheDecal: materials/models/xbox.vmt
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: materials/models/xbox.vmt
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: materials/models/xbox.vtf
L 03/08/2010 - 23:068: [sm_downloader.smx] PrecacheDecal: materials/models/xbox.vtf
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: materials/models/xbox.vtf
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: //Sound Files (Download and Precache)
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: //Model Files (Download and Precache)
L 03/08/2010 - 23:068: [sm_downloader.smx]
L 03/08/2010 - 23:068: [sm_downloader.smx] ReadLine: models/xbox.mdl
L 03/08/2010 - 23:068: [sm_downloader.smx] PrecacheModel: models/xbox.mdl
L 03/08/2010 - 23:068: [sm_downloader.smx] AddFileToDownloadTable: models/xbox.mdl
L 03/08/2010 - 23:068: [sm_downloader.smx] Stop

Heres my download.ini

//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)
models/xbox.dx80.vtx
models/xbox.dx90.vtx
models/xbox.sw.vtx
models/xbox.vvd
models/xbox.phy
//Decal Files (Download and Precache)
materials/models/xbox.vmt
materials/models/xbox.vtf

//Sound Files (Download and Precache)
//Model Files (Download and Precache)
models/xbox.mdl
plude220 is offline
Reply



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 09:20.


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