Sound Help UPDATE #2 4/26/11

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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Sound Help UPDATE #2 4/26/11

Post by modmaster13 »

Hey I tried for the 10th time to get my new sound lvl to work, I got it to munge, but the sounds won't show up ingame. Yes I did put the sound lvls in:
Hidden/Spoiler:
C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData\addon\GNS\data\_LVL_PC\Sound
GNS.req:
Hidden/Spoiler:
ucft
{
REQN
{
"str"
"align=2048"
"gcw_vo"
"gcw_tac_vo"
"cw_vo"
"cw_tac_vo"

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

REQN
{
"config"
"global_world"
"exp_obj"
"GNScw"
"cw_vo"
"cw"
"rep_fly_gunship_sc"
}
}
GNScw.sfx:
Hidden/Spoiler:
// Gunship -------------------------------------------------------------------------------------------------
..\..\cw\effects\eng_takeoff_gunship02.wav -resample ps2 16000 xbox 16000 pc 44100
..\..\cw\effects\eng_takeoff_gunship01.wav -alias ps2 eng_takeoff_gunship02 -resample xbox 22050 pc 44100
..\..\cw\effects\R_LAAT_land01.WAV -resample ps2 16000 xbox 16000 pc 44100
#ifplatform xbox pc
//..\..\cw\effects\wpn_gunship_blaster_fire.wav -resample xbox 22050 pc 44100
//..\..\cw\effects\wpn_gunship_rocket_fire.wav -resample xbox 22050 pc 44100
..\..\cw\effects\eng_repGunship_hi_lp.wav -resample xbox 22050 pc 22050
..\..\cw\effects\eng_repGunship_low_lp.wav -resample xbox 16000 pc 22050
..\..\cw\effects\eng_repGunship_mid_lp.wav -resample xbox 16000 pc 22050
#endifplatform xbox pc
#ifplatform ps2
//..\..\cw\effects\wp2_gunship_blaster_fire.wav wpn_gunship_blaster_fire -resample ps2 16000
//..\..\cw\effects\wp2_gunship_rocket_fire.wav wpn_gunship_rocket_fire -resample ps2 16000
..\..\cw\effects\eP2_repGunship_hi_lp.wav eng_repGunship_hi_lp -resample ps2 16000
..\..\cw\effects\eP2_repGunship_low_lp.wav eng_repGunship_low_lp -resample ps2 3000
..\..\cw\effects\eP2_repGunship_mid_lp.wav eng_repGunship_mid_lp -resample ps2 6000
#endifplatform ps2
// ---------------------------------------------------------------------------------------------------------------


// CW Era Flyer Sounds requiring CW Flyers for aliasing
// Soft Shiftup
..\..\global\effects\sfx_pod_slide_up.wav soft_shift_up -alias ps2 shift_up -resample xbox 22050 pc 22050
// Soft Shiftdown
..\..\global\effects\sfx_pod_slide_down.wav soft_shift_down -alias ps2 vwing_roll -resample xbox 22050 pc 22050


#ifplatform pc
..\..\global\effects\veh_TriFighter_by_01.wav tri_flyby -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_startup_light_01.wav nsf_startup -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_startup_light_02.wav cis_startup -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_startup_hvy_01.wav startup_heavy -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_startup_hvy_02.wav arc170_startup -resample ps2 16000 xbox 22050 pc 22050
//..\..\global\effects\veh_shutdown_light_01.wav
..\..\global\effects\veh_shutdown_light_02.wav cw_powerdown -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_shutdown_hvy_01.wav heavy_shift_down -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_shutdown_hvy_02.wav shutdown_heavy -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_droidFighter_by_01.wav droidfighter_by_light -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_droidFighter_by_02.wav droidfighter_by -resample ps2 16000 xbox 22050 pc 22050
..\..\global\effects\veh_arc170_by_01.wav cw_flyby -resample ps2 16000 xbox 22050 pc 22050
//..\..\global\effects\veh_arc170_by_02.wav
#endifplatform pc
// Metal Debris -------------------------------------------------------------------------------------------------
#ifplatform xbox pc
..\..\global\effects\exp_debris_metal_large01.wav -resample xbox 32000 pc 44100
..\..\global\effects\exp_debris_metal_med03.wav -resample xbox 32000 pc 44100
..\..\global\effects\exp_debris_metal_med02.wav -resample xbox 32000 pc 44100
..\..\global\effects\exp_debris_metal_small01.wav -resample xbox 32000 pc 44100
..\..\global\effects\exp_debris_metal_small03.wav -resample xbox 32000 pc 44100
#endifplatform xbox pc
#ifplatform ps2
..\..\global\effects\ex2_debris_metal_med03.wav exp_debris_metal_med03 -resample ps2 16000
..\..\global\effects\ex2_debris_metal_med02.wav exp_debris_metal_med02 -resample ps2 16000
..\..\global\effects\ex2_debris_metal_small01.wav exp_debris_metal_small01 -alias ps2 exp_debris_metal_med03
..\..\global\effects\ex2_debris_metal_small03.wav exp_debris_metal_small03 -alias ps2 exp_debris_metal_med03
..\..\global\effects\ex2_debris_metal_large01.wav exp_debris_metal_large01 -alias ps2 exp_debris_metal_med02
#endifplatform ps2
// --------------------------------------------------------------------------------------------------------------
soundmunge.bat:
Hidden/Spoiler:
@if %1x==x goto noplatform
@set MUNGE_PLATFORM=%1
@set MUNGE_DIR=MUNGED\%MUNGE_PLATFORM%
@rem EDIT THE LINE BELOW TO POINT TO YOUR BF2 INTSALL PATH
@set BF2_SOUNDPATH="c:\Program Files\LucasArts\Star Wars Battlefront II\"

@rem Munge global, shell and side specific sound data
@call soundmungedir _BUILD\sound\cw\%MUNGE_DIR% sound\cw sound\cw\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound cw
@call soundmungedir _BUILD\sound\gcw\%MUNGE_DIR% sound\gcw sound\gcw\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gcw
@call soundmungedir _BUILD\sound\global\%MUNGE_DIR% sound\global sound\global\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound global nolevelfile
@call soundmungedir _BUILD\sound\shell\%MUNGE_DIR% sound\shell sound\shell\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound shell
@rem Munge world specific sound data
@call soundmungedir _BUILD\sound\worlds\cor\%MUNGE_DIR% sound\worlds\cor sound\worlds\cor\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound cor
@call soundmungedir _BUILD\sound\worlds\dag\%MUNGE_DIR% sound\worlds\dag sound\worlds\dag\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound dag
@call soundmungedir _BUILD\sound\worlds\dea\%MUNGE_DIR% sound\worlds\dea sound\worlds\dea\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound dea
@call soundmungedir _BUILD\sound\worlds\end\%MUNGE_DIR% sound\worlds\end sound\worlds\end\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound end
@call soundmungedir _BUILD\sound\worlds\fel\%MUNGE_DIR% sound\worlds\fel sound\worlds\fel\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound fel
@call soundmungedir _BUILD\sound\worlds\gal\%MUNGE_DIR% sound\worlds\gal sound\worlds\gal\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gal
@call soundmungedir _BUILD\sound\worlds\geo\%MUNGE_DIR% sound\worlds\geo sound\worlds\geo\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound geo
@call soundmungedir _BUILD\sound\worlds\hot\%MUNGE_DIR% sound\worlds\hot sound\worlds\hot\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound hot
@call soundmungedir _BUILD\sound\worlds\kam\%MUNGE_DIR% sound\worlds\kam sound\worlds\kam\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound kam
@call soundmungedir _BUILD\sound\worlds\kas\%MUNGE_DIR% sound\worlds\kas sound\worlds\kas\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound kas
@call soundmungedir _BUILD\sound\worlds\mus\%MUNGE_DIR% sound\worlds\mus sound\worlds\mus\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound mus
@call soundmungedir _BUILD\sound\worlds\myg\%MUNGE_DIR% sound\worlds\myg sound\worlds\myg\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound myg
@call soundmungedir _BUILD\sound\worlds\nab\%MUNGE_DIR% sound\worlds\nab sound\worlds\nab\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound nab
@call soundmungedir _BUILD\sound\worlds\pol\%MUNGE_DIR% sound\worlds\pol sound\worlds\pol\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound pol
@call soundmungedir _BUILD\sound\worlds\spa\%MUNGE_DIR% sound\worlds\spa sound\worlds\spa\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound spa
@call soundmungedir _BUILD\sound\worlds\tan\%MUNGE_DIR% sound\worlds\tan sound\worlds\tan\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tan
@call soundmungedir _BUILD\sound\worlds\tat\%MUNGE_DIR% sound\worlds\tat sound\worlds\tat\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tat
@call soundmungedir _BUILD\sound\worlds\uta\%MUNGE_DIR% sound\worlds\uta sound\worlds\uta\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound uta
@call soundmungedir _BUILD\sound\worlds\yav\%MUNGE_DIR% sound\worlds\yav sound\worlds\yav\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound yav
@call soundmungedir _BUILD\sound\worlds\hero\%MUNGE_DIR% sound\worlds\hero sound\worlds\hero\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound hero

@rem EDIT THE TWO LINES BELOW TO POINT TO YOUR MOD BY REPLACING SND WITH YOUR WORLD ABBREVIATION
@call soundmungedir _BUILD\sound\worlds\GNS\%MUNGE_DIR% sound\worlds\GNS sound\worlds\GNS\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound GNS
xcopy _LVL_%MUNGE_PLATFORM%\sound\* %BF2_SOUNDPATH%GameData\addon\GNS\data\_LVL_PC\Sound\ /Y

@goto exit
:noplatform
@echo Platform must be specified as the first argument
:exit
GNSc_con.lua:
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "CP2"}
cp2 = CommandPost:New{name = "CP3"}
cp3 = CommandPost:New{name = "CP5"}
cp4 = CommandPost:New{name = "CP6"}
cp5 = CommandPost:New{name = "CP7"}
cp6 = CommandPost:New{name = "CP10"}
cp7 = CommandPost:New{name = "CP13"}
cp8 = CommandPost:New{name = "CP14"}



