Staredit Network

Staredit Network -> UMS Assistance -> Stopping Backround music in a Map
Report, edit, etc...Posted by anxiety on 2005-01-07 at 01:31:01
Light the title says when you import a sound wav into your map and have it played within starcraft/broodwar what ever it may how do you "stop" this music from playing? whats the trigger? if there is one... pinch.gif probably something simple but i dont see it lol anyway someone help me!!! how do your STOP the music COMPLETELY .. thanks
Report, edit, etc...Posted by chuiu on 2005-01-07 at 01:37:56
You put in another sound file of nothing. Just an empty sound file. And then when you want to stop music you play that.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-07 at 01:44:01
QUOTE(Chu @ Jan 7 2005, 12:37 AM)
You put in another sound file of nothing.  Just an empty sound file.  And then when you want to stop music you play that.
[right][snapback]120582[/snapback][/right]


Are you joking?

You can't stop a wav from playing.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 01:51:16
Tried putting a empty sound file in... got it from a map so i assumed that would work... didnt really seem logical at the time... and my logic was right... hate when that happens =\ anyway ive seen it happen in other maps so i know it is "possible" just dont know how...and that doesnt work.. and i highly doubt i could have put in the wrong trigger for "play wav" ( empty wav) during the other sound.... heh
Report, edit, etc...Posted by terrenblade on 2005-01-07 at 01:53:01
that's not the question, he wants to know how you disable the BACKGROUND music.

it's easy, hit Ctrl-M
or, if your ctrl keys are broken, go to the menue (F10) options (O) sounds (S) and set the music seting to zero. This also gets rid of the lag when the music track changes or loops. And if your woried about people having music on, just add a msg at the beggining of the map telling them the map has custom music, and they should disable there music with 'Ctrl-M'
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-07 at 01:54:00
The only way the wav can stop is if the wav ends. You might of been tricked by a louder wav or a music loop broken into segments.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 01:55:52
QUOTE(terrenblade @ Jan 7 2005, 01:53 AM)
that's not the question, he wants to know how you disable the BACKGROUND music.

it's easy, hit Ctrl-M
or, if your ctrl keys are broken, go to the menue (F10) options (O) sounds (S) and set the music seting to zero.  This also gets rid of the lag when the music track changes or loops.  And if your woried about people having music on, just add a msg at the beggining of the map telling them the map has custom music, and they should disable there music with 'Ctrl-M'
[right][snapback]120588[/snapback][/right]


Sorry terrenblade yes... the question was what they first typed not that background music sorry for misinterpration (my grammer sucks haha) yea that backround music of wav not the sc backround music already know that yawn.gif
Report, edit, etc...Posted by chuiu on 2005-01-07 at 01:56:03
No, terrenblade, he clearly stated imported sound files. Bolt, I just tested the no sound method and it didn't work. I can't explain it but I clearly remember stopping music from playing with the method I just listed. I think I'm forgetting a step, however, because it does not work now. Or maybe it is a patch change that affected it, but I doubt that.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 01:59:13
grrr got to be a way i hope it wasnt my mis-interpration the actuall sound just "STOPPED" no other sound ran over it.. and it cant be a coincidence i seen it like more than once..

ADDITION:
No it was on some random b.net map by some random person i found a while back but was on this patch... so it cant be patch you may have missed something im listening if theres a possiblity biggrin.gif
Report, edit, etc...Posted by chuiu on 2005-01-07 at 02:13:16
Well until I can remember how it was properly done my only suggestion to you is to break the song file into segments. This can be done in any sound editor, including the one provided by Microsoft. And then play the segmented files after each other in individual triggers so you can trigger a stop and it will stop when the segment is over.
Report, edit, etc...Posted by Mp)3 on 2005-01-07 at 02:16:34
QUOTE(Chu @ Jan 7 2005, 02:13 AM)
Well until I can remember how it was properly done my only suggestion to you is to break the song file into segments.  This can be done in any sound editor, including the one provided by Microsoft.  And then play the segmented files after each other in individual triggers so you can trigger a stop and it will stop when the segment is over.
[right][snapback]120600[/snapback][/right]

