Music

Discussion in 'Flight Commander' started by saf0775, May 9, 2011.

  1. saf0775

    saf0775 Spaceman

    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    50
    Gender:
    Male
    I want to change the music when I move from room to room. I've tried:

    music_play("mysong.mp3")

    I can't seem to figure out where in the gameflow.xml I should put it. I've placed it in different parts of the room I am going in to, but the default music keeps on playing.

    Should I be placing this in a different XML?
     
  2. Iceblade

    Iceblade Admiral

    Messages:
    1,953
    Likes Received:
    11
    Trophy Points:
    36,985
    Gender:
    Male
    Strange. I would have thought the gameflow file would be at least campaign if not mission specific. Can one be done that is campaign specific like <campaignname>.campaign.gameflow.xml or entered as an entry inside the campaign.xml file?

    As far as I can tell, music can't be changed when going from room to room. One thing that I think might be useful would be rooms script functions similar to how navpoints and ships work (entering, exiting and during functions possible). Of course more gameflow lua functions would be needed (like play music).

    I think I'll add that to these to the issues page actually.
     
  3. eddieb

    eddieb Vice Admiral

    Messages:
    975
    Likes Received:
    2
    Trophy Points:
    32,385
    Location:
    Los Angeles
    So there's a couple of places.

    Here in gameflow.xml

    <music debriefing_good_music="wc1-debriefgood.mp3" debriefing_bad_music="wc1-debriefbad.mp3" background_sound="gameflow_chatter.mp3" default_music="fcgameflow.mp3" />


    The other option is to call

    Gameflow_setBackgroundSound(string mp3filename);

    from within a gameflow script. Gameflow scripts are documented here :

    http://flightcommander.solsector.net/gameflow_editing.html

    If those don't do what you want, add a feature request.
     

Share This Page