Skip to content

Allow custom music to be added#268

Merged
Asdow merged 4 commits into
masterfrom
custom-music
Jan 29, 2024
Merged

Allow custom music to be added#268
Asdow merged 4 commits into
masterfrom
custom-music

Conversation

@Asdow
Copy link
Copy Markdown
Contributor

@Asdow Asdow commented Jan 27, 2024

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

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
@Asdow Asdow requested a review from majcosta January 27, 2024 12:37
Asdow added 2 commits January 29, 2024 21:37
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.
@Asdow Asdow merged commit bb63cb9 into master Jan 29, 2024
@Asdow Asdow deleted the custom-music branch January 30, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to add custom music to game

1 participant