Staredit Network

Staredit Network -> UMS Assistance -> Music
Report, edit, etc...Posted by pimpinelephant on 2005-03-13 at 22:00:01
I read the "Music + Other Triggers" thread, but i still have no idea how to make a music file play over and over again. i tried to add a "Preserve Trigger" to "Play Music.wav" but that only made StarCraft crash. how do i make it so that it will continually play the music file over and over again without crashing StarCraft?
Report, edit, etc...Posted by chuiu on 2005-03-13 at 22:09:50
http://www.staredit.net/index.php?tutorial=125

Did you read that first?
Report, edit, etc...Posted by pimpinelephant on 2005-03-13 at 22:17:49
OH! lol! i always forget to look in the Tutorial DataBase! well anyways, thanks a lot man!
Report, edit, etc...Posted by pimpinelephant on 2005-03-14 at 01:44:54
I read the tutorial and i did exactly what it said, but im just not sure about one thing, are hyper triggers needed for looping music?
Report, edit, etc...Posted by sckor on 2005-03-14 at 07:46:34
nope. but if you put hyper triggers, then make sure you put them under some other player that does not have the looped music, as the waits will stack
Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-14 at 07:55:25
QUOTE(pimpinelephant @ Mar 13 2005, 09:00 PM)
I read the "Music + Other Triggers" thread, but i still have no idea how to make a music file play over and over again. i tried to add a "Preserve Trigger" to "Play Music.wav" but that only made StarCraft crash. how do i make it so that it will continually play the music file over and over again without crashing StarCraft?
[right][snapback]164383[/snapback][/right]


You want a very simple way of loopign music? Here it is:


Trigger
Description:
Looping music
Players:
¤ Player 1
¤ Player 2
¤ etc..
Conditions:
¤ Player 1 Brings at least 1 terran cavillian to "Music on"
Actions:
¤ Play wav"Music"
¤ Wait(XXXX)
¤ preserve trigger


The wait action is based on how long your music is. If your music is 10 seconds, go along the lines of 10 000 milliseconds. I know 1000 milliseconds = 1 second in starcraft but I'm not sure if thats the same in this case.

-The basic idea is you haveto play around with the wait untill you get it perfect.
Report, edit, etc...Posted by RexyRex on 2005-03-14 at 08:53:26
QUOTE(sckor @ Mar 14 2005, 04:46 AM)
nope.  but if you put hyper triggers, then make sure you put them under some other player that does not have the looped music, as the waits will stack
[right][snapback]164595[/snapback][/right]

Yes, you NEED hyper triggers or the music will not loop.
Report, edit, etc...Posted by Drakiel on 2005-03-14 at 09:05:11
QUOTE
Oo.Hydra.oO
You want a very simple way of loopign music? Here it is:


Actually that would just run you into more problems. waits work, but they suk.
Say a song's 15 seconds long... if done your way, for the player active, that 15 second wait on that song will stop ALL OTHER triggers for that player from working... I believe.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-14 at 09:34:14
QUOTE(Drakiel @ Mar 14 2005, 08:05 AM)
Actually that would just run you into more problems.  waits work, but they suk.
Say a song's 15 seconds long... if done your way, for the player active, that 15 second wait on that song will stop ALL OTHER triggers for that player from working... I believe.
[right][snapback]164621[/snapback][/right]


The wait will not interfere with any other triggers unless they too have a wait in them.. My way was specifically for bounds. =/ If you want it in an rpg or something I suggest death counters. Or swiches. Death couner will give you a 100% perfect loop if you do it correctly.


-But if you don't plan on the player having any other waits than use my way wink.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2005-03-14 at 10:17:08
QUOTE(RexyRex @ Mar 14 2005, 07:53 AM)
Yes, you NEED hyper triggers or the music will not loop.
[right][snapback]164615[/snapback][/right]

Nope

QUOTE(Drakiel @ Mar 14 2005, 08:05 AM)
Actually that would just run you into more problems.  waits work, but they suk.
Say a song's 15 seconds long... if done your way, for the player active, that 15 second wait on that song will stop ALL OTHER triggers for that player from working... I believe.
[right][snapback]164621[/snapback][/right]

Nope
Report, edit, etc...Posted by pimpinelephant on 2005-03-15 at 02:50:22
??? Ok, you guys are just contradicting eachother! I am very confused if hyper triggers are needed for looping music, half of you say yes, and half of you say no, so which one is it? and for an RPG, is death counters better or are waits better?
Report, edit, etc...Posted by sckor on 2005-03-15 at 05:53:27
You may or may not have hyper triggers...
Just so long as you don't put them under the same player as the player who owns the looping music trigger.
Report, edit, etc...Posted by pimpinelephant on 2005-03-15 at 09:55:10
oh i see, thanks man! i just have one more question about music. is a death counter better or are waits better for looping music in an rpg?

ADDITION:
and with that question, i have another one. how do u make a song just stop playing? like if u want a song to play over and over again but then after a specific event u want to stop that song and play different one. how would i go about doing this?
Report, edit, etc...Posted by LegacyWeapon on 2005-03-15 at 14:43:24
You cannot stop playing it suddenly. You will need to stop it when it reaches the end of its file. You can however break the song into smaller pieces and stop the music.

Death counters do not cause wait blocks.
Waits might cause wait blocks.

