Scripts / Repeat sound

Author
Message
The Proost
17
Years of Service
User Offline
Joined: 23rd Feb 2007
Location: Belgium
Posted: 16th Apr 2014 18:09
Hi all,



Is it possible to repeat sound? I am using some birds and winds sounds to make the level more dynamic, but after some time it ends... Anyone having a idea how to keep it going? In the old versions we had the repeatsound script, i guess we only need to change a small line in the soundinzone.lua....



Thanks
almightyhood
11
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 16th Apr 2014 18:11 Edited at: 16th Apr 2014 18:12
ok its just been introduced to reloaded so, but here is how. add "musicinzone" to the soundmarker "main" then place the sound marker over the top of the start marker. this repeats ambient sounds over and over seamlessly. tested it myself today.

evga GeForce gtx 750 ti boost2.0 2gb gddr5. win 8.1 quad core 4gb ram.
PM
The Proost
17
Years of Service
User Offline
Joined: 23rd Feb 2007
Location: Belgium
Posted: 16th Apr 2014 18:30
Thanks almighyhood, how could i missed this anyway

almightyhood
11
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 16th Apr 2014 18:34
it only just got added to reloaded for this beta so don't feel bad, I had to find out from another thread in main forum section lol, been waiting for repeat sounds for ages myself glad lee added this tbh...

evga GeForce gtx 750 ti boost2.0 2gb gddr5. win 8.1 quad core 4gb ram.
PM
BarZaTTacKS
10
Years of Service
User Offline
Joined: 3rd Feb 2014
Location:
Posted: 29th Apr 2014 02:37
I have a similar question with a minor difference. I would like to have a sound play every time a player enters zone. It would be nice if the file stopped when they left the zone or lowered because of their distance. Can we do this at the moment?
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 29th Apr 2014 07:19 Edited at: 29th Apr 2014 07:19
Could in FPSSC Classic, cept the volumetric part. I'm assuming we could do this with LUA in time.



I would also like the ability to pan sounds from right and left based on where they are emitting from.

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce 420 GT
BarZaTTacKS
10
Years of Service
User Offline
Joined: 3rd Feb 2014
Location:
Posted: 10th Jun 2014 21:49 Edited at: 10th Jun 2014 21:49
How is anyone properly doing this?(have a sound repeat in a zone and not the whole level) I have searched the forums but I think I am missing it!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Jun 2014 23:31
tbh i thought the sound zone would do this by default but apparently not (yet at least)



life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
BarZaTTacKS
10
Years of Service
User Offline
Joined: 3rd Feb 2014
Location:
Posted: 11th Jun 2014 15:24
Awesome that works, next issue is that I cannot start in the sound zone unless it will continue to play the whole time.
PM
almightyhood
11
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 11th Jun 2014 15:31
the sound plays all the time if set to musicinzone, but I think it only plays for a short time if its soundinzone even if your in the zone or not. hope that helps m8. as for making it louder or more quiet I have no clue wishi did lol..

evga GeForce gtx 750 ti boost2.0 2gb gddr5. win 8.1 quad core 4gb ram.
PM
Sparrowhawk
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 14th Jun 2014 16:28 Edited at: 14th Jun 2014 16:35
smallg, I can't get your script to work, it makes the sounds loop, but for ever even after I leave the zone.



EDIT:

Actually it works now, anyway to make it fade the sound out and in as you leave and enter? (Unrelated to distance)

Passmark detects an incorrect GPU! I have 2x FirePro D500's 3GB VRAM each

smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jun 2014 21:31 Edited at: 15th Jun 2014 01:17
Quote: "Actually it works now, anyway to make it fade the sound out and in as you leave and enter? (Unrelated to distance)"




not 100% sure i needed all those arrays but it works so whatever

personally i find anything below that min_sound is too quiet to hear but you can adjust it easily - added comments to the settings





life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Sparrowhawk
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 14th Jun 2014 21:34
Thanks very much I'll give this a try now

Passmark detects an incorrect GPU! I have 2x FirePro D500's 3GB VRAM each

Sparrowhawk
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 14th Jun 2014 22:35
Unfortunately I cannot get the script to work in test level, it does this:


I haven't changed anything other than the script name so the file name and the lines:

become:


This is so later on I don't overwrite it with the stock script by accident. Any ideas on the cause of that error?

Passmark detects an incorrect GPU! I have 2x FirePro D500's 3GB VRAM each

smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jun 2014 23:18
haha yh sorry i forgot to remove my prompt i was using for testing
it's at the bottom

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Sparrowhawk
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 15th Jun 2014 00:21
Cheers

Well it was working fine, and then it stopped without me changing anything at all. I think its the zones being dodgy. I quit haha.

My level now has these bugs:
Sound zones are haywire
AI walk off and through water
AI walk through solid items (rocks etc.)
AI usually wait 10 seconds between shots at the player
Win zone doesn't end the game
Running out of lives doesn't end the game

Other than that...all is good. Personally I think a lot of these are bugs in the latest beta, I'll note this in my submission and hope the new sound system helps. The behaviour shouldn't change with doing nothing...

Passmark detects an incorrect GPU! I have 2x FirePro D500's 3GB VRAM each

Sparrowhawk
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 15th Jun 2014 03:35
Thought I'd give it another go, but the zone literally never stops playing the sound. It fades in really nicely, but then plays for ever. I know the same script faded out properly before... so...

I'm going to build a final version and see if that acts differently. If not I'll try a re-install. Must be a way around this somehow...

Passmark detects an incorrect GPU! I have 2x FirePro D500's 3GB VRAM each

smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Jun 2014 18:58
there's definitely an issue with SetSoundVolume(v), because it seems to control all sounds - i can use the above to make a sound fade when outside of a zone but if i enter a new sound zone the old sound will also increase in volume (but will stop correctly as the variable is still going down while the new sound continues to play)

not sure why they dont stop for u now, i just tested with 4 zones and apart from the volume everything worked fine

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-12-22 05:52:19
Your offset time is: 2024-12-22 05:52:19