How does Morrowind play the vanilla music?

Post » Sat Sep 03, 2011 12:45 pm

I'm not sure if this should go here or in mods. Eventually, it could be a mod... but right now, I'm just trying to understand scripts somewhat.
I'll cut straight to the point- there isn't enough music in Morrowind, but just packing more mp3s in the two free folders ('battle' and 'explore') isn't a terrific improvement.

So I ran EvilGreebo's Music Mod for a while. But the way it's scripted seems... odd, to me.

I like the way it diversifies the music- based on alliances etc. I think there could still be more music, but that's a problem.
See, it's based on streammusic "filename.ext", right? And to play each song, it has to start a timer to count the length of the song. And there's randomisation stuff, and so on...
So to add songs, it takes quite a bit of finagling with the scripts. And I got to thinking, and realised...

Vanilla Morrowind plays folders!

You can add new, foreign songs into the battle and explore folders, and it will play them. It isn't hardcoded to play each 'nilla song; it just plays what is in the folders (with the exception of special, which *is* name based)
So, I feel like there must be a way to make a mod that plays all songs in a folder instead of playing specific songs and all the timer stuff.

I figured I could look at the basic Morrowind music script. But... I can't find anything that seems to regulate music... at least nothing shows up in the Construction Set script list that seems to pertain to music. So that's... kind of a problem.


tl;dr, where are Morrowind's music scripts, and can I modify them to play music from different folders in different areas?

Thanks in advance.
User avatar
Juanita Hernandez
 
Posts: 3269
Joined: Sat Jan 06, 2007 10:36 am

Post » Sat Sep 03, 2011 11:13 am

Music in Morrowind is completely hard-coded as far as I know, as are the folder names "Battle" and "Explore". It's not impossible to patch the exe file to alter some aspects of this behavior though, as the Morrowind Code Patch has a component that disables battle music while a music file is being streamed from a script.
User avatar
LijLuva
 
Posts: 3347
Joined: Wed Sep 20, 2006 1:59 am


Return to III - Morrowind