All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Assigning a value to a key in a global declare prevents the script from executing at all:
key TheAnyKey = NULL_KEY;
default
{
state_entry() {
llOwnerSay("Hello world!");
}
}
This occurs with NULL_KEY or any key value.
Crystal Falcon added a comment - 12/Mar/08 02:25 PM I just saw this too, plus if you try this...
key creator;
default
{
state_entry()
{
creator = "e8fddee7-6c5e-4e78-9b69-482c83f22500";
}
}
You get this error in chat...
"System.InvalidProgramException: Invalid IL code in LSL_3ad20123_c4bb_52c3_a0da_90bdaa1f54af:defaultstate_entry (): IL_0006: stfld 0x04000001
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] "
Whoops, didn't spot that Siann, was ready to make a new one when I saw this, which, I found with today's Mono update works for me in both in the global assign and that workaround I tried.
Crystal Falcon added a comment - 13/Mar/08 09:17 AM Whoops, didn't spot that Siann, was ready to make a new one when I saw this, which, I found with today's Mono update works for me in both in the global assign and that workaround I tried.
key creator;
default
{ creator = "e8fddee7-6c5e-4e78-9b69-482c83f22500"; }{
state_entry()
}
You get this error in chat...
"System.InvalidProgramException: Invalid IL code in LSL_3ad20123_c4bb_52c3_a0da_90bdaa1f54af:defaultstate_entry (): IL_0006: stfld 0x04000001
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] "