If you're talking how to get background music to change without it going over one another, I can give you the triggers for it.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 02:18:11
Good thinking.. but would be useless in the cause the im wanting it... disgust.gif

ADDITION:
QUOTE(Mp)3 @ Jan 7 2005, 02:16 AM)
If you're talking how to get background music to change without it going over one another, I can give you the triggers for it.
[right][snapback]120603[/snapback][/right]


Yes... Yes inteed gemme triggers.. lol

When you say change... The other one previously playing will be stopped and no longer heard .. correct? if so i can put in a blank music sound as a 2nd sound...
Report, edit, etc...Posted by SA_Max71 on 2005-01-07 at 02:30:26
I don't think you can turn off the backround music unless you use a modified version of starcraft. You can, however, make the backround music less loud. The action should be close to the bottom of the list.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 02:36:07
QUOTE(SA_Max71 @ Jan 7 2005, 02:30 AM)
I don't think you can turn off the backround music unless you use a modified version of starcraft. You can, however, make the backround music less loud. The action should be close to the bottom of the list.
[right][snapback]120606[/snapback][/right]


noooo >_<

Off topic to Mp)3 i played your demo to your new map this mourning seems nice although the battle system confusing at first i got into it took so long just to kill them >_< nonetheless it was nice lol still i reckon it be better if fight scenes didnt last that long... tongue.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-07 at 03:08:49
Am I playing the same Starcraft everyone else is here?

And if it some patch changed the fact that you could stop wavs from playing (highly doubt it) it was before 1.07

Edit: Thought of a way to stop a wav by playing another one. If you play a wav that doesn't exist (invalid string), then star craft will crash, and the first wav will not be playing.
Report, edit, etc...Posted by Tdnfthe1 on 2005-01-07 at 03:22:52
QUOTE(anxiety @ Jan 7 2005, 12:31 AM)
Light the title says when you import a sound wav into your map and have it played within starcraft/broodwar what ever it may how do you "stop" this music from playing? whats the trigger? if there is one...  pinch.gif  probably something simple but i dont see it lol anyway someone help me!!! how do your STOP the music COMPLETELY .. thanks
[right][snapback]120577[/snapback][/right]

Jesus Christ! Can No One see what he asked? Help the guy with his Problem not debate about it.

now Look you can do this for one dude.

1.Make a Switch to Trigger the Music(If You Havnt)
2.Now that's itsm set to a switch just figure out how you want to make the switch stop, which will stop the Music from Looping.
*for instance* Say you want it to Play for a boss battle, It'd be smart to have it end a little bit before the Boss battle would end, otherwise some of your triggers might get tangled.

Option 2
___________________________________________________________________
If it isnt for an rpg, then just make some sort of action, or a wait trigger to trigger when you want the Music to stop. Switches are Really the Easiest way to control Music Looping if you ask me. I just figured I needed to help you out kid. Try that

P.S. Goodluck to SEN Map Making Team cool1.gif
Report, edit, etc...Posted by Nozomu on 2005-01-07 at 03:38:04
That's not how it works. Once a WAV file is playing it can't be stopped from playing. It only stops when the file ends. What he claims to have seen is impossible without chopping a WAV file into pieces and playing it bits at a time, which isn't that hard.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 03:44:42
Ok need for music to stop...(Map is an RPG of a sort)

Example 1:: Currently whilest walking around killing off enemy units exploring or just plain leveling up within some sort of place... background music looped. and playing (MUSIC ONE)
Enter town ... Different background music is played (Town music.. setting trigger to stop doesnt stop the sound for one more current moment on instant impact) NOTE : DONT WANT 2 MUSICS TO TANGLE TOGETHER FROM OUTSIDE TOWN AND INSIDE TOWN.

