Mantis Bug Tracker

View Revisions: Issue #8407 All Revisions ] Back to Issue ]
Summary 0008407: YEngine (and possibly XEngine) fails to compile some pre-existing scripts with null error
Revision 2018-11-12 17:48 by mewtwo0641
Description On some preexisting scripts YEngine (and possibly XEngine) fails to compile giving an error of "Value can not be null." It only seems to happen if there is nothing on line 0 of a script. Traditionally I have avoided using line 0 at all because of problems in the past when OpenSim had support to use C# and Java as a language in scripts and line 0 was used to tell the compiler which language we were using.

So basically most of my scripts look something like this:

0 (There is nothing at all on this line; Blank space)
1 //Some comments
2 //Maybe some more comments
3 Some variables
4
5 default
6 {
7
8 }

The affected scripts compile and work just fine on XEngine and as far as I can tell YEngine has only had this problem very very recently (In the past few days) and prior to a few days ago those scripts have been working just fine in YEngine.

Edit: This may not just be an issue with YEngine... When I switched back to XEngine (Being sure to remove my ScriptEngines directory contents first of course) I got a lot of these type errors:

Object: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llDialog(System.String, System.String, list, Int32)'.

   at SecondLife.Script.showMenu(LSLString message, LSLString av)

   at SecondLife.Script.handleTouch(LSLString av)

   at SecondLife.Script.default_event_touch_start(LSLInteger total_number)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at OpenSim.Region.Scr
Revision 2018-11-12 17:47 by mewtwo0641
Description On some preexisting scripts YEngine (and possibly XEngine) fails to compile giving an error of "Value can not be null." It only seems to happen if there is nothing on line 0 of a script. Traditionally I have avoided using line 0 at all because of problems in the past when OpenSim had support to use C# and Java as a language in scripts and line 0 was used to tell the compiler which language we were using.

So basically most of my scripts look something like this:

0 (There is nothing at all on this line; Blank space)
1 //Some comments
2 //Maybe some more comments
3 Some variables
4
5 default
6 {
7
8 }

The affected scripts compile and work just fine on XEngine and as far as I can tell YEngine has only had this problem very very recently (In the past few days) and prior to a few days ago those scripts have been working just fine in YEngine.

Edit: This may not just be an issue with XEngine... When I switched back to XEngine (Being sure to remove my ScriptEngines directory contents first of course) I got a lot of these type errors:

Object: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llDialog(System.String, System.String, list, Int32)'.

   at SecondLife.Script.showMenu(LSLString message, LSLString av)

   at SecondLife.Script.handleTouch(LSLString av)

   at SecondLife.Script.default_event_touch_start(LSLInteger total_number)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at OpenSim.Region.Scr
Revision 2018-11-12 17:40 by mewtwo0641
Description On some preexisting scripts (That were written on XEngine) YEngine fails to compile giving an error of "Value can not be null." It only seems to happen if there is nothing on line 0 of a script. Traditionally I have avoided using line 0 at all because of problems in the past when OpenSim had support to use C# and Java as a language in scripts and line 0 was used to tell the compiler which language we were using.

So basically most of my scripts look something like this:

0 (There is nothing at all on this line; Blank space)
1 //Some comments
2 //Maybe some more comments
3 Some variables
4
5 default
6 {
7
8 }

The affected scripts compile and work just fine on XEngine and as far as I can tell YEngine has only had this problem very very recently (In the past few days) and prior to a few days ago those scripts have been working just fine in YEngine.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker