Page 1 of 1

Adding shipped gcw sound to cw era error.

Posted: Wed Sep 22, 2010 12:16 am
by kinetosimpetus
I tried following Rends' Tutorial for fixing missing stock sounds to add the imp_weap_rifle_fire sound to a clone wars era mod, but I got munge error, and if I played the map, I did not get the imp rifle sound, and after a few minutes, all sound in swbf2 would die until the whole game restarted.

I have gotten custom sounds in, but not this stock sound...

153gcw_shipped.req
Hidden/Spoiler:
[code]ucft
{
REQN
{
"bnk"
"align=2048"
"153_effects_shipped"
}

REQN
{
"config"
"153_wconfig_gcw_shipped"
}
}[/code]
153_effects_shipped.asfx
Hidden/Spoiler:
[code]..\..\gcw\effects\wpn_imp_blaster_fire.wav -resample xbox 22050 pc 22050[/code]
153_wconfig_gcw_shipped.snd
Hidden/Spoiler:
[code]SoundProperties()
{
Name("imp_weap_inf_rifle_fire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("wpn_imp_blaster_fire", 1.0);
}
}[/code]
Mungelog:
Hidden/Spoiler:
[code]soundflmunge.exe : Error : Unable to open file ..\..\gcw\effects\wpn_imp_blaster_fire.wav - while munging F:\BF2_ModTools\data_153\Sound\worlds\153\153_effects_shipped.asfx
soundflmunge.exe : Error : Unable to open file ..\..\gcw\effects\wpn_imp_blaster_fire.wav, format may be invalid - while munging F:\BF2_ModTools\data_153\Sound\worlds\153\153_effects_shipped.asfx
soundflmunge.exe : Error : Unable to read file list F:\BF2_ModTools\data_153\Sound\worlds\153\153_effects_shipped.asfx - while munging F:\BF2_ModTools\data_153\Sound\worlds\153\153_effects_shipped.asfx[/code]
The code used to load the resulting 1kb (problem?) lvl file would be:
Hidden/Spoiler:
[code]ReadDataFile("dc:sound\\153gcw_shipped.lvl")[/code]
The munger can't seem to find the .wav file, no surprise, there isn't one. What am I missing to make that tutorial work?

The custom sound files are similar, substituting custom for shipped and gcw for cw. Except the custom sounds work.

Re: Adding gcw sound to cw era error.

Posted: Wed Sep 22, 2010 9:25 am
by skelltor
something that works for me with adding cw or gcw sounds to the other era is in your lua copy the readdatafile sound thing paste it right under the first one and rename the last part to cw or gcw like this
ReadDataFile("sound\\dea.lvl;dea1gcw")
ReadDataFile("sound\\dea.lvl;dea1cw")
obvisously dea is changed to whatever map name you want :)

Re: Adding gcw sound to cw era error.

Posted: Wed Sep 22, 2010 10:26 am
by kinetosimpetus
Won't that cause any common sounds between the eras to stop working?

Also, the link in step 9 of the tut is broken.
^Link fixed -Staff

Re: Adding gcw sound to cw era error.

Posted: Wed Sep 22, 2010 12:31 pm
by Marvel4
Did you update your munge.bats etc.? If not, use the search, I posted them a while ago.

Re: Adding shipped gcw sound to cw era error.

Posted: Wed Sep 22, 2010 6:46 pm
by kinetosimpetus
Marvel4 wrote:Did you update your munge.bats etc.? If not, use the search, I posted them a while ago.
data_153\soundmunge.bat - Yes, from Mav's custom sound tut.
data_153\_BUILD\munge.bat - Maybe, if yes, was for a floating icon fix.
Found by search - No