Example 2:: You are in a town and have town music on. Enter inn.. Might sleep the night then i want the MUSIC to turn OFF whilest sleeping.

if this is any harder to understand then im just going to shoot myself lol

Nonetheless thanks for all your help so far guys.................. disgust.gif

ADDITION:
QUOTE(Nozomu @ Jan 7 2005, 03:38 AM)
That's not how it works.  Once a WAV file is playing it can't be stopped from playing.  It only stops when the file ends.  What he claims to have seen is impossible without chopping a WAV file into pieces and playing it bits at a time, which isn't that hard.
[right][snapback]120631[/snapback][/right]



Arg cant be impossible i seen it!!!... lol crazy.gif wish i still had them maps to show haha bro deleted sc directory alonged with maps within it.. (besides they where protected so couldnt see triggers anyway) pinch.gif Nonetheless chopping a music file isnt going to work in the case that im asking/needing it for
Report, edit, etc...Posted by Nozomu on 2005-01-07 at 04:44:29
You're wrong, chopping a file is the only way to do what you described. So either your memory is wrong or my and Bolt's absolute understanding of how Starcraft treats imported sounds is wrong. Let the public decide.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-07 at 05:05:44
Ok I get what your problem is (in part to Tdnfthe1). Your asking how to stop a music loop and everyone seems to think your asking how to stop a wav. (like mid song)
Yes you can stop a music loop but you can’t stop a wav before it has completed.

Anyways these triggers should get your job done.

Just realized that if you intend for the players to hear differant music at the same time, then these triggers will not work for you. If the example you gave is what your doing then this is likely the case sorry.

===First the triggers that manage the waits and how long the wavs are===
Trigger
Players:
¤ Computer Player (no other triggers with waits)
Conditions:
¤ Current player suffers exactly 1 death of 'music'
Actions:
¤ Set deaths for 'human force' to 1 for 'play wav'
¤ Wait Time of Music 1
¤ Preserve Trigger

Trigger
Players:
¤ Computer Player (same as above)
Conditions:
¤ Current player suffers exactly 2 death of 'music'
Actions:
¤ Set deaths for 'human force' to 2 for 'play wav'
¤ Wait Time of Music 2
¤ Preserve Trigger


The computer player can't have a bunch of waits running all the time or it will mess it up. But you can put all the above triggers owned by one computer.

===Human controled Players, Play Music===
Trigger
Players:
¤ Force 1 (or all human players)
Conditions:
¤ Current player suffers exactly 1 death of 'play music'
Actions:
¤ Set deaths of 'play music' to 0 for current player
¤ Play 'Music 1'
¤ Preserve Trigger

Trigger
Players:
¤ Force 1 (or all human players)
Conditions:
¤ Current player suffers exactly 2 death of 'play music'
Actions:
¤ Set deaths of 'play music' to 0 for current player
¤ Play 'Music 2'
¤ Preserve Trigger


Ok this is how you would use the triggers. For every music loop you have assign a number to it. Like music loop 1, music loop 2, ect.
The triggers would follow the pattern above, when you need to change the music then you just set the 'music' counter differant for the computer player.



[center]UPDATE: Following are the triggers you proboly need to use[/center]
No one else posted so i couldn't make it a new post



Here are the triggers that will work so each player can player there music independantly.

For best effect use hyper triggers

