From 52ff860f30a16f57408d372cda9280cf71a95e3d Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 6 Nov 2013 23:27:19 +0000 Subject: minor: Make PID file examples in OpenSim and Robust config somewhat more meaningful than just /tmp/my.pid --- bin/OpenSim.ini.example | 2 +- bin/OpenSimDefaults.ini | 2 +- bin/Robust.ini.example | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index b78e3b7..d3f9156 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -69,7 +69,7 @@ ;# {PIDFile} {} {Path to PID file?} {} ;; Place to create a PID file - ; PIDFile = "/tmp/my.pid" + ; PIDFile = "/tmp/OpenSim.exe.pid" ;# {region_info_source} {} {Where to load region from?} {filesystem web} filesystem ;; Determine where OpenSimulator looks for the files which tell it diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index b56d5d1..ae7b794 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini @@ -21,7 +21,7 @@ crash_dir = "crashes" ; Place to create a PID file - ; PIDFile = "/tmp/my.pid" + ; PIDFile = "/tmp/OpenSim.exe.pid" ; Console commands run at startup startup_console_commands_file = "startup_commands.txt" diff --git a/bin/Robust.ini.example b/bin/Robust.ini.example index 0660de4..f79059b 100644 --- a/bin/Robust.ini.example +++ b/bin/Robust.ini.example @@ -15,7 +15,7 @@ [Startup] ; Place to create a PID file ; If no path if specified then a PID file is not created. - ; PIDFile = "/tmp/my.pid" + ; PIDFile = "/tmp/Robust.exe.pid" ; Plugin Registry Location ; Set path to directory for plugin registry. Information -- cgit v1.1 From 3b2721c95726a6968a23b6d27d83769f03b987b0 Mon Sep 17 00:00:00 2001 From: dahlia Date: Wed, 6 Nov 2013 19:13:41 -0800 Subject: update OpenMetaverse.dll to 7ae74674a09877119cbb4c80cbffea474e20da29 - addresses particle flags issue --- bin/OpenMetaverse.dll | Bin 1806336 -> 1806336 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/bin/OpenMetaverse.dll b/bin/OpenMetaverse.dll index a91670d..30ad7e5 100755 Binary files a/bin/OpenMetaverse.dll and b/bin/OpenMetaverse.dll differ -- cgit v1.1 From 5cef8bf64ec3725788ca0ceb70395f8389e52e7c Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 8 Nov 2013 00:31:26 +0000 Subject: Make admin_save_oar request submit a request ID and log this for tracking. Previous behaviour of always logging 'name' is unhelpful since this actually an error message parameter which is only filled out if an error has occurred --- .../RemoteController/RemoteAdminPlugin.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index c78cf3b..8b66ee1 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs @@ -1408,7 +1408,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController /// private void XmlRpcSaveOARMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) { - m_log.Info("[RADMIN]: Received Save OAR Administrator Request"); + m_log.Info("[RADMIN]: Received Save OAR Request"); Hashtable responseData = (Hashtable)response.Value; Hashtable requestData = (Hashtable)request.Params[0]; @@ -1454,8 +1454,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController if (archiver != null) { + Guid requestId = Guid.NewGuid(); scene.EventManager.OnOarFileSaved += RemoteAdminOarSaveCompleted; - archiver.ArchiveRegion(filename, options); + + m_log.InfoFormat( + "[RADMIN]: Submitting save OAR request for {0} to file {1}, request ID {2}", + scene.Name, filename, requestId); + + archiver.ArchiveRegion(filename, requestId, options); lock (m_saveOarLock) Monitor.Wait(m_saveOarLock,5000); @@ -1476,12 +1482,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController throw e; } - m_log.Info("[RADMIN]: Save OAR Administrator Request complete"); + m_log.Info("[RADMIN]: Save OAR Request complete"); } private void RemoteAdminOarSaveCompleted(Guid uuid, string name) { - m_log.DebugFormat("[RADMIN]: File processing complete for {0}", name); + if (name != "") + m_log.ErrorFormat("[RADMIN]: Saving of OAR file with request ID {0} failed with message {1}", uuid, name); + else + m_log.DebugFormat("[RADMIN]: Saved OAR file for request {0}", uuid); + lock (m_saveOarLock) Monitor.Pulse(m_saveOarLock); } -- cgit v1.1 From 626a050159e0eb3d3d12fee482f2c9280b1b2b4e Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 8 Nov 2013 00:34:35 +0000 Subject: minor: Make PID file example in Robust.HG.ini more meaningful as is now the case in OpenSim and vanilla ROBUST config files --- bin/Robust.HG.ini.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/Robust.HG.ini.example b/bin/Robust.HG.ini.example index 2ad262a..965e241 100644 --- a/bin/Robust.HG.ini.example +++ b/bin/Robust.HG.ini.example @@ -23,7 +23,7 @@ [Startup] ; Place to create a PID file ; If no path if specified then a PID file is not created. - ; PIDFile = "/tmp/my.pid" + ; PIDFile = "/tmp/Robust.exe.pid" ; Plugin Registry Location ; Set path to directory for plugin registry. Information -- cgit v1.1 From ea9e96dd50d22e5e1003b675c4148d59df7ec989 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 8 Nov 2013 21:13:05 +0000 Subject: Update OpenSimulator to use .NET 4.0 This allows region modules to register script functions that have more than a couple of arguments. It also allows OpenSimulator code to use the feature and syntax additions that came with .NET 4.0 Windows users will need to install Microsoft .NET 4 framework if they have not done so already. Windows C# Express 2010 also becomes the minimum IDE for build, so runprebuild.bat now generates a 2010 solution and runprebuild2010.bat goes away Official minimum mono version becomes 2.10.8.1. OpenSimulator will probably work with 2.8 later but this is not guaranteed. --- README.md | 4 +- prebuild.xml | 200 ++++++++++++++++++++++++++-------------------------- runprebuild.bat | 24 ++++++- runprebuild2010.bat | 2 - 4 files changed, 125 insertions(+), 105 deletions(-) delete mode 100755 runprebuild2010.bat diff --git a/README.md b/README.md index 6309385..fb1e921 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ need to build OpenSim before running it. You will need .NET Framework 3.5 installed to run OpenSimulator. +You will need .NET 4.0 installed to run OpenSimulator. + We recommend that you run OpenSim from a command prompt on Windows in order to capture any errors. @@ -31,7 +33,7 @@ Now see the "Configuring OpenSim" section # Running OpenSim on Linux -You will need Mono >= 2.4.3 to run OpenSim. On some Linux distributions you +You will need Mono >= 2.10.8.1 to run OpenSimulator. On some Linux distributions you may need to install additional packages. See http://opensimulator.org/wiki/Dependencies for more information. diff --git a/prebuild.xml b/prebuild.xml index a5357da..de3b89b 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -34,7 +34,7 @@ - + ../../bin/ @@ -77,7 +77,7 @@ - + ../../bin/ @@ -113,7 +113,7 @@ - + ../../../bin/ @@ -141,7 +141,7 @@ - + ../../../bin/ @@ -168,7 +168,7 @@ - + ../../../../bin/ @@ -209,7 +209,7 @@ - + ../../../bin/ @@ -236,7 +236,7 @@ - + ../../../bin/ @@ -265,7 +265,7 @@ - + ../../bin/ @@ -295,7 +295,7 @@ - + ../../../../bin/ @@ -320,7 +320,7 @@ - + ../../../../bin/ @@ -347,7 +347,7 @@ - + ../../../../bin/ @@ -372,7 +372,7 @@ - + ../../../../bin/ @@ -398,7 +398,7 @@ - + ../../../../bin/ @@ -424,7 +424,7 @@ - + ../../../bin/ @@ -457,7 +457,7 @@ - + ../../../../bin/ @@ -485,7 +485,7 @@ - + ../../../../bin/Physics/ @@ -508,7 +508,7 @@ - + ../../../../bin/Physics/ @@ -531,7 +531,7 @@ - + ../../../../bin/Physics/ @@ -561,7 +561,7 @@ - + ../../../../bin/Physics/ @@ -592,7 +592,7 @@ - + ../../bin/ @@ -627,7 +627,7 @@ - + ../../../bin/ @@ -668,7 +668,7 @@ - + ../../../bin/ @@ -721,7 +721,7 @@ - + ../../../bin/ @@ -756,7 +756,7 @@ - + ../../../bin/ @@ -783,7 +783,7 @@ - + ../../../bin/ @@ -814,7 +814,7 @@ - + ../../../bin/ @@ -845,7 +845,7 @@ - + ../../../bin/ @@ -886,7 +886,7 @@ - + ../../../bin/ @@ -918,7 +918,7 @@ - + ../../../bin/ @@ -949,7 +949,7 @@ - + ../../../bin/ @@ -981,7 +981,7 @@ - + ../../../bin/ @@ -1013,7 +1013,7 @@ - + ../../../bin/ @@ -1047,7 +1047,7 @@ - + ../../../bin/ @@ -1078,7 +1078,7 @@ - + ../../../bin/ @@ -1109,7 +1109,7 @@ - + ../../../bin/ @@ -1144,7 +1144,7 @@ - + ../../../bin/ @@ -1177,7 +1177,7 @@ - + ../../../bin/ @@ -1215,7 +1215,7 @@ - + ../../../bin/ @@ -1245,7 +1245,7 @@ - + ../../../bin/ @@ -1281,7 +1281,7 @@ - + ../../../bin/ @@ -1321,7 +1321,7 @@ - + ../../../bin/ @@ -1362,7 +1362,7 @@ - + ../../bin/ @@ -1398,7 +1398,7 @@ - + ../../bin/ @@ -1431,7 +1431,7 @@ - + ../../../bin/ @@ -1466,7 +1466,7 @@ - + ../../../../../bin/ @@ -1512,7 +1512,7 @@ - + ../../../../../bin/ @@ -1556,7 +1556,7 @@ - + ../../../bin/ @@ -1623,7 +1623,7 @@ - + ../../../bin/ @@ -1661,7 +1661,7 @@ - + ../../../bin/ @@ -1719,7 +1719,7 @@ - + ../../../bin/ @@ -1747,7 +1747,7 @@ - + ../../../../bin/ @@ -1772,7 +1772,7 @@ - + ../../../../bin/Physics/ @@ -1811,7 +1811,7 @@ - + ../../../bin/ @@ -1856,7 +1856,7 @@ - + ../../../bin/ @@ -1891,7 +1891,7 @@ - + ../../../bin/ @@ -1921,7 +1921,7 @@ - + ../../../bin/ @@ -1963,7 +1963,7 @@ - + ../../../bin/ @@ -2000,7 +2000,7 @@ - + ../../../bin/ @@ -2039,7 +2039,7 @@ - + ../../../bin/ @@ -2073,7 +2073,7 @@ - + ../../../bin/ @@ -2109,7 +2109,7 @@ - + ../../../bin/ @@ -2151,7 +2151,7 @@ - + ../../../../bin/ @@ -2188,7 +2188,7 @@ - + ../../../../../../bin/ @@ -2221,7 +2221,7 @@ - + ../../../../../../../bin/ @@ -2253,7 +2253,7 @@ - + ../../../../../../bin/ @@ -2293,7 +2293,7 @@ - + ../../../../../bin/ @@ -2324,7 +2324,7 @@ - + ../../../../../bin/ @@ -2364,7 +2364,7 @@ - + ../../../../../../bin/ @@ -2398,7 +2398,7 @@ - + ../../../../bin/ @@ -2443,7 +2443,7 @@ - + ../../../bin/ @@ -2494,7 +2494,7 @@ - + ../../../bin/ @@ -2541,7 +2541,7 @@ - + ../../../bin/ @@ -2592,7 +2592,7 @@ - + ../../../bin/ @@ -2619,7 +2619,7 @@ - + ../../../bin/ @@ -2646,7 +2646,7 @@ - + ../../../bin/ @@ -2670,7 +2670,7 @@ - + ../../../../bin/ @@ -2697,7 +2697,7 @@ - + ../../../../bin/ @@ -2724,7 +2724,7 @@ - + ../../../../bin/ @@ -2751,7 +2751,7 @@ - + ../../../../bin/ @@ -2778,7 +2778,7 @@ - + ../../../../bin/ @@ -2806,7 +2806,7 @@ - + ../../../bin/ @@ -2853,7 +2853,7 @@ - + ../../bin/ @@ -2876,7 +2876,7 @@ - + ../../../../bin/ @@ -2919,7 +2919,7 @@ - + ../../../bin/ @@ -2969,7 +2969,7 @@ - + ../../../bin/ @@ -3011,7 +3011,7 @@ - + ../../../bin/ @@ -3042,7 +3042,7 @@ - + ../../../../bin/ @@ -3073,7 +3073,7 @@ - + ../../../../bin/ @@ -3103,7 +3103,7 @@ - + ../../../bin/ @@ -3182,7 +3182,7 @@ - + ../../../bin/ @@ -3243,7 +3243,7 @@ - + ../../../bin/ @@ -3303,7 +3303,7 @@ - + ../../../../../bin/ @@ -3340,7 +3340,7 @@ - + ../../../../../../bin/ @@ -3376,7 +3376,7 @@ - + ../../../bin/ @@ -3435,7 +3435,7 @@ TODO: this is kind of lame, we basically build a duplicate assembly but with tests added in, just because we can't resolve cross-bin-dir-refs. --> - + ../../../../../bin/ @@ -3466,7 +3466,7 @@ - + ../../../../../bin/ @@ -3500,7 +3500,7 @@ - + ../../../bin/ @@ -3546,7 +3546,7 @@ - + ../../../bin/ @@ -3587,7 +3587,7 @@ - + ../../../bin/ diff --git a/runprebuild.bat b/runprebuild.bat index 8927e9a..0fd7bbf 100755 --- a/runprebuild.bat +++ b/runprebuild.bat @@ -1,4 +1,24 @@ +@echo OFF + bin\Prebuild.exe /target nant -bin\Prebuild.exe /target vs2008 -echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild opensim.sln > compile.bat +bin\Prebuild.exe /target vs2010 + +setlocal ENABLEEXTENSIONS +set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" +set VALUE_NAME=MSBuildToolsPath + +FOR /F "usebackq skip=4 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( + set ValueName=%%A + set ValueType=%%B + set ValueValue=%%C +) + +if defined ValueName ( + @echo Value Name = %ValueName% + @echo Value Type = %ValueType% + @echo Value Value = %ValueValue% +) else ( + @echo %KEY_NAME%\%VALUE_NAME% not found. +) +@echo %ValueValue%\msbuild opensim.sln > compile.bat diff --git a/runprebuild2010.bat b/runprebuild2010.bat deleted file mode 100755 index 8c832b3..0000000 --- a/runprebuild2010.bat +++ /dev/null @@ -1,2 +0,0 @@ -bin\Prebuild.exe /target vs2010 -echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild OpenSim.sln > compile.bat -- cgit v1.1 From 9a9abd37ebff245ef67aea2ff0affbf0c4eef62e Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 8 Nov 2013 23:16:09 +0000 Subject: minor: remove the bit left in the readme which said .net 3.5 framework was required --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index fb1e921..2aea328 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,6 @@ need to build OpenSim before running it. # Running OpenSim on Windows -You will need .NET Framework 3.5 installed to run OpenSimulator. - You will need .NET 4.0 installed to run OpenSimulator. We recommend that you run OpenSim from a command prompt on Windows in order -- cgit v1.1 From fd24147afa9c7c6e40f50ad0038e7eb1432d1b82 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 9 Nov 2013 00:36:05 +0000 Subject: Add initial test for checking that specifying a parameter in LSL state_entry() generates a syntax error. Same for other events to follow at a later date. --- .../Shared/CodeTools/Tests/LSL_EventTests.cs | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs new file mode 100644 index 0000000..2a1c19c --- /dev/null +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs @@ -0,0 +1,64 @@ +/* + * Copyright (c) Contributors, http://opensimulator.org/ + * See CONTRIBUTORS.TXT for a full list of copyright holders. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the OpenSimulator Project nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using NUnit.Framework; +using OpenSim.Region.ScriptEngine.Shared.CodeTools; +using OpenSim.Tests.Common; + +namespace OpenSim.Region.ScriptEngine.Shared.Tests +{ + public class LSL_EventTests : OpenSimTestCase + { + [Test] + public void TestStateEntryEvent() + { + TestHelpers.InMethod(); +// TestHelpers.EnableLogging(); + + CSCodeGenerator cg = new CSCodeGenerator(); + cg.Convert("default { state_entry() {} }"); + + { + bool gotException = false; + + try + { + cg.Convert("default { state_entry(integer n) {} }"); + } + catch (Exception ) + { + gotException = true; + } + + Assert.That(gotException, Is.True); + } + } + } +} \ No newline at end of file -- cgit v1.1