A few notes for anyone attempting to follow this guide:
1. See Eras.artdef in the base game's files for all of the switches you can use. Not every era has its own switch in the game. Classical uses Ancient's switch, Renaissance uses Medieval's switch, Modern uses Industrial's switch (weirdly). and both Atomic and Informational use Modern's switch (meaning that whatever you assign to modern won't actually play until Atomic). This means you can't assign a playlist to every era, some will simply carry over to the next era(s).
2. Your playlists will not loop throughout their respective eras by default. To accomplish this, visit
this link.
3. If you have already linked a Civilizations.artdef to use base game music and you want to switch over to this, you MUST remove this link as it overrides the custom SoundBank. If you don't, the music you selected in Civilizations.artdef will play, not your music.
Alright - so I'm running into some issues trying to get custom music working for my Civ, and I suspect it's because I've done something wrong with my looping settings. Unfortunately, the link in this post is dead, and I think the information in that link (setting up looping settings) is related to my troubles. I've just been kinda fiddling around trying to figure out a solution on my own, and I haven't had any luck yet. Would anyone who knows the correct looping settings be kinda enough to post them here?
For context/clarity: I'm trying to get custom music working for my custom civ - one song for each of the four era categories, plus a diplomacy screen song.I'd like this to work whether I'm playing the custom faction or playing against them (another player / AI), and I'd like it to be integrated with the existing vanilla music for other factions.
My current scenario:
-
When playing as the custom faction: the custom music plays correctly, once, when I settle my first city. Once I meet some neighbors, their vanilla music plays. Then eventually, everything goes completely silent, and there's no more music for the rest of the game.
-
When playing as a vanilla faction against my custom faction: the vanilla music plays as expected, including music from any vanilla neighbors I meet along the way, until I discover the custom faction as a neighbor. Eventually (presumably when it's trying to switch to their custom music), everything goes silent and no more music plays for the rest of the game. I don't hear the custom music at all in this scenario.
- I'm using the LUA that's been passed around in this thread to manually manage/stop the audio in certain situations.
- There are no errors in LUA.log, Database.log, or Modding.log
I suspect that what's happening is that my custom music is not recognizing when it's reached the end of the song, so it just sits there lingering on silence forever, never allowing the game to switch to another track.
I'm gonna continue to explore and fiddle with settings on my own, but if anybody happens to know the correct settings, or would be willing to share their Wwise project, I'd appreciate it tremendously.
----------------
EDIT: I think I might just be an idiot. I had a typo in one of my events (visible up above in an earlier image, even!).
For future googlers, the settings I'm currently using are:
- Leader music events are referencing music in a separate switch container than the era music. (Make sure you still set appropriate paths for the four eras, even if they all reference the same song!)
- All music playlists are set to Sequence
Step (not continuous), with infinite loop count.
- All tracks have a custom marker (name doesn't matter) a second or so before the end of file.