Music
- Caz
- Warder

- Posts: 564
- Joined: Sat Mar 29, 2008 3:04 pm
- ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
- Platform: PC
Music
What I'm trying to do is this:
I'm making a mod with a new region, and I want different "explore" music to play here than in the other regions.
I was thinking I would make and extra folder which holds the different songs that I want to be played. Then somehow I have to tell the game to use this folder instead of the "explore" folder.
It ought to work similar to the game when it uses the "battle" folder if you're being attacked. Only I haven't found out how that works.
(I know there is the "StreamMusic" command, but as far as I know that's for one song)
Can anyone help?
I'm making a mod with a new region, and I want different "explore" music to play here than in the other regions.
I was thinking I would make and extra folder which holds the different songs that I want to be played. Then somehow I have to tell the game to use this folder instead of the "explore" folder.
It ought to work similar to the game when it uses the "battle" folder if you're being attacked. Only I haven't found out how that works.
(I know there is the "StreamMusic" command, but as far as I know that's for one song)
Can anyone help?
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
You don't know a woman until you've had a strong drink and a fist fight with her.
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
I don't have a lot of experience with music mods, but I did find a mod with a powerful music script, maybe you could open it and copy the script?
http://www.jeuxvideopc.com/downloads/62 ... s-8466.php
http://www.jeuxvideopc.com/downloads/62 ... s-8466.php

- Caz
- Warder

- Posts: 564
- Joined: Sat Mar 29, 2008 3:04 pm
- ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
- Platform: PC
thanks satan, i downloaded the mod and put all the files in the right place.
thing is, the mod isn't working. the game sends loads of error messages before crashing, and i can't even open the mod in the CS to find out what's wrong (too many "reference missing" complaints or sth)
i sometimes have trouble with mods cos i play the german game, but it only takes a bit of adjusting to set them right. with this one however i have no idea, it's so huge...
have you/has anyone else got the mod working? if so, do you think you could search for the script for the music sometime and send it to me in a pm?
or can anyone help me put the mod right? (i highly doubt that... ^^)
thing is, the mod isn't working. the game sends loads of error messages before crashing, and i can't even open the mod in the CS to find out what's wrong (too many "reference missing" complaints or sth)
i sometimes have trouble with mods cos i play the german game, but it only takes a bit of adjusting to set them right. with this one however i have no idea, it's so huge...
have you/has anyone else got the mod working? if so, do you think you could search for the script for the music sometime and send it to me in a pm?
or can anyone help me put the mod right? (i highly doubt that... ^^)
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
You don't know a woman until you've had a strong drink and a fist fight with her.
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
It'll still be a while before I have my computer in order, but as I already promised to help with some modding I think I can help with this as well.Caz wrote:thanks satan, i downloaded the mod and put all the files in the right place.
thing is, the mod isn't working. the game sends loads of error messages before crashing, and i can't even open the mod in the CS to find out what's wrong (too many "reference missing" complaints or sth)
i sometimes have trouble with mods cos i play the german game, but it only takes a bit of adjusting to set them right. with this one however i have no idea, it's so huge...
have you/has anyone else got the mod working? if so, do you think you could search for the script for the music sometime and send it to me in a pm?
or can anyone help me put the mod right? (i highly doubt that... ^^)

- Caz
- Warder

- Posts: 564
- Joined: Sat Mar 29, 2008 3:04 pm
- ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
- Platform: PC
help with this script would really be appreciated
i'm still pretty new to scripting
i had this idea: to put the script on a tree or sth in the middle of the region and use the "getdistance player" command.
but i still need to find out how to make it play a random song from an extra folder.
anyway i'll see how it works
i had this idea: to put the script on a tree or sth in the middle of the region and use the "getdistance player" command.
but i still need to find out how to make it play a random song from an extra folder.
anyway i'll see how it works
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
You don't know a woman until you've had a strong drink and a fist fight with her.
- Caz
- Warder

- Posts: 564
- Joined: Sat Mar 29, 2008 3:04 pm
- ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
- Platform: PC
right, i wrote a script which played a song when i got near the object. and it worked fine with "doonce". so i tried to get it to repeat using a timer and GetSecondsPassed, but it still only plays the song once.
can anyone tell me what's wrong with my script? i tried different things but none worked...
Begin MusicScript
short playmusic
float timer
if (GetDistance Player <= 2000)
set timer to (timer + GetSecondsPassed)
if (playmusic == 0)
StreamMusic "....mp3" ; song to be played
Set playmusic to 1
Set timer to 0
else
return
endif
if (timer >= ...) ; length of song in sec
Set playmusic to 0
endif
endif
End
can anyone tell me what's wrong with my script? i tried different things but none worked...
Begin MusicScript
short playmusic
float timer
if (GetDistance Player <= 2000)
set timer to (timer + GetSecondsPassed)
if (playmusic == 0)
StreamMusic "....mp3" ; song to be played
Set playmusic to 1
Set timer to 0
else
return
endif
if (timer >= ...) ; length of song in sec
Set playmusic to 0
endif
endif
End
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
You don't know a woman until you've had a strong drink and a fist fight with her.
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
- WhiskeyRiver
- Initiate

- Posts: 33
- Joined: Fri Nov 07, 2008 10:54 pm
Music ideas,..
I have added music to my game by simply finding music created for Morrowind,and downloading each song into the music files.Wouldnt it be the same for a new mod? Just create a file for music,find the songs and load them into the file for the mod? I may we way off base with this though,but it seems like that would work. I have a lot of really beautiful music for my game that I serched for,if you would like to use them.Just let me know if this is the way uo are going,or are you going to compose it yourself.If so,then I cant help.
- Caz
- Warder

- Posts: 564
- Joined: Sat Mar 29, 2008 3:04 pm
- ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
- Platform: PC
thanks a lot, but i don't think you understood what i wanted to do.
i have loads of my own songs in the music folder so they run when i'm playing, but what i wanted was a region where a couple of songs, and only these songs, play. and this music doesn't run anywhere else. so far i haven't found out how to tell a script to use a specific folder. it must be similar to using the battle music though.
i have no time for scripting atm anyway, but i may try again in a few weeks after my presentations are over.
i have loads of my own songs in the music folder so they run when i'm playing, but what i wanted was a region where a couple of songs, and only these songs, play. and this music doesn't run anywhere else. so far i haven't found out how to tell a script to use a specific folder. it must be similar to using the battle music though.
i have no time for scripting atm anyway, but i may try again in a few weeks after my presentations are over.
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
You don't know a woman until you've had a strong drink and a fist fight with her.
- WhiskeyRiver
- Initiate

- Posts: 33
- Joined: Fri Nov 07, 2008 10:54 pm