Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music not stoping when exiting level
Author Message
TShapeShifter Offline
Junior Member

Posts: 17
Joined: Jul 2014
Reputation: 0
Post: #1
Music not stoping when exiting level

Hi there Smile could someone help me with a little issue I have on my full conversion? o: when I enter the game and there is music playing on my level if I decide to save and exit to the main menu the music won't stop o: It will keep playing even with the main menu song aswell... o:
08-10-2014 08:35 PM
Find all posts by this user Quote this message in a reply
Mudbill Offline
Posting Freak

Posts: 3,572
Joined: Apr 2013
Reputation: 167
Post: #2
RE: Music not stoping when exiting level

That's strange. I'm sure there's a wrong setting somewhere because this doesn't happen in the main game. It sounds familiar though, maybe I encountered it once myself but I can't remember. Go through your configs and maybe try to find differences from the main game.

08-10-2014 11:04 PM
Find all posts by this user Quote this message in a reply
Daktoa Offline
Member

Posts: 98
Joined: Jul 2014
Reputation: 1
Post: #3
RE: Music not stoping when exiting level

You might have the priority set too high, cause I had a song that would play for like 5 seconds over the menu whenever you quit the custom story, and I put the priority pretty high.
08-11-2014 06:25 AM
Find all posts by this user Quote this message in a reply
Rector Offline
Junior Member

Posts: 21
Joined: Apr 2013
Reputation: 0
Post: #4
RE: Music not stoping when exiting level

Do you have the fuction "StopMusic(float afFadeTime, int alPrio);" in your "void OnLeave()" function? That'll cause the music to stop whenever you leave the map, which should work just as well when you exit to main menu. It might fix it, but there's no telling since it's not included in the main game's script files (at least most of them, haven't gone through all).
08-19-2014 03:35 PM
Find all posts by this user Quote this message in a reply
The chaser Offline
Posting Freak

Posts: 2,486
Joined: Jun 2012
Reputation: 113
Post: #5
RE: Music not stoping when exiting level

Just putting "StopMusic(1, 100);" in void OnLeave() works.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-19-2014 04:09 PM
Find all posts by this user Quote this message in a reply
TShapeShifter Offline
Junior Member

Posts: 17
Joined: Jul 2014
Reputation: 0
Post: #6
RE: Music not stoping when exiting level

(08-19-2014 04:09 PM)The chaser Wrote:  Just putting "StopMusic(1, 100);" in void OnLeave() works.

Didn't work for me... :/
08-21-2014 03:46 AM
Find all posts by this user Quote this message in a reply
Mudbill Offline
Posting Freak

Posts: 3,572
Joined: Apr 2013
Reputation: 167
Post: #7
RE: Music not stoping when exiting level

Does OnLeave run when you "Save and exit"? I don't think it does.

08-21-2014 04:32 PM
Find all posts by this user Quote this message in a reply
TShapeShifter Offline
Junior Member

Posts: 17
Joined: Jul 2014
Reputation: 0
Post: #8
RE: Music not stoping when exiting level

(08-21-2014 04:32 PM)Mudbill Wrote:  Does OnLeave run when you "Save and exit"? I don't think it does.

Yeah I mean I really doubt it, I think its just used when switching maps and since the main menu isn't a map... :/
08-21-2014 05:20 PM
Find all posts by this user Quote this message in a reply
Mudbill Offline
Posting Freak

Posts: 3,572
Joined: Apr 2013
Reputation: 167
Post: #9
RE: Music not stoping when exiting level

Well, it IS a map, but it isn't really the same category. I think OnLeave is only ran during the player's transition to another playable level.

As for the music, yeah perhaps the priority is too high. Perhaps the menu is configured incorrectly though, as I first said, and doesn't manage to stop it. Do you have a custom soundtrack in the menu?

(This post was last modified: 08-21-2014 09:22 PM by Mudbill.)
08-21-2014 09:21 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)