Staredit Network

Staredit Network -> UMS Assistance -> Music Loop Help
Report, edit, etc...Posted by Staredit.Net Essence on 2005-02-26 at 13:39:24
First of all, I know how to loop music already, but in this case, there is a messup. I'm trying to add some boss music (divided into sections) for my game and heres what happens: Boss Music-1.wav plays successfully but then there is a 10 or so second pause before it starts playing Boss Music-2.wav, then it successfully plays without skipping from 2-5. 5.wav loops back to 1.wav and then everythings okay, there is no pause after 1.wav. Why is there a pause the first time it plays Boss Music-1.wav? Here are my triggers: (I apologize if I made them sloppily or added an unneeded trigger, just want to make sure you get all info needed)


Trigger
Description:
Boss: Quick Man
Players:
¤ All Players
Conditions:
¤ Player 2 brings exactly 1 Mega Man to 'Quick Man Music'
Actions:
¤ Issue order to all men owned by MegaMan at 'Order Approach': Move to 'Quick Man Approach'
¤ Issue order to all men owned by Zero/Rush/ProtoMan/Double at 'Order Approach': Move to 'Quick Man Approach'
¤ Play 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Player 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Play 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Player 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Create 1 Quick Man at 'Quick Man' for Player 6. Apply properties (hallucination)
¤ Create 1 Quick Man at 'Quick Man' for Player 6.
¤ Display for current player: (text)
¤ Wait for 3000 milliseconds.
¤ Display for current player: (text)
¤ Wait for 3000 milliseconds.
¤ Display for current player: (text)
¤ Wait for 3000 milliseconds.
¤ Display for current player: (text)



Trigger
Description:
Trigger Quick Man Music
Players:
¤ All Players
Conditions:
¤ Player 2 brings exactly 1 Mega Man to 'Quick Man Music'
Actions:
¤ Modify death counts for Player 7: Set to 7 for Zerg Drone.



Trigger
Description:
Play Boss Battle-1
Players:
¤ All Players
Conditions:
¤ Player 7 has suffered exactly 7 deaths of Zerg Drone.
¤ Player 2 brings exactly 1 Mega Man to 'Quick Man Music'
Actions:
¤ Play 'Boss Battle-1.wav'
¤ Wait for 9800 milliseconds.
¤ Modify death counts for Player 7: Set to 8 for Zerg Drone.
¤ Preserve Trigger.

This goes up to Boss Battle-5.wav which is death count set to exactly 11, then it cycles back to death 7 for loop. (Same conditions and triggers except for death count +1 each time and playing next .wav each time)



Really want to get this to work, please help.
Report, edit, etc...Posted by DT_Battlekruser on 2005-02-26 at 13:42:22
-without reading your triggers

Your waits are stacking. Look at your trigger list(s) for conflicting waits.
Report, edit, etc...Posted by KaboomHahahein on 2005-02-26 at 13:51:26
Also if there is still a problem, which I am sure it is probably wait blocks.

Look at this tutorial for music looping. A few ways

http://www.staredit.net/index.php?tutorial=125
(I am not 100% sure that the tutorial will apply for you)
Report, edit, etc...Posted by Urmom(U) on 2005-02-26 at 14:52:24
just try to run the waits for a computer that doesnt have any waits instead of the human. also, try finding a beter triger owner than "all players" because then that will cause wait blocks for everyone jsut about.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-02-26 at 15:15:23
Problem solved. New problem arises but not in the same category. Now I want to create 5 different Quick Mans on 5 different locations. Heres what I did, I can't really see a problem with it, but it creates 4 of Quick Man on each location for some reason but I only want it to create 1:


