Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 08-03-2008, 08:36 AM   #1
AnkleSpankle
 
 
 
Guest
Posts: n/a
Red face Custom Startup Music Doesn't Load

I'm trying to get my own custom music to start playing when the menu to my mod loads, i currently have the file structure set out as:

SourceMods\Leviathan\sound\UI\gamestartup01.mp3

I've tried several different combinations of file and folder names and letter cases and it still refuses to load. I followed the tutorial given on the SDK Docs Wiki as well as several other websites and even YouTube.

I noticed in the console i am getting the error:


Failed to load sound "*#ui\gamestartup01.mp3", file probably missing from disk/repository

I've ensured the .mp3 is of the correct bitrate too, i'm at a brick wall because no matter what i try it simply will not work.

Could anyone shed any light as to why it will not work?

Many thanks

Last edited by AnkleSpankle: 08-03-2008 at 08:37 AM. Reason: Additional information
 
Reply With Quote
Old 08-03-2008, 12:19 PM   #2
Zombie Killa
 
Join Date: Jul 2007
Reputation: 0
Posts: 106
this is how i do it in your mod cfg folder open the valve rc file in note pad. it should look like this.

// load the base configuration
//exec default.cfg

// Setup custom controller
exec joystick.cfg

// run a user script file if present
exec autoexec.cfg


// stuff command line statements
stuffcmds

// display the startup level
//startupmenu

// Game Menu Music Theme
play ../media/your file name here.mp3

Then put your mp3 file in your mod media folder. Then you should have a StartupVids.text file in thier also open that and it should read.

media/Valve.avi //this runs the valve video
media/your file name here.mp3

and thats it should work hope that helps.
Zombie Killa is offline   Reply With Quote
Old 08-03-2008, 02:18 PM   #3
AnkleSpankle
 
 
 
Guest
Posts: n/a
When it comes to this point:

// Game Menu Music Theme
play ../media/your file name here.mp3

Should i leave the .. in there? this is how my Valve.rc file looks:

// load the base configuration
//exec default.cfg

// Setup custom controller
exec joystick.cfg

// run a user script file if present
exec autoexec.cfg

//
// stuff command line statements
//
stuffcmds

// Game Menu Music Theme
play ../media/gamestartup01.mp3

I placed the gamestartup01.mp3 in the media folder that i had to create, and when i check the console i find the following error message:

Failed to load sound "../media/gamestartup01.mp3", file probably missing from disk/repository

Am i missing out a few folder names in the file path?
  Reply With Quote
Old 08-03-2008, 02:49 PM   #4
Winston
 
Join Date: Jul 2007
Reputation: 84
Posts: 2,170
The .. is assuming its in the media folder instead of the sound folder.

For SourceMods\Leviathan\sound\UI\gamestartup01.mp3

I would use UI/gamestartup01.mp3
Winston is offline   Reply With Quote
Old 08-03-2008, 03:10 PM   #5
AnkleSpankle
 
 
 
Guest
Posts: n/a
Now i have:

// Game Menu Music Theme
play UI/gamestartup01.mp3

Now i have these errors:


Failed to load sound "ui\gamestartup01.mp3", file probably missing from disk/repository
Failed to load sound "*#ui\gamestartup01.mp3", file probably missing from disk/repository

I still dont understand how the .mp3 is not being read, i'm not missing anything else out am i?
  Reply With Quote
Old 08-03-2008, 05:15 PM   #6
Zombie Killa
 
Join Date: Jul 2007
Reputation: 0
Posts: 106
http://www.moddb.com/tutorials/compl...gle-player-mod this will show you step by step.

Last edited by Zombie Killa: 08-03-2008 at 05:22 PM.
Zombie Killa is offline   Reply With Quote
Old 08-03-2008, 05:31 PM   #7
AnkleSpankle
 
 
 
Guest
Posts: n/a
I followed these steps too and i still get the error message saying the .mp3cannot be found.

Any other ideas? =]
  Reply With Quote
Old 08-04-2008, 05:49 AM   #8
Winston
 
Join Date: Jul 2007
Reputation: 84
Posts: 2,170
Where is your mp3 file? Check again that its really in this directory:
SourceMods\Leviathan\sound\UI\gamestartup01.mp3

Because source thinks it isn't.


Edit:
I guess it might not be looking in the sound folder by default...
if so, try making it instead access
../sound/UI/gamestartup01.mp3


Failing that, why not just move it to
SourceMods\Leviathan\media\gamestartup01.mp3
and do it the way the tutorials suggest

Last edited by Winston: 08-04-2008 at 05:52 AM.
Winston is offline   Reply With Quote
Old 08-04-2008, 05:50 AM   #9
Zombie Killa
 
Join Date: Jul 2007
Reputation: 0
Posts: 106
Wow i'm stumped it must be the wav file itself. did you try useing different sound file.

mp3 file should be
bit rate 128 bps
channels 2 stereo
audio sample rate 44kHz

Last edited by Zombie Killa: 08-04-2008 at 01:10 PM.
Zombie Killa is offline   Reply With Quote
Old 08-04-2008, 11:32 AM   #10
vegittoss15
 
Join Date: Jul 2007
Reputation: 0
Posts: 178
Try moving the file into another directory and pointing to it. Source might just not like that one particular directory
vegittoss15 is offline   Reply With Quote
Old 08-04-2008, 03:59 PM   #11
Tony Sergi
 
Tony Sergi's Avatar
 
Join Date: Mar 2008
Reputation: 46
Posts: 646
lol, this is like the blind leading the blind.

you dont put anything in your valve.rc or the startupvideos.txt

i'm not sure why you're getting that error.
the way it works, it just randomly picks if they exist, an mp3 called gamestartup#.mp3 placed in moddir\sound\ui
where the number is 0, 1, 2, 3, 4... etc
Tony Sergi is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


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



All times are GMT -7. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.