|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
![]() 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. |
|
|
|
|
|
#3 |
|
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? |
|
|
|
#4 |
![]() 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 |
|
|
|
|
|
#5 |
|
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? |
|
|
|
#6 |
![]() 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. |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
I followed these steps too and i still get the error message saying the .mp3cannot be found.
Any other ideas? =] |
|
|
|
#8 |
![]() 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. |
|
|
|
|
|
#9 |
![]() 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. |
|
|
|
|
|
#10 |
![]() 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
|
|
|
|
|
|
#11 |
![]() 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 |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|