Home   Help Search Login Register  

Author Topic: music in background  (Read 2023 times)

0 Members and 1 Guest are viewing this topic.

bmgarcangel

  • Guest
music in background
« on: 02 Apr 2003, 07:29:26 »
ok, say if I was using the music section for a radio transmission in an intro, how would I play music without having to put the music on through effects in the trigger section?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:music in background
« Reply #1 on: 02 Apr 2003, 12:09:24 »
to play music in your script

playMusic "Track16"
0 fademusic 0.5

I don't know if you actually need the fademusic command there or not.
Plenty of reviewed ArmA missions for you to play

Der_Richter

  • Guest
Re:music in background
« Reply #2 on: 02 Apr 2003, 13:25:45 »
You donĂ‚'t  ;)

Offline Gielovic

  • Contributing Member
  • **
Re:music in background
« Reply #3 on: 02 Apr 2003, 13:32:48 »
Can you also use Resistance-music in your script
Is it named
res02.pbo
or resistancetrack02.pbo
please tell me!

Knut Erik

  • Guest
Re:music in background
« Reply #4 on: 02 Apr 2003, 13:43:58 »
Use playmusic "res02"
Or something like that...

Offline Gielovic

  • Contributing Member
  • **
Re:music in background
« Reply #5 on: 02 Apr 2003, 13:56:34 »
thanks

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:music in background
« Reply #6 on: 02 Apr 2003, 14:37:57 »
I think it might be

rtrack02

Plenty of reviewed ArmA missions for you to play

bmgarcangel

  • Guest
Re:music in background
« Reply #7 on: 02 Apr 2003, 16:28:39 »
ok get this straight now ok.  Like I said.  I have a radio message in the game.  I made it so that it was in the music section in effects.  Still with me here.  Now, won't me changing the music to something else mess the radio transmission up or sometin?

bmgarcangel

  • Guest
Re:music in background
« Reply #8 on: 02 Apr 2003, 16:32:03 »
and i'm not talking bout using it in a script.  In the trigger activation bar.  Plus, non of thus init strings you guys gave worked at all.  Can you guys confirm this please and find the right one so it will work?

bmgarcangel

  • Guest
Re:music in background
« Reply #9 on: 02 Apr 2003, 16:34:14 »
I could just go to effects in triggers and then music and select the track but then after that how do I play the radio transmission on with the music.  Plus the radio transmission is in the music folder in my mission file so ya. ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:music in background
« Reply #10 on: 02 Apr 2003, 17:05:45 »
Quote
Plus, non of thus init strings you guys gave worked at all.  Can you guys confirm this please and find the right one so it will work?

This remark is rude and unhelpful.   Several people have tried to help you.    The least you can do is thank them.    If the suggestions don't work, then say what the result was when you tried them.   Was it an error message?  CTD?  Nothing happening at all?     You should also say what variations you tried.    It is not our job to fix your mission ... its yours.    It's your job to "find the right one".    We're just chipping in because you asked us for help.     If you want people to continue trying to help you, I suggest you improve your attitude.


Quote
I have a radio message in the game.  I made it so that it was in the music section in effects.

I have no idea what this means, sorry.   When you say a radio message, do you mean a sideChat text?    Or are you talking about a custom sound file?

Quote
Now, won't me changing the music to something else mess the radio transmission up or sometin?

Is there any particular reason why you haven't tried it?



Anyway, all the radio stuff is irrelevant.  What you want is music.

  • If you want to play music from a trigger - use the Effects button in a trigger and select the track you want.
  • If you want to play music in a script - use the command mentioned above.     The track names are mostly similar to the names you find in the Music effects drop down box, some are a bit different.   If you want to use one of the others you'll have to hunt around a bit to discover the correct name.


Or is it the case that you have the music sorted out and the real problem is the radio message?     What are you trying to do here?    What is the underlying situation?   The more you tell us about what you are trying to achieve, and what you have done, the better chance we have of helping you.


PS - if you've got several things to say in a row its easier for us if you put them all in one post, rather than having three posts in a row all by you.   You can edit posts once they are in the thread so its not a problem.    ;)

« Last Edit: 02 Apr 2003, 17:19:19 by macguba »
Plenty of reviewed ArmA missions for you to play

bmgarcangel

  • Guest
Re:music in background
« Reply #11 on: 02 Apr 2003, 18:35:33 »
Ok, ok.  AI'm sorry guys for being rude.  Macguba, what I mean is this.  I'll try and put it as simple and as best as I can in my own way.

I made a custom sound file.  I converted it to ogg. file format and put it in the music folder that my mission is in.  Then I went to the mission and I made a trigger, I went to effects, I clicked that is labeled music and I scrolled down and clicked on the custom voice.  Then I push ok and then ok again.  The trigger and the custom voice thing works but what I want is to be able to have the custom voice in the music folder but be able to play both the custom voice and the music at the same time.  Remember the end of the Resistance campaign, when James G. is talking about the war and how he is going to retire and music is playing along with his voice.  How do I do that?  What is the proper init thing I put in the activation on the trigger to make both custom sound and game music to be heard at the same time.  I tried the init strings you guys gave me.  I fiddled around with them and stuff but they wouldn't work.   The error message that came up said that the music file was not there.  I did everything you guys told me to do.  I thank you for your help guys but can you give me more.  Please ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:music in background
« Reply #12 on: 02 Apr 2003, 19:09:53 »
Ah, right, now I understand.   (More or less .... sound isn't my forte.)

If you saw it in a BIS mission then un-pbo the mission and see what they did, that should help.    I don't know if there is any problem about playing music and custom sound at the same time, I don't see why it shouldn't work.    

If you can't make the same trigger do both music and sound, then make two triggers (with the same activation field), one for the sound and one for the music.   That might do the trick.


playMusic "Track16"

is the correct syntax, I copied from a working script.    (Which doesn't necessarily mean it will work in your circumstances ;D) What happens if you put that in the on activation field of the trigger that fires the sound?
Plenty of reviewed ArmA missions for you to play

bmgarcangel

  • Guest
Re:music in background
« Reply #13 on: 02 Apr 2003, 19:19:12 »
this is the error that I got.  The error message that came up said that the track/music file was not there.


Oh and my problem is a little more simpler than you are putting it right now.  If I have a custom sound and stuff and I put in sound or sometin then I won't here it right because then it only resorts to a certian area.  As in were the trigger is on the map.  Now I want music playing inthe background with my voice telling of what has happened in my mission while it switches back and forth from this scene to that scene and I need the voice to be heard all the time.  

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:music in background
« Reply #14 on: 02 Apr 2003, 19:25:14 »
Moving the sound source with the camera is easy, just setPos the speaker to be just behind the camera every time it moves, that should work.

If its telling you music not found, try this:   using an ordinary trigger effect, start some music just before the cutscene starts.   If its playing when the cutscene/custom sound starts, then it should either keep playing, or cut out with a helpful error message.   I hope.

I've reported this thread and ask the mods to move it, you'll get better expertise than my poor efforts on the sound and cutscenes board.   And, as I said, un-pbo the Resy mission and see what BIS did.  ;)
Plenty of reviewed ArmA missions for you to play