diff options
author | Adam Frisby | 2007-07-05 00:24:40 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-05 00:24:40 +0000 |
commit | c570b107f890180bcaf5e5a030525af04feab1d4 (patch) | |
tree | e7cbc1355c3654307d40f54a97cab32d93e275d3 /OpenSim/Region | |
parent | * Added Java support back into Sugilite (although it still needs a calling ho... (diff) | |
download | opensim-SC_OLD-c570b107f890180bcaf5e5a030525af04feab1d4.zip opensim-SC_OLD-c570b107f890180bcaf5e5a030525af04feab1d4.tar.gz opensim-SC_OLD-c570b107f890180bcaf5e5a030525af04feab1d4.tar.bz2 opensim-SC_OLD-c570b107f890180bcaf5e5a030525af04feab1d4.tar.xz |
* Java engine fully back in Sugilite
Diffstat (limited to 'OpenSim/Region')
5 files changed, 75 insertions, 48 deletions
diff --git a/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj b/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj index 365c7ff..3b86468 100644 --- a/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj +++ b/OpenSim/Region/Environment/OpenSim.Region.Environment.csproj | |||
@@ -1,4 +1,4 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <ProjectType>Local</ProjectType> | 3 | <ProjectType>Local</ProjectType> |
4 | <ProductVersion>8.0.50727</ProductVersion> | 4 | <ProductVersion>8.0.50727</ProductVersion> |
@@ -6,7 +6,8 @@ | |||
6 | <ProjectGuid>{DCBA491C-0000-0000-0000-000000000000}</ProjectGuid> | 6 | <ProjectGuid>{DCBA491C-0000-0000-0000-000000000000}</ProjectGuid> |
7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
9 | <ApplicationIcon></ApplicationIcon> | 9 | <ApplicationIcon> |
10 | </ApplicationIcon> | ||
10 | <AssemblyKeyContainerName> | 11 | <AssemblyKeyContainerName> |
11 | </AssemblyKeyContainerName> | 12 | </AssemblyKeyContainerName> |
12 | <AssemblyName>OpenSim.Region.Environment</AssemblyName> | 13 | <AssemblyName>OpenSim.Region.Environment</AssemblyName> |
@@ -15,9 +16,11 @@ | |||
15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 16 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
16 | <DelaySign>false</DelaySign> | 17 | <DelaySign>false</DelaySign> |
17 | <OutputType>Library</OutputType> | 18 | <OutputType>Library</OutputType> |
18 | <AppDesignerFolder></AppDesignerFolder> | 19 | <AppDesignerFolder> |
20 | </AppDesignerFolder> | ||
19 | <RootNamespace>OpenSim.Region.Environment</RootNamespace> | 21 | <RootNamespace>OpenSim.Region.Environment</RootNamespace> |
20 | <StartupObject></StartupObject> | 22 | <StartupObject> |
23 | </StartupObject> | ||
21 | <FileUpgradeFlags> | 24 | <FileUpgradeFlags> |
22 | </FileUpgradeFlags> | 25 | </FileUpgradeFlags> |
23 | </PropertyGroup> | 26 | </PropertyGroup> |
@@ -28,7 +31,8 @@ | |||
28 | <ConfigurationOverrideFile> | 31 | <ConfigurationOverrideFile> |
29 | </ConfigurationOverrideFile> | 32 | </ConfigurationOverrideFile> |
30 | <DefineConstants>TRACE;DEBUG</DefineConstants> | 33 | <DefineConstants>TRACE;DEBUG</DefineConstants> |
31 | <DocumentationFile></DocumentationFile> | 34 | <DocumentationFile> |
35 | </DocumentationFile> | ||
32 | <DebugSymbols>True</DebugSymbols> | 36 | <DebugSymbols>True</DebugSymbols> |
33 | <FileAlignment>4096</FileAlignment> | 37 | <FileAlignment>4096</FileAlignment> |
34 | <Optimize>False</Optimize> | 38 | <Optimize>False</Optimize> |
@@ -37,7 +41,8 @@ | |||
37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 41 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 42 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
39 | <WarningLevel>4</WarningLevel> | 43 | <WarningLevel>4</WarningLevel> |
40 | <NoWarn></NoWarn> | 44 | <NoWarn> |
45 | </NoWarn> | ||
41 | </PropertyGroup> | 46 | </PropertyGroup> |
42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | 47 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | 48 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
@@ -46,7 +51,8 @@ | |||
46 | <ConfigurationOverrideFile> | 51 | <ConfigurationOverrideFile> |
47 | </ConfigurationOverrideFile> | 52 | </ConfigurationOverrideFile> |
48 | <DefineConstants>TRACE</DefineConstants> | 53 | <DefineConstants>TRACE</DefineConstants> |
49 | <DocumentationFile></DocumentationFile> | 54 | <DocumentationFile> |
55 | </DocumentationFile> | ||
50 | <DebugSymbols>False</DebugSymbols> | 56 | <DebugSymbols>False</DebugSymbols> |
51 | <FileAlignment>4096</FileAlignment> | 57 | <FileAlignment>4096</FileAlignment> |
52 | <Optimize>True</Optimize> | 58 | <Optimize>True</Optimize> |
@@ -55,34 +61,36 @@ | |||
55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 61 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 62 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
57 | <WarningLevel>4</WarningLevel> | 63 | <WarningLevel>4</WarningLevel> |
58 | <NoWarn></NoWarn> | 64 | <NoWarn> |
65 | </NoWarn> | ||
59 | </PropertyGroup> | 66 | </PropertyGroup> |
60 | <ItemGroup> | 67 | <ItemGroup> |
61 | <Reference Include="Axiom.MathLib.dll" > | 68 | <Reference Include="Axiom.MathLib.dll"> |
62 | <HintPath>..\..\..\bin\Axiom.MathLib.dll</HintPath> | 69 | <HintPath>..\..\..\bin\Axiom.MathLib.dll</HintPath> |
63 | <Private>False</Private> | 70 | <Private>False</Private> |
64 | </Reference> | 71 | </Reference> |
65 | <Reference Include="Db4objects.Db4o.dll" > | 72 | <Reference Include="Db4objects.Db4o.dll"> |
66 | <HintPath>..\..\..\bin\Db4objects.Db4o.dll</HintPath> | 73 | <HintPath>..\..\..\bin\Db4objects.Db4o.dll</HintPath> |
67 | <Private>False</Private> | 74 | <Private>False</Private> |
68 | </Reference> | 75 | </Reference> |
69 | <Reference Include="libsecondlife.dll" > | 76 | <Reference Include="libsecondlife.dll"> |
70 | <HintPath>..\..\..\bin\libsecondlife.dll</HintPath> | 77 | <HintPath>..\..\..\bin\libsecondlife.dll</HintPath> |
71 | <Private>False</Private> | 78 | <Private>False</Private> |
72 | </Reference> | 79 | </Reference> |
73 | <Reference Include="Microsoft.JScript" > | 80 | <Reference Include="Microsoft.JScript"> |
74 | <HintPath>Microsoft.JScript.dll</HintPath> | 81 | <HintPath>Microsoft.JScript.dll</HintPath> |
75 | <Private>False</Private> | 82 | <Private>False</Private> |
76 | </Reference> | 83 | </Reference> |
77 | <Reference Include="System" > | 84 | <Reference Include="System"> |
78 | <HintPath>System.dll</HintPath> | 85 | <HintPath>System.dll</HintPath> |
79 | <Private>False</Private> | 86 | <Private>False</Private> |
80 | </Reference> | 87 | </Reference> |
81 | <Reference Include="System.Xml" > | 88 | <Reference Include="System.Data" /> |
89 | <Reference Include="System.Xml"> | ||
82 | <HintPath>System.Xml.dll</HintPath> | 90 | <HintPath>System.Xml.dll</HintPath> |
83 | <Private>False</Private> | 91 | <Private>False</Private> |
84 | </Reference> | 92 | </Reference> |
85 | <Reference Include="XMLRPC.dll" > | 93 | <Reference Include="XMLRPC.dll"> |
86 | <HintPath>..\..\..\bin\XMLRPC.dll</HintPath> | 94 | <HintPath>..\..\..\bin\XMLRPC.dll</HintPath> |
87 | <Private>False</Private> | 95 | <Private>False</Private> |
88 | </Reference> | 96 | </Reference> |
@@ -92,55 +100,55 @@ | |||
92 | <Name>OpenSim.Framework</Name> | 100 | <Name>OpenSim.Framework</Name> |
93 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> | 101 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> |
94 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 102 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
95 | <Private>False</Private> | 103 | <Private>False</Private> |
96 | </ProjectReference> | 104 | </ProjectReference> |
97 | <ProjectReference Include="..\..\Framework\Communications\OpenSim.Framework.Communications.csproj"> | 105 | <ProjectReference Include="..\..\Framework\Communications\OpenSim.Framework.Communications.csproj"> |
98 | <Name>OpenSim.Framework.Communications</Name> | 106 | <Name>OpenSim.Framework.Communications</Name> |
99 | <Project>{CB52B7E7-0000-0000-0000-000000000000}</Project> | 107 | <Project>{CB52B7E7-0000-0000-0000-000000000000}</Project> |
100 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 108 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
101 | <Private>False</Private> | 109 | <Private>False</Private> |
102 | </ProjectReference> | 110 | </ProjectReference> |
103 | <ProjectReference Include="..\..\Framework\Console\OpenSim.Framework.Console.csproj"> | 111 | <ProjectReference Include="..\..\Framework\Console\OpenSim.Framework.Console.csproj"> |
104 | <Name>OpenSim.Framework.Console</Name> | 112 | <Name>OpenSim.Framework.Console</Name> |
105 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> | 113 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> |
106 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 114 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
107 | <Private>False</Private> | 115 | <Private>False</Private> |
108 | </ProjectReference> | 116 | </ProjectReference> |
109 | <ProjectReference Include="..\..\Framework\GenericConfig\Xml\OpenSim.Framework.GenericConfig.Xml.csproj"> | 117 | <ProjectReference Include="..\..\Framework\GenericConfig\Xml\OpenSim.Framework.GenericConfig.Xml.csproj"> |
110 | <Name>OpenSim.Framework.GenericConfig.Xml</Name> | 118 | <Name>OpenSim.Framework.GenericConfig.Xml</Name> |
111 | <Project>{C74E4A30-0000-0000-0000-000000000000}</Project> | 119 | <Project>{C74E4A30-0000-0000-0000-000000000000}</Project> |
112 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 120 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
113 | <Private>False</Private> | 121 | <Private>False</Private> |
114 | </ProjectReference> | 122 | </ProjectReference> |
115 | <ProjectReference Include="..\..\Framework\Servers\OpenSim.Framework.Servers.csproj"> | 123 | <ProjectReference Include="..\..\Framework\Servers\OpenSim.Framework.Servers.csproj"> |
116 | <Name>OpenSim.Framework.Servers</Name> | 124 | <Name>OpenSim.Framework.Servers</Name> |
117 | <Project>{2CC71860-0000-0000-0000-000000000000}</Project> | 125 | <Project>{2CC71860-0000-0000-0000-000000000000}</Project> |
118 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 126 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
119 | <Private>False</Private> | 127 | <Private>False</Private> |
120 | </ProjectReference> | 128 | </ProjectReference> |
121 | <ProjectReference Include="..\Caches\OpenSim.Region.Caches.csproj"> | 129 | <ProjectReference Include="..\Caches\OpenSim.Region.Caches.csproj"> |
122 | <Name>OpenSim.Region.Caches</Name> | 130 | <Name>OpenSim.Region.Caches</Name> |
123 | <Project>{61FCCDB3-0000-0000-0000-000000000000}</Project> | 131 | <Project>{61FCCDB3-0000-0000-0000-000000000000}</Project> |
124 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 132 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
125 | <Private>False</Private> | 133 | <Private>False</Private> |
126 | </ProjectReference> | 134 | </ProjectReference> |
127 | <ProjectReference Include="..\Capabilities\OpenSim.Region.Capabilities.csproj"> | 135 | <ProjectReference Include="..\Capabilities\OpenSim.Region.Capabilities.csproj"> |
128 | <Name>OpenSim.Region.Capabilities</Name> | 136 | <Name>OpenSim.Region.Capabilities</Name> |
129 | <Project>{39038E85-0000-0000-0000-000000000000}</Project> | 137 | <Project>{39038E85-0000-0000-0000-000000000000}</Project> |
130 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 138 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
131 | <Private>False</Private> | 139 | <Private>False</Private> |
132 | </ProjectReference> | 140 | </ProjectReference> |
133 | <ProjectReference Include="..\Physics\Manager\OpenSim.Region.Physics.Manager.csproj"> | 141 | <ProjectReference Include="..\Physics\Manager\OpenSim.Region.Physics.Manager.csproj"> |
134 | <Name>OpenSim.Region.Physics.Manager</Name> | 142 | <Name>OpenSim.Region.Physics.Manager</Name> |
135 | <Project>{F4FF31EB-0000-0000-0000-000000000000}</Project> | 143 | <Project>{F4FF31EB-0000-0000-0000-000000000000}</Project> |
136 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 144 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
137 | <Private>False</Private> | 145 | <Private>False</Private> |
138 | </ProjectReference> | 146 | </ProjectReference> |
139 | <ProjectReference Include="..\Terrain.BasicTerrain\OpenSim.Region.Terrain.BasicTerrain.csproj"> | 147 | <ProjectReference Include="..\Terrain.BasicTerrain\OpenSim.Region.Terrain.BasicTerrain.csproj"> |
140 | <Name>OpenSim.Region.Terrain.BasicTerrain</Name> | 148 | <Name>OpenSim.Region.Terrain.BasicTerrain</Name> |
141 | <Project>{C9E0F891-0000-0000-0000-000000000000}</Project> | 149 | <Project>{C9E0F891-0000-0000-0000-000000000000}</Project> |
142 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 150 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
143 | <Private>False</Private> | 151 | <Private>False</Private> |
144 | </ProjectReference> | 152 | </ProjectReference> |
145 | </ItemGroup> | 153 | </ItemGroup> |
146 | <ItemGroup> | 154 | <ItemGroup> |
@@ -192,6 +200,7 @@ | |||
192 | <Compile Include="Scenes\ScenePresence.cs"> | 200 | <Compile Include="Scenes\ScenePresence.cs"> |
193 | <SubType>Code</SubType> | 201 | <SubType>Code</SubType> |
194 | </Compile> | 202 | </Compile> |
203 | <Compile Include="Scenes\scripting\Engines\JVMEngine\JavaEngine.cs" /> | ||
195 | <Compile Include="Scenes\scripting\Script.cs"> | 204 | <Compile Include="Scenes\scripting\Script.cs"> |
196 | <SubType>Code</SubType> | 205 | <SubType>Code</SubType> |
197 | </Compile> | 206 | </Compile> |
@@ -281,4 +290,4 @@ | |||
281 | <PostBuildEvent> | 290 | <PostBuildEvent> |
282 | </PostBuildEvent> | 291 | </PostBuildEvent> |
283 | </PropertyGroup> | 292 | </PropertyGroup> |
284 | </Project> | 293 | </Project> \ No newline at end of file |
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/JavaEngine.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/JavaEngine.cs new file mode 100644 index 0000000..1773156 --- /dev/null +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/JavaEngine.cs | |||
@@ -0,0 +1,29 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Region.Environment.Scripting; | ||
6 | using OpenSim.Scripting.EmbeddedJVM; | ||
7 | |||
8 | namespace OpenSim.Region.Environment.Scripting | ||
9 | { | ||
10 | public class JavaEngine : IScriptCompiler | ||
11 | { | ||
12 | public string FileExt() | ||
13 | { | ||
14 | return ".java"; | ||
15 | } | ||
16 | |||
17 | public Dictionary<string, IScript> compile(string filename) | ||
18 | { | ||
19 | JVMScript script = new JVMScript(); | ||
20 | Dictionary<string, IScript> returns = new Dictionary<string, IScript>(); | ||
21 | |||
22 | script.LoadScript(filename); | ||
23 | |||
24 | returns.Add(filename, script); | ||
25 | |||
26 | return returns; | ||
27 | } | ||
28 | } | ||
29 | } | ||
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/OpenSimJVM.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/OpenSimJVM.cs index 7ed734b..aaa1609 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/OpenSimJVM.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/OpenSimJVM.cs | |||
@@ -38,7 +38,7 @@ using OpenSim.Region.Environment.Scenes; | |||
38 | 38 | ||
39 | namespace OpenSim.Scripting.EmbeddedJVM | 39 | namespace OpenSim.Scripting.EmbeddedJVM |
40 | { | 40 | { |
41 | public class OpenSimJVM : IScript | 41 | public class JVMScript : IScript |
42 | { | 42 | { |
43 | private List<Thread> _threads = new List<Thread>(); | 43 | private List<Thread> _threads = new List<Thread>(); |
44 | private BlockingQueue<CompileInfo> CompileScripts = new BlockingQueue<CompileInfo>(); | 44 | private BlockingQueue<CompileInfo> CompileScripts = new BlockingQueue<CompileInfo>(); |
@@ -47,7 +47,7 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
47 | 47 | ||
48 | ScriptInfo scriptInfo; | 48 | ScriptInfo scriptInfo; |
49 | 49 | ||
50 | public OpenSimJVM() | 50 | public JVMScript() |
51 | { | 51 | { |
52 | 52 | ||
53 | } | 53 | } |
@@ -55,37 +55,27 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
55 | public void Initialise(ScriptInfo info) | 55 | public void Initialise(ScriptInfo info) |
56 | { | 56 | { |
57 | scriptInfo = info; | 57 | scriptInfo = info; |
58 | } | ||
59 | |||
60 | public string getName() | ||
61 | { | ||
62 | return "JVM Scripting Engine"; | ||
63 | } | ||
64 | 58 | ||
65 | public bool Init(Scene world) | ||
66 | { | ||
67 | Console.WriteLine("Creating OpenSim JVM scripting engine"); | ||
68 | _mainMemory = new MainMemory(); | 59 | _mainMemory = new MainMemory(); |
69 | Thread.GlobalMemory = this._mainMemory; | 60 | Thread.GlobalMemory = this._mainMemory; |
70 | Thread.World = world; | 61 | Thread.World = info.world; |
71 | compileThread = new System.Threading.Thread(new ThreadStart(CompileScript)); | 62 | compileThread = new System.Threading.Thread(new ThreadStart(CompileScript)); |
72 | compileThread.IsBackground = true; | 63 | compileThread.IsBackground = true; |
73 | compileThread.Start(); | 64 | compileThread.Start(); |
74 | return true; | 65 | |
75 | } | 66 | } |
76 | 67 | ||
77 | public string GetName() | 68 | public string getName() |
78 | { | 69 | { |
79 | return "OpenSimJVM"; | 70 | return "JVM Scripting Engine"; |
80 | } | 71 | } |
81 | 72 | ||
82 | public void LoadScript(string script, string scriptName, uint entityID) | 73 | public void LoadScript(string script) |
83 | { | 74 | { |
84 | Console.WriteLine("OpenSimJVM - loading new script: " + scriptName); | 75 | Console.WriteLine("OpenSimJVM - loading new script: " + script); |
85 | CompileInfo comp = new CompileInfo(); | 76 | CompileInfo comp = new CompileInfo(); |
86 | comp.entityId = entityID; | ||
87 | comp.script = script; | 77 | comp.script = script; |
88 | comp.scriptName = scriptName; | 78 | comp.scriptName = script; |
89 | this.CompileScripts.Enqueue(comp); | 79 | this.CompileScripts.Enqueue(comp); |
90 | } | 80 | } |
91 | 81 | ||
@@ -96,7 +86,6 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
96 | CompileInfo comp = this.CompileScripts.Dequeue(); | 86 | CompileInfo comp = this.CompileScripts.Dequeue(); |
97 | string script = comp.script; | 87 | string script = comp.script; |
98 | string scriptName = comp.scriptName; | 88 | string scriptName = comp.scriptName; |
99 | uint entityID = comp.entityId; | ||
100 | try | 89 | try |
101 | { | 90 | { |
102 | //need to compile the script into a java class file | 91 | //need to compile the script into a java class file |
@@ -127,7 +116,6 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
127 | 116 | ||
128 | Thread newThread = new Thread(); | 117 | Thread newThread = new Thread(); |
129 | this._threads.Add(newThread); | 118 | this._threads.Add(newThread); |
130 | newThread.EntityId = entityID; | ||
131 | newThread.currentClass = class1; | 119 | newThread.currentClass = class1; |
132 | newThread.scriptInfo = scriptInfo; | 120 | newThread.scriptInfo = scriptInfo; |
133 | 121 | ||
@@ -165,7 +153,6 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
165 | { | 153 | { |
166 | public string script; | 154 | public string script; |
167 | public string scriptName; | 155 | public string scriptName; |
168 | public uint entityId; | ||
169 | 156 | ||
170 | public CompileInfo() | 157 | public CompileInfo() |
171 | { | 158 | { |
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/Thread.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/Thread.cs index 806f833..3993436 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/Thread.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/Thread.cs | |||
@@ -50,7 +50,6 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
50 | private StackFrame currentFrame; | 50 | private StackFrame currentFrame; |
51 | public int excutionCounter = 0; | 51 | public int excutionCounter = 0; |
52 | public bool running = false; | 52 | public bool running = false; |
53 | public uint EntityId = 0; | ||
54 | 53 | ||
55 | public ScriptInfo scriptInfo; | 54 | public ScriptInfo scriptInfo; |
56 | 55 | ||
diff --git a/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs b/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs index 250a4f0..153f4d7 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs | |||
@@ -59,6 +59,9 @@ namespace OpenSim.Region.Environment.Scripting | |||
59 | 59 | ||
60 | JScriptEngine jscriptCompiler = new JScriptEngine(); | 60 | JScriptEngine jscriptCompiler = new JScriptEngine(); |
61 | compilers.Add(jscriptCompiler.FileExt(), jscriptCompiler); | 61 | compilers.Add(jscriptCompiler.FileExt(), jscriptCompiler); |
62 | |||
63 | JavaEngine javaCompiler = new JavaEngine(); | ||
64 | compilers.Add(javaCompiler.FileExt(), javaCompiler); | ||
62 | } | 65 | } |
63 | 66 | ||
64 | public void Compile(string filename) | 67 | public void Compile(string filename) |