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
Custom Music
KHShox Offline
Junior Member

Posts: 28
Threads: 11
Joined: Apr 2011
Reputation: 0
#1
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.

[Image: bf3_sig-1298673357.jpg]
04-16-2011, 12:14 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Custom Music

Do not make a special folder, use the same layout as game's.

04-16-2011, 12:34 AM
Website Find
KHShox Offline
Junior Member

Posts: 28
Threads: 11
Joined: Apr 2011
Reputation: 0
#3
RE: Custom Music

Music still doesn't play.

[Image: bf3_sig-1298673357.jpg]
04-16-2011, 01:29 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: Custom Music

You have right code, don't you?

04-16-2011, 12:16 PM
Website Find
KHShox Offline
Junior Member

Posts: 28
Threads: 11
Joined: Apr 2011
Reputation: 0
#5
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);
}

[Image: bf3_sig-1298673357.jpg]
04-16-2011, 05:21 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: Custom Music

Remove '.ogg'

04-16-2011, 10:52 PM
Website Find
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#7
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
Find
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#8
RE: Custom Music

that doesn't matter anxt i've got on my music the priority on 100Tongue

Got a nice sofa
Please come and have a seat for a while

04-18-2011, 08:31 PM
Find
PvtLastClass Offline
Junior Member

Posts: 29
Threads: 1
Joined: Nov 2010
Reputation: 0
#9
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
Find
nkmol Offline
Senior Member

Posts: 252
Threads: 19
Joined: Feb 2011
Reputation: 4
#10
RE: Custom Music

its working proberly when you play it whith a ogg-player? (like footbar2000)
04-18-2011, 08:42 PM
Find




Users browsing this thread: 3 Guest(s)