aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs
diff options
context:
space:
mode:
authorMW2007-04-11 12:13:21 +0000
committerMW2007-04-11 12:13:21 +0000
commit5ad6d5a939fb7bf0fdfdc6925d4afed306e08641 (patch)
tree8bcf302b69297a27ab254d087f73fe88fecab464 /OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs
parentChanged so that a bin\ScriptEngines\ directory will be searched for scripting... (diff)
downloadopensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.zip
opensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.gz
opensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.bz2
opensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.xz
First basic test script now works in the jvm scripting engine.
For it to work you need to have a java sdk installed and the javac.exe somewhere in the environment Path variable. Then To test, copy the text from bin/script1.text into a note card and then add that note to a prim.
Diffstat (limited to '')
-rw-r--r--OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs b/OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs
index e025293..dc3402e 100644
--- a/OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs
+++ b/OpenSim.Scripting.EmbeddedJVM/InterpreterMethods.cs
@@ -71,11 +71,12 @@ namespace OpenSim.Scripting.EmbeddedJVM
71 BaseType bs1 = this._mThread.currentFrame.OpStack.Pop(); 71 BaseType bs1 = this._mThread.currentFrame.OpStack.Pop();
72 if (bs1 is Int) 72 if (bs1 is Int)
73 { 73 {
74 Console.WriteLine("get entity pos for " + ((Int)bs1).mValue); 74 //Console.WriteLine("get entity pos for " + ((Int)bs1).mValue);
75 //should get the position of the entity from the IScriptAPI 75 //should get the position of the entity from the IScriptAPI
76 OSVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue); 76 OSVector3 vec3 = Thread.OpenSimScriptAPI.GetEntityPosition((uint)((Int)bs1).mValue);
77 Float pos = new Float(); 77 Float pos = new Float();
78 pos.mValue = vec3.X; 78 pos.mValue = vec3.X;
79 // Console.WriteLine("returned x value " + vec3.X.ToString());
79 this._mThread.currentFrame.OpStack.Push(pos); 80 this._mThread.currentFrame.OpStack.Push(pos);
80 } 81 }
81 this._mThread.PC += 2; 82 this._mThread.PC += 2;