ID:270383
 
In my game, there's a police car roaming around the city and you can hear the sirens. I want it so you don't have to be in view of the police car to hear the sirens. I heard this can be achieved with the new sound features implemented in BYOND V3.5. I found Shadowdarke's soundtool library but not having a clue how it works. So, could anyone provide an example where I can build off from, or explain how I could do this. (Try to make as simple as possible).

ALSO:

My game's RSC File is about 10 MB due to the quantity of sound effects I have in my game, which makes it real laggy. My friend told me that you could pre-load the sounds, so they don't download at runtime and reduce the size of the RSC File. The fact is I don't know how to do this with certainty, so I need some clarification. Or if there's another solution, please post.

Thanks in Advance.
Sharingan_User wrote:
pre-load the sounds, so they don't download at runtime and reduce the size of the RSC File.


preload_rsc Look that up in the DM Reference.
In response to Crzylme
I have. But I'm not sure how to apply it. For sound effects do you do something like:

client/preload_rsc = "Sounds/Beep.wav"
In response to Sharingan_User
Sharingan_User wrote:
I have. But I'm not sure how to apply it. For sound effects do you do something like:

> client/preload_rsc = "Sounds/Beep.wav"
>


<code>The three possible settings are: 0 - do not preload any resources 1 - preload compiled-in resources only 2 - preload all resources including those uploaded by players URL - preload resources from specified file </code>

Could the reference be anymore clear?
In response to Cheetoz
Just a suggestion, OGG is more compact than WAVS are (yes?). Convert your sounds to OGG and you'll shorten the file size significantly. Also, you might want to try Clean Compiling some time.
In response to CaptFalcon33035
I never knew what Clean Compile does so I never took any risks. But now when I tried it it reduced my RSC File to 1,000 KB O_O. Also how do you convert sounds into OGG, never heard of it before. I also have about 8 png images, can the image size go any smaller without losing quality?
In response to Sharingan_User
PNG is pretty much the most compressed image format BYOND can use right now. If you can export those images to a DMI (if the DMI gets any smaller) you may want to do that. And, to convert it, you'll have to find a conversion program on the internet.