Scripting issues: sounds & other. - 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: Scripting issues: sounds & other. (/thread-10064.html) Pages:
1
2
|
Scripting issues: sounds & other. - Enexeus - 08-30-2011 Hey! So I've picked up scripting and oh boy, do I love it! (no sarcasm intended) Anyway, I do have a problem. I have a script for my map (for which I partly copy pasted some other scripts and changed stuff.) But anyway, here is what I have so far: Code: //////////////////////////// Some sounds won't play, for example the scare_baby one, the piano one, the wind one, ... Some others do play, such as the sounds with the doorslam. Now, why won't it work? I've looked at the .snt file of e.g. the pianosound and it has a big range and 1,00 sound volume. Loud enough for me to hear it, right? Another thing, in the waking up script the screen starts shaking heavily. My starterarea box is on the ground, not in any object. Any thoughts? Thanks so much! -Enexeus RE: Scripting issues: sounds & other. - ObsidianLegion - 08-30-2011 You're best putting the sounds into the story using the editor. Have you done that? RE: Scripting issues: sounds & other. - Rapture - 08-30-2011 (08-30-2011, 07:33 PM)Enexeus Wrote: Some sounds won't play, for example the scare_baby one, the piano one, the wind one, ... Code: void OnPickup(string &in asEntity, string &in type) I looked into the sounds > general > "general_piano01.snt" is probally the one you want. So check up on the rest of them and make sure their names match up correctly. (08-30-2011, 07:33 PM)Enexeus Wrote: Another thing, in the waking up script the screen starts shaking heavily. My starterarea box is on the ground, not in any object.Didn't see any StartScreenShake function in their. Not sure if their is another function that shakes the screen though. RE: Scripting issues: sounds & other. - Enexeus - 08-30-2011 (08-30-2011, 08:12 PM)Lolnesia09 Wrote: You're best putting the sounds into the story using the editor. Have you done that? No I haven't, I'll look into that. Thanks! (08-30-2011, 08:13 PM)Rapture Wrote: Didn't see any StartScreenShake function in their. Not sure if their is another function that shakes the screen though. After screwing around with the playerstartarea I've been able to reduce the shaking a lot. I have no idea why. Also, it indeed was a sound I imported myself. I'll get on it straight away, guys! Thanks again! Update: It didn't work. I also added the lines: SetEntityActive("windblow_1", true); etc to make it work but to no avail. The screen shaking is also back. :/ Anyone? Btw, should I be linking to the .nst or the .ogg file? RE: Scripting issues: sounds & other. - ObsidianLegion - 08-30-2011 (08-30-2011, 08:21 PM)Enexeus Wrote:(08-30-2011, 08:12 PM)Lolnesia09 Wrote: You're best putting the sounds into the story using the editor. Have you done that? Link it to .ogg just to be safe. Have you added your sounds into your customs file in your Amnesia/custom_stories/YourCustom/sounds that may help. post your .snt up too. I know how to deal with those. RE: Scripting issues: sounds & other. - Enexeus - 08-30-2011 I have indeed put the sound in that file. .snt file: Code: <SOUNDENTITY> Thanks for sticking with me. RE: Scripting issues: sounds & other. - ObsidianLegion - 08-30-2011 (08-30-2011, 09:07 PM)Enexeus Wrote: I have indeed put the sound in that file. Try upping the Volume to 60. If i'm not mistaken it's out of 100. Like a master volume control. Set a min distance to 1. Set use3D to true. See if that works. RE: Scripting issues: sounds & other. - Enexeus - 08-30-2011 (08-30-2011, 09:20 PM)Lolnesia09 Wrote: Try upping the Volume to 60. If i'm not mistaken it's out of 100. Like a master volume control. Set a min distance to 1. Set use3D to true. See if that works. It didn't work. :/ Thanks for the idea though. RE: Scripting issues: sounds & other. - ObsidianLegion - 08-30-2011 (08-30-2011, 09:31 PM)Enexeus Wrote:(08-30-2011, 09:20 PM)Lolnesia09 Wrote: Try upping the Volume to 60. If i'm not mistaken it's out of 100. Like a master volume control. Set a min distance to 1. Set use3D to true. See if that works. Did you add them in the editor using the sound tool? RE: Scripting issues: sounds & other. - Enexeus - 08-30-2011 (08-30-2011, 09:39 PM)Lolnesia09 Wrote:(08-30-2011, 09:31 PM)Enexeus Wrote:(08-30-2011, 09:20 PM)Lolnesia09 Wrote: Try upping the Volume to 60. If i'm not mistaken it's out of 100. Like a master volume control. Set a min distance to 1. Set use3D to true. See if that works. I have, problem is, the sounds play as soon as the map has launched instead of when I pick up the key. I've made the sound inactive on the map editor and added this line of script at the right place: SetEntityActive("pianosound_1.snt", true); -Enexeus |