Adding shipped gcw sound to cw era error.

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Adding shipped gcw sound to cw era error.

Post 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.
Last edited by kinetosimpetus on Wed Sep 22, 2010 6:47 pm, edited 1 time in total.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Adding gcw sound to cw era error.

Post 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 :)
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Adding gcw sound to cw era error.

Post 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
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Re: Adding gcw sound to cw era error.

Post by Marvel4 »

Did you update your munge.bats etc.? If not, use the search, I posted them a while ago.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Adding shipped gcw sound to cw era error.

Post 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
Post Reply