--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:AddCommandPost(cp7)
conquest:AddCommandPost(cp8)

conquest:Start()

EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()

ReadDataFile("dc:load\\common.lvl")

ReadDataFile("ingame.lvl")


SetMinFlyHeight(-65)
SetMaxFlyHeight(50)
SetMaxPlayerFlyHeight(50)

SetGroundFlyerMap(1);

SetMemoryPoolSize ("Music", 400)
SetMemoryPoolSize ("SoldierAnimation", 8000)
SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo

SetTeamAggressiveness(CIS, 1.0)
SetTeamAggressiveness(REP, 1.0)

ReadDataFile("dc:sound\\GNS.lvl;GNScw")
ReadDataFile("sound\\geo.lvl;geo1cw")
ReadDataFile("dc:sound\\GNS.lvl;GNScw")
ReadDataFile("SIDE\\rep.lvl",
"rep_fly_assault_dome",
"rep_fly_gunship_dome",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep2_jettrooper",
"rep_hero_macewindu",
"rep_walk_atte")

ReadDataFile("SIDE\\cis.lvl",
"cis_fly_droidfighter_dome",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_inf_pilot",
"cis_hero_countdooku",
"cis_tread_hailfire",
"cis_walk_spider")

ReadDataFile("SIDE\\jed.lvl",
"jed_knight_01",
"jed_knight_02",
"jed_knight_03")

