Demo + soundtrack script load - need some help.


(Wikkit) #1

I’m trying to create a .bat and .cfg that will load a demo and a soundtrack (.wav).

No problem creating a bat and cfg that loads the demo, no luck in getting the soundtrack going however.

It works to load the soundtrack via the console using the \music <file> command. Adding it to the cfg does not work however even though when checking the value of \music when the demo is loaded and running it is pointing to the wav file.

So, should I use a different command than \music or is there some special thing that needs to be added to the cfg to make the soundtrack load and play?


(=DaRk=CrAzY-NuTTeR) #2

do u need to specify a player for the music?


(Wikkit) #3

aha, no, the idea was to play the file in-game. No external app. As I said, it works to load the file from the console but not to by adding a line to the cfg.

Ex. \music soundtrack.wav in the console loads the file soundtrack.wav and starts playing it.
seta music “soundtrack.wav” in the cfg does not work. But when you start the demo and check the value for “music” via the console, it is indeed pointing to the right file.

The thing is that I want to synch a demo with a shoutcast, and using an external player would make it hard to get it synched I think.

Thanks for the quick reply, btw. =)


(Mr_Tickles) #4

Have a look at “Windows Movie Maker” (comes with Windows XP) mayhaps that could help you with synchronizing it outside ET. I’m not sure how you can get the demo into an mpeg or similar format though, but I do remember it being asked in a thread reasonable recently.


(Wikkit) #5

Aha, well I’m not interested in making a movie. And even if I were I wouldn’t be using WMM. :wink: (Btw, you could check out a movie guide right here.)

What I want is a way to doubleclick one .bat-file and have it all load up. Demo + shoutcast. Perhaps there is some way of using the s_currentMusic cvar, but I don’t know how to get it to work.


(Mr_Tickles) #6

Well, I was only trying to help, and seen as though you said an external player would be hard to do it with then I suggested WMM because it can do that pretty easily. Thing is that hinted to me that you were put off taking it out of ET because it would be hard for you to do. Anyway, with the shortcuts you are using, I know you’ve probably tried it, but have you changed the order in which you call the commands? I realize it could be annoying and not exactly a precise way of doing it to have to measure the time it takes the map to load and then add that onto the beginning of your .wav file. It may be because the sound from the demo and the sound you are attaching conflict… I don’t know, maybe someone else will be able to help you.


(squadjot) #7

use:

/play a_wav_file_in_your_etmain.wav


(pgh) #8

Yep, also think the sounds need to be in the paks - dunno if they work in the dirs… or maybe it does.


(Wikkit) #9

Hmm, seems like the play command either does nothing or crash the client. And besides, it seems like you can’t separate sound effects from the soundtrack/shoutcast, like you can with s_volume and s_musicvolume (not a huge issue though, but…).

The way it’s set up now is that I have a .bat file that loads etpro and then executes a config which loads a demo, sets s_volume and s_musicvolume and binds a key to start the soundtrack (\music <soundtrack>). This means that people watching the demo will have to press the bound key precisely when the demo starts playing. Not optimal but it works. But I would definitely want to find a way to load it automatically.