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


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

Posts: 17
Threads: 5
Joined: Jul 2014
Reputation: 0
#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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#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
Daktoa Offline
Member

Posts: 98
Threads: 10
Joined: Jul 2014
Reputation: 1
#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
Rector Offline
Junior Member

Posts: 21
Threads: 5
Joined: Apr 2013
Reputation: 0
#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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#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
TShapeShifter Offline
Junior Member

Posts: 17
Threads: 5
Joined: Jul 2014
Reputation: 0
#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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#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
TShapeShifter Offline
Junior Member

Posts: 17
Threads: 5
Joined: Jul 2014
Reputation: 0
#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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#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




Users browsing this thread: 2 Guest(s)