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: Simulator Enhancements (03/13/24)

Author Topic: Market music for Independent/Persean/Player seperate ?  (Read 806 times)

Cap_Xerxes

  • Ensign
  • *
  • Posts: 2
    • View Profile
Market music for Independent/Persean/Player seperate ?
« on: August 14, 2022, 09:55:19 AM »

Hey guys so i've fallen in love with market music for a while and tought...wow let's do it for my own faction, then after browsing around, i find the Persean League, The Independents and my own faction share the same soundtracks, is there any way to change it ? if not thats ok i will simply let it be as is.  ;D
Logged

cytokine

  • Lieutenant
  • **
  • Posts: 59
    • View Profile
Re: Market music for Independent/Persean/Player seperate ?
« Reply #1 on: September 24, 2022, 06:01:36 AM »

So when I wanted the epic pirate music for my planets, I noticed that some factions lacked a music section in the .faction file. Those get the 'default' music tracks. The filename-to-string mapping is done in sounds.json, and that contains the names for the default tracks.
And that's why Independents, Persean League and the player faction have the same music: they all lack music sections in their faction files. A faction without a music selection would be the equivalent of having this in the .faction file:
Code
	"music":{
"theme":"music_default_market_neutral",
"market_neutral":"music_default_market_neutral",
"market_hostile":"music_default_market_hostile",
"market_friendly":"music_default_market_friendly",
"encounter_neutral":"music_default_encounter_neutral",
"encounter_hostile":"music_default_encounter_hostile",
"encounter_friendly":"music_default_encounter_friendly",
},
In my case, I just wanted the pirate music, so I added this to player.faction:
Code
		"music":{
"market_friendly":"music_pirates_market_friendly",
},
« Last Edit: September 24, 2022, 08:25:32 AM by cytokine »
Logged

StianStark

  • Global Moderator
  • Lieutenant
  • *****
  • Posts: 64
  • Music & Sound
    • View Profile
    • Stian Stark - Game Audio Forge
Re: Market music for Independent/Persean/Player seperate ?
« Reply #2 on: September 25, 2022, 10:29:16 AM »

(The Persean League will get its own, unique faction music in the next update)
Logged
www.stianstark.com /// Twitter @stianstark