AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   very simple precache mod (https://forums.alliedmods.net/showthread.php?t=26784)

hjvl 04-09-2006 08:27

very simple precache mod
 
1 Attachment(s)
Hi there,

This is my first plugin, so please shoot.

I have been surging for a small easy to use precache plugin.
All the ones i found are nice, but big and complex.
So i decided to write one myself.

It depends on a data file: amxmodx/configs/precache.ini.
Filled with simple lines like:
gfc/picture.gif
sound/blabla.wav

For every file to transfer, 1 line.
Comments in the file must be predesesed by ;

regards

Dark Killer 04-09-2006 08:48

I like this plugin, +karma!
When a plugin dosen't precache the things it needs, then I will use this.

EDIT Please fix first, 26 errors!

hjvl 04-09-2006 09:51

The online compiler does not give errors?

What are the errors you get?


O i see, when you use "get pluging"
If you copy the text and past it into the online compiler it works.

I will check the file. :)

hjvl 04-09-2006 10:00

ok solved it..
saved the file with notepad instead of wordpad. :D

I use this to upload the picture of the motd.
So i don't need to use a www server :D

Brad 04-09-2006 11:14

Shouldn't you be precaching models and sounds differently?

hjvl 04-09-2006 11:47

Quote:

Originally Posted by Brad
Shouldn't you be precaching models and sounds differently?


What i have found is when you use precache_generic you have to use music/bla.wav instead of bla.wav (precache_sound)
I didn't find any other reason.
Tested it with sounds and that works.

Further i saw that when used with unknown extensions, the client refuses that file :D

SweatyBanana 04-09-2006 11:52

you should put your code that you have in the first post in tags

Brad 04-09-2006 12:39

I'd like to suggest that you log an error to the AMXX log file if you can't find the precache.ini file. I'd also like to suggest that you allow comments in the precache.ini file (allowing "//" or ";" to designate comments).

Twilight Suzuka 04-09-2006 13:16

This plugin has been done, and is incorporated in, several other plugins.

Brad 04-09-2006 13:17

Can you link to them?


All times are GMT -4. The time now is 13:44.

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