I think this idea is sound, but not 100%, hopefully the LSL whizzes can verify this as an idea. K I made a huge indoor rollercoaster type of build, it's huge, about 80m x 60m and some 1500 prims. It's a series of indoor immersive enviornments, with animations sounds, particles, and all sorts of crazy scripted things, which believe it or not is not my question.
My largest complaint when testing this publically was that it took a second ride to enjoy this, because nothing loaded. So I am making a collission prim that will force load as much as I can, located in the middle of the ride kart loading area, I assume that just putting out a prim with the llPreload string is not really going to run, aside from the one time that I rez it. So this is a script I threw together, I am not posting it all because obviously it contains all my UUID's for my sounds, which would be a bit dumb on my part to just release publically. So here goes.
[CODE STARTS HERE]
default
{
state_entry()
{
llVolumeDetect(TRUE);
}
collision_start( integer num_detected )
{
llSetStatus(STATUS_PHANTOM, TRUE);
llPreloadSound("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
;llPreloadSound("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
; }on_rez(integer num)
{
llResetScript();
}
listen(integer number, string name, key id, string message)
{
}
}
[END CODE]
So there are about 25 sounds, all listed by UUID. So just a few questions, I know preloaders are unreliable by nature, but is this even a sound script? I also wondered since I used UUID's, do I need to include the actual WAV files in the prim at all, or is that enough with just the UUID. Also there is no llPreloadtexture command, is there a similar way to force textures to start to preload as well.
I have never made such a device, or such a monster of a build where one was required.
I just have an aversion to using a mass loading prim, I really am liking the collission activation, but is this the best way to do this, or do you need it to actually load to everyone around you? Just curious, I want to avoid lag as much as I can. And if somebody is not going to ride this, they surely don't need 25 sounds to be forced into their client, that seems pointless to me.
