OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 23 Mar 2005, 21:21:50
-
i have made an intro where some soldiers get briefed with sounds but i cant make the soldier named off1 to say the sounds in the description.ext file i have
class cfgSounds
{
sounds[] = {intro1, intro2, intro3, intro4, intro5};
class intro1
{ name = "intro1";sound[] = {"intro1.ogg", db-0, 1.0}; titles[] = {0, $STRM_intro1};};
class intro2
{ name = "intro2";sound[] = {"intro2.ogg", db-0, 1.0}; titles[] = {0, $STRM_intro2};};
class intro3
{ name = "intro3";sound[] = {"intro3.ogg", db-0, 1.0}; titles[] = {0, $STRM_intro3};};
class intro4
{ name = "intro4";sound[] = {"intro4.ogg", db-0, 1.0}; titles[] = {0, $STRM_intro4};};
class intro5
{ name = "intro5";sound[] = {"intro5.ogg", db-0, 1.0}; titles[] = {0, $STRM_intro5};};
};
im pretty sure thats wright and i know my stringtable.csv file is right because it shows the text on the screen.
i have run it from a script like this (not exact)
off1 say "intro1"
~5
off1 say "intro2"
and so on i have music playing in the background but i have faded that to 0
still no look any one know why
-
No error message saying "Sound intro1 cannot be found"?!?
Then the problem is most likely the quality of the sound file. Are you sure it was the correct format before you changed it into .ogg? That's the most common problem.
Second most common problem is if the sound file is too small, then OFP wont play it. Solution: record a few seconds of silence in the end of the file
-
Don't forget to reload your mission in the editor when you make changes in your description.ext :)
Did you try it without the fadesound command?
-
theres no error message the sound files are about 98.3kb is the highest and the lowest is 33.5kb i didnt even know that they had to be in the right quality so i will try that but i dont have a file that can do that so if any one knows a good one please send a link
EDIT-i converted it to 44,100khz i think but that was with the ogg converter.
-
ive also tried using the playsound function and having the titlecuts running about ~0.1 seconds afterwards but it still doesnt seem to work
-
ive made a new description.ext file and it follow like this
onLoadOutroTime = false;
onLoadIntroTime = false;
debriefing = 1;
onLoadMission = "Approaching Montignac from the bottom of the hill"
showGPS = 1;
showMap = 1;
class CfgSound
{
sounds[] =
{
intro1,intro2,intro3,intro4,intro5,intro6,intro7
};
class intro1
{
name = "intro1";
sound[] = {"intro1.ogg", db-40, 1.0};
title = $STRM_intro1;
};
class intro2
{
name = "intro2";
sound[] = {"intro2.ogg", db-40, 1.0};
title = $STRM_intro2;
};
class intro3
{
name = "intro3";
sound[] = {"intro3.ogg", db+10, 1.0};
title = $STRM_intro3;
};
class intro4
{
name = "intro4";
sound[] = {"intro4.ogg", db+10, 1.0};
title = $STRM_intro4;
};
class intro5
{
name = "intro5";
sound[] = {"intro5.ogg", db+10, 1.0};
title = $STRM_intro5;
};
class intro6
{
name = "intro6";
sound[] = {"intro6.ogg", db+10, 1.0};
title = $STRM_intro6;
};
class intro7
{
name = "intro7";
sound[] = {"intro7.ogg", db+10, 1.0};
title = $STRM_intro7;
};
};
class CfgIdentities
{
class HarryPotter
{
name = "Brian Sheplan";
face = "Johan Way";
glasses = "none";
speaker = "Rob";
pitch = 1;
};
};
the CfgIdentities part and the first bit is just to see if they could be messing this up somehow
the files are in a folder named "Sound" and they are called "intro1" through to "intro7"
they have been converted using jetes sound lab in the editor depot.
i have also got a lip file with them.
i use a forcemap command and fade the music to 0.15 then i run a new script and have inside it
off1 say intro1
~5
"markername" setmarkertype "arrow"
~1.5
off1 say intro2
"marker2" setmakertype "destroy"
please can someone check all this and tell me what the cause of this is
and also the sound files sixes are
intro1 = 28.1kb
intro2 = 27.0kb
intro3 = 17.3kb
intro4 = 24.3kb
intro5 = 27.2kb
intro6 = 38.1kb
intro7 = 19.8kb
-
i got it working now i un pboed a bis mission then edited the description.ext file to work with me