OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Terox on 13 Jan 2004, 23:10:16
-
Apologies if this has already been answered, i did check several pages and searched and i did try the editors depot, but can only access the first page for every section
Anyway here is the question
From a map click i want an array of sound files to play out the phonetic alphabet and the numbers for the grid ref
eg if grid ref is DA46
i want the sound file to play
Delta - Alpha- Four- Six - Over
getting the sound files to play and getting the Map click to return variables and then assosciate the variables with sounds isnt my problem
I de pbo'd the OFP sound files and found in the voices folder some .WSS Files. In them was all the sound files i needed, all the phonetic and number files
I tried a test script to see if i was lucky with a reserved variable hit
eg
Playsound "1"
~1
Playsound "One"
~1
Playsound "A"
~1
Playsound "Alpha"
but was unlucky
I also tried Player Say "ONE" etc etc
so how can i access and play these sounds that are already within the BIS hardcoding
Failing that, has anyone already a folder that contains ogg or wav files for numbers "0 to 9" and phonetic "Alpha to Juliet"
Thanks in advance for any help offered
-
I have the Alphabet and Number .wss files converted to .ogg.
They are in the voice of Adam, although I could easily do the same for any other voice.
If you want them I can send via email or ICQ...etc.
The zipped size is only 338 kb.
Quality is:
44100hz..........Mono..........80kbps.....Constant Bitrate.
Planck
-
You dont need to do all this.
Check my reply to your post in the BIS forum
Cheers
-
This is Alimags reply on BIS forums
You CAN play them the same way that you can play a WAV file if you want.
The main 2 reasons that we dont use them are:
1- I never saw a WSS player so I have to use OFP everytime I want to know what the file is about (very bad)
2- The size. OGG files are much smaller.
But to access the internal OFP sound the only things you need are the name and the path of the file. Then, you just describe them in your description.ext file as any other one:
For example Adam voice saying "CONTACT":
class CfgRadio
{
sounds[] = {contact};
class contact
{
name = "";
sound[] = {"bis\adam\contact.wss", db-5, 1.0};
title = $STRM_contact;
};
};
Your idea is a very good one but there may be much work than you think to cover all the possiblities.
If you need help just tell me I'll do what I can
Cheers
and
Thanks a lot Planck.
If you could i would appreciate you send me the files to terox_@hotmail.com
I may find that the play length for the .WSSr files may vary and therefore when trying to play one after the other, there would be horrible pauses between the two, so i may need to modify some