FlatOut

FlatOut

Not enough ratings
Multiple music tracks during race
By superrast
Always wanted to hear more than one repeating song while driving?
   
Award
Favorite
Favorited
Unfavorite
Steam Workshop 2024 Update
To install, simply use Workshop!

https://cs2bus.com/sharedfiles/filedetails/?id=3294304865

For manual steps and technical details, follow the original guide below. Manual steps from the guide may not work for the updated version of the game, eg archive name and format are changed. However, game still supports OGG audio files!
Description and Installation
Game loads only one music file when you start the race. So i just added two more tracks to every file! Now it plays 3 different songs in a row which is enough for most races.

Important notes:
  • This mod is made for Steam version. I don't know if it will work for others.
  • Music selection is from this game only (no new tracks).
Read below if you want to add custom music, eg. from other FlatOut games, or make it work for another edition of the game.

To install:
  • Create a backup of common1.bfs in your game directory, eg. rename it
  • Download modded common1[drive.google.com].bfs and place it in the game directory

Now start a race and enjoy non-repeating music. Game will not show song titles except for the first one, but who cares?
Do it yourself
Here are steps to customize this.

Requirements
  • You need to know how to use command-line tools
  • If you know basic CMD/bash/Powershell scripting, it will save you a lot of time
  • BFS unpacker and packer[drive.google.com]
  • FFMPEG[ffmpeg.org] is a multimedia swiss army knife, we will use it in a script to mix audio tracks

Unpack game archive

EDIT 2024: for pack/unpack, use the bfstool.exe and mod manager provided with the game

Use BFS Unpacker to extract common1.bfs. Music files are in the folder data/music. Note that there are 2 tracks that are not used during races:

  • 04_flat.ogg
  • 12_race.ogg

Also see file playlist_0.bed. It is a simple text document and contains list of music files and song titles. You can add more here if you want. They have to be in OGG format.

If you want to simplify things, edit playlist_0.bed to include only files like 1.ogg, 2.ogg etc how much you want. We will create them next.

Make playlists which contain multiple different tracks
Remember that game only loads single file for a race, so we need to make every file contain several tracks. You can mix files manually, but if you know basic command-line you can do this:

Make a file 01_adren.txt with this content:

file '01_adren.ogg'
file '22_lab.ogg'
file '21_splat.ogg'

And do this for every track that is mentioned in playlist_0.bed. Songs included in the txt are up to you, i just randomly generated these lists and made sure they have no duplicates.

Mix playlists into single files
For every .txt playlist you created, run this:

ffmpeg -f concat -safe 0 -i 01_adren.txt -c copy "mixed/01_adren.txt.ogg"

What it does:
  • read a .txt playlist
  • mix all files referenced in playlist one after another
  • save into folder "mixed" under given name

Replace original music files with mixed ones
Now replace original music files with the ones you made. They must have same names and be in OGG format.

Pack the archive

This part is a bit tricky because makebfs.exe will fail:

Error 38


To fix this, find file filler.jpg in a folder with makebfs and place it in data (see the screenshot). Now makebfs will work!
3 Comments
superrast  [author] 4 Dec, 2024 @ 7:22am 
just use this mod from workshop, no need to fiddle with bfs manually
Silver Viper 3 Dec, 2024 @ 2:13pm 
Duh, now it uses data.bfs instead.
Royal Armenian 14 Nov, 2021 @ 12:53pm 
thank you so much i thought that my game was bugged for not playing more than one song during a race, but turns out that's actually the way it works. thank you