Mo' sounds, mo' problems

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
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Mo' sounds, mo' problems

Post by MandeRek »

Okay, weird problem. At first i munged 1 sound, and it worked fine.. Now, I've added 5 more sounds, but it's giving me this error:

Code: Select all

Munging zercw.req
ERROR[levelpack zercw.req]:d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zer.bnk is not a binary UCF file!ERROR[levelpack zercw.req]:d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zer.bnk is not a binary UCF file! [continuing]
   2 Errors    0 Warnings

ERROR[levelpack zer.req]:Expecting bracket, but none was found.
File : d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zercw.lvl.req(1)...

ucft <--
ERROR[levelpack zer.req]:Expecting bracket, but none was found.
File : d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zercw.lvl.req(1)...

ucft <--

   2 Errors    0 Warnings
Don't see what's wrong though, in this req:

Code: Select all

ucft
{
	REQN
	{
		"bnk"
		"align=2048"
                "ZERcw"
		"ZER"
	}
	REQN
	{
		"config"
		"global_world"
                            "durge_spawn"
	}
	REQN
	{
		"config"
		"global_world"
                            "cydon_spawn"
	}
	REQN
	{
		"config"
		"global_world"
                            "sevrance_spawn"
	}
	REQN
	{
		"config"
		"global_world"
                            "echuu_spawn"
	}
	REQN
	{
		"config"
		"global_world"
                            "trenox_spawn"
	}
	REQN
	{
		"config"
		"global_world"
                            "artel_spawn"
	}
 }
Yes, i know the ..._spawn could be all under each other but that didn't work so i tried this!
Yodakid
Second Lance Corporal
Second Lance Corporal
Posts: 117
Joined: Sat Nov 22, 2008 5:43 pm
Projects :: Something old
Games I'm Playing :: TES Online AC Unity
xbox live or psn: No gamertag set
Location: Finland

Re: More sounds means more problems

Post by Yodakid »

I can't see any wrong but try to compare with my working reqs and files (I have more than one sound working)

LOP.req
Hidden/Spoiler:
ucft
{
REQN
{
"str"
"align=2048"
"LOP"

}
REQN
{
"lvl"
"LOPcw"
}
}
LOPcw.req:
Hidden/Spoiler:
ucft
{
REQN
{
"bnk"
"LOP"
"align=2048"
"LOPcw"
}

REQN
{
"config"
"global_world"
"rifle1"
"LOP"
"LOPcw"
}
}
Rifle1.snd:
Hidden/Spoiler:
SoundProperties()
{
Name("eliterifle");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("eliterifle", 1.0);
}
}

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

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

SoundProperties()
{
Name("Exp1");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("Exp1", 1.0);
}
}
LOP.asfx:
Hidden/Spoiler:
effects\eliterifle.wav -resample xbox 22050 pc 22050
effects\eliterifle1.wav -resample xbox 22050 pc 22050
effects\falcon.wav -resample xbox 22050 pc 22050
effects\exp1.wav -resample xbox 22050 pc 22050
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: More sounds means more problems

Post by MandeRek »

Did actually the same as you did, but now i get these problems:

Code: Select all

Munging zercw.req
ERROR[levelpack zercw.req]:d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zer.bnk is not a binary UCF file!ERROR[levelpack zercw.req]:d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zer.bnk is not a binary UCF file! [continuing]
   2 Errors    0 Warnings

Munging zer.req
ERROR[levelpack zer.req]:Expecting bracket, but none was found.
File : d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zercw.lvl.req(1)...

ucft <--
ERROR[levelpack zer.req]:Expecting bracket, but none was found.
File : d:\bf2_modtools\data_zer\_build\sound\worlds\zer\munged\pc\zercw.lvl.req(1)...

ucft <--
 [continuing]
   2 Errors    0 Warnings
Yodakid
Second Lance Corporal
Second Lance Corporal
Posts: 117
Joined: Sat Nov 22, 2008 5:43 pm
Projects :: Something old
Games I'm Playing :: TES Online AC Unity
xbox live or psn: No gamertag set
Location: Finland

Re: More sounds means more problems

Post by Yodakid »

Hmmm, and your sound files are in right format?
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: More sounds means more problems

Post by Bantha55 »

MandeRek why have you added the samples to the sound req?
Your ZER req should look like this:

Code: Select all

ucft
{
    REQN
    {
        "str"
        "align=2048"
    }
    REQN
    {
        "lvl"
        "ZERcw"
    }
 }
and your ZERcw req should look like this:

Code: Select all

ucft
{
    REQN
    {
        "bnk"
        "align=2048"
        "ZERcw"
        "ZER" -- if it exists!
    }

    REQN
    {
        "config"
         --*your snd. file´s name*
         --(If you want to add some shipped sound codes, too, add them here; for example "cis_fly_droidstarfighter")
    }
 }
Put your samples in the effect folder and create an .asfx for them(*your sound file´s name*.asfx)

Code: Select all

effects\durge_spawn.wav    -resample xbox 22050 pc 22050
Yodakid you just added laser sounds. For custom speeches it needs a different setup in the .snd file.(*your sound file´s name*.snd)

Code: Select all

