aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2012-01-16 23:08:47 +0000
committerMelanie2012-01-16 23:08:47 +0000
commitb14a6acd2f7d92a9a0d59b5e6e2ede2d73f5944b (patch)
tree1536dc38dbe3cd4d690cf02eb26d2ae191d1b903
parentAdd methods to allow the groups modules to query online status and last login (diff)
parentComment out noisy log lines I accidentally included in the nant build target ... (diff)
downloadopensim-SC-b14a6acd2f7d92a9a0d59b5e6e2ede2d73f5944b.zip
opensim-SC-b14a6acd2f7d92a9a0d59b5e6e2ede2d73f5944b.tar.gz
opensim-SC-b14a6acd2f7d92a9a0d59b5e6e2ede2d73f5944b.tar.bz2
opensim-SC-b14a6acd2f7d92a9a0d59b5e6e2ede2d73f5944b.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to '')
-rw-r--r--.nant/local.include186
-rw-r--r--OpenSim/Framework/IClientAPI.cs8
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs15
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs2
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs7
5 files changed, 24 insertions, 194 deletions
diff --git a/.nant/local.include b/.nant/local.include
index a9ba17d..0c23e50 100644
--- a/.nant/local.include
+++ b/.nant/local.include
@@ -38,52 +38,8 @@
38 <include name=".hgignore"/> 38 <include name=".hgignore"/>
39 </fileset> 39 </fileset>
40 </delete> 40 </delete>
41
42</target> 41</target>
43 42
44<!-- I don't think these targets are being actively used. But just in case, we'll just comment them out for now - justincc -->
45<!--
46<property name="projectdir" value="opensim-0.6.9" />
47<target name="dist" depends="distdir">
48 <zip zipfile="${projectdir}.zip">
49 <fileset basedir=".">
50 <include name="${projectdir}/**" />
51 </fileset>
52 </zip>
53 <tar destfile="${projectdir}.tar.gz" compression="GZip">
54 <fileset basedir=".">
55 <include name="${projectdir}/**" />
56 </fileset>
57 </tar>
58</target>
59
60<target name="distdir">
61 <delete dir="${projectdir}" />
62 <copy todir="${projectdir}">
63 <fileset basedir=".">
64 <include name="ThirdPartyLicenses/**" />
65 <include name="CONTRIBUTORS.txt" />
66 <include name="README" />
67 <include name="OpenSim/**/*.cs" />
68 <include name="**/*.build" />
69 <include name="**/*.csproj" />
70 <include name="**/*.csproj.user" />
71 <include name="**/*.sln" />
72 <include name="bin/*.dll" />
73 <include name="bin/*.so" />
74 <include name="bin/*.config" />
75 <include name="bin/assets/**" />
76 <include name="bin/data/**" />
77 <include name="bin/OpenSim*xml" />
78 <include name="bin/OpenSim.ini" />
79 <include name="bin/defaultstripe.png" />
80 <exclude name="bin/OpenSim.*dll" />
81 </fileset>
82 </copy>
83 <touch file="${projectdir}/bin/startup_commands.txt" />
84</target>
85-->
86
87<target name="test" depends="build, find-nunit"> 43<target name="test" depends="build, find-nunit">
88 <setenv name="MONO_THREADS_PER_CPU" value="100" /> 44 <setenv name="MONO_THREADS_PER_CPU" value="100" />
89 45
@@ -153,116 +109,6 @@
153 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" /> 109 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" />
154 110
155 <delete dir="%temp%"/> 111 <delete dir="%temp%"/>
156
157</target>
158
159<target name="test-cov" depends="build">
160 <!-- Code Coverage Test. Prototype, only works with mono 1.2. Instructions in http://opensimulator.org/wiki/Automated_Testing -->
161 <mkdir dir="cov" failonerror="false" />
162 <exec program="mono">
163 <arg value="--debug" />
164 <arg value="--profile=monocov:outfile=./cov/OpenSim.Framework.Servers.cov,+[OpenSim.Framework.Servers]" />
165 <arg value="/usr/lib/nunit/nunit-console.exe" />
166 <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" />
167 </exec>
168 <delete dir="./cov/OpenSim.Framework.Servers" />
169 <exec program="monocov">
170 <arg value="--export-html=./cov/OpenSim.Framework.Servers ./cov/OpenSim.Framework.Servers.cov" />
171 </exec>
172
173<!--
174 <exec program="mono">
175 <arg value="&#45;&#45;debug" />
176 <arg value="&#45;&#45;profile=monocov:outfile=./cov/OpenSim.Region.ClientStack.LindenUDP.cov,+[OpenSim.Region.ClientStack.LindenUDP]" />
177 <arg value="/usr/lib/nunit/nunit-console.exe" />
178 <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
179 </exec>
180 <delete dir="./cov/OpenSim.Region.ClientStack.LindenUDP" />
181 <exec program="monocov">
182 <arg value="&#45;&#45;export-html=./cov/OpenSim.Region.ClientStack.LindenUDP ./cov/OpenSim.Region.ClientStack.LindenUDP.cov" />
183 </exec>
184-->
185
186 <exec program="mono">
187 <arg value="--debug" />
188 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.cov,+[OpenSim.Region.ScriptEngine.Shared]" />
189 <arg value="/usr/lib/nunit/nunit-console.exe" />
190 <arg value="./bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
191 </exec>
192 <delete dir="./cov/OpenSim.Region.ScriptEngine.Shared" />
193 <exec program="monocov">
194 <arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared ./cov/OpenSim.Region.ScriptEngine.Shared.cov" />
195 </exec>
196
197 <exec program="mono">
198 <arg value="--debug" />
199 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov,+[OpenSim.Region.ScriptEngine.Shared.CodeTools]" />
200 <arg value="/usr/lib/nunit/nunit-console.exe" />
201 <arg value="./bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
202 </exec>
203 <delete dir="./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools" />
204 <exec program="monocov">
205 <arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools ./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov" />
206 </exec>
207
208 <exec program="mono">
209 <arg value="--debug" />
210 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.CoreModules.cov,+[OpenSim.Region.CoreModules]" />
211 <arg value="/usr/lib/nunit/nunit-console.exe" />
212 <arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" />
213 </exec>
214 <delete dir="./cov/OpenSim.Region.CoreModules" />
215 <exec program="monocov">
216 <arg value="--export-html=./cov/OpenSim.Region.CoreModules ./cov/OpenSim.Region.CoreModules.cov" />
217 </exec>
218
219 <exec program="mono">
220 <arg value="--debug" />
221 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.OptionalModules.cov,+[OpenSim.Region.OptionalModules]" />
222 <arg value="/usr/lib/nunit/nunit-console.exe" />
223 <arg value="./bin/OpenSim.Region.OptionalModules.Tests.dll" />
224 </exec>
225 <delete dir="./cov/OpenSim.Region.OptionalModules" />
226 <exec program="monocov">
227 <arg value="--export-html=./cov/OpenSim.Region.OptionalModules ./cov/OpenSim.Region.OptionalModules.cov" />
228 </exec>
229
230 <exec program="mono">
231 <arg value="--debug" />
232 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.Framework.cov,+[OpenSim.Region.Framework]" />
233 <arg value="/usr/lib/nunit/nunit-console.exe" />
234 <arg value="./bin/OpenSim.Region.Framework.Tests.dll" />
235 </exec>
236 <delete dir="./cov/OpenSim.Region.Framework" />
237 <exec program="monocov">
238 <arg value="--export-html=./cov/OpenSim.Region.Framework ./cov/OpenSim.Region.Framework.cov" />
239 </exec>
240
241 <exec program="mono">
242 <arg value="--debug" />
243 <arg value="--profile=monocov:outfile=./cov/OpenSim.Data.SQLite.cov,+[OpenSim.Data.SQLite]" />
244 <arg value="/usr/lib/nunit/nunit-console.exe" />
245 <arg value="./bin/OpenSim.Data.SQLite.Tests.dll" />
246 </exec>
247 <delete dir="./cov/OpenSim.Data.SQLite" />
248 <exec program="monocov">
249 <arg value="--export-html=./cov/OpenSim.Data.SQLite ./cov/OpenSim.Data.SQLite.cov" />
250 </exec>
251
252 <exec program="mono">
253 <arg value="--debug" />
254 <arg value="--profile=monocov:outfile=./cov/OpenSim.Data.MySQL.cov,+[OpenSim.Data.MySQL.Tests]" />
255 <arg value="/usr/lib/nunit/nunit-console.exe" />
256 <arg value="./bin/OpenSim.Data.MySQL.Tests.dll" />
257 </exec>
258 <delete dir="./cov/OpenSim.Data.MySQL" />
259 <exec program="monocov">
260 <arg value="--export-html=./cov/OpenSim.Data.MySQL ./cov/OpenSim.Data.MySQL.cov" />
261 </exec>
262
263 <delete file="C:\NUnitPrimaryTrace.txt" failonerror="false" />
264 <delete file="TestResult.xml" failonerror="false" />
265
266</target> 112</target>
267 113
268<target name="find-nunit"> 114<target name="find-nunit">
@@ -275,15 +121,12 @@
275 if="${int::parse(hasnunit2)==0}" /> 121 if="${int::parse(hasnunit2)==0}" />
276 <property name="nunitcmd" value="nunit-console" 122 <property name="nunitcmd" value="nunit-console"
277 if="${int::parse(hasnunit2)==1}" /> 123 if="${int::parse(hasnunit2)==1}" />
278
279</target> 124</target>
280 125
281<!-- this is used for panda test execution --> 126<!-- this is used for panda test execution -->
282<!-- work in progress --> 127<!-- work in progress -->
283 128
284<target name="test-xml" depends="build, find-nunit"> 129<target name="test-xml" depends="build, find-nunit">
285
286
287 <mkdir dir="test-results" failonerror="false" /> 130 <mkdir dir="test-results" failonerror="false" />
288 <!-- Unit Test Assembly --> 131 <!-- Unit Test Assembly -->
289 <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.tests"> 132 <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.tests">
@@ -356,36 +199,7 @@
356 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" /> 199 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" />
357 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" /> 200 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" />
358 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" /> 201 <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" />
359
360</target> 202</target>
361<!-- <exec program="nunit-console.exe" failonerror="false" resultproperty="testresult.acceptancetestassembly"> -->
362<!-- <arg value="AcceptanceTestAssembly.dll" /> -->
363<!-- <arg value="/xml=AcceptanceTestAssembly-Results.xml" /> -->
364<!-- </exec> -->
365
366<!-- <fail message="Failures reported in unit tests." unless="${int::parse(testresult.unittestassembly)==0}" /> -->
367<!-- <fail message="Failures reported in acceptance tests." unless="${int::parse(testresult.acceptancetestassembly)==0}" /> -->
368<!-- </target> -->
369
370
371
372<!-- <nunit2 failonerror="true" verbose="true"> -->
373<!-- <formatter type="Xml" usefile="true" extension=".xml" outputdir="./test-results" /> -->
374<!-- <test> -->
375<!-- <assemblies> -->
376<!-- <include name="./bin/OpenSim.Framework.Tests.dll" /> -->
377<!-- <include name="./bin/OpenSim.Framework.Servers.Tests.dll" /> -->
378<!-- <include name="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" /> -->
379<!-- <include name="./bin/OpenSim.Region.ScriptEngine.Tests.dll" /> -->
380<!-- <include name="./bin/OpenSim.Region.CoreModules.Tests.dll" /> -->
381<!-- <include name="./bin/OpenSim.Region.OptionalModules.Tests.dll" /> -->
382<!-- <include name="./bin/OpenSim.Region.Framework.Tests.dll" /> -->
383<!-- <include name="./bin/OpenSim.Data.SQLite.Tests.dll" /> -->
384<!-- <include name="./bin/OpenSim.Data.MySQL.Tests.dll" /> -->
385<!-- </assemblies> -->
386<!-- </test> -->
387<!-- </nunit2> -->
388<!-- </target> -->
389 203
390<target name="doxygen"> 204<target name="doxygen">
391 <exec program="doxygen" workingdir="doc" commandline="doxygen.conf" /> 205 <exec program="doxygen" workingdir="doc" commandline="doxygen.conf" />
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index 7a34f0b..13f974b 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -1082,7 +1082,15 @@ namespace OpenSim.Framework
1082 void SendWindData(Vector2[] windSpeeds); 1082 void SendWindData(Vector2[] windSpeeds);
1083 void SendCloudData(float[] cloudCover); 1083 void SendCloudData(float[] cloudCover);
1084 1084
1085 /// <summary>
1086 /// Sent when an agent completes its movement into a region.
1087 /// </summary>
1088 /// <remarks>
1089 /// This packet marks completion of the arrival of a root avatar in a region, whether through login, region
1090 /// crossing or direct teleport.
1091 /// </remarks>
1085 void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look); 1092 void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look);
1093
1086 void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint); 1094 void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint);
1087 1095
1088 /// <summary> 1096 /// <summary>
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index a097ec9..873c56c 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -785,9 +785,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
785 OutPacket(handshake, ThrottleOutPacketType.Task); 785 OutPacket(handshake, ThrottleOutPacketType.Task);
786 } 786 }
787 787
788 /// <summary>
789 ///
790 /// </summary>
791 public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look) 788 public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
792 { 789 {
793 AgentMovementCompletePacket mov = (AgentMovementCompletePacket)PacketPool.Instance.GetPacket(PacketType.AgentMovementComplete); 790 AgentMovementCompletePacket mov = (AgentMovementCompletePacket)PacketPool.Instance.GetPacket(PacketType.AgentMovementComplete);
@@ -3497,6 +3494,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3497 3494
3498 public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry) 3495 public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry)
3499 { 3496 {
3497// m_log.DebugFormat(
3498// "[LLCLIENTVIEW]: Sending avatar appearance for {0} with {1} bytes to {2} {3}",
3499// agentID, textureEntry.Length, Name, AgentId);
3500
3500 AvatarAppearancePacket avp = (AvatarAppearancePacket)PacketPool.Instance.GetPacket(PacketType.AvatarAppearance); 3501 AvatarAppearancePacket avp = (AvatarAppearancePacket)PacketPool.Instance.GetPacket(PacketType.AvatarAppearance);
3501 // TODO: don't create new blocks if recycling an old packet 3502 // TODO: don't create new blocks if recycling an old packet
3502 avp.VisualParam = new AvatarAppearancePacket.VisualParamBlock[218]; 3503 avp.VisualParam = new AvatarAppearancePacket.VisualParamBlock[218];
@@ -3518,7 +3519,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3518 3519
3519 public void SendAnimations(UUID[] animations, int[] seqs, UUID sourceAgentId, UUID[] objectIDs) 3520 public void SendAnimations(UUID[] animations, int[] seqs, UUID sourceAgentId, UUID[] objectIDs)
3520 { 3521 {
3521 //m_log.DebugFormat("[CLIENT]: Sending animations to {0}", Name); 3522// m_log.DebugFormat("[LLCLIENTVIEW]: Sending animations for {0} to {1}", sourceAgentId, Name);
3522 3523
3523 AvatarAnimationPacket ani = (AvatarAnimationPacket)PacketPool.Instance.GetPacket(PacketType.AvatarAnimation); 3524 AvatarAnimationPacket ani = (AvatarAnimationPacket)PacketPool.Instance.GetPacket(PacketType.AvatarAnimation);
3524 // TODO: don't create new blocks if recycling an old packet 3525 // TODO: don't create new blocks if recycling an old packet
@@ -3553,6 +3554,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3553 /// </summary> 3554 /// </summary>
3554 public void SendAvatarDataImmediate(ISceneEntity avatar) 3555 public void SendAvatarDataImmediate(ISceneEntity avatar)
3555 { 3556 {
3557// m_log.DebugFormat(
3558// "[LLCLIENTVIEW]: Sending immediate object update for avatar {0} {1} to {2} {3}",
3559// avatar.Name, avatar.UUID, Name, AgentId);
3560
3556 ScenePresence presence = avatar as ScenePresence; 3561 ScenePresence presence = avatar as ScenePresence;
3557 if (presence == null) 3562 if (presence == null)
3558 return; 3563 return;
@@ -3562,7 +3567,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3562 3567
3563 objupdate.RegionData.RegionHandle = presence.RegionHandle; 3568 objupdate.RegionData.RegionHandle = presence.RegionHandle;
3564 objupdate.RegionData.TimeDilation = ushort.MaxValue; 3569 objupdate.RegionData.TimeDilation = ushort.MaxValue;
3565 3570
3566 objupdate.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; 3571 objupdate.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1];
3567 objupdate.ObjectData[0] = CreateAvatarUpdateBlock(presence); 3572 objupdate.ObjectData[0] = CreateAvatarUpdateBlock(presence);
3568 3573
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 94989de..fdbcbb0 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1216,7 +1216,7 @@ namespace OpenSim.Region.Framework.Scenes
1216 m_callbackURI = null; 1216 m_callbackURI = null;
1217 } 1217 }
1218 1218
1219 //m_log.DebugFormat("[SCENE PRESENCE] Completed movement"); 1219// m_log.DebugFormat("[SCENE PRESENCE] Completed movement");
1220 1220
1221 ControllingClient.MoveAgentIntoRegion(m_scene.RegionInfo, AbsolutePosition, look); 1221 ControllingClient.MoveAgentIntoRegion(m_scene.RegionInfo, AbsolutePosition, look);
1222 ValidateAndSendAppearanceAndAgentData(); 1222 ValidateAndSendAppearanceAndAgentData();
diff --git a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
index f5d4da8..feef49b 100644
--- a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
@@ -254,8 +254,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
254 // Will need some controls around this 254 // Will need some controls around this
255 m_scene.LoginsDisabled = true; 255 m_scene.LoginsDisabled = true;
256 m_scene.LoginLock = true; 256 m_scene.LoginLock = true;
257 RRAlert("loading oar"); 257 if ( m_uri != string.Empty )
258 RRAlert("disabled"); 258 {
259 RRAlert("loading oar");
260 RRAlert("disabled");
261 }
259 } 262 }
260 } 263 }
261 264