Frictional Games Forum (read-only)
[SCRIPT] Help with the 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: [SCRIPT] Help with the music! (/thread-14554.html)

Pages: 1 2 3


RE: Help with the music! - Xanthos - 04-10-2012

^ never heard of it. But I will search around and see if it works.
I use
-Sony Vegas Pro 11
-Free Audio Converter v5.2


RE: Help with the music! - mrscoomich - 04-11-2012

Update: So I used Audacity. I exported a new mp3, and converted into an .ogg and it should work fine if it can work with Sony Vegas.. But still nothing...


RE: Help with the music! - Mackiiboy - 04-11-2012

(04-11-2012, 12:14 AM)mrscoomich Wrote: Update: So I used Audacity. I exported a new mp3, and converted into an .ogg and it should work fine if it can work with Sony Vegas.. But still nothing...
.
Audacity should work perfect - I have converted all my music into .ogg-files and have I never had any problem.
It sounds like you're doing it wrong when you say: "exported a new mp3 and converted into an .ogg", you should not export mp3-files, .ogg-files is the file you should export.
Try to import your mp3 file, then export it as an ogg-file. If it does not work for you, the fastest way would prolly be if you uploaded your mp3-file so we can convert it with audacity.




RE: Help with the music! - mrscoomich - 04-11-2012

(04-11-2012, 12:30 AM)Mackiiboy Wrote:
(04-11-2012, 12:14 AM)mrscoomich Wrote: Update: So I used Audacity. I exported a new mp3, and converted into an .ogg and it should work fine if it can work with Sony Vegas.. But still nothing...
.
Audacity should work perfect - I have converted all my music into .ogg-files and have I never had any problem.
It sounds like you're doing it wrong when you say: "exported a new mp3 and converted into an .ogg", you should not export mp3-files, .ogg-files is the file you should export.
Try to import your mp3 file, then export it as an ogg-file. If it does not work for you, the fastest way would prolly be if you uploaded your mp3-file so we can convert it with audacity.
Yeah, that is what I did.. My apologies. I imported an mp3, and then exported it as .ogg when I put it in my hps nothing plays.

PlayMusic("01_intro.ogg", false, 1, 1, 1, false);



RE: Help with the music! - Stepper321 - 04-11-2012

Can you send me the .mp3 file, i will do it for you.

also, maybe use this

PlayMusic("01_intro.ogg", false, 1.0f, 1.0f, 0, true);



RE: Help with the music! - jessehmusic - 04-11-2012

(04-06-2012, 06:40 PM)mrscoomich Wrote: Okay, so I have an mp3 that I thought would be a good background music while playing the custom story that I'm creating,

I took the .mp3 and converted it into .ogg and placed it in the folders with everything.

>
map(folder)
music(folder)
custom_story_settings.cfg
extra_english.lang

It was in the music folder , but when I put it in my scripts on my .hps, it doesn't play, unless the .ogg is from the original game.

Can anybody fix this?



You need the ogg. file and then make new txt with the "name.snt" and enter this text in


<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="the name here like scary1.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="1" MaxDistance="50" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7" Priority="5" />
</SOUNDENTITY>


RE: Help with the music! - Stepper321 - 04-11-2012

(04-11-2012, 02:34 PM)jessehmusic Wrote: Text
</properties>


You don't need that for music.


RE: Help with the music! - mrscoomich - 04-18-2012

PlayMusic("01_intro.ogg", false, 1.0f, 1.0f, 0, true);


^ still doesn't work .


and email missrawr@live.ca if you need the mp3 Smile I don't know why it won't work :/


RE: Help with the music! - Stepper321 - 04-19-2012

http://www.mediafire.com/?h1ru59b3aew198h Download this, then put it in the folder of your custom story. (or music and then extramusic in your Custom Story) than try
PlayMusic("nameofsong.ogg", false, 1.0f, 1.0f, 0, true); <--- false or true, doesn't matter. True is for looping.

It should work. Else, give me the script file.


RE: Help with the music! - mrscoomich - 04-19-2012


void OnStart()
{
PlayMusic("01_intro_dark.ogg", false, 1.0f, 1.0f, 0, true);
ShowPlayerCrossHairIcons(false);
FadeOut(0);
SetPlayerActive(false);
PlayMusic("01_intro.ogg", false, 1, 1, 1, false);
SetMessage("Intro", "Girl", 3);
StartScreenShake(0.2, 1, 2, 2);
FadeIn(10);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("Fade", 5, "FadeBlack");

}

void FadeBlack(string &in asTimer)
{
FadeImageTrailTo(0, 0);
SetPlayerMoveSpeedMul(0.4);
SetPlayerRunSpeedMul(0.1);
SetPlayerLookSpeedMul(0.3);
FadeRadialBlurTo(1.5, 3);
ShowPlayerCrossHairIcons(true);
SetPlayerActive(true);
}

void OnEnter()
{
SetEntityPlayerLookAtCallback("candle", "First", true);
AddUseItemCallback("", "key_01", "door_01", "UsedKeyOnDoor", true);
SetSwingDoorLocked("door_01", true, true);
}

void First(string &in asEntity, int alState)
{
AddTimer("", 1, "Msg");
}

void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
AddTimer("", 2, "Warp");
}

void Warp(string &in asTimer)
{
TeleportPlayer("Warp");
AddTimer("", 15, "Murder");
}

void Murder(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "Second", "");
AddTimer("", 2, "WarpPlayer");
}

void WarpPlayer(string &in asTimer)
{
TeleportPlayer("last");
AddTimer("", 10, "Third");
}

void Third(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "Third", "");
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetMessage("Fade", "Last", 3);
FadeOut(0);
PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false);
PlaySoundAtEntity("", "unlock_door.snt", "door_01", 0, false);
RemoveItem("key_01");
AddTimer("",4, "Teleport");
}

void Teleport(string &in asTimer)
{
ChangeMap("02_Chapter_01", "PlayerStartArea_1", "", "");
}



------------

it doesn't work still.. Sad