Oblivion

File information

Last updated

Original upload

Created by

oss133

Uploaded by

oss133

Virus scan

Safe to use

Tags for this mod

About this mod

Permissions and credits
Music Controller V1.5
By Oss133

Requirements:
A copy of The Elder Scrolls IV: Oblivion.
The Oblivion Script Extender v0014a or higher.

Installation:
Copy the Music Controller.esp file into your Oblivion\Data Directory.
Run Oblivion Launcher.
Select Data Files.
Click a cross in the box next to Music Controller.esp.

Purpose:
As we all know, the music in the game plays constantly. Sometimes it's nice just to listen to the sound effects and soak up the atmosphere. It can also be a bit of a giveaway when something is going to attack you. However, turning the music off altogether can also detract from the experience after a while. Hence my need for a music controller.
All this little mod does is turn the music on for one track when you change from one environment to another. This gives you a little musical introduction to each new area that you visit. It will also turn the music on again if you take damage. So a fight will not be telegraphed but will be accompanied at a more appropriate moment. The rest of the time is given over to music-free audio pleasure.
So, for those who want the best of both musical and unaccompanied adventuring, try the Music Controller, from Oss133.
As of version 1.2 I have attempted to get the Death Music to play. However, this is not a perfect solution. The best I can get is that the music will be not switched off during combat or while the players health is less than 20% of full health. That way the Death Music will play if the player dies. If, on the other hand, the player dies instantly from, say, a fall or from the first blow in combat then the Death Music will not play.
Version 1.4 has extra functionality to start the battle music during combat but not before you know you are attacked. I have used the GetCrossHairRef function to see if the person you are looking at is attacking you. If they are, then the Battle music will start. In order to see at a distance what you are looking at, the mod will briefly switch your current spell to a telekinesis spell for one frame every second before reverting to your actual current spell.

Setup:
There is now a setup menu. It will automatically appear on the first run but can but brought up again by holding down the 3 keys S M and C. This stands for Setup Music Controller. The Timer option allow you to set a number of minutes after which the music will restart. The option to exclude area changes will not restart the music when you move from one type to another. The option to exclude public interiors will stop music being started if the player is in an interior cell and the music type for that cell is public, as opposed to default or dungeon. This is because some people are using extra sound files for taverns that include music so the two clash.
However, there is no way to stop a track playing once it has started so if a track is playing when you enter a tavern it will continue to play to the end. I have tried using the StreamMusic command with a silent sound file but this does not seem to work. If anyone has the answer please let me know.

Credits:
Obviously this was not possible without the excellent work by Ian Patterson (ianpatt), Stephen Abel (behippo) on OBSE.

Version History:
V1.0
Initial Release.
V1.1
Added the setup option to disable music start up in shops and taverns.
Improved the handling of area change when music was still playing from the previous area.
V1.2
Added extra code to attempt to allow the Death music to play when the player dies.
V1.3
Added the Timer and Area Change options to the setup menu.
V1.4
Added the functionality to start the battle music if you are looking at an attacker.
V1.5
Fixed a bug whereby your current spell could get unset.