Trigger
Description:
Quick Man: Boss
Players:
¤ All Players
Conditions:
¤ Player 2 brings exactly 1 Mega Man to 'Quick Man Room'
Actions:
¤ Issue order to all men owned by Mega Man at 'Order Approach' Move to: 'Quick Man: Approach.'
¤ Issue order to all men owned by Zero/Rush/ProtoMan/Double at 'Order Approach' Move to: 'Quick Man: Approach.'
¤ Play 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Play 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Play 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Play 'Warning.wav'
¤ Display for current player: (text)
¤ Wait for 1000 milliseconds.
¤ Display for currently player: (text)
¤ Wait for 3000 milliseconds.
¤ Display for currently player: (text)
¤ Wait for 3000 milliseconds.
¤ Display for currently player: (text)
¤ Wait for 3000 milliseconds.
¤ Display for currently player: (text)
¤ Create 1 Quick Man at 'Quick Man 1' for Player 6
¤ Wait 50 milliseconds.
¤ Create 1 Quick Man at 'Quick Man 2' for Player 6
¤ Wait 50 milliseconds.
¤ Create 1 Quick Man at 'Quick Man 3' for Player 6
¤ Wait 50 milliseconds.
¤ Create 1 Quick Man at 'Quick Man 4' for Player 6
¤ Wait 50 milliseconds.
¤ Create 1 Quick Man at 'Quick Man 5' for Player 6
¤ Wait 50 milliseconds.
¤ Modify death counts for Player 7: Set to 7 for Zerg Drone
¤ Issue order to all men owned by Player 6 at 'Quick Man Room' Attack to: 'Quick Man: Approach'

Report, edit, etc...Posted by LegacyWeapon on 2005-02-26 at 15:16:33
We have tutorials for everything!
http://www.staredit.net/index.php?tutorial=16
Report, edit, etc...Posted by Staredit.Net Essence on 2005-02-26 at 17:12:35
Oh, thanks. Didn't come across that tutorial.

ADDITION:
I can't believe the problems I'm having making this RPG. Problem #3: Wavs won't play. Here are my triggers: (Agggh, again! cry.gif )


Trigger
Description:
Teleport to Quick Man's Stage
Players:
¤ All Players
Conditions:
¤ Player 2 brings at least 1 men to 'Quick Man Beacon'
Actions:
¤ Play 'Select.wav'
¤ Remove all men for Mega Man at Stage Select
¤ Remove all men for Zero/Rush/ProtoMan/Double at 'Stage Select'
¤ Create 1 Mega Man at 'Quick Man Entrnace' for Player 2
¤ Wait for 5000 milliseconds. (Planning to use for text)
¤ Modify death counts for Player 7: Set to 2 for Zerg Drone.
¤ Preserve Trigger.



Trigger
Description:
Play Stage-1
Players:
¤ All Players
Conditions:
¤ Player 7 has suffered exactly 2 deaths from Zerg Drone.
¤ Player 2 brings exactly 0 Mega Man to 'Stage Select' (Don't want it to play here)
¤ Player 2 brings exactly 0 Mega Man to 'Quick Man Room'
Actions:
¤ Play 'Stage-1.wav'
¤ Wait for 9800 milliseconds.
¤ Modify death counts for Player 7: Set to 3 for Zerg Drone.
¤ Preserve Trigger

As before, this goes up to Stage-5.wav then loops. Sorry about all this, this is my first SC Map.
Report, edit, etc...Posted by LegacyWeapon on 2005-02-26 at 17:44:14
Are you saying all the wavs won't? Or are you saying 'Select.wav' will play but the rest won't?

If all of them won't, check to make sure the wavs actually are in the map.

If 'Select.wav' will play and the rest won't is probably caused by wait blocks.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-02-26 at 18:12:39
Select.wav works, and I also have some music in the beginning that works for stage selection, but then when I go onto the beacon for Quick Mans level and try to use those triggers above, the music doesn't play.
Report, edit, etc...Posted by LegacyWeapon on 2005-02-26 at 18:23:34
Do you have any waits in another other triggers?

It would help if you posted your map.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-02-26 at 18:28:14
I'd post my map, but I'm afraid that someone might steal credit for it. Is there a way I can send it to you?
Report, edit, etc...Posted by LegacyWeapon on 2005-02-26 at 18:31:15
PM, private message.
http://www.staredit.net/index.php?act=Msg&CODE=04&MID=1107

It's the little PM button.
Next Page (1)