in-world run-time error-message no-w con-tains function-name.
parent
ebb0099816
commit
83d5df3979
|
@ -13,12 +13,12 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
|||
|
||||
public LSL2CSConverter()
|
||||
{
|
||||
|
||||
// Only the types we need to convert
|
||||
DataTypes.Add("void", "void");
|
||||
DataTypes.Add("integer", "System.Int32");
|
||||
DataTypes.Add("float", "System.Double");
|
||||
DataTypes.Add("integer", "int");
|
||||
DataTypes.Add("float", "double");
|
||||
DataTypes.Add("string", "string");
|
||||
DataTypes.Add("key", "System.String");
|
||||
DataTypes.Add("key", "string");
|
||||
DataTypes.Add("vector", "LSL_Types.Vector3");
|
||||
DataTypes.Add("rotation", "LSL_Types.Quaternion");
|
||||
DataTypes.Add("list", "list");
|
||||
|
@ -230,13 +230,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
|||
|
||||
// Add namespace, class name and inheritance
|
||||
|
||||
Return = "" +
|
||||
"using System; " +
|
||||
"using System.Collections.Generic; " +
|
||||
"using System.Text; " +
|
||||
"using OpenSim.Region.ScriptEngine.Common; " +
|
||||
"using integer = System.Int32; " +
|
||||
"using key = System.String; ";
|
||||
Return = "";// +
|
||||
//"using System; " +
|
||||
//"using System.Collections.Generic; " +
|
||||
//"using System.Text; " +
|
||||
//"using OpenSim.Region.ScriptEngine.Common; " +
|
||||
//"using integer = System.Int32; " +
|
||||
//"using key = System.String; ";
|
||||
|
||||
//// Make a Using out of DataTypes
|
||||
//// Using integer = System.Int32;
|
||||
|
|
|
@ -6,6 +6,10 @@ using OpenSim.Region.ScriptEngine.Common;
|
|||
using System.Threading;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Remoting.Lifetime;
|
||||
using integer = System.Int32;
|
||||
using key = System.String;
|
||||
using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3;
|
||||
using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
{
|
||||
|
|
|
@ -180,7 +180,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
|||
catch (Exception e)
|
||||
{
|
||||
// DISPLAY ERROR INWORLD
|
||||
string text = "Error executing script:\r\n";
|
||||
string text = "Error executing script function \"" + QIS.FunctionName + "\":\r\n";
|
||||
if (e.InnerException != null)
|
||||
{ // Send inner exception
|
||||
text += e.InnerException.Message.ToString();
|
||||
|
|
Loading…
Reference in New Issue