0 of 0

File information

Last updated

Original upload

Created by

Archimag and korootz

Uploaded by

korootz

Virus scan

Safe to use

About this mod

Seamlessly resumes the previous track after theme transitions (HeartStrings fork)

Requirements
Permissions and credits
You're strolling through the wilderness, completely immersed in the tranquil sounds of your favorite track, when suddenly - out of nowhere - a rabid rat crosses your path.
The next thing you know, your poor ears are abruptly blasted with a burst of loud, epic battle music. Not only does it feel completely out of place, but what's worse, once the battle ends, it also skips over the track you were so deeply immersed in.
The moment is lost, and you're snapped out of the experience.

My fork of HeartStrings mod by Archimag resumes the exact peaceful track that was played before the battle theme, picking up right where it was interrupted.


Since the remaining parts of the previous track are repeated after the battle, it should increase the chances of all tracks being played to the end, rather than just their beginnings, which you've probably heard thousand times already.

Showcase:


Unlike MUSE, or similar mods, HeartStrings additionally offers options to set a minimum enemy level/strength required to trigger battle music, so there won't be any unnecessary theme transitions in the first place.

Requirements
- MWSE (no support for OpenMW)
- the original mod (HeartStrings by Archimag)
- LuaCOM (included in the package)
- FFmpeg (you have to install it yourself but it's easy and lightweight)


Installation
Install all requirements first. Extract the package to game's directory. Confirm the overwrite of HeartStrings/main.lua file.

Admittedly, current implementation is somewhat hacky. That's because MWSE doesn't support playing tracks from specific timestamps yet, so until then FFmpeg is used to cut previously played .mp3 file on the fly, running on theme change in the background via LuaCOM to provide a possibly seamless experience without any delays or windows popping up. 

Considerations regarding your custom music
  • mod checks if previous track is the same as the next one (to prevent repeating it), so you should have more than one music file per theme
  • you shouldn't have triple underscore ("___") in your file names
  • the files you want to keep shouldn't begin with "output-"

When output files are deleted
  • Engage in combat
  • Combat ends
  • Engage in combat again
  • New output file is generated from the previous output file and previous output file is deleted
or...
  • Engage in combat once
  • Combat ends, output file is played (previous peaceful track)
  • Wait till it ends, or skip it (i.e. with "+" hotkey)
  • Previous output file is deleted

This way "Data Files/Music" folder is kept clean from leftover output files. It might leave output files only when you quit the game, so it should be cleaned once in a while.


Workaround for Mod Organizer 2 users
If you're running the game via MO2 you'll likely experience flashing windows every time the ffmpeg command runs. This can be mitigated. The solution is a bit of an overkill, but works:
  • In MO2 add a new executable to any file explorer.
  • Run that new executable via MO2.
  • Copy the whole game directory (that includes files from MO's virtual file system) to your physical drive.
  • Close MO2.
  • Run the copied game directly via Morrowind.exe.
On next iteration, to save time one can use some more sophisticated software (i.e. xcopy) to copy only the files that have changed.