Trigger
Players:
¤ Force 1 or all human players you want to hear music
Conditions:
¤ Current player suffers exactly 1 death of 'music'
¤ Current player suffers exactly 0 deaths of 'time'
Actions:
¤ Play Music Wav 1
¤ Set deaths for 'time' to Value [/i](12*#of seconds of wav, if using hyper triggers)[/i]
¤ Preserve Trigger


The triggers for the other music loops will be the exact same except they use a differant number instead of 1.

Then of course you need something to subtract your 'time' deaths so use this trigger.

Trigger
Players:
¤ Force 1
Conditions:
¤ Current player suffers at least 1 death of time
Actions:
¤ Subtract 1 death of 'time' for current player
¤ Preserve Trigger.


Come to think of it, actually this is easyer. (less triggers anyways)
Report, edit, etc...Posted by anxiety on 2005-01-07 at 05:14:39
ARG NOZUKU or what ever your name is. how can you state something is wrong without knowing what is being MENTIONED in the question? retarded...
nonetheless the question im quiet clearly em asking is

ONCE A WAV IN A BACKGROUND IS BEING PLAYED how do you STOP IT yuo know stop...
Definition of Stop:

.To close (an opening or hole) by covering, filling in, or plugging up: The tea leaves stopped the drain.
.To constrict (an opening or orifice): My nose is stopped up.
.To obstruct or block passage on (a road, for example).
.To prevent the flow or passage of: stop supplies from getting through.

.To halt the motion or progress of: stopped me and asked directions.
.To block or deflect (a blow, for example); parry or ward off.
.To be or get in the way of (a bullet or other missile); be killed or wounded by.

Was many more defintions but couldnt be stuffed typing... I AINT GOING TO TURN THIS INTO some lame ass forum post about the definition of "STOP" dont want people replying to that.. sorry if i sound peed off lol crazy.gif

OK so basically keys words im asking for

Music-- Wav -- I IMPORTED into MAP -- IS PLAYED as MUSIC on STARCRAFT
When enter LOCATION music is needed to "STOP" come at "HALT" "PAUSE" "STOP PLAYING" what ever u guys interperite as... how do i manage to do this...?


OK is this clear now? smile.gif smile.gif w00t.gif smile.gif smile.gif blink.gif

*msg to bolt*
sorry i didnt quite udnerstand your post
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-07 at 05:27:44
QUOTE(anxiety @ Jan 7 2005, 04:14 AM)
nonetheless the question im quiet clearly em asking is
[right][snapback]120642[/snapback][/right]

Is that quite far from clear to anyone but me?

QUOTE(anxiety @ Jan 7 2005, 04:14 AM)
*msg to bolt*
sorry i didnt quite udnerstand your post
[right][snapback]120642[/snapback][/right]

Then i guess i can't help you.

PS.
You apparently don't understand the missunderstanding. I'll try to spell it out as lame as you have but without insulting anyone's inteligence.

We don't know if witch one of these questions your asking
QUOTE(question 1)
"I have a 10 second wav, how do i stop the wav from playing 5 seconds into the wav?"

This is the way I interpreted your question from the start and what Nozomu thinks your question is.

QUOTE(question 2)
"I have a music loop,  a wav that plays over and over again.  How do get the music to stop looping and play another?

This is what i explained how to do in my previous post.

Hope this helps.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 05:32:47
Question one you stated there is what im asking...

And what Nozoumu said is that im "WRONG" as "CHOPPING IT" is the only way to do it. which is ................ (Chopping the file doesnt stop it at a random time.. im desiring)

nonethless im here for help so if u can help me with question "one" u stated there then thankyou much appreciated.

(By the way to people who are reading this now. THe wav is not neccarily "10seconds" and does not need to be cut at "5"seconds rather "STOPPED" when a location switch.. trigger what ever is triggered, might be 5 seconds in 3 seconds or 7 seconds in..."
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-07 at 05:40:45
Ok then.

Everything Nozomu has stated is Correct. You can't stop a wav from playing before it has compleated. You have appreantly missinterpreted something that lead you to belive it is possable. It was proboly a short music loop in witch you couldn't tell where it stops and starts up again, so when it stops it sounds like it just ends mid wav.

And please don't get mad at us saying it isn't possable when you don't know how to do it yourself , and can't prove that it can be done.
Report, edit, etc...Posted by anxiety on 2005-01-07 at 05:45:56
No not mad. Sall good. (Just felt like everyone was speaking a different langage tongue.gif )

Nonetheless ill figure it out or a way of similarity... smile.gif

Thanks for your help well .. yeah thanks biggrin.gif
Next Page (1)