I was playing with llVolumeDetect. and used following script:
CODE
default {
state_entry() {
llVolumeDetect(TRUE);
}
collision_start(integer num_detected) {
llSay(0, llDetectedName(0) + " collided with me!");
}
collision_end(integer num_detected) {
llSay(0, llDetectedName(0) + " stopped colliding with me!");
}
}
But then took and changed the script to use an if conditional statement:
CODE
list permitted = ["Jesse Barnett"];
default {
state_entry(){
llVolumeDetect(TRUE);
}
collision_start(integer num_detected){
list detected = [llDetectedName(0)];
if(llListFindList(permitted, detected) == -1){
llSay(0, llDetectedName(0) + " you are not on list");
}
}
}
From then on it would not work correctly. Any contact with the cube would casue the script to fire continously in a loop. Created other cubes and new scripts and pasted in even the original top script and still the same result. An infinite loop. Gearsawe was around and he also tried multiple times and always the same.
He went and tried it on main grid and I tried both scripts in Morris. IN all cases the scripts worked fine, BUT STILL WILL NOT IN MILOTEST Island. Very strange, somehow the server became corrupted on just that one function. Have had the same thing happen in the past with other functions or scripts and a server reset fixes it. Haven't tried it there though because it is bug reported and hopefully a bug hunter will try it before the island is reset.
I ran into a similar situation with another script involving phsyics a few times. The vehicle would "bounce" instead of going where it was supposed to. Wasted 10+ hours debugging, trying different things to find that it wokrs fine in main grid or in a different region in beta. Extremely frustrating. O well, on with testing.