Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 10-02-2010, 02:46 PM   #1
Bridget
Banned
 
Bridget's Avatar
 
Join Date: Sep 2008
Class/Position: Soldier
Gametype: AVD
Affiliations: TALOS
Posts Rated Helpful 5 Times
Weird Precaching and Static

I have my soundscapes set up for my map. I named one of my sounds, for example, as money.pickup and set the correct target file. I tried to then precache the sound with PrecacheSound("money.pickup") but it didn't work. I had to manually precache the location with PrecacheSound("mymap/money_pickup.wav"). Okay, so considering I had to precache the absolute location, I tried to play the sound using the absolute location. That failed. So, I tried playing the sound using the sound name: money.pickup.

That worked. So, I precache the location and then play it via its name? Anyway, that works, as counter-intuitive as it is, but the wav is played as pure static. I assume this is because it wasn't converted correctly to be used on the engine. So, question is: What do I convert this file to in order to use it through lua?
Bridget is offline   Reply With Quote


Old 10-02-2010, 09:45 PM   #2
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
Don't use _soundscapes.txt. Use _level_sounds.txt. See hunted/waterpolo.

As for the wav format, a quick google gave me this:
- PCM or ADPCM
- Stereo or Mono
- 8bit or 16bit
- 11025, 22500, or 41000 Hz
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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. The time now is 08:21 PM.


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