ok how do you use an imported, MP3 or .wav file as bg music on a custom map? i been looking everywhere for this info and havent found much info on sound triggers or anything else like that for that matter?
yeah actually i figured out how to make it play one song and then tried playin around with the sound list command but the music list command wont work without more than one song i was just tryin to get it to play one song and have it loop thru the entire mission.
oops, I just remembered I should already know how to do this:
Here's how to make a music list of imported music, this will also work if you just wanna play the one sound looped.
In Sound Editor, Import External Music will import individual mp3
songs. In order to create a music list of them, you have to use
Custom Text.
1. In Trigger Editor, create a new trigger with no events or
conditions, and a single action:
Music - Play Music
2. Select Edit|Convert to Custom Text, ignoring the warning
dialog. In the custom text, you will see a function that looks
like:
function Trig_Create_Music_List_Actions takes nothing returns
nothing
call PlayMusicBJ(" .....
3. Alter that function to indicate the mp3 files that you have
imported. You must not use their variable names, but their file
names, and you must include the path shown below.
function Trig_Create_Music_List_Actions takes nothing returns
nothing
call PlayMusicBJ(
"war3mapImported\\Handel.mp3;war3mapImported\\Bach.mp3;war3mapI
m
ported\\Mozart.mp3" )
endfunction
the line that begins with "call" should all be on one line
until the closing parenthesis. In the above examples, I am
creating a play list of three imported mp3 files: Handel.mp3,
Bach.mp3, and Mozart.mp3. You must include the
"war3mapImported\\" path for each file.
4. When this trigger is run, it will begin to play the new music
list, starting with a random song, and then cycle through them
repeatedly.
If you make any action to play the default 'music' preset, then
you must call this trigger again to return to your custom play
list.
If you are uncomfortable with custom text, don't worry too much,
since you can always delete the trigger and start over. The
conversion to custom text will only affect the selected trigger.
Keep in mind that imported songs are quite large, and that the
total size of all the imported files will be added to the storage
size of the saved game. Battle.net limits maps to 4MB.
Darg: i did exactly what you said, but it won't loop the tracks. it just plays one song and then stops. here's the code for my trigger:
function Trig_Set_Soundtrack_Actions takes nothing returns nothing
call SetMapMusicRandomBJ( "war3mapImported\\Dirt Off Your Shoulder-Lying From You.mp3;war3mapImported\\Big Pimpin'-Papercut.mp3;war3mapImported\\Jigga What-Faint.mp3;war3mapImported\\Numb-Encore.mp3;war3mapImported\\Izzo-In The End.mp3;war3mapImported\\Points of Authority-99 Problems-One Step Closer.mp3" )
call TriggerExecute( gg_trg_Loop_Soundtrack )
endfunction
//===========================================================================
function InitTrig_Set_Soundtrack takes nothing returns nothing
set gg_trg_Set_Soundtrack = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Soundtrack, function Trig_Set_Soundtrack_Actions )
endfunction
well no you haven't, because I wrote the name of the play music function as "PlayMusicBJ", and for some reason you are using a function called "SetMapMusicRandomBJ". That might be your problem.
ok...well, I changed the custom text so it now says:
function Trig_Set_Soundtrack_Actions takes nothing returns nothing
call PlayMusicBJ( "war3mapImported\\Dirt Off Your Shoulder-Lying From You.mp3;war3mapImported\\Big Pimpin'-Papercut.mp3;war3mapImported\\Jigga What-Faint.mp3;war3mapImported\\Numb-Encore.mp3;war3mapImported\\Izzo-In The End.mp3;war3mapImported\\Points of Authority-99 Problems-One Step Closer.mp3;" )
endfunction
//===========================================================================
function InitTrig_Set_Soundtrack takes nothing returns nothing
set gg_trg_Set_Soundtrack = CreateTrigger( )
call TriggerAddAction( gg_trg_Set_Soundtrack, function Trig_Set_Soundtrack_Actions )
endfunction
I loaded your map into the Editor and test ran it. Worked fine. Then, I loaded my map and test ran it. Played one song, then stopped. So I took your trigger code and pasted it into my map and test ran that. It worked.
So now that I know that my code isn't messing it up, is there some sort of restriction on the type or size of MP3s I can import into my map?
Well...after a lot of thinking and playing around with trigger actions, I came up with this trigger. It works good enough for me, and it doesn't involve custom text (which isn't much of a hassle for me anyway, but whatever.)
This trigger is called by another trigger in my map, so it has no events or conditions.
ACTIONS
Set TrackNumber = Random integer number between 1 and 6
[If / Then / Else, Multiple Functions]
If - Conditions
(LastTrackNumber Equal to TrackNumber)
Then - Actions
Do nothing
Else - Actions
If (TrackNumber Equal to 1) then do (Sound - Play Track001 <gen>) else do (Do nothing)
If (TrackNumber Equal to 2) then do (Sound - Play Track002 <gen>) else do (Do nothing)
If (TrackNumber Equal to 3) then do (Sound - Play Track003 <gen>) else do (Do nothing)
If (TrackNumber Equal to 4) then do (Sound - Play Track004 <gen>) else do (Do nothing)
If (TrackNumber Equal to 5) then do (Sound - Play Track005 <gen>) else do (Do nothing)
If (TrackNumber Equal to 6) then do (Sound - Play Track006 <gen>) else do (Do nothing)
Wait ((Length of (Last played music)) + 1.00) seconds
[END If / Then / Else, Multiple Functions]
Set LastTrackNumber = TrackNumber
Trigger - Run (this trigger) (ignoring conditions)
I've tested this trigger several times, and it seems to work flawlessly. If anybody else feels like testing it, go ahead and let me know if you find any bugs.
EDIT: I already found a bug. I edited the code already so anybody who wants to can re-test it.
EDIT 2: Yet another bug! OK, people, try it again.
It's actually remarkably easy to make mayonnaise though. Fun fact, it USED to kind of be a French mother sauce. I believe that Careme considered it one, it may have been aioli but that has also built a different meaning than it used to. An aioli is just mayonnaise I mixed with other shit typically, I didn't start it don't come at me
Depending on how you pour the oil the consistency can vary wildly, but that's true for most emulsions. I can only make about two quarts at a time with my robo coup, and if I have to make several in series because I forgot to order it becomes really obvious even when I do it. We have to wait and mix them all together to make sure we have the same thing.
Luckily I live in an age with electricity so it's way fucking faster, but when I was just a boy trying to find my place I had some hardcore chefs that made use do things like that by hand. It is WAY easier to get right by hand because you control it and can feel it, but it takes soooooo much longer. And on the scale a modern kitchen requires... I serve 400-500 guests on average per day right now, if I had 100 then we could do things way better
But we can't do that. In the winter yeah, but I HAVE to get people through here right now so I can afford the staff that we CAN do that. We have about 100 days of summer, and if that summer doesn't make us what it will, then I can't operate the other most of the year with my staff. The owner is talking about closing two days a week to cut down on labor, I told him he should cut down on vacations and it did not go great. I do think I won though, I have to keep my fucking core staff and they have to be gainfully employed
Sure some of them might take a second job, but I can't just cut my entire staff to unlivable hours, nor can I can cut them off all winter if I want them to come back.
And also, there is no fucking way I'm pulling these hours come september. I only do this right now because I have to, the second I don't have to be the one doing it I won't be
Though two of those people are likely not making it this year. One of them has been replaced, the other I am kind of trying to. He's being a giant bitch, today I had to get onto him because in the three hours before I left he had taken like thirty minutes for cigarette breaks
And he was also complaining to me the other day that he was out of weed so couldn't smoke any before work that day, and was confused about why I was annoyed he was telling me, his boss, that he is smoking weed everyday before work.
So now he's getting scrutinized and will not be top of the list. I know I don't have the smartest people but I do expect them to have some common fucking sense
I did do a rare thing for me and hire a girl last month without warning. Everyone was made at me because I started her at like 21, but she worked with me before and I was like don't care. She made 19 at her old job and I wanted her to come work with me, she is the best
I'm going to get her a raise at the end of the summer. She wants to go to school again, but I want her to still work with me so.... she kind of can just tell me what the price is. I can go to 25 if she keeps up. I need to get her onto line more, that's what she wants, but I need her where she is and it's not fair that she doesn't get the little bit of raise that comes with it. She can do it no problem, I've worked with her there.
It's just hard to move and train people unnecessarily right now. And also the line fucking sucks, it's not any more fun. This is turn and burn so I have the bankroll, and everyone suffers for it
I think it's gonna be a good fall and winter though. We're going to have a good staff, they will get along, they will be able to manage the workload and the complications, they know how to really cook this year, like every person on line knows their steak temps. Some of them use thermometers a lot and they don't always use them right, but they do know how to do it. Failure, especially in this field, is the only way to get better. They'll get it
They won't get feel down while they do the thermometer, but we didn't have an instant read probe when I was learning. Like they did but god knows how off it is, you HAD to do it by feel. Even if the chef was fine with me bringing my own, it takes too long. Poke and know
fyi I am going out of town to lake somewhere in bfe texas for the weekend will be gone Friday morning to sunday afternoon for a paranormal thing and some rest peace