ReadDataFile("dc:SIDE\\rep.lvl",
"rep_bldg_forwardcenter",
"rep_fly_gunship_sc")

ReadDataFile("dc:SIDE\\cis.lvl",
"cis_fly_geofighter")

ReadDataFile("SIDE\\geo.lvl",
"gen_inf_geonosian")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_geoturret")

SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "rep_inf_ep2_rifleman",10, 25},
assault = { "rep_inf_ep2_rocketeer",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep2_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep2_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 25,
reinforcements = 150,
soldier = { "cis_inf_rifleman",10, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}

SetHeroClass(CIS, "cis_hero_countdooku")
SetHeroClass(REP, "rep_hero_macewindu")


-- Local Stats
SetTeamName(3, "locals")
SetUnitCount(3, 7)
AddUnitClass(3, "geo_inf_geonosian", 7)
SetTeamAsFriend(3, DEF)
--SetTeamName(4, "locals")
--AddUnitClass(4, "jed_knight_01",1)
--AddUnitClass(4, "jed_knight_02",1)
--AddUnitClass(4, "jed_knight_03",1)
--SetUnitCount(4, 3)
--SetTeamAsFriend(4, ATT)

-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 2) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 2) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("CommandWalker", 4)
SetMemoryPoolSize("CommandFlyer", 4)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:GNS\\GNS.lvl", "GNS_conquest")
ReadDataFile("dc:GNS\\geo1.lvl", "geo1_conquest")
SetDenseEnvironment("false")




