Now loading "OpenSim.Region.ScriptEngine.Common.dll" into scripts AppDomain and "using OpenSim.Region.ScriptEngine.Common;" at start of script when converted from LSL. Vectors and rotations now works.
parent
12378312d5
commit
ed68a3894c
|
@ -97,10 +97,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
ads.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory;
|
ads.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory;
|
||||||
ads.DisallowBindingRedirects = false;
|
ads.DisallowBindingRedirects = false;
|
||||||
ads.DisallowCodeDownload = true;
|
ads.DisallowCodeDownload = true;
|
||||||
|
ads.LoaderOptimization = LoaderOptimization.MultiDomain; // Sounds good ;)
|
||||||
ads.ShadowCopyFiles = "true"; // Enabled shadowing
|
ads.ShadowCopyFiles = "true"; // Enabled shadowing
|
||||||
ads.ConfigurationFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
|
ads.ConfigurationFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
|
||||||
|
|
||||||
AppDomain AD = AppDomain.CreateDomain("ScriptAppDomain_" + AppDomainNameCount, null, ads);
|
AppDomain AD = AppDomain.CreateDomain("ScriptAppDomain_" + AppDomainNameCount, null, ads);
|
||||||
|
Console.WriteLine("Loading: " + AssemblyName.GetAssemblyName("OpenSim.Region.ScriptEngine.Common.dll").ToString());
|
||||||
|
AD.Load(AssemblyName.GetAssemblyName("OpenSim.Region.ScriptEngine.Common.dll"));
|
||||||
|
|
||||||
// Return the new AppDomain
|
// Return the new AppDomain
|
||||||
return AD;
|
return AD;
|
||||||
|
|
|
@ -227,7 +227,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
|
|
||||||
// Add namespace, class name and inheritance
|
// Add namespace, class name and inheritance
|
||||||
|
|
||||||
Return = "";// +
|
Return = "" +
|
||||||
|
"using OpenSim.Region.ScriptEngine.Common;";
|
||||||
//"using System; " +
|
//"using System; " +
|
||||||
//"using System.Collections.Generic; " +
|
//"using System.Collections.Generic; " +
|
||||||
//"using System.Text; " +
|
//"using System.Text; " +
|
||||||
|
|
Loading…
Reference in New Issue