v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing Audio
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{ | + | {{Stub}} |
''Dwarf Fortress'' contains music tracks which play at various points in game, including the main menu theme. Some types of audio seem to be triggered by events, while others play randomly while certain criteria are met. These seem to include some [[weather]] sounds, wild ambience, building sounds, river etc. | ''Dwarf Fortress'' contains music tracks which play at various points in game, including the main menu theme. Some types of audio seem to be triggered by events, while others play randomly while certain criteria are met. These seem to include some [[weather]] sounds, wild ambience, building sounds, river etc. | ||
Line 10: | Line 10: | ||
{{main|modding}} | {{main|modding}} | ||
− | All sound and [[Soundtrack|music]] files used by ''Dwarf Fortress'' are stored in the [https://en.wikipedia.org/wiki/Ogg .ogg] format within the <code>[[Game folder|<Dwarf Fortress>]]/data/sound/</code> subfolders. You can replace the existing ogg files with different ones. That has to be performed manually and isn't actually supported by the game. You can also change some of the definitions of when certain musical cues are played, using available music tokens and sound tokens in the [[raw file]]s found in <code>[[Game folder|<Dwarf Fortress>]]\data\vanilla\vanilla_music\</code>. | + | All sound and [[Soundtrack|music]] files used by ''Dwarf Fortress'' are stored in the [https://en.wikipedia.org/wiki/Ogg .ogg] format within the <code>[[Game folder|<Dwarf Fortress>]]/data/sound/</code> subfolders. You can replace the existing ogg files with different ones. That has to be performed manually and isn't actually supported by the game. You can also change some of the definitions of when certain musical cues are played, using available music tokens and sound tokens in the [[raw file]]s found in <code>[[Game folder|<Dwarf Fortress>]]\data\vanilla\vanilla_music\</code>. However, you can't add new music or sounds other than replacing what's already there. |
− | + | ;Sound effects | |
− | + | All vanilla sound tokens are found within <code>sound_standard.txt</code>. All sound files must begin with the file name{{verify}}, followed by the <code>[OBJECT:SOUND]</code> token that tells the game that the file contains sound definitions. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | All vanilla sound tokens are found within <code> | ||
[SOUND:<identifier>] | [SOUND:<identifier>] | ||
− | [FILE:< | + | [FILE:<???>] |
[ANNOUNCEMENT:<announcement>] | [ANNOUNCEMENT:<announcement>] | ||
... | ... | ||
[ANNOUNCEMENT:<announcement n>] | [ANNOUNCEMENT:<announcement n>] | ||
− | + | * identifiers seem to correlate with the file name <code>data\sound\sounds</code> | |
− | + | * [[announcement]]s trigger condition, can use more than one announcement in the list. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | * [[ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ; Music tracks | |
− | All vanilla music tokens are found within <code> | + | All vanilla music tokens are found within <code>music_standard.txt</code>. All music files must begin with the file name{{verify}}, followed by the <code>[OBJECT:MUSIC]</code> token that tells the game that the file contains music definitions. |
[MUSIC:TRACK_02] | [MUSIC:TRACK_02] | ||
Line 103: | Line 38: | ||
[FREQUENCY:UNCOMMON] | [FREQUENCY:UNCOMMON] | ||
− | + | * Event/Context - These are the triggers for the music | |
− | + | * Frequency (optional) can be set to 'UNCOMMON' to set the frequency half as often as the other candidates | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Known possible events: | |
− | + | [EVENT:JUST_EMBARKED] | |
− | + | [EVENT:SIEGE] | |
− | + | [EVENT:FIRST_CAVERN_OPENED] | |
− | + | [EVENT:MEGABEAST_ATTACK] | |
− | + | [EVENT:FORGOTTEN_BEAST_ATTACK] | |
− | + | [EVENT:DEATH_SPIRAL] | |
− | + | [EVENT:TAVERN_MUSIC_PRESENT] | |
− | + | [EVENT:TAVERN_DANCE_PRESENT] | |
− | + | [EVENT:LOST_FORT] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Known possible context : | |
− | + | [CONTEXT:ANY] | |
− | + | [CONTEXT:MAIN] | |
− | + | [CONTEXT:FIRST_YEAR] | |
− | + | [CONTEXT:SECOND_YEAR_PLUS] | |
− | + | [CONTEXT:CAVERNS_OPENED] | |
− | + | [CONTEXT:WINTER] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See Also== | == See Also== | ||
Line 205: | Line 64: | ||
* [https://www.youtube.com/watch?v=mJyMhgadpcQ ambiences and music snippets] | * [https://www.youtube.com/watch?v=mJyMhgadpcQ ambiences and music snippets] | ||
* [[Soundsense]] | * [[Soundsense]] | ||
− | |||
[[Category:game]] | [[Category:game]] |