Page 1 of 1

Sounds

Posted: Sun Dec 23, 2007 9:32 pm
by NullCommando
Ok, I'm sorry to post another topic so soon but, since I fixed the crash I was wondering how and why custom sounds don't work when I add them:

FFScw.req:
Hidden/Spoiler:
[code]ucft
{
REQN
{
"bnk"
"align=2048"
"testcw"
"FFS"
}

REQN
{
"config"
"global_world"
"exp_obj"
"testcw"
"cw_vo"
"cw"
"swrcweapons"
}
}[/code]
FFS.asfx:
Hidden/Spoiler:
[code]effects\dc17_rifle.wav -resample xbox 22050 pc 22050
effects\dc17_antiarmor.wav -resample xbox 22050 pc 22050
effects\dc17_sniper.wav -resample xbox 22050 pc 22050
effects\dc17_rifle_reload.wav -resample xbox 22050 pc 22050
effects\dc17_sniper_reload.wav -resample xbox 22050 pc 22050
effects\dc17_sniper_choose.wav -resample xbox 22050 pc 22050
effects\dc17_aa_reload.wav -resample xbox 22050 pc 22050
effects\dc17_aa_choose.wav -resample xbox 22050 pc 22050
effects\dc17_out_of_ammo.wav -resample xbox 22050 pc 22050
effects\dc15s_side_arm_fire.wav -resample xbox 22050 pc 22050
effects\commando_injured_1.wav -resample xbox 22050 pc 22050
effects\commando_injured_2.wav -resample xbox 22050 pc 22050
effects\commando_injured_3.wav -resample xbox 22050 pc 22050[/code]

swrcweapons.au: ( .snd )
Hidden/Spoiler:
[code]SoundProperties()
{
Name("clone_commando_chatter_wound");
Group("imp_inf_pain_vo");
Inherit("pain_chatter_template");
PlayInterval(0.0);
PlayIntervalDev(0.0);
PlayProbability(0.85);
SampleList()
{
Sample("commando_injured_1", 0.16);
Sample("commando_injured_2", 0.16);
Sample("commando_injured_3", 0.16);
Sample("IICOM416", 0.16);
Sample("IICOM417", 0.16);
Sample("IICOM418", 0.16);
}
}

SoundProperties()
{
Name("pistoldc15s");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("dc15s_side_arm_fire", 1.0);
}
}

SoundProperties()
{
Name("rifledc17");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("dc17_rifle", 1.0);
}
}

SoundProperties()
{
Name("antiarmordc17");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("dc17_antiarmor", 1.0);
}
}

SoundProperties()
{
Name("sniperdc17");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("dc17_sniper", 1.0);
}
}

SoundProperties()
{
Name("choose_sniper");
Group("weapons_foley");
Inherit("body_movement_template");
SampleList()
{
Sample("dc17_sniper_choose", 1.0);
}
}

SoundProperties()
{
Name("choose_aa");
Group("weapons_foley");
Inherit("body_movement_template");
SampleList()
{
Sample("dc17_aa_choose", 1.0);
}
}

SoundProperties()
{
Name("reload_aa")
Group("weapons_foley");
Inherit("body_movement_template");
SampleList()
{
Sample("dc17_aa_reload", 1.0);
}
}

SoundProperties()
{
Name("reload_rifle")
Group("weapons_foley");
Inherit("body_movement_template");
SampleList()
{
Sample("dc17_rifle_reload", 1.0);
}
}

SoundProperties()
{
Name("reload_sniper")
Group("weapons_foley");
Inherit("body_movement_template");
SampleList()
{
Sample("dc17_sniper_reload", 1.0);
}
}

SoundProperties()
{
Name("dc_empty");
Group("unit_weapon");
Inherit("body_movement_template");
Gain(1.0);
SampleList()
{
Sample("dc17_out_of_ammo", 1.0);
}
}[/code]

Re: Sounds

Posted: Mon Dec 24, 2007 9:24 am
by Aman/Pinguin
why is the file fromat of the swrcweapons .au?

Re: Sounds

Posted: Mon Dec 24, 2007 9:26 am
by NullCommando
It was like that and when I searhced .snd files these .au files turned up, and this was pre-done with the Commando and UT-AT.

Re: Sounds

Posted: Mon Dec 24, 2007 9:27 am
by Aman/Pinguin
use snd files

EDIT: Which tutorial did you use? And are you sure you added everything to the bat files that is described in the tutorial?

EDIT2: And did you copied the sound file from data_abc/lvl_pc to swbf/addon/lvl_pc/sounds?

(Dont know if the direction is correct, on this comp here is no swbf2 installed)

Re: Sounds

Posted: Mon Dec 24, 2007 11:10 am
by NullCommando
Well the .snd file turned out to be the .au file for a weird reason..

Re: Sounds

Posted: Mon Dec 24, 2007 11:25 am
by Aman/Pinguin
So its swrcweapons.snd?

Re: Sounds

Posted: Mon Dec 24, 2007 11:28 am
by NullCommando
Yes, thats it. Also this error comes up..

Code: Select all

soundflmunge.exe : Error : Unable to open file E:\Backup\BF2_ModTools\data_FFS\Sides\common\sound\..\..\sound\global\effects\ui_load_lp.wav  - while munging E:\Backup\BF2_ModTools\data_FFS\Sides\common\sound\global.sfx
soundflmunge.exe : Error : Unable to open file E:\Backup\BF2_ModTools\data_FFS\Sides\common\sound\..\..\sound\global\effects\ui_load_lp.wav, format may be invalid  - while munging E:\Backup\BF2_ModTools\data_FFS\Sides\common\sound\global.sfx
soundflmunge.exe : Error : Unable to read file list E:\Backup\BF2_ModTools\data_FFS\Sides\common\sound\global.sfx  - while munging E:\Backup\BF2_ModTools\data_FFS\Sides\common\sound\global.sfx

Re: Sounds

Posted: Mon Dec 24, 2007 11:38 am
by Aman/Pinguin
Okay...when this error comes upn I cant help you...many people have it and i have no idea how to fix it.

Re: Sounds

Posted: Mon Dec 24, 2007 11:40 am
by NullCommando
Guess this means I can't have any custom sounds, well thanks anyhow.

Re: Sounds

Posted: Mon Dec 24, 2007 12:59 pm
by Maveritchell
Make sure you've fixed your munge.bat + soundmungedir.bat. Read through both Rends' tutorial and MajinRevan's tutorial. You have to download the fixed munge.bat from Rends' and you need to do two fixes mentioned in MR's.