Raised This Month: $101 Target: $400
 25% 

Extra Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-13-2008 , 13:49   Extra Precacher
Reply With Quote #1

Extra Precacher

[Description]
  • Some plugins like this already exist, but are unsupported, unfunctional, and so.
  • This plugin basically precache files that are defined in a configuration file, with some advanced func.
  • Multiple file extension support. (Defined in plugin)
  • Multiple file name support. (name.ext, *.ext, *.*)
  • Useful for plugins that don't have source, maps, motd's and so.
  • Individual map configuration support.If config for current map "extra_precacher_mapname.ini" doesn't exist, the default file "extra_precacher.ini" will be loaded.
[Info]
  • You can define the allowed file extensions in source.To add more, just add a "," then the extension ".lol".
Code:
new const gValidExt[] = ".wad,.mdl,.spr,.wav,.mp3";
  • If the file writed in configuration file doesn't exist, won't be precached, to avoid a server warning in console.
  • Extensions :
name.ext - Precache specified file with specified extension.
*.ext - Precache all files from specified path with specified extension.
*.* - Precache all files from specified path.
Attached Files
File Type: sma Get Plugin or Get Source (extra_precacher.sma - 6826 views - 3.1 KB)
File Type: ini extra_precacher_example.ini (396 Bytes, 4304 views)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 04-09-2008 at 09:25.
Alka is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-13-2008 , 14:07   Re: Extra Precacher
Reply With Quote #2

Looks pretty good

I would make some more examples of the file(s) for some people to have a better understanding tho.
__________________
bmann_420 is offline
Arvy
Member
Join Date: Oct 2007
Old 03-24-2008 , 11:00   Re: Extra Precacher
Reply With Quote #3

very nice !thx
Arvy is offline
s3r
Senior Member
Join Date: Aug 2007
Old 03-27-2008 , 10:05   Re: Extra Precacher
Reply With Quote #4

YES! this is good for plugins that dont support custom sounds...
__________________
PS srr 4 strange enlish
s3r is offline
Arvy
Member
Join Date: Oct 2007
Old 03-28-2008 , 04:31   Re: Extra Precacher
Reply With Quote #5

new const gValidExt[] = ".wad,.mdl,.spr,.wav,.mp3,.cfg";

Quote:
;Precache file
;File name format : name.ext, *.ext, *.*
xxx.cfg
xxx.cfg is in cstrike,but after i connect my server can't download the xxx.cfg
Arvy is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 04-01-2008 , 11:40   Re: Extra Precacher
Reply With Quote #6

What's wrong with this: http://forums.alliedmods.net/showthread.php?p=228704
__________________
anssik is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-01-2008 , 11:45   Re: Extra Precacher
Reply With Quote #7

Quote:
Originally Posted by anssik View Post
That one uses Engine. That one requires an ini file to work. This one just precaches all based on what you tell it. This one doesn't need an ini file to tell it each individual file to precache. This one is better
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-08-2008 , 18:15   Re: Extra Precacher
Reply With Quote #8

put an exemple ini file preconfigured for 2 normal cs sprites as default so people understands it better.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-09-2008 , 09:29   Re: Extra Precacher
Reply With Quote #9

@Arvy - .cfg's can't be precached because of some HL reason.
@anssik - This has more options, extension management, can precache all files from a path, map based.
@Battousai-sama - Added a preconfigured precache file.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-09-2008 , 09:42   Re: Extra Precacher
Reply With Quote #10

I'm gonna use it but first I want to ask something.
  • I've created an extra_precacher.ini file and dropped it into configs folder.
  • In extra_precacher.ini I've writen this:
    Code:
    name1.wad name2.wad name3.wad
So it will work correctly if there are name1.wad, name2.wad and name3.wad files in my cstrike directory?
__________________
hleV 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 01:07.


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