Loading...
  OR  Zero-K Name:    Password:   

Post edit history

How do I add more music?

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
9/14/2017 3:12:59 PMPLrankAdminSprung before revert after revert
9/14/2017 3:11:27 PMPLrankAdminSprung before revert after revert
9/14/2017 11:21:57 AMPLrankAdminSprung before revert after revert
Before After
1 Keep in mind music currently has to be in .ogg format. Go to your Spring folder (if you don't know where it is, you can access it through lobby, the path is something like help -> reports -> open data folder or somesuch). 1 Keep in mind music currently has to be in .ogg format. Go to your Spring folder (if you don't know where it is, you can access it through lobby, the path is something like help -> reports -> open data folder or somesuch).
2 \n 2 \n
3 Basic way: 3 Basic way:
4 \n 4 \n
5 * Go to `sounds` folder (create if does not yet exist; applies below too). 5 * Go to `sounds` folder (create if does not yet exist; applies below too).
6 * Inside that folder there can be up to 5 folders for various ingame situations: "war", "peace", "victory", "defeat", "briefing". Add the music files to the categories you want the music to play in (if you want a song to play anytime you would need to create a copy in each). 6 * Inside that folder there can be up to 5 folders for various ingame situations: "war", "peace", "victory", "defeat", "briefing". Add the music files to the categories you want the music to play in (if you want a song to play anytime you would need to create a copy in each).
7 * You might want to deselect `Settings/Audio/Use included tracks` ingame setting if you dont want the builtin music. 7 * You might want to deselect `Settings/Audio/Use included tracks` ingame setting if you dont want the builtin music.
8 \n 8 \n
9 Advanced way (if you want a song to play in multiple situations but dont want extra copies in each folder): 9 Advanced way (if you want a song to play in multiple situations but dont want extra copies in each folder):
10 \n 10 \n
11 * place the music anywhere in the Spring folder. 11 * place the music anywhere in the Spring folder.
12 * create `sounds/music/playlist.lua` which has the following format: 12 * create `sounds/music/playlist.lua` which has the following format:
13 {{{ 13 {{{
14 return { 14 return {
15 peace = { 15 peace = {
16 "path/to/your/file/relative/to/spring.ogg", 16 "path/to/your/file/relative/to/spring.ogg",
17 "some/other/file.ogg" 17 "some/other/file.ogg"
18 }, 18 },
19 war = { 19 war = {
20 -- etc 20 -- etc
21 }, 21 },
22 -- etc 22 -- etc
23 } 23 }
24 }}} 24 }}}
25 * this overrides everything else so you'd need to place builtin tracks in that config manually if you want them. See [url=https://github. com/ZeroK-RTS/Zero-K/tree/master/sounds/music]here[/url] for their names. 25 * this overrides everything else so you'd need to place builtin tracks in that config manually if you want them. See [url=https://github. com/ZeroK-RTS/Zero-K/tree/master/sounds/music]here[/url] for their names ( there are currently no "briefing" tracks; there is a "loading" category which is never used at the moment) .