adding News Announcer .wav's to custom maps?


(SiliconSlick) #1

I thought I’d try to make a “news” .wav for
a map.

I created a 22hz, mono, 16-bit .wav slightly
smaller than sound/vo/railgun/news_railgun.wav
(which I’m using as a limit on size for now).

I created a sound/scripts/mapname.sound that
has basically:

news_mapname
{
sound sound/vo/mapname/news_mapname.wav
voice
streaming
}

and I put the .wav I created at the location above.

I zipped up the sound directory into a .pk3 and
fired up a server.

When I press the announcer button in the limbo
menu, I get:

“No data chunk in sound/vo/mapname/news_mapname.wav”

However, if I do:

/play sound/vo/mapname/news_mapname.wav

in the console, it plays fine.

Is there a trick to adding news announcer .wavs to custom maps? showriff shows the .wav is in the same format as
the other news_*.wav files and, as mentioned, it is smaller
than some of the supplied ones.

TIA,

SiliconSlick


(Drakir) #2

Seems like u have followed the tutorial a little to good.

Where it says “mapname” it should be the name of your .bsp file!


(SiliconSlick) #3

I assure you… I replaced the name to keep my
intent less than clear.

s/mapname/mml_helmsdeep_fp/g

SiliconSlick (who thought he’d play with some ideas on the ND80 server while we wait for Gerbil to have some time)


(SiliconSlick) #4

Oh… BTW Drakir… there’s a tutorial that covers this?

Please link me.

The above is just what I came up with using the existing
maps as an example (and working through the errors
up to this one).

SiliconSlick


(SiliconSlick) #5

Well, I figured it out.

Seems ET is pretty particular about the format of .wav files.

I discovered that if I put the railgun news in for mine,
it worked fine. So, it was obviously a problem with
my particular .wav.

I did a quick Google for wave file formats and found this:

Then I did some hex dumps on the .wavs that worked
and didn’t work.

It seems ET has problems if the format chunk isn’t
exactly 16 bytes long (excluding the tag and size).

e.g.

The railgun header started like this [format chunk size in red]:

0000000: 5249 4646 b6de 1600 5741 5645 666d 7420 RIFF…WAVEfmt
0000010: 1000 0000 0100 0100 2256 0000 44ac 0000 …"V…D…
0000020: 0200 1000 6461 7461 92de 1600 0000 0000 …data…

whereas mine started like this:

0000000: 5249 4646 d669 1400 5741 5645 666d 7420 RIFF.i…WAVEfmt
0000010: 1200 0000 0100 0100 2256 0000 44ac 0000 …"V…D…
0000020: 0200 1000 0000 6461 7461 b069 1400 6308 …data.i…c.

Those extra two bytes in the format chunk seem to be the problem… i.e. if they are there, it can’t find the “data chunk”
part of the .wav and thus I get the “No data chunk”
error above.

So… before writing a program to change the format chunksize to
16 and toss the two unused bytes (0000), I thought I’d
see what “sox” did. I did:

sox infile.wav outfile.wav

and ran xxd again and, fortunately, the format chunk
header is the same size as the original’s (16).

0000000: 5249 4646 d469 1400 5741 5645 666d 7420 RIFF.i…WAVEfmt
0000010: 1000 0000 0100 0100 2256 0000 44ac 0000 …"V…D…
0000020: 0200 1000 6461 7461 b069 1400 6308 fd08 …data.i…c…

zipped up my new file (with its script) and Viola! It works!

I guess depending upon the sound programs you use,
you may or may not have this problem… I was using
Creative Labs Wave Studio (and loading it up in
Windows Sound Recorder and then saving again
didn’t help).

Anyway… thought I’d share that in case someone
runs into similar problems.

SiliconSlick


(Benfun7) #6

Where are the wave files to the original maps at?

Thanks,
Ben


(nUllSkillZ) #7

These news sound files are in “sound/vo/mapname”.


(Ifurita) #8

wow, nothing like bumping an 11-month old thread


(TFate) #9

Wow, nothing like responding to a bump of an 11-month old thread. :slight_smile:


(thore) #10

wow, if someone bumps an 11 month old thread he MUST have used the search.

[q3-voice]
impressive!
[/q3-voice]

(yes, i’m totally aware that this post is not conform with the “rules” in my sig)

@ benfun
you have to extract your pak0.pk3 (just rename it to pak0.zip) and you’ll find the “sounds”
folder. you might want to use your separate mapping ET installation, not the one you use
for gaming… just to keep things tidy :moo:


(Benfun7) #11

Ok thanks,
and I want you all you knwo that I sarch like a f-ing crazy person. I am learning a lot!
Ben


(ausman) #12

Well 12 months on and it seems i’m having the same problem as you SiliconSlick. I’m using Wave studio to make my own voice messages and i’m getting “no data chunk …/file.wav” error whenever ET tries to play my sound. Now I understand about the error in the format chunk and read through the link on waves but I don’t understand how you fixed the problem, and i lost you at

sox infile.wav outfile.wav 
and ran xxd again and, fortunately, the format chunk 
header is the same size as the original's (16).

Could you go into more detail please.
Thanks


(ausman) #13

Ok I understand now that Sox is a sound processing program, btw its downloadable here http://sox.sourceforge.net/. I guess the best way to not get “no data chunk” problems would to not use wave studio at all.


(SiliconSlick) #14

I guess I should’ve mentioned “sox” is a sound utility
shipped with a number of Linux distributions.

But, yeah, Wave Studio is good/fun but for announcer
files in ET it just ain’t happening (last time I checked).

Works pretty well for all other sound files in ET.

SiliconSlick (who has some Helm’s Deep sounds here and there on the net created using it)


(EB) #15

I am all for the people who search…thanks Ben!!!

May you be an inspiration to the ones who don’t bother.

www.pcworld.com has free audio editors too
But still watch for any program making chunk file errors.


(PsychoPapaya) #16

Carrying on the “late posting” tradition in this thread…

I was having the same problems and stumbled accross this link with a program FixWAV.

It worked great for me and converted all of my voice overs.

http://www.btinternet.com/~AnthonyJ/projects/FixWAV/

I hope this helps all who have had or will have this “chunk” problem. :clap:

PsychoPapaya


(nikita) #17

i did when a specfy object explode its play sounds how ever i get this error

WARNING:entinty used himself

help please what am i spose to do 1 step at the time from the starts how 2 make sound when u blow an objective off


(kgbdino) #18

WOW this thread has lasted for over 1.5 year

well since it is still being used i want to ask something.

is it possible to use an music file converted into .wav to make background music for the news?


(EB) #19

background music for the news ?
kgbdino…after so many of the threads I have read that you have posted on, I have to ask you to ‘explain everything you ask’ -> ‘MORE’.
We are not in your head filing through your thoughts with you.


(CooperHawkes) #20

i guess he is talking about the news reel…

http://www.planetquake.com/simland/ldr1_1/objcameras.htm