Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2 3 ... 5

Author Topic: [0.95.1a] Custom Battle Music  (Read 36697 times)

Laroustine

  • Ensign
  • *
  • Posts: 33
  • Working too much to update. Almost back !
    • View Profile
    • My GitHub
[0.95.1a] Custom Battle Music
« on: May 29, 2022, 06:32:22 PM »

CUSTOM BATTLE MUSIC

This mod is made in order to add custom battle music to the game.
You can now add songs that fit factions for the base game or even from mods.
You can also add music to fleets and ships.
It is very easy to modify and implement.
Now contains music for every major faction in the game.


For Developers:
For Devellopers
To add compatibility for your mod you just need to add this in your .faction
Code
"music": {
  "battle": "music_faction_battle"
  "battle_retreat": "music_faction_battle",
  "battle_advantage": "music_faction_battle",
  "battle_losing": "music_faction_battle"
}
and you also need to add the list of songs for your faction in the config file sounds.json.
Code
{
  "music": {
    "music_faction_battle": [
      {
        "source": "sounds/music/",
        "volume": 0.15,
        "file": "song1.ogg"
      }
    ]
  }
}
The name of the list of songs can be different from the one above and need to be different from any other existing list.
You can also use song lists present in the game already.

Advanced tutorial and explanation
[close]
config.json
simulation_ost: Activates a particular music when in simulation (Deactivate if no music exist)
mission_ost: Activates particular music during missions
[close]

Mod with Custom Battle Music implemented:

« Last Edit: September 25, 2022, 09:40:02 AM by Laroustine »
Logged
Mod I'm woking on :

Dwarden

  • Commander
  • ***
  • Posts: 196
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #1 on: May 30, 2022, 09:39:16 AM »

just note for those with Java v8, this will crash

Code
Compiled for the wrong version of Java, change the compile target to Java 7
java.lang.RuntimeException: Error loading [data.scripts.plugin.MusicPlugin]

Compiled for the wrong version of Java, change the compile target to Java 7
at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedClassVersionError: data/scripts/plugin/MusicPlugin has been compiled by a more recent version of the Java Runtime (class file version 62.65535), this version of the Java Runtime only recognizes class file versions up to 52.0
Logged

Laroustine

  • Ensign
  • *
  • Posts: 33
  • Working too much to update. Almost back !
    • View Profile
    • My GitHub
Re: [0.95.1a] Custom Battle Music
« Reply #2 on: May 30, 2022, 08:02:09 PM »

Quote
just note for those with Java v8, this will crash

This is now solved and compiled in the right version.
Thank you very much for bringing this to me.
Logged
Mod I'm woking on :

Laroustine

  • Ensign
  • *
  • Posts: 33
  • Working too much to update. Almost back !
    • View Profile
    • My GitHub
Re: [0.95.1a] Custom Battle Music
« Reply #3 on: June 01, 2022, 02:52:01 AM »

The mod now contains songs for every major faction.
Most of the songs are from the game Stelaris.
Logged
Mod I'm woking on :

WMGreywind

  • Lieutenant
  • **
  • Posts: 64
  • The circuit is one. And one is the machine.
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #4 on: June 03, 2022, 02:49:19 AM »

Been trying this mod out. Gotta say, quite interesting playing with battle music after having no music in the battle layer.

Putting Tanc a Lelek for Pathers as they bring out the Tanker IEDs to destroy your fleet feels... just right as well.
Logged

Laroustine

  • Ensign
  • *
  • Posts: 33
  • Working too much to update. Almost back !
    • View Profile
    • My GitHub
Re: [0.95.1a] Custom Battle Music
« Reply #5 on: June 04, 2022, 06:23:38 AM »

The custom version had an issue with the music not being present.
Those files are now present.
Sorry for the inconvenience.
Logged
Mod I'm woking on :

WMGreywind

  • Lieutenant
  • **
  • Posts: 64
  • The circuit is one. And one is the machine.
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #6 on: June 19, 2022, 11:40:29 PM »

I was wondering, is it possible to have different music playing in regards to the difficulty of the fight? Like having some more dire music playing when you're facing off against a much harder fleet, to really get you in the zone for fighting a truly bad threat?
Logged

Cyan Leader

  • Admiral
  • *****
  • Posts: 718
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #7 on: June 22, 2022, 06:56:59 AM »

I've wanted this for ages, thank you!

I was wondering, is it possible to have different music playing in regards to the difficulty of the fight? Like having some more dire music playing when you're facing off against a much harder fleet, to really get you in the zone for fighting a truly bad threat?

Seconding this. Should be possible since the game tracks how "difficult" a battle is.
Logged

Laroustine

  • Ensign
  • *
  • Posts: 33
  • Working too much to update. Almost back !
    • View Profile
    • My GitHub
Re: [0.95.1a] Custom Battle Music
« Reply #8 on: June 22, 2022, 07:18:28 AM »

Seconding this. Should be possible since the game tracks how "difficult" a battle is.
I might need to look into it ???
But i agree this could be great to add
Logged
Mod I'm woking on :

Goatcy

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #9 on: June 23, 2022, 09:18:33 AM »

ay, this is something I've wanted for a while. very nice
Logged

Mira Lendin

  • Captain
  • ****
  • Posts: 315
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #10 on: June 23, 2022, 03:49:09 PM »

The problem with using unlicensed Music from other sources is that you will get mod sharks "not going to mention names" to start questioning your rights to such materials until eventually, they get your mod off this website, this is why historically this game had only 1 audio mod.
« Last Edit: June 23, 2022, 04:03:36 PM by Mira Lendin »
Logged
^^

Laroustine

  • Ensign
  • *
  • Posts: 33
  • Working too much to update. Almost back !
    • View Profile
    • My GitHub
Re: [0.95.1a] Custom Battle Music
« Reply #11 on: June 24, 2022, 02:16:02 AM »

they get your mod off this website, this is why historically this game had only 1 audio mod.
If this becomes the case I will remove the Custom Music version. I am currently looking for Royalty Free music to replace some of the current songs.
Logged
Mod I'm woking on :

nukularpower

  • Ensign
  • *
  • Posts: 44
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #12 on: June 24, 2022, 09:00:05 PM »

This is great, thanks for it!   I dont mind the unlicenced music, stay away haters
Logged

IGdood

  • Commander
  • ***
  • Posts: 197
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #13 on: June 25, 2022, 12:03:33 PM »

Niiiice.  I can imagine Mass Effect or Total Annihilation music going very well with this!
Logged

Oni

  • Captain
  • ****
  • Posts: 384
    • View Profile
Re: [0.95.1a] Custom Battle Music
« Reply #14 on: June 25, 2022, 05:10:59 PM »

I bet people could use this to create music lists that they can share with each other, to give different situations and even mod factions new music.
Logged
Pages: [1] 2 3 ... 5