diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 7afdd3431f..d2f74deaca 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); } 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 0000000000..2a1c19cddc --- /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 diff --git a/README.md b/README.md index 6309385df2..2aea328de2 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ 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 to capture any errors. @@ -31,7 +31,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/bin/OpenMetaverse.dll b/bin/OpenMetaverse.dll index a91670da68..30ad7e5aa4 100755 Binary files a/bin/OpenMetaverse.dll and b/bin/OpenMetaverse.dll differ diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index b78e3b7fca..d3f9156601 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 b56d5d182f..ae7b7947d8 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.HG.ini.example b/bin/Robust.HG.ini.example index 2ad262ae4f..965e2416e8 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 diff --git a/bin/Robust.ini.example b/bin/Robust.ini.example index 0660de4b33..f79059b60d 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 diff --git a/prebuild.xml b/prebuild.xml index a5357da16d..de3b89bb46 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 8927e9a7ee..0fd7bbff4d 100755 --- a/runprebuild.bat +++ b/runprebuild.bat @@ -1,4 +1,24 @@ -bin\Prebuild.exe /target nant -bin\Prebuild.exe /target vs2008 -echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild opensim.sln > compile.bat +@echo OFF +bin\Prebuild.exe /target nant +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 8c832b3313..0000000000 --- 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