From 303ea70efad0ba703743f4a5b9812250c314c2d4 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 23 Jun 2007 11:14:58 +0000 Subject: More work on CAPS handler. --- OpenSim/OpenSim.LocalCommunications/LocalBackEndServices.cs | 1 + OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/OpenSim.LocalCommunications') diff --git a/OpenSim/OpenSim.LocalCommunications/LocalBackEndServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalBackEndServices.cs index 10e6dd9..ebf0fd1 100644 --- a/OpenSim/OpenSim.LocalCommunications/LocalBackEndServices.cs +++ b/OpenSim/OpenSim.LocalCommunications/LocalBackEndServices.cs @@ -193,6 +193,7 @@ namespace OpenSim.LocalCommunications agent.BaseFolder = loginData.BaseFolder; agent.InventoryFolder = loginData.InventoryFolder; agent.startpos = new LLVector3(128, 128, 70); + agent.CapsPath = loginData.CapsPath; if (this.regionHosts.ContainsKey(regionHandle)) { diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs index 00f514a..b8c6c3b 100644 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs @@ -86,12 +86,12 @@ namespace OpenSim.LocalCommunications response.Home = "{'region_handle':[r" + (reg.RegionLocX * 256).ToString() + ",r" + (reg.RegionLocY * 256).ToString() + "], " + "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; - + string capsPath = Util.GetRandomCapsPath(); response.SimAddress = reg.IPListenAddr; response.SimPort = (Int32)reg.IPListenPort; response.RegionX = reg.RegionLocX ; response.RegionY = reg.RegionLocY ; - response.SeedCapability = "http://" + reg.IPListenAddr + ":" + "9000" + "/CAPS/00334-0000/"; + response.SeedCapability = "http://" + reg.IPListenAddr + ":" + "9000" + "/CAPS/"+capsPath +"0000/"; theUser.currentAgent.currentRegion = reg.SimUUID; theUser.currentAgent.currentHandle = reg.RegionHandle; @@ -103,6 +103,7 @@ namespace OpenSim.LocalCommunications _login.Session = response.SessionID; _login.SecureSession = response.SecureSessionID; _login.CircuitCode = (uint)response.CircuitCode; + _login.CapsPath = capsPath; m_Parent.InformRegionOfLogin(currentRegion, _login); } -- cgit v1.1