Frictional Games Forum (read-only)
sound wont play -.- - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: sound wont play -.- (/thread-6195.html)

Pages: 1 2


sound wont play -.- - sassix - 01-13-2011

yo,

my sound wont play and i dont know why

Quote:void delaytimer1(string &in asTimer)
{
SetSwingDoorClosed("mansion_1", true, true);
.....
PlaySoundAtEntity("", "sounds\breath.ogg", "Player", 0, true);
.....
StartPlayerLookAt("mansion_1", 5,5, "");
AddTimer("delay_timer", 4, "delaytimer2");
}
the dots are just for show u which script wont work.

i tryed it in different ways
sounds\breath.ogg
sounds/breath.ogg
sounds\breath
sounds/breath
breath
breath.ogg

The sound is in my costum story folder ( custom_stories/paranoid/sounds )
the sounds rent original i downloaded them and converted to .ogg.
can someone help me :S ?


RE: sound wont play -.- - xiphirx - 01-13-2011

try

custom_stories\paranoid\sounds\breath.ogg


RE: sound wont play -.- - sassix - 01-13-2011

(01-13-2011, 08:12 PM)xiphirx Wrote: try

custom_stories\paranoid\sounds\breath.ogg

nope , still not working ._.


RE: sound wont play -.- - Tanshaydar - 01-13-2011

Wait, you have to show an entity if you want to play the sound on entity, like this:
Code:
PlaySoundAtEntity("Breath", "breath.ogg","Player", 0.5f, true);

Or, use this:

Code:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);



RE: sound wont play -.- - sassix - 01-13-2011

(01-13-2011, 08:41 PM)Tanshaydar Wrote: Wait, you have to show an entity if you want to play the sound on entity, like this:
Code:
PlaySoundAtEntity("Breath", "breath.ogg","Player", 0.5f, true);

Or, use this:

Code:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

na, i tryed it onstar() aswell but just dont work Sad


RE: sound wont play -.- - Tanshaydar - 01-13-2011

If you want to use it as an ambiance sound, just use it this way:
Code:
PlayMusic("white_intro", false, 0.6f, 1.0f, 0, false);

white_intro is the name of the music that I use. Don't add .ogg to the end. 0.6 is volume, you can change it.
Place your music into custom_stories\your mod\music


RE: sound wont play -.- - sassix - 01-13-2011

(01-13-2011, 08:51 PM)Tanshaydar Wrote: If you want to use it as an ambiance sound, just use it this way:
Code:
PlayMusic("white_intro", false, 0.6f, 1.0f, 0, false);

white_intro is the name of the music that I use. Don't add .ogg to the end. 0.6 is volume, you can change it.
Place your music into custom_stories\your mod\music

awsome , this works fine for me. Thx mister !!


RE: sound wont play -.- - Tottel - 01-13-2011

There's no need to define the path to your sound. It will automatically check in the 'sounds' folder in your custom story folder.

EDIT: What Tanshaydar just said.. :/


RE: sound wont play -.- - sassix - 01-14-2011

(01-13-2011, 09:47 PM)Tottel Wrote: There's no need to define the path to your sound. It will automatically check in the 'sounds' folder in your custom story folder.

EDIT: What Tanshaydar just said.. :/

y i know, but it wont play this fucking sound, the music script works fine, but i need 2 sounds at the same time so i cant use music script there , at least i need one "playsoundatentity" script Sad


RE: sound wont play -.- - Tanshaydar - 01-14-2011

It depends on what you want to do. Two music at the same time wouldn't fit for ambiance music, if they both are ambiance sounds. But you can place the music on another entity.

For the entity sounds, you should place your sounds into custom_stories\your mod\sound folder. And you should name it in the code piece.