Frictional Games Forum
Can't get sound to work at all! Help plz - Printable Version

+- Frictional Games Forum (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 get sound to work at all! Help plz (/thread-19769.html)



Can't get sound to work at all! Help plz - Armlessninja - 01-02-2013

I have been trying to get this sound script to work I have try messing it around but I just can't get any sounds to work I have follow countless tutorials, looking up common errors, but nothing! I'm not sure is the script or something else. I want to were the player is force to look at something and 2 sounds play plz replay back soon thx Confused

Here is my script:

PHP Code:
void OnStart()
{
wakeUp();
PlayMusic("amb_extra01"true0.50f0.6f0false);
SetEntityCallbackFunc("lantern_1""Grunt_Awaken");
}

void wakeUp () {
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(20);      // Amount of seconds the fade in takes
    
FadeImageTrailTo(22);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"11.0f"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);
}

void Grunt_Awaken(string &in asEntitystring &in type)
{
SetEntityActive("SpotLight_1"true);
SetLevelDoorLocked("LVceller_Door"false);
StartPlayerLookAt("LVceller_Door"5.00f6.00f"");
AddTimer("Stop_Timer"5.00f"Stop");
PlaySoundAtEntity("enabled01""enabled01.snt""Area_2"0false);
PlaySoundAtEntity("react_scare1""react_scare1.snt""Player"0false);
}

void Stop(string &in asTimer)
{
StopPlayerLookAt();




RE: Can't get sound to work at all! Help plz - NaxEla - 01-02-2013

Make sure the sounds have .snt at the end in your script. You're putting .ogg.


RE: Can't get sound to work at all! Help plz - Armlessninja - 01-02-2013

(01-02-2013, 04:20 AM)NaxEla Wrote: Make sure the sounds have .snt at the end in your script. You're putting .ogg.

I know I have try .snt already but still nothing thx anyway Big Grin


RE: Can't get sound to work at all! Help plz - FlawlessHappiness - 01-02-2013

you cannot specify the sounds from the .ogg files... Go to the folder again and check what the .snt files are called. I'm pretty sure it's: enabled.snt and react_scare.snt


RE: Can't get sound to work at all! Help plz - Armlessninja - 01-03-2013

(01-02-2013, 11:46 AM)beecake Wrote: you cannot specify the sounds from the .ogg files... Go to the folder again and check what the .snt files are called. I'm pretty sure it's: enabled.snt and react_scare.snt

THX SO MUCH, it is fixed thx Big Grin