Music

Discussions and questions about the CS and mods for Morrowind
Locked
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Music

Post by Caz »

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?
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
satan_n_stuff
Champion
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

Post by satan_n_stuff »

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
Image
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Post by Caz »

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... ^^)
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
satan_n_stuff
Champion
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

Post by satan_n_stuff »

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... ^^)
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.
Image
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Post by Caz »

help with this script would really be appreciated :wink: 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 :wink:
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Post by Caz »

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
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
Guy No. 2
Warder
Warder
Posts: 536
Joined: Tue Apr 08, 2008 9:18 pm
ES Games: Oblivion, Morrowind, Skyrim
Platform: Xbox 360, PC.
Status: Lurking....duh-dun....duh-dun...duh duh duh dun du
Location: Here.

Post by Guy No. 2 »

Perhaps you could change "Set Play Music to 1" to say "Set Play Music to {insert no. of times you want to play it}"
Sorry if it doesnt help and this sounds rediculus :lol: :oops: .
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Post by Caz »

yeh, no i can't see that doing anything useful, the 1 is just telling the programme that its already playing so it doesn't keep trying to start it.
but thanks anyway :wink:
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
satan_n_stuff
Champion
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

Post by satan_n_stuff »

I'm not sure about this because it's been a while, but can't you just load a sound in the CS and use the function PlayLoopSound3D like
player->PlayLoopSound3D "sound id"?
Image
User avatar
WhiskeyRiver
Initiate
Initiate
Posts: 33
Joined: Fri Nov 07, 2008 10:54 pm

Music ideas,..

Post by WhiskeyRiver »

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.
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Post by Caz »

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.
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
jaxawier
Warder
Warder
Posts: 456
Joined: Fri May 30, 2008 8:23 pm
ES Games: redguard,mw,ob and seeing the intro to arena and df.
Platform: pc

Post by jaxawier »

for what it is worth TR(tamriel rebuild) have their own music,maybe take a look at that ? also does silgrad tower... :)
User avatar
WhiskeyRiver
Initiate
Initiate
Posts: 33
Joined: Fri Nov 07, 2008 10:54 pm

Post by WhiskeyRiver »

Ahh,..I see what you meant,Caz.I wish I knew how to do that kind of thing,but I dont.Good luck on it though
Locked