![]() |
[CHAOS] Custom Sound & Switch Script - 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: [CHAOS] Custom Sound & Switch Script (/thread-21254.html) Pages:
1
2
|
Custom Sound & Switch Script - FlawlessHappiness - 04-23-2013 I'm working on a Full Conversion. Custom Sounds: Spoiler below!
Switch Script Spoiler below!
RE: Custom Sound & Switch Script - Tomato Cat - 04-23-2013 nvm, that's not the problem. PHP Code: int AhVariable = RandInt(1, 2) Try putting a semicolon there. RE: Custom Sound & Switch Script - FlawlessHappiness - 04-23-2013 I don't see how this: int AhVariable = RandInt(1, 2) is different from this: int rand = RandInt(10,20); except for the semicolon at the end. RE: Custom Sound & Switch Script - Tomato Cat - 04-23-2013 (04-23-2013, 08:33 PM)BeeKayK Wrote: I don't see how this: Variable declarations don't need a semicolon? RE: Custom Sound & Switch Script - FlawlessHappiness - 04-23-2013 (04-23-2013, 08:25 PM)Mr Credits Wrote: nvm, that's not the problem. I tried putting a semicolon there. The map loads, but the sound does not play... Maybe I should just stick with a timer. RE: Custom Sound & Switch Script - FlawlessHappiness - 04-24-2013 Bump, because the sound problem is still a problem RE: Custom Sound & Switch Script - Adrianis - 04-24-2013 2 threads for this problem is a bad idea.... Are you sure the sounds work outside of this switch...case statement? Try playing them when the map loads, so that you know the problem is with the code not the sounds themselves RE: Custom Sound & Switch Script - FlawlessHappiness - 04-24-2013 I only created one thread. I found out i didn't just have a switch problem but also a sound problem The sound problem is not in the switch problem. you see the sound problem in my first post RE: Custom Sound & Switch Script - Adrianis - 04-24-2013 Oh sorry, it's just that you also posted about a problem with the script you were having in the thread over in the dev articles subforum. Try playing the sound files with the PlayMusic function, as that doesn't require the .snt, that might help narrow down the cause of the issue RE: Custom Sound & Switch Script - FlawlessHappiness - 04-24-2013 Ok so that works... It's the .snt file then.. EDIT: Ok i made it work.. I don't know what i did but i just tweaked some of the properties. NOw it's like this: <SOUNDENTITY> <SOUNDS> <Main> <Sound File="breath_loop1" /> </Main> </SOUNDS> <PROPERTIES Volume="1" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="False" Blockable="False" BlockVolumeMul="0.7" Priority="0" /> </SOUNDENTITY> |