Allow custom music to be added#268
Merged
Merged
Conversation
Additional music can be added by placing sound files into Dataa/Music folder following this naming convention musicmode_runningNumber.fileformat, so for example: Mainmenu_001.mp3 Mainmenu_002.ogg Laptop_002.ogg Tactical_003.wav ***************************************************************** Different musicmodes are Mainmenu_ <-- Mainmenu music Laptop_ <-- Laptop music Tactical_ <-- Tactical with nothing special going on Enemy_ <-- Tactical, enemy present Battle_ <-- Tactical, enemy present and visible Victory_ <-- Tactical, battle victory Death_ <-- Tactical, battle defeat Creepy_ <-- Tactical, creatures present CreepyBattle_ <-- Tactical, creatures present and visible Music files can be .mp3, .ogg or .wav formats and 100 songs in each category is supported. The running numbering starts from 000 ***************************************************************** A few filenames are treated in a special way to facilitate easy replacement of original music. To replace original music, insert the following named files into this folder "menumix1" <-- Mainmenu music "marimbad 2" <-- Laptop music "nothing A" <-- Tactical with nothing special going on "nothing B" "nothing C" "nothing D" "tensor A" <-- Tactical, enemy present "tensor B" "tensor C" "triumph" "death" "battle A" <-- Tactical, enemy present and visible "tensor B" <-- This file is also used as battle music "creepy" <-- Tactical, creatures present "creature battle" <-- Tactical, creatures present and visible
Accept filenames with two digit running number
Defaults to regular enemypresent and battle music if no nighttime music tracks are found
If "Battle B" music file is found, use it instead of tensor B for the second original battle music. Allows us to replace either the enemy present or battle version of the same track instead of always both when "tensor B" is replaced.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #264
Additional music can be added by placing sound files into Music folder following this naming convention
musicmode_runningNumber.fileformat
so for example:
Mainmenu_01.mp3
Mainmenu_02.ogg
Laptop_02.ogg
Tactical_00.wav
Different music modes are
Mainmenu_ <-- Mainmenu music
Laptop_ <-- Laptop music
Tactical_ <-- Tactical with nothing special going on Enemy_ <-- Tactical, enemy present
Battle_ <-- Tactical, enemy present and visible
Victory_ <-- Tactical, battle victory
Death_ <-- Tactical, battle defeat
Creepy_ <-- Tactical, creatures present
CreepyBattle_ <-- Tactical, creatures present and visible
Music files can be .mp3, .ogg or .wav formats and 100 songs in each category is supported. The running numbering starts from 00
A few filenames are treated in a special way to facilitate easy replacement of original music. To replace original music, insert the following named files into this folder
"menumix1" <-- Mainmenu music
"marimbad 2" <-- Laptop music
"nothing A" <-- Tactical with nothing special going on
"nothing B"
"nothing C"
"nothing D"
"tensor A" <-- Tactical, enemy present
"tensor B"
"tensor C"
"triumph"
"death"
"battle A" <-- Tactical, enemy present and visible
"battle B" <-- Tensor B is also used as battle music, this will replace it from battle music tracks, but still keep it in enemy present
"creepy" <-- Tactical, creatures present
"creature battle" <-- Tactical, creatures present and visible