• 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.
Issue Details (XML | Word | Printable)

Key: SVC-1770
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Scouse Linden
Reporter: Siann Beck
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono: Key value assignment with global declare causes script to not run

Created: 07/Mar/08 12:59 PM   Updated: 18/Mar/08 02:23 AM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: Mono Beta

Issue Links:
Relates
 

Linden Lab Issue ID: DEV-11646
Linden Lab Internal Branch: mono-based-on-1-19-1-server-81640


 Description  « Hide
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.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
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] "


Siann Beck added a comment - 12/Mar/08 02:46 PM
Yes, that's SVC-1772

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.