-- Sound

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")

voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("sound\\geo.lvl", "geo1cw")

SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)

SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(REP, CIS, "rep_off_victory_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1)

SetOutOfBoundsVoiceOver(2, "cisleaving")
SetOutOfBoundsVoiceOver(1, "repleaving")

SetAmbientMusic(REP, 1.0, "rep_GEO_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_GEO_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_GEO_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_GEO_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_GEO_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_GEO_amb_end", 2,1)

SetVictoryMusic(REP, "rep_geo_amb_victory")
SetDefeatMusic (REP, "rep_geo_amb_defeat")
SetVictoryMusic(CIS, "cis_geo_amb_victory")
SetDefeatMusic (CIS, "cis_geo_amb_defeat")

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("BirdScatter", "birdsFlySeq1")
--SetSoundEffect("WeaponUnableSelect", "com_weap_inf_weaponchange_null")
--SetSoundEffect("WeaponModeUnableSelect", "com_weap_inf_modechange_null")
SetSoundEffect("SpawnDisplayUnitChange", "shell_select_unit")
SetSoundEffect("SpawnDisplayUnitAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change")
SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplayBack", "shell_menu_exit")


--Opening Satalite Shot
--Geo
--Mountain
AddCameraShot(0.996091, 0.085528, -0.022005, 0.001889, -6.942698, -59.197201, 26.136919);
--Wrecked Ship
AddCameraShot(0.906778, 0.081875, -0.411906, 0.037192, 26.373968, -59.937874, 122.553581);
--War Room
AddCameraShot(0.994219, 0.074374, 0.077228, -0.005777, 90.939568, -49.293945, -69.571136);
end
Thanks!

Questions? Concerns? Ideas?
Last edited by modmaster13 on Tue Apr 26, 2011 8:23 pm, edited 3 times in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Sound Help

Post by AQT »

modmaster13 wrote:but the sounds won't show up ingame.
Just confirming, but was the volume up when you checked? Because you can't really see sound in SWBF2...

Anyway, how large was the munged sound .lvl? And what is "rep_fly_gunship_sc" in your GNScw.req? If it is the .snd file for the stock Republic Gunship, it's actually called rep_fly_gunship. It would also help in some cases to move that file into your world's three-character code sound folder.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound Help

Post by modmaster13 »

AQT wrote:
modmaster13 wrote:but the sounds won't show up ingame.
Just confirming, but was the volume up when you checked? Because you can't really see sound in SWBF2...

Anyway, how large was the munged sound .lvl? And what is "rep_fly_gunship_sc" in your GNScw.req? If it is the .snd file for the stock Republic Gunship, it's actually called rep_fly_gunship. It would also help in some cases to move that file into your world's three-character code sound folder.
Hahaha :funny2: I did have my sound on.

I did move the sound lvl into .../.../GameData/addon/GNS/data\_LVL_PC/Sound

The "gns.lvl" was 1 KB in size

Ok I changed the GNScw.req, but the sounds the the gunship still won't show up, btw this is the stock space Republic Gunship:
Hidden/Spoiler:
ucft
{
REQN
{
"bnk"
"align=2048"
"GNScw"
}

REQN
{
"config"
"global_world"
"exp_obj"
"GNScw"
"cw_vo"
"cw"
"rep_fly_gunship"
}
}
UPDATE 4/23/11

Here is the sound folder: http://www.gamefront.com/files/20255986/GNS_zip
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Re: Sound Help UPDATE 4/23/11

Post by CalvaryCptMike »

Is there any reason why you loaded the same thing twice in your lua? Also you know if the only thing you're trying to get into your map is the gunship then do this: copy one of the space sound files that have the gunship in them from the stock game sound folder and paste it into your addon folder. Then load it in your lua! That will work for sure, if it doesn't then something else is wrong. Is the gunship odf setup correctly?
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound Help UPDATE 4/23/11

Post by modmaster13 »

1. I loaded twice so I could try multiple ways

2. I am not using a custom gunship, just the stock "rep_fly_gunship"

3. I'll try loading the space sounds from my addon folder! Good Idea!

4. I tryed calling for spa.lvl. It worked, but it overwrited sounds. :(

5. Thanks for Replying! :D

6. Please help. :runaway:
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Sound Help UPDATE #2 4/26/11

Post by Marth8880 »

I spy with my little eye...

In these:

Code: Select all

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
[/size]
Put this:

Code: Select all

OpenAudioStream("dc:sound\\gns.lvl", "gnscw")
OpenAudioStream("dc:sound\\gns.lvl", "gnscw")
[/size]
Under this:

Code: Select all

OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
[/size]
So it looks this:

Code: Select all

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("dc:sound\\gns.lvl", "GNScw")
OpenAudioStream("dc:sound\\gns.lvl", "GNScw")
[/size]
You told the game to load the LVL, but you never said to open the audio stream. I'm not 100% sure if this is correct, but it's definitely worth a go.

Also, with sounds, I personally like to add little comments noting what each line is doing so I'm not confused.

Here, I even did it for you :wink: :

Code: Select all

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\geo.lvl", "geo1cw") -- These load our music stream
OpenAudioStream("sound\\geo.lvl", "geo1cw") -- ""
OpenAudioStream("dc:sound\\gns.lvl", "GNScw") -- These load our gunship's sounds
OpenAudioStream("dc:sound\\gns.lvl", "GNScw") -- ""
[/size]
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound Help UPDATE #2 4/26/11

Post by modmaster13 »

That didn't work.
Hidden/Spoiler:
SetMemoryPoolSize ("Music", 400)
SetMemoryPoolSize ("SoldierAnimation", 8000)
SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo

SetTeamAggressiveness(CIS, 1.0)
SetTeamAggressiveness(REP, 1.0)

ReadDataFile("dc:sound\\gns.lvl;GNScw")
ReadDataFile("sound\\geo.lvl;geo1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_fly_assault_dome",
"rep_fly_gunship_dome",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep2_jettrooper",
"rep_hero_macewindu",
"rep_walk_atte")

ReadDataFile("SIDE\\cis.lvl",
"cis_fly_droidfighter_dome",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_inf_pilot",
"cis_hero_countdooku",
"cis_tread_hailfire",
"cis_walk_spider")

ReadDataFile("SIDE\\jed.lvl",
"jed_knight_01",
"jed_knight_02",
"jed_knight_03")

ReadDataFile("dc:SIDE\\rep.lvl",
"rep_bldg_forwardcenter",
"rep_fly_gunship")

ReadDataFile("dc:SIDE\\wkr.lvl",
"rep_walk_atap")

ReadDataFile("dc:SIDE\\bf2.lvl",
"cis_fly_geofighter")

ReadDataFile("SIDE\\geo.lvl",
"gen_inf_geonosian")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_geoturret")

SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "rep_inf_ep2_rifleman",10, 25},
assault = { "rep_inf_ep2_rocketeer",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep2_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep2_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 25,
reinforcements = 150,
soldier = { "cis_inf_rifleman",10, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}

SetHeroClass(CIS, "cis_hero_countdooku")
SetHeroClass(REP, "rep_hero_macewindu")


-- Local Stats
SetTeamName(3, "locals")
SetUnitCount(3, 7)
AddUnitClass(3, "geo_inf_geonosian", 7)
SetTeamAsFriend(3, DEF)

SetTeamName(4, "locals")
AddUnitClass(4, "jed_knight_01",1)
AddUnitClass(4, "jed_knight_02",1)
AddUnitClass(4, "jed_knight_03",1)
SetUnitCount(4, 3)
SetTeamAsFriend(4, ATT)
SetTeamAsFriend(ATT, 4)

-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 2) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 2) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("CommandWalker", 4)
SetMemoryPoolSize("CommandFlyer", 4)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:GNS\\GNS.lvl", "GNS_conquest")
ReadDataFile("dc:GNS\\geo1.lvl", "geo1_conquest")
SetDenseEnvironment("false")