Depends on which one you prefer.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-03-15 at 15:05:08
QUOTE(pimpinelephant @ Mar 15 2005, 08:55 AM)
oh i see, thanks man! i just have one more question about music. is a death counter better or are waits better for looping music in an rpg?

ADDITION:
and with that question, i have another one. how do u make a song just stop playing? like if u want a song to play over and over again but then after a specific event u want to stop that song and play different one. how would i go about doing this?
[right][snapback]165166[/snapback][/right]


There isn't really a better way but most people will argue that death counters are better. There more adatable for differant styles of maps and triggering.

To make a song wav stop looping you need to make the conditions faulse. Most people just use a switch to do this.

For an example, you want your music to stop playing when someone brings a dude to a location. So when he brings a dude to that location set a switch. Then in your music loop trigger add the condition 'switch is clear'. (if you need more detail than that tell me)
Report, edit, etc...Posted by pimpinelephant on 2005-03-15 at 19:33:33
oh i get it. thanks (U)Bolt_Head and everyone else that responded, this has really helped me a lot.

ADDITION:
is there a way to stop music from playing right in the middle of the music? i know what bolt_head is talking about but i want to know if the music file is lets say 100 seconds long, is there a way to set it so that right after a specific event, another music file will play and the first one will end, because i want to set it so that the second music file will play in synchronization with a specific event just ending.
Report, edit, etc...Posted by MindArchon on 2005-03-15 at 19:52:19
QUOTE(pimpinelephant @ Mar 15 2005, 05:33 PM)
oh i get it. thanks (U)Bolt_Head and everyone else that responded, this has really helped me a lot.

ADDITION:
is there a way to stop music from playing right in the middle of the music? i know what bolt_head is talking about but i want to know if the music file is lets say 100 seconds long, is there a way to set it so that right after a specific event, another music file will play and the first one will end, because i want to set it so that the second music file will play in synchronization with a specific event just ending.
[right][snapback]165502[/snapback][/right]


No.

Split it up into different parts, and play the parts one after another.
Report, edit, etc...Posted by pimpinelephant on 2005-03-16 at 02:14:16
ok, so then how do i split it up? what program or whatever do i use?
Report, edit, etc...Posted by Sodium_Chloride on 2005-03-18 at 17:04:51
Use Microsoft's Sound Recorder:
Start > Programs > Accessories > Entertainment > Sound Recorder

Or...

Use Audacity:
http://www.download.com/Audacity/3000-2170...tml?tag=lst-0-1
Report, edit, etc...Posted by RexyRex on 2005-03-18 at 19:28:15
You don't need hyper triggers, I guess. But it does need to be there if your wav is less than two seconds or your using death counters.
mellow.gif
Report, edit, etc...Posted by slayer766 on 2005-03-20 at 20:24:55
Here is the perfect music looping system right here that will not mess up your wait triggers:


Trigger
Description:
Music Loop
Players:
¤ Players That Are Human
Conditions:
¤ Current Player Has Suffered Exactly O Deaths Of Unused(Mercenary Gunship)
¤ Computer With No Triggers commands exactly 1 Turn Music Off unit
Actions:
¤ Modify Death Counts For Currents Player: Set To 1 for Unused(Mercenary Gunship)
¤ Wait For 1 Milliseconds
¤ Modify Death Counts For Current Player Set To 0 for: Unused(Mercenary Gunship)
¤ Wait how long your music file is
¤ Preserve Trigger




Trigger
Description:
Step 2
Players:
¤ Players That Are Human
Conditions:
¤ The Computer player you just did in first step add here ex. Computer- p7 has suffered at least 1 deaths of Unused(Mercenary Gunship)
Actions:
¤ Play .wav file
¤ Preserve Trigger



Trigger
Description:
Step 3
Players:
¤ All players
Conditions:
¤ Player 7 has suffered exactly 1 deaths of turn music off unit
Actions:
¤ Create 1 turn music on at location 'X' for player 7
¤ Modify Death Counts For Player 7: Set to 0 for turn music off
¤ Preserve Trigger



Trigger
Description:
Last Step
Players:
¤ All Players
Conditions:
¤ Player 7 Has Suffered Exactly 1 deaths of turn music on
Actions:
¤ Create 1 turn music off at location 'X' for player 7
¤ Modify Death Counts For Player 7: Set to 0 for turn music on
¤ Preserve Trigger



And there ya go. if anything is wrong with this please contact me and ill fix it. But there should be nothing wrong with it. so good luck. biggrin.gif
Report, edit, etc...Posted by pimpinelephant on 2005-03-20 at 22:38:19
i already know how to loop music but thanks.
Report, edit, etc...Posted by sckor on 2005-03-21 at 05:57:42
QUOTE(Sodium_Chloride @ Mar 19 2005, 07:04 AM)
Use Microsoft's Sound Recorder:
    Start > Programs > Accessories > Entertainment > Sound Recorder

Or...

Use Audacity:
    http://www.download.com/Audacity/3000-2170...tml?tag=lst-0-1
[right][snapback]167661[/snapback][/right]


What do we do after we turn on Sound Recorder?
Report, edit, etc...Posted by chuiu on 2005-03-21 at 08:15:11
Refer to a tutorial found on the site?
Next Page (1)