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

"example.wav" was not precached!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 02-02-2010 , 03:22   "example.wav" was not precached!
Reply With Quote #1

You all have encountered such type of Problems!
I was hosting my Server with Bad camper Plugin and when any client was camping it showed
"snore.wav was not precached...blah!!"

What is it! and How is it caused?

Thanks
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 02-02-2010 , 03:47   Re: "example.wav" was not precached!
Reply With Quote #2

Lol. No i dont use Bad camper, i run a SH server roflmao
One question (no offense): How long have you worked with your server? HLDS I guess?

If its not precached, you shouldnt be able to start the server. But if it isnt, add this in whatever the Bad camper plugins name is (in the .sma file)


1. Open it with Notepad

2. Look for the text public_precache()

3. Look for this line:
precache_sound("whatevermapyouhavethatsoundin/snore.wav")

4. If its there, i dont know whats wrong. Check if you have the file in the map the precache tells you and that the name of the .wav file is the same as in precache.

5. If its not, add the line written at point 3; and dont forget to change the "whatever map you have your sound in" to the map you want to put the snore.wav file in.
GOOD LUCK
CHEERS
__________________
The Art of War is offline
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 02-02-2010 , 03:57   Re: "example.wav" was not precached!
Reply With Quote #3

Quote:
How long have you worked with your server? HLDS I guess?


Even How long I work with HLDS It seems to me that I am a day old with it!
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 02-02-2010 , 06:59   Re: "example.wav" was not precached!
Reply With Quote #4

Hahah to true, to true. There's always new things to learn. Tell me when youve tried my help out and if it worked or not. Thx GL
__________________
The Art of War is offline
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 02-02-2010 , 10:02   Re: "example.wav" was not precached!
Reply With Quote #5

Quote:
Originally Posted by The Art of War View Post
Hahah to true, to true. There's always new things to learn. Tell me when youve tried my help out and if it worked or not. Thx GL
Probably! I did not knew that One had to mention the map name in the Plugin SMA to integrate or make a sound file Play with it.

BTW, thanks for the Information
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 02-03-2010 , 11:37   Re: "example.wav" was not precached!
Reply With Quote #6

Ah np mate! Feel free to add me to friends for further help/co-operations
Well, never heard of that you needed to add map-names in .sma files, though its ofc possible for some plugins.

Some "background" info to help you understand what things in plugins/.sma's do:

Precache / public precache()
Is only telling the server what sound to upload to other clients (players, and yourself ofc) So, just by adding a sound in precache / precache_sound("shmod/frieza.wav") doesnt really adds the file to the hero. It just tells that thats the sound the hero will use. To add sounds to heroes is something thats out of my reach, even now when Jelle made a hero called Ranger for me the sound failed, and a lot of other things, and Jelle is a Pro (though he still pwns, i think it was cuz he did it with the new model Cred to you Jelle )
There is different ways of adding sounds to a hero, dont ask me for that

Weapon models (v,p,w) is easier to add: Just add models in precache /

precache_model("models/shmod/Ranger_new_v_scout.mdl") as an example.
Then add the pevid in switch_model(id)

Example:
set_pev(id, pev_viewmodel2, "models/shmod/newOps_v_p90.mdl") Then replace the "newOps_v_p90" with whatever model you want.
NOTE: That pevid was only for v models.
For p models:

set_pev(id, pev_weaponmodel2, "models/shmod/scythe_p_knife.mdl") and then replace "scythe_p_knife"

To add playermodels is a lot harder, as you have to add a lot of things: Here are some of them:

precache_model("models/player/blabla/blabla.mdl") in precache

Then there is a lot of other events you have to add; I will not list them here as they are different from plugin to plugin.
Cheers!
__________________
The Art of War is offline
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 02-04-2010 , 01:31   Re: "example.wav" was not precached!
Reply With Quote #7

Thanks!
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct is offline
Gorrr
Junior Member
Join Date: Jan 2010
Old 04-25-2010 , 14:05   Re: "example.wav" was not precached!
Reply With Quote #8

badcamper_sound <iFlag>
Specifies the sound to use as a punishment when the "badcamper_punish" flag includes
the sound punishment.
1: Snore
2: Heartbeat
The default is 1.

change to 2, if you use bad_camper plugin...
Gorrr is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-25-2010 , 15:35   Re: "example.wav" was not precached!
Reply With Quote #9

Quote:
Originally Posted by Gorrr View Post
badcamper_sound <iFlag>
Specifies the sound to use as a punishment when the "badcamper_punish" flag includes
the sound punishment.
1: Snore
2: Heartbeat
The default is 1.

change to 2, if you use bad_camper plugin...
Now That wouldn't help?
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 04-26-2010 , 02:39   Re: "example.wav" was not precached!
Reply With Quote #10

Again, a n**b poster who wants to gain Posts.
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct 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 15:32.


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