From 5ad6d5a939fb7bf0fdfdc6925d4afed306e08641 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 11 Apr 2007 12:13:21 +0000 Subject: 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. --- OpenSim.RegionServer/world/World.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim.RegionServer/world/World.cs') diff --git a/OpenSim.RegionServer/world/World.cs b/OpenSim.RegionServer/world/World.cs index 74325b0..a973c6c 100644 --- a/OpenSim.RegionServer/world/World.cs +++ b/OpenSim.RegionServer/world/World.cs @@ -87,22 +87,22 @@ namespace OpenSim.world //Console.WriteLine("searching for script to add: " + substring); ScriptFactory scriptFactory; - Console.WriteLine("script string is " + substring); + //Console.WriteLine("script string is " + substring); if(substring.StartsWith("'); string sName = substring1.Substring(0, end); - Console.WriteLine(" script info : " + sEngine + " , " + sName); + //Console.WriteLine(" script info : " + sEngine + " , " + sName); int startscript = substring.IndexOf('>'); script = substring.Remove(0, startscript + 1); - Console.WriteLine("script data is " + script); + // Console.WriteLine("script data is " + script); if (this.scriptEngines.ContainsKey(sEngine)) { this.scriptEngines[sEngine].LoadScript(script, sName, entity.localid); @@ -172,7 +172,7 @@ namespace OpenSim.world } foreach (IScriptEngine scripteng in this.scriptEngines.Values) { - //scripteng.OnFrame(); + scripteng.OnFrame(); } //backup world data this.storageCount++; -- cgit v1.1