lfnetwork.com mark read register faq members calendar

Thread: Sound Not Working In Game
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 12-02-2009, 04:08 PM   #1
xshat
Lurker
 
Join Date: Feb 2009
Posts: 7
Sound Not Working In Game

I tried following the advice here: http://www.gametoast.com/forums/view...hp?f=27&t=9541
And also the tutorial but I still cannot get the lvl to build for the sound.

I added these lines to my LUA
Code:
ReadDataFile("dc:sound\\Phobos.lvl;Phobosgcw") 
OpenAudioStream("dc:sound\\Phobos.lvl",  "Phobos");
OpenAudioStream("dc:sound\\Phobos.lvl",  "Phobos");
When I run SPtest it says
Code:
Message Severity: 3
.\source\LuaCallbacks_Mission.cpp(195)
Lua ReadDataFile: Could not open dc:sound\Phobos.lvl;Phobosgcw
Well the sound LVL file doesn't compile and I don't understand why. Here is the source for my files in BFBuilder\DataPhobos\Sound\worlds\Phobos

Phobos.ASFX
Code:
effects\shot.wav    -resample pc 22050
Phobos.REQ
Code:
ucft
{
    REQN
    {
        "str"
        "align=2048"
        "Phobos"
    }
    REQN
    {
        "lvl"
	"Phobosgcw"
    }

 }
Phobos.ST4
Code:
streams\intro_start.wav Music
streams\intro_end.wav
Phobosgcw.REQ
Code:
ucft
{
    REQN
    {
    "bnk"
    "align=2048"
    "Phobos"
    }

    REQN
    {
    "config"
    "Soundprop"
    "Phobos"
    }
}
Soundprop.SND
Code:
SoundStreamProperties()
{
    Name("Music");
    Group("ambientenv");
    Inherit("ambientfx_template");
    Gain(10.25);
    Stream("Phobos");
    SegmentList()
    {
        Segment("Music", 1.0);
    }
}

SoundProperties()
{
    Name("Shot1");
    Group("weapons");
    Inherit("weapon_template");
    SampleList()
    {
        Sample("shot", 1.0);
    }
}
Also I have shot.wav effect in the effects folder and my intro_start.wav and intro_end.wav in the streaming folder. I also added "FireSound =Fire1" to the all_force_pull.odf and then I created the sphere in zero editor and gave it the correct properties so all the source looks good to me if I'm missing something here let me know ASAP.
xshat is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > SWBattlefront.net (SWBF I & II) > Star Wars Battlefront > Modding & Editing > Sound Not Working In Game

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:51 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.