Can't play music - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Can't play music (/thread-17757.html) |
Can't play music - amusei - 08-14-2012 I have a problem with the PlayMusic function. This is my OnEnter part of the script Code: void OnEnter() The problem is that the music doesn't play when I enter the map. I also tried to play it with the AddEntityCollideCallback func but it still doesn't play when I enter the script area Code: void OnStart() RE: Can't play music - Adny - 08-14-2012 If there are any other sounds/music playing before that script is triggered, you should set the priority (int alPrio) to 0, meaning the highest priority. Also, it's a bit basic, but I thought I should ask anyway: are you 100% your .map and .hps files are in the same folder, and are named exactly the same thing? RE: Can't play music - amusei - 08-16-2012 (08-14-2012, 04:12 PM)andyrockin123 Wrote: If there are any other sounds/music playing before that script is triggered, you should set the priority (int alPrio) to 0, meaning the highest priority.Well, there are no other sounds/music playing. Do you think it could be because of the main menu music? (I tried changing the alPrio to 0 but still no effect) About the .map and .hps - Yes, there are in the same folder ^^ RE: Can't play music - Robby - 08-16-2012 (08-16-2012, 06:53 AM)amusei Wrote:Have you tried playing a different music? Re-check the music file's name as well.(08-14-2012, 04:12 PM)andyrockin123 Wrote: If there are any other sounds/music playing before that script is triggered, you should set the priority (int alPrio) to 0, meaning the highest priority.Well, there are no other sounds/music playing. Do you think it could be because of the main menu music? RE: Can't play music - amusei - 08-16-2012 (08-16-2012, 07:04 AM)Nemet Robert Wrote:I guess amb_25.ogg is bugged When I changed it to another music file it worked. Thanks!(08-16-2012, 06:53 AM)amusei Wrote:Have you tried playing a different music? Re-check the music file's name as well.(08-14-2012, 04:12 PM)andyrockin123 Wrote: If there are any other sounds/music playing before that script is triggered, you should set the priority (int alPrio) to 0, meaning the highest priority.Well, there are no other sounds/music playing. Do you think it could be because of the main menu music? RE: Can't play music - Your Computer - 08-16-2012 (08-16-2012, 08:53 AM)amusei Wrote: I guess amb_25.ogg is bugged When I changed it to another music file it worked. Thanks! You sure it wasn't called "25_amb"? |