diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Primitive.cs | 4 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 8 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/ScenePresence.cs | 27 |
3 files changed, 27 insertions, 12 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Primitive.cs b/OpenSim/OpenSim.Region/Scenes/Primitive.cs index 8192bf0..62f401c 100644 --- a/OpenSim/OpenSim.Region/Scenes/Primitive.cs +++ b/OpenSim/OpenSim.Region/Scenes/Primitive.cs | |||
@@ -273,7 +273,7 @@ namespace OpenSim.Region.Scenes | |||
273 | /// <param name="tex"></param> | 273 | /// <param name="tex"></param> |
274 | public void UpdateTexture(byte[] tex) | 274 | public void UpdateTexture(byte[] tex) |
275 | { | 275 | { |
276 | this.primData.Texture = tex; | 276 | this.primData.TextureEntry = tex; |
277 | } | 277 | } |
278 | 278 | ||
279 | /// <summary> | 279 | /// <summary> |
@@ -411,7 +411,7 @@ namespace OpenSim.Region.Scenes | |||
411 | lPos = this.Pos; | 411 | lPos = this.Pos; |
412 | } | 412 | } |
413 | 413 | ||
414 | remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.LocalId, this.primData, lPos, new LLUUID("00000000-0000-1000-5005-000000000018")); | 414 | remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.LocalId, this.primData, lPos, new LLUUID("00000000-0000-0000-9999-000000000005")); |
415 | } | 415 | } |
416 | 416 | ||
417 | /// <summary> | 417 | /// <summary> |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 07f1d70..07b1ee4 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -730,7 +730,7 @@ namespace OpenSim.Region.Scenes | |||
730 | if (agent.CapsPath != "") | 730 | if (agent.CapsPath != "") |
731 | { | 731 | { |
732 | //Console.WriteLine("new user, so creating caps handler for it"); | 732 | //Console.WriteLine("new user, so creating caps handler for it"); |
733 | Caps cap = new Caps(httpListener, this.m_regInfo.IPListenAddr, 9000, agent.CapsPath, agent.AgentID); | 733 | Caps cap = new Caps(this.assetCache, httpListener, this.m_regInfo.IPListenAddr, 9000, agent.CapsPath, agent.AgentID); |
734 | cap.RegisterHandlers(); | 734 | cap.RegisterHandlers(); |
735 | this.capsHandlers.Add(cap); | 735 | this.capsHandlers.Add(cap); |
736 | } | 736 | } |
@@ -795,7 +795,7 @@ namespace OpenSim.Region.Scenes | |||
795 | { | 795 | { |
796 | List<MapBlockData> mapBlocks; | 796 | List<MapBlockData> mapBlocks; |
797 | mapBlocks = this.commsManager.GridServer.RequestNeighbourMapBlocks(minX, minY, maxX, maxY); | 797 | mapBlocks = this.commsManager.GridServer.RequestNeighbourMapBlocks(minX, minY, maxX, maxY); |
798 | 798 | Console.WriteLine("number of mapblocks " + mapBlocks.Count +" in "+ minX +" , " + minY + " , "+ maxX + " , "+ maxY); | |
799 | remoteClient.SendMapBlock(mapBlocks); | 799 | remoteClient.SendMapBlock(mapBlocks); |
800 | } | 800 | } |
801 | 801 | ||
@@ -843,9 +843,9 @@ namespace OpenSim.Region.Scenes | |||
843 | /// <param name="regionhandle"></param> | 843 | /// <param name="regionhandle"></param> |
844 | /// <param name="agentID"></param> | 844 | /// <param name="agentID"></param> |
845 | /// <param name="position"></param> | 845 | /// <param name="position"></param> |
846 | public void InformNeighbourOfCrossing(ulong regionhandle, LLUUID agentID, LLVector3 position) | 846 | public bool InformNeighbourOfCrossing(ulong regionhandle, LLUUID agentID, LLVector3 position) |
847 | { | 847 | { |
848 | this.commsManager.InterRegion.ExpectAvatarCrossing(regionhandle, agentID, position); | 848 | return this.commsManager.InterRegion.ExpectAvatarCrossing(regionhandle, agentID, position); |
849 | } | 849 | } |
850 | 850 | ||
851 | #endregion | 851 | #endregion |
diff --git a/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs index 1255606..fe82130 100644 --- a/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs +++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs | |||
@@ -43,6 +43,7 @@ namespace OpenSim.Region.Scenes | |||
43 | { | 43 | { |
44 | public static bool PhysicsEngineFlying = false; | 44 | public static bool PhysicsEngineFlying = false; |
45 | public static AvatarAnimations Animations; | 45 | public static AvatarAnimations Animations; |
46 | public static byte[] DefaultTexture; | ||
46 | public string firstname; | 47 | public string firstname; |
47 | public string lastname; | 48 | public string lastname; |
48 | public IClientAPI ControllingClient; | 49 | public IClientAPI ControllingClient; |
@@ -324,7 +325,7 @@ namespace OpenSim.Region.Scenes | |||
324 | /// <param name="remoteAvatar"></param> | 325 | /// <param name="remoteAvatar"></param> |
325 | public void SendFullUpdateToOtherClient(ScenePresence remoteAvatar) | 326 | public void SendFullUpdateToOtherClient(ScenePresence remoteAvatar) |
326 | { | 327 | { |
327 | remoteAvatar.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos); | 328 | remoteAvatar.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos, DefaultTexture); |
328 | } | 329 | } |
329 | 330 | ||
330 | /// <summary> | 331 | /// <summary> |
@@ -332,7 +333,7 @@ namespace OpenSim.Region.Scenes | |||
332 | /// </summary> | 333 | /// </summary> |
333 | public void SendInitialData() | 334 | public void SendInitialData() |
334 | { | 335 | { |
335 | this.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos); | 336 | this.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos, DefaultTexture); |
336 | if (this.newAvatar) | 337 | if (this.newAvatar) |
337 | { | 338 | { |
338 | this.m_world.InformClientOfNeighbours(this.ControllingClient); | 339 | this.m_world.InformClientOfNeighbours(this.ControllingClient); |
@@ -439,10 +440,12 @@ namespace OpenSim.Region.Scenes | |||
439 | RegionInfo neighbourRegion = this.m_world.RequestNeighbouringRegionInfo(neighbourHandle); | 440 | RegionInfo neighbourRegion = this.m_world.RequestNeighbouringRegionInfo(neighbourHandle); |
440 | if (neighbourRegion != null) | 441 | if (neighbourRegion != null) |
441 | { | 442 | { |
442 | this.m_world.InformNeighbourOfCrossing(neighbourHandle, this.ControllingClient.AgentId, newpos); | 443 | bool res = this.m_world.InformNeighbourOfCrossing(neighbourHandle, this.ControllingClient.AgentId, newpos); |
443 | this.MakeChildAgent(); | 444 | if (res) |
444 | this.ControllingClient.CrossRegion(neighbourHandle, newpos, vel, System.Net.IPAddress.Parse(neighbourRegion.IPListenAddr), (ushort)neighbourRegion.IPListenPort); | 445 | { |
445 | 446 | this.MakeChildAgent(); | |
447 | this.ControllingClient.CrossRegion(neighbourHandle, newpos, vel, System.Net.IPAddress.Parse(neighbourRegion.IPListenAddr), (ushort)neighbourRegion.IPListenPort); | ||
448 | } | ||
446 | } | 449 | } |
447 | } | 450 | } |
448 | #endregion | 451 | #endregion |
@@ -481,6 +484,18 @@ namespace OpenSim.Region.Scenes | |||
481 | } | 484 | } |
482 | } | 485 | } |
483 | 486 | ||
487 | public static void LoadTextureFile(string name) | ||
488 | { | ||
489 | FileInfo fInfo = new FileInfo(name); | ||
490 | long numBytes = fInfo.Length; | ||
491 | FileStream fStream = new FileStream(name, FileMode.Open, FileAccess.Read); | ||
492 | BinaryReader br = new BinaryReader(fStream); | ||
493 | byte[] data1 = br.ReadBytes((int)numBytes); | ||
494 | br.Close(); | ||
495 | fStream.Close(); | ||
496 | DefaultTexture = data1; | ||
497 | } | ||
498 | |||
484 | public class NewForce | 499 | public class NewForce |
485 | { | 500 | { |
486 | public float X; | 501 | public float X; |