Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Planet Search Overhaul (07/13/24)

Author Topic: Low/High action music  (Read 2075 times)

Silver Silence

  • Admiral
  • *****
  • Posts: 980
    • View Profile
Low/High action music
« on: June 07, 2013, 11:33:38 PM »

Have any modders thought to make custom music for starfarer, one low and one high action?

Tha hell do I mean by that?
Ever played Borderlands, or Borderlands 2? Ever noticed how the music kicks it into high gear when you get into a serious fight?

Low
High

Anyone enough of a composer as to make music for their mods that's essentially a calm track for when cruising in the campaign, and then a more tense one for when in a fight?

At the moment, I'm tempted to go open up Ascendancy and hijack re-appropriate borrow the code from there to implement some borderlands music into my own starfarer.
Logged

Pelly

  • Admiral
  • *****
  • Posts: 757
    • View Profile
Re: Low/High action music
« Reply #1 on: June 08, 2013, 02:00:27 AM »

The Music code is not hard, you just add songs into the category "campaign", "battle", "title". Then you can have multiple songs for different situations.

directory: data/config/sounds.json

Code
"music":{

"music_title":[
{"file":"title1.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3},
{"file":"title2.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3},
{"file":"title3.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3}
],
"music_campaign":[
{"file":"campaign1.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3},
{"file":"campaign2.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3},
{"file":"campaign3.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3},
{"file":"campaign4.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.3}
],
"music_combat":[
{"file":"combat1.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.01},
{"file":"combat2.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.01},
{"file":"combat3.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.01},
{"file":"combat4.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.01},
{"file":"combat5.ogg","source":"sounds/BFG/music","pitch":1,"volume":0.01}
],

},
Logged

Psiyon

  • Admiral
  • *****
  • Posts: 776
    • View Profile
Re: Low/High action music
« Reply #2 on: June 08, 2013, 09:23:58 AM »

Yeah, Alex added in support for this a while back :P

I actually composed the battle tracks for Ascendency for the lulz before he added that in, but I just got incredibly lucky when he mentioned that combat music would be supported in the next version... which I think was like, .52 or something at the time.

However, what you can't do is change the intensity of the combat music based on battle size. The same stuff will play whether you're in a 1v1 with a frigate, or a 69vs393 with massive fleets.
Logged

Silver Silence

  • Admiral
  • *****
  • Posts: 980
    • View Profile
Re: Low/High action music
« Reply #3 on: June 08, 2013, 10:24:25 AM »

Yeah, Alex added in support for this a while back :P

I actually composed the battle tracks for Ascendency for the lulz before he added that in, but I just got incredibly lucky when he mentioned that combat music would be supported in the next version... which I think was like, .52 or something at the time.

However, what you can't do is change the intensity of the combat music based on battle size. The same stuff will play whether you're in a 1v1 with a frigate, or a 69vs393 with massive fleets.

Then you'll just have to have your music so epic that it sounds right no matter what battle you're in.  :D
Except when it plays when you're in a simulation and just flying your ship around a bit to tweak the weapon groups and such....
Logged