# This mod does NOT fix [Cutsom OST mod](https://modworkshop.net/mod/27359) itself.
### All it does, is automatically converts tracks from "CustomOSTTracks" folder into BeardLib music module tracks.
##### Due to how this mod works, you will have to restart your game twice after adding new track folder(s) to properly add them to your music collection. You will get a notification in the main menu after adding a new track, to remind you that another restart is required.
[ReLUA](https://modworkshop.net/mod/20842) is recommended for this - it's a keybind that restarts your game, similarly to SuperBLT's "restart game" button in the mod updates manager. It's also useful if you want to restart your game after updating a BeardLib mod.
Technical explanation as to why double restart is needed:
||
This mod automatically adjusts main.xml file which holds all the information on custom tracks for BeardLib to read. Problem is, BeardLib reads this info, before COSTF makes adjustments to it, and mod priority doesn't help with that.
That's why this mod checks if main.xml file holds same tracks before and after adjustments - to notify user that files were added/removed and suggest to restart the game. Starting a heist also works since BeardLib re-reads xml files during the loading screen.
||
__This mod does not convert stealth tracks, or tracks that were added with a single file__ (ones that don't have their own folder and are just 1 file).
Stealth tracks might be added later. If you know any stealth-only track mods please leave a link to it in the comments.
-----
:::#### __How to install:__:::
* Remove "CustomOSTMod" folder from /mods
* Add "CustomOST_Fixer" folder to /mods
* Move "CustomOSTTracks" to "CustomOST_Fixer" folder (if you didn't have "CustomOSTTracks" folder before, create it in fixer's folder and place your music mods there)
* Enjoy!
-----
:::### UPSIDES AND DOWNSIDES:::
UPSIDES:
* Tracks work on all heists and should not be broken
* Really old Custom OST mods that were never updated for BeadLib can be used properly
DOWNSIDES:
* "Fade in" and "fade out" properties of tracks will not be transferred. Might change how some tracks sound, but most likely won't be noticeable.
* None of the Custom OST's features work. Honestly, except for the pre-load of the music files, everything else was kinda pointless to the end user if all they wanted, is to listen to a specific music mod.
* All tracks added this way will freeze your game for a few milliseconds when they start playing (for how long depends on your hardware and track's file size). This is a problem with BeardLib's module(or XAudio?), and can not be avoided. Only way to make it less annoying is to make music mods with smaller music file sizes, but that is up to people who make music mods. This should not really bother you that much, unless you have really poor hardware, in that case it might get annoying.
My other mod [Music Volume Mixer](https://modworkshop.net/mod/39656), might also be useful to you, if you want to customize volume for each track individually in game. Or to play tracks at any time.
**This mod is not compatible with**:
* [Shuffle Play](https://modworkshop.net/mod/37959) by vulkar97 (Thanks Noobslayer for reporting)
##### If you add a new track and it does not appear in your music collection, leave a comment with link to that track's mod. If no tracks appear at all, make sure that you installed this mod properly before reporting issues.
:::**1.11**:::
Fixed an issue where </table> tag would be added at the end of the main.xml file when it's not necessary. It would only occcur when user either has an empty tracks folder, or this folder only contains one track that has missing/malformed definition file. TLDR: most users were not affected by it.
:::1.1:::
1) Fixed an issue where corrupted json/txt/xml files would not be handled correctly
2) Adder error messages to the in-game error reporter for these scenarios:
* Original COST folder wasn't removed
* Tracks folder was not found inside of COSTF folder
* Music mod folder is missing txt/json/xml definition file
* Track definition file was corrupted
All errors related to missing/corrupted files will have their folder path in the error log in game
:::1.0.1:::
Patched release
Don't reupload or implement anywhere without my permission.
Original [Custom OST mod](https://modworkshop.net/mod/27359) creator: [Nate](https://modworkshop.net/user/70355)
Dependencies
-
-
-
Instructions
**Make sure to first have SuperBLT, and BeardLib installed. Click the links in the dependency list.**
Optional video tutorial for installing SuperBLT, BeardLib, and mod_overrides mods: https://youtu.be/rin_sjSJIkg
1. After downloading the mod, use a program such as [7zip](https://www.7-zip.org/download.html) or [WinRAR](https://www.rarlab.com/download.htm) to extract the main folder of the mod.
2. Drop that folder into the `mods` folder which is supposed to be in the game's installation folder (don't know where that is? click [here](https://wiki.modworkshop.net/books/payday-2/page/finding-payday-2s-install-folder))
FOLLOW INSTRUCTIONS IN THE MAIN DESCRIPTION OF THE MOD.
TLDR: Place in mods, move "CustomOSTTracks" folder into the fixer's folder. Create "CustomOSTTracks" folder there if you didnt have COST before. Remove original "CustomOSTMod" folder.
Comments