SoundProperties()
{
    Name("******_chatter_wound");
    Group("imp_inf_pain_vo");
    Inherit("pain_chatter_template");
    PlayInterval(0.0);
    PlayIntervalDev(0.0);
    PlayProbability(0.85);
    SampleList()
    {
        Sample("******_chatter_wound", 0.16);
    }
}
This is just for pain vo but the other setups should look somehow like this, too. But I´m pretty sure that it would work if you just use this setup for the spawn sounds.

(like this:

Code: Select all

SoundProperties()
{
    Name("durge_spawn");
    Group("imp_inf_pain_vo");
    Inherit("pain_chatter_template");
    PlayInterval(0.0);
    PlayIntervalDev(0.0);
    PlayProbability(0.85);
    SampleList()
    {
        Sample("durge_spawn", 0.16);
    }
}
)

Try it and if it still doesn´t work watch out Majin Revan´s adding custom sounds tut if you made a mistake.
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: More sounds means more problems

Post by MandeRek »

As said bantha, i know all these things, they worked before.. With 1 sound. Also the asfx and whatever, only the reqs give errors, that's what i said. I'll give those reqs a go, but they're the same as my old ones..

I do know how to add custom sounds, but this is some weird error which is illogical, which is why i ask for help :)

Thanks for writing a whole tut for me though :P Appreciate, but knew it already ;)


EDIT
Sorry for double post but this is killing me..

ZER.req:
Hidden/Spoiler:
[code]ucft
{
REQN
{
"str"
"align=2048"
}
REQN
{
"lvl"
"ZERcw"
}
}[/code]
ZERcw.req
Hidden/Spoiler:
[code]ucft
{
REQN
{
"bnk"
"align=2048"
"ZERcw"
}

REQN
{
"config"
"global_world"
"hero_spawn"

}
}[/code]
ZER.asfx
Hidden/Spoiler:
[code]effects\durge_spawn.wav -resample xbox 22050 pc 22050
effects\echuu_spawn.wav -resample xbox 22050 pc 22050
effects\trenox_spawn.wav -resample xbox 22050 pc 22050
effects\sevrance_spawn.wav -resample xbox 22050 pc 22050
effects\artel_spawn.wav -resample xbox 22050 pc 22050
effects\cydon_spawn.wav -resample xbox 22050 pc 22050[/code]
hero_spawn.snd
Hidden/Spoiler:
[code]--these lines worked perfect before on old custom hero speeches
SoundProperties()
{
Name("artel_spawn");
Group("hero_vo");
Inherit("Hero_battle_chatter_template");
SampleList()
{
Sample("artel_spawn", 0.5);
}
}

SoundProperties()
{
Name("durge_spawn");
Group("hero_vo");
Inherit("Hero_battle_chatter_template");
SampleList()
{
Sample("durge_spawn", 0.5);
}
}

SoundProperties()
{
Name("echuu_spawn");
Group("hero_vo");
Inherit("Hero_battle_chatter_template");
SampleList()
{
Sample("echuu_spawn", 0.5);
}
}

SoundProperties()
{
Name("sevrance_spawn");
Group("hero_vo");
Inherit("Hero_battle_chatter_template");
SampleList()
{
Sample("sevrance_spawn", 0.5);
}
}

SoundProperties()
{
Name("trenox_spawn");
Group("hero_vo");
Inherit("Hero_battle_chatter_template");
SampleList()
{
Sample("trenox_spawn", 0.5);
}
}

SoundProperties()
{
Name("cydon_spawn");
Group("hero_vo");
Inherit("Hero_battle_chatter_template");
SampleList()
{
Sample("cydon_spawn", 0.5);
}
}[/code]
And all wav files, correctly exported, are in effects. I'm having no error, a 35kb sound file and no single sound working ingame..

Got ideas? I'll also really appreciate if someone could get me a zer folder for in sounds/worlds with everything correctly setup, and i just need to paste the effects map and hero_spawn.snd in :)
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: More sounds means more problems

Post by Bantha55 »

Ah, know I have the mistake!

ZERcw.req:

Code: Select all

ucft
   {
   REQN
   {
      "bnk"
      "align=2048"
      "ZERcw"
      "hero_spawn"
   }

   REQN
   {
      "config"
      "global_world"
      "hero_spawn"

   }
}
The .snd file´s name has to be added under bnk, too. Sorry I made the same mistake in the example I posted above. Try it an now it´ll work!
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: More sounds means more problems

Post by MandeRek »

Okay, that obviously also didn't work.. Now i've checked the lua and odfs 10.000 times, and as said; when i had one sound everything worked fine. But since this sound also doesn't show up anymore something must be going wrong :?
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: More sounds means more problems

Post by Bantha55 »

Ok.

Then there are two things left that could help:

1) a sound clean (always use the clean bat in data_***/_build/sound)

2) Just remove all sound samples that are newly listed from the .snd and the .asfx. See if it works again. If yes, add the new samples back to the scripts one by one. This way you can check which of them has a mistake.
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: More sounds means more problems

Post by MandeRek »

Okay, still no succes. Could someone help me a lot and upload a working *** sound folder, so i only have to rename *** and add in my sounds/.snd-file?

That would be soooo great :|
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: More sounds means more problems

Post by Maveritchell »

I'll try and get around to that, but before I do that I had to rename your topic, it was just asking for it. :wink:
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: More sounds means more problems

Post by MandeRek »

Maveritchell wrote:I'll try and get around to that, but before I do that I had to rename your topic, it was just asking for it. :wink:
Haha, great one :P Thanks for helping ;)
Post Reply