Git Product home page Git Product logo

mod-starsector-battle-music's Introduction

Custom Battle Music

Welcome to Custom Battle Music. This mod adds in the option for Faction music during battle.

This mod can be added and removed without conflict. To add compatibility with you mod is also very easy.

Making it Compatible

For Players

You first need to add a music to the this folder Battle_Music/sounds/music (the file name is not important). The file extension should be in .ogg.

You first need to go in the file Battle_Music/data/config/sounds.json (if it does not exist create it) and then add this.

{
  "music": {
    "my_music_name": [
      {
        "source": "sounds/music",
        "volume": 0.15,
        "file": "my_music_name.ogg"
      }
    ],
  }
}

Now the song should be loaded by the game but you will not hear it anywhere.

You can have multiple music per playlist and multiple playlist like this.

{
  "music": {
    "playlist1": [
      {
        "source": "sounds/music",
        "volume": 0.15,
        "file": "music1.ogg"
      },
      {
        "source": "sounds/music",
        "volume": 0.15,
        "file": "music2.ogg"
      },
    ],
    "playlist2": [
      {
        "source": "sounds/music",
        "volume": 0.15,
        "file": "music3.ogg"
      },
      {
        "source": "sounds/music",
        "volume": 0.15,
        "file": "music4.ogg"
      },
    ],
  }
}

Now to add a song to a faction we need to select a faction from this list :

  • derelict
  • hegemony
  • independent
  • knights_of_ludd
  • lions_guard
  • luddic_church
  • luddic_path
  • omega
  • persean_league
  • pirates
  • remnants
  • sindrian_diktat
  • tritachyon

in the folder Battle_Music/data/world/factions create a file named <FACTION_NAME>.faction (example: omega.faction)

in the file put in this:

{
	"music": {
		"battle": "my_music_name"
	}
}

There can only be 1 music per faction.

For Modders (A BIT OUTDATED)(MISSING INFORMATION)

To add compatibility for your mod you just need to add this in your *.faction

"music": {
  "battle": "my_music_name"
}

and you also need to add the list of songs for your faction in the config file sounds.json.

{
  "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.

mod-starsector-battle-music's People

Contributors

laroustine avatar

Stargazers

 avatar

Watchers

 avatar

mod-starsector-battle-music's Issues

[BUG]

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
A clear and concise description of what you expected to happen.

Log file
Give us your starsector.log file.
This does improve the chance that your bug is fixed faster.

Desktop (please complete the following information):

  • OS: [e.g. Windows, Mac, Linux]
  • Game Version: [eg. 0.95.0a]
  • Mod Version: [eg. 1.3.2]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.