-- Sound

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")

voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("sound\\geo.lvl", "geo1cw")
OpenAudioStream("dc:sound\\gns.lvl", "GNScw")
OpenAudioStream("dc:sound\\gns.lvl", "GNScw")

SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)

SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(REP, CIS, "rep_off_victory_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1)

SetOutOfBoundsVoiceOver(2, "cisleaving")
SetOutOfBoundsVoiceOver(1, "repleaving")

SetAmbientMusic(REP, 1.0, "rep_GEO_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_GEO_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_GEO_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_GEO_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_GEO_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_GEO_amb_end", 2,1)

SetVictoryMusic(REP, "rep_geo_amb_victory")
SetDefeatMusic (REP, "rep_geo_amb_defeat")
SetVictoryMusic(CIS, "cis_geo_amb_victory")
SetDefeatMusic (CIS, "cis_geo_amb_defeat")
User avatar
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Re: Sound Help UPDATE #2 4/26/11

Post by asleeponduty »

You're doing something wrong with setting up your files for munging, the sound file should be bigger than 1kb. Try tweaking everything one piece at a time, thats what i had to do and i followed the tutorial :runaway:
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Sound Help UPDATE #2 4/26/11

Post by modmaster13 »

Hmm. When I open visual munge, I check sound. Then I munge it.

Again here is my soundmunge:
Hidden/Spoiler:
@if %1x==x goto noplatform
@set MUNGE_PLATFORM=%1
@set MUNGE_DIR=MUNGED\%MUNGE_PLATFORM%
@rem EDIT THE LINE BELOW TO POINT TO YOUR BF2 INTSALL PATH
@set BF2_SOUNDPATH="c:\Program Files\LucasArts\Star Wars Battlefront II\"

@rem Munge global, shell and side specific sound data
@call soundmungedir _BUILD\sound\cw\%MUNGE_DIR% sound\cw sound\cw\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound cw
@call soundmungedir _BUILD\sound\gcw\%MUNGE_DIR% sound\gcw sound\gcw\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gcw
@call soundmungedir _BUILD\sound\global\%MUNGE_DIR% sound\global sound\global\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound global nolevelfile
@call soundmungedir _BUILD\sound\shell\%MUNGE_DIR% sound\shell sound\shell\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound shell
@rem Munge world specific sound data
@call soundmungedir _BUILD\sound\worlds\cor\%MUNGE_DIR% sound\worlds\cor sound\worlds\cor\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound cor
@call soundmungedir _BUILD\sound\worlds\dag\%MUNGE_DIR% sound\worlds\dag sound\worlds\dag\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound dag
@call soundmungedir _BUILD\sound\worlds\dea\%MUNGE_DIR% sound\worlds\dea sound\worlds\dea\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound dea
@call soundmungedir _BUILD\sound\worlds\end\%MUNGE_DIR% sound\worlds\end sound\worlds\end\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound end
@call soundmungedir _BUILD\sound\worlds\fel\%MUNGE_DIR% sound\worlds\fel sound\worlds\fel\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound fel
@call soundmungedir _BUILD\sound\worlds\gal\%MUNGE_DIR% sound\worlds\gal sound\worlds\gal\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gal
@call soundmungedir _BUILD\sound\worlds\geo\%MUNGE_DIR% sound\worlds\geo sound\worlds\geo\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound geo
@call soundmungedir _BUILD\sound\worlds\hot\%MUNGE_DIR% sound\worlds\hot sound\worlds\hot\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound hot
@call soundmungedir _BUILD\sound\worlds\kam\%MUNGE_DIR% sound\worlds\kam sound\worlds\kam\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound kam
@call soundmungedir _BUILD\sound\worlds\kas\%MUNGE_DIR% sound\worlds\kas sound\worlds\kas\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound kas
@call soundmungedir _BUILD\sound\worlds\mus\%MUNGE_DIR% sound\worlds\mus sound\worlds\mus\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound mus
@call soundmungedir _BUILD\sound\worlds\myg\%MUNGE_DIR% sound\worlds\myg sound\worlds\myg\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound myg
@call soundmungedir _BUILD\sound\worlds\nab\%MUNGE_DIR% sound\worlds\nab sound\worlds\nab\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound nab
@call soundmungedir _BUILD\sound\worlds\pol\%MUNGE_DIR% sound\worlds\pol sound\worlds\pol\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound pol
@call soundmungedir _BUILD\sound\worlds\spa\%MUNGE_DIR% sound\worlds\spa sound\worlds\spa\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound spa
@call soundmungedir _BUILD\sound\worlds\tan\%MUNGE_DIR% sound\worlds\tan sound\worlds\tan\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tan
@call soundmungedir _BUILD\sound\worlds\tat\%MUNGE_DIR% sound\worlds\tat sound\worlds\tat\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound tat
@call soundmungedir _BUILD\sound\worlds\uta\%MUNGE_DIR% sound\worlds\uta sound\worlds\uta\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound uta
@call soundmungedir _BUILD\sound\worlds\yav\%MUNGE_DIR% sound\worlds\yav sound\worlds\yav\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound yav
@call soundmungedir _BUILD\sound\worlds\hero\%MUNGE_DIR% sound\worlds\hero sound\worlds\hero\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound hero
@call soundmungedir _BUILD\sound\worlds\GNS\%MUNGE_DIR% sound\worlds\GNS sound\worlds\GNS\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound GNS
@call soundmungedir _BUILD\sound\worlds\gns\%MUNGE_DIR% sound\worlds\gns sound\worlds\gns\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound gns

@rem EDIT THE TWO LINES BELOW TO POINT TO YOUR MOD BY REPLACING SND WITH YOUR WORLD ABBREVIATION
@call soundmungedir _BUILD\sound\worlds\GNS\%MUNGE_DIR% sound\worlds\GNS sound\worlds\GNS\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound GNS
xcopy _LVL_%MUNGE_PLATFORM%\sound\* %BF2_SOUNDPATH%GameData\addon\GNS\data\_LVL_PC\Sound\ /Y

@goto exit
:noplatform
@echo Platform must be specified as the first argument
:exit

soundmunge is in the following locations:
Hidden/Spoiler:
C:\BF2_ModTools\data_GNS
Hidden/Spoiler:
C:\BF2_ModTools\data_GNS\_BUILD
Hidden/Spoiler:
C:\BF2_ModTools\data_GNS\_BUILD\Sound
Munge Log:
Hidden/Spoiler:
soundflmunge.exe : Error : Unable to open file ..\..\cw\effects\eng_takeoff_gunship02.wav - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to open file ..\..\cw\effects\eng_takeoff_gunship02.wav, format may be invalid - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to open file ..\..\cw\effects\eng_takeoff_gunship02.wav - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to open file ..\..\cw\effects\eng_takeoff_gunship02.wav, format may be invalid - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to open file ..\..\cw\effects\eng_takeoff_gunship02.wav - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to open file ..\..\cw\effects\eng_takeoff_gunship02.wav, format may be invalid - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

Re: Sound Help UPDATE #2 4/26/11

Post by Jaspo »

soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx - while munging C:\BF2_ModTools\data_GNS\Sound\worlds\GNS\GNScw.sfx
I'm not sure if this is suspicious or not...since sound munge errors in the log are standard fare, whether it works or not. I'd have to look at one of my own projects, which unfortunately I cannot do right at the moment (wrong computer)

but this...
Logging LevelPack
09:55:5104/22/11
ERROR[gns.req]:Expecting bracket, but none was found.
File : c:\bf2_modtools\data_gns\_build\sound\worlds\gns\munged\pc\gnsgcw.lvl.req(1)...

ucft <--
ERROR[gns.req]:Expecting bracket, but none was found.
File : c:\bf2_modtools\data_gns\_build\sound\worlds\gns\munged\pc\gnsgcw.lvl.req(1)...

ucft <--

2 Errors 0 Warnings
looks a bit disturbing. Is it normal for it to be .lvl.req? At any rate I don't think these errors appear if it's munging correctly. (And if it's not munging correctly, that's why it is only 1kb in size)

At any rate, you're not using any of the gcw stuff anyway, right? So maybe try deleting all the gcw files and references and see where that gets you, for a start.

It's curious, though; nothing appears to be wrong with GNSgcw.req. Maybe a clean is needed?

EDIT: To specify, delete all the gcw stuff in the GNS sound folder
Post Reply