KHShox
Junior Member
Posts: 28
Threads: 11
Joined: Apr 2011
Reputation:
0
|
Custom Music
How could I add custom music? I already have downloaded a piece, converted it to .ogg, and I made a special folder for it in my map, and in the default Amnesia music folder, it doesn't play.
|
|
04-16-2011, 12:14 AM |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Custom Music
Do not make a special folder, use the same layout as game's.
|
|
04-16-2011, 12:34 AM |
|
KHShox
Junior Member
Posts: 28
Threads: 11
Joined: Apr 2011
Reputation:
0
|
RE: Custom Music
Music still doesn't play.
|
|
04-16-2011, 01:29 AM |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Custom Music
You have right code, don't you?
|
|
04-16-2011, 12:16 PM |
|
KHShox
Junior Member
Posts: 28
Threads: 11
Joined: Apr 2011
Reputation:
0
|
RE: Custom Music
Yep
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Doorclose", "Doorclose", true, 1);
}
void Doorclose(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
SetSwingDoorLocked("mansion_1", true, true);
GiveSanityDamage(2, true);
PlayMusic("mozart_music.ogg", false, 0.7f, 0, 10, false);
}
|
|
04-16-2011, 05:21 PM |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Custom Music
Remove '.ogg'
|
|
04-16-2011, 10:52 PM |
|
Anxt
Senior Member
Posts: 588
Threads: 12
Joined: Mar 2011
Reputation:
10
|
RE: Custom Music
Your priority is also 10. If there is any other music playing with a lower priority numerically (such as 0,1, or anything up to 9) it will not play over the music that is already there.
|
|
04-16-2011, 10:55 PM |
|
ferryadams10
Senior Member
Posts: 288
Threads: 40
Joined: Apr 2011
Reputation:
19
|
RE: Custom Music
that doesn't matter anxt i've got on my music the priority on 100
Got a nice sofa
Please come and have a seat for a while
|
|
04-18-2011, 08:31 PM |
|
PvtLastClass
Junior Member
Posts: 29
Threads: 1
Joined: Nov 2010
Reputation:
0
|
RE: Custom Music
I think what anxt is saying is that it will play lower-numbers first (0, 1) and higher numbers last (100). So I think they would have things like 0 for monster-chasing terror, 1 for monster-present hiding, then say 5 for gentle room ambience.
I'm not a modder, so that's just how I read it.
|
|
04-18-2011, 08:36 PM |
|
nkmol
Senior Member
Posts: 252
Threads: 19
Joined: Feb 2011
Reputation:
4
|
RE: Custom Music
its working proberly when you play it whith a ogg-player? (like footbar2000)
|
|
04-18-2011, 08:42 PM |
|
|