Custom Music

Last Updated: Jun 17, 2019 Game Version: 1.3.36

529

Nov 20, 2018

Owner: Platonymous

If you change "convert:" in the config file to true (by default it is false) CM will convert all .ogg files to .wav. This will take up additional diskspace and make the first loading slightly longer, but after the conversion, the loading times will be drasticly reduced. (the config.json files gets created on first launch)

 

To create a ContentPack for CM, write a standard manifest.json and add a content.json file.
You can download a simple template under Optional Files.


manifest.json example:
{
  "Name": "Custom Music Template",
  "Author": "Platonymous",
  "Version": "1.0.0",
  "Description": "Template for Custom Music",
  "UniqueID": "Platonymous.CustomMusic.Template",
  "ContentPackFor": {
    "UniqueID": "Platonymous.CustomMusic",
    "MinimumVersion": "1.0.0"
  }
}


content.json example:
{
"Music" : [
{
"Id": "MainTheme",
"File": "theme.ogg",
"Loop": true,
"Ambient": false
},
{
"Id": "spring_day_ambient",
"File": "ambience.ogg",
"Loop": true,
"Ambient": true
},
{
"Id": "title_night",
"File": "select.ogg",
"Loop": true,
"Ambient": false
}
]
}


Id: The Id the games uses for the Song this is going to replace
(List of Ids by Cane: Google Doc)

File: Your music file (currently supports .ogg & .wav)

Loop: If it should loop

Ambient: Whether or not this is an ambient sound

Requires SMAPI.


Comments

Posts Quoted:
Reply
Clear All Quotes