From 5d59ffe99d7c592d87361e3bb1b1ac152bf5980c Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Sun, 17 Jun 2007 16:49:33 +0000 Subject: * Added the two Sample Apps to the solution * Made them build * They don't work though, gotta have a look see at that later. * ignored a shitload of bins --- OpenSim/Examples/SimpleApp/MyWorld.cs | 2 +- OpenSim/Examples/SimpleApp/Program.cs | 18 ++- OpenSim/Examples/SimpleApp/SimpleApp.csproj | 168 +++++++++++++------- OpenSim/Examples/SimpleApp/SimpleApp.exe.build | 52 +++++++ OpenSim/Examples/SimpleApp2/MyClientView.cs | 3 +- OpenSim/Examples/SimpleApp2/MyPacketServer.cs | 6 +- OpenSim/Examples/SimpleApp2/Program.cs | 12 +- OpenSim/Examples/SimpleApp2/SimpleApp2.csproj | 172 ++++++++++++++------- OpenSim/Examples/SimpleApp2/SimpleApp2.exe.build | 53 +++++++ .../OpenSim.LocalCommunications.csproj.user | 2 +- .../OpenSim.Physics.BasicPhysicsPlugin.csproj | 2 +- .../OdePlugin/OpenSim.Physics.OdePlugin.csproj | 2 +- .../PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj | 2 +- OpenSim/OpenSim.Region/OpenSim.Region.csproj | 2 +- .../OpenSim.RegionServer.csproj | 2 +- .../OpenSim.Terrain.BasicTerrain.csproj | 2 +- OpenSim/OpenSim/OpenSim.csproj | 2 +- 17 files changed, 366 insertions(+), 136 deletions(-) create mode 100644 OpenSim/Examples/SimpleApp/SimpleApp.exe.build create mode 100644 OpenSim/Examples/SimpleApp2/SimpleApp2.exe.build (limited to 'OpenSim') diff --git a/OpenSim/Examples/SimpleApp/MyWorld.cs b/OpenSim/Examples/SimpleApp/MyWorld.cs index 27775f1..d3da1c7 100644 --- a/OpenSim/Examples/SimpleApp/MyWorld.cs +++ b/OpenSim/Examples/SimpleApp/MyWorld.cs @@ -51,7 +51,7 @@ namespace SimpleApp client.OnCompleteMovementToRegion += delegate() { - client.MoveAgentIntoRegion(m_regionInfo); + client.MoveAgentIntoRegion(m_regionInfo, pos, LLVector3.Zero ); }; client.OnCompleteMovementToRegion += delegate() diff --git a/OpenSim/Examples/SimpleApp/Program.cs b/OpenSim/Examples/SimpleApp/Program.cs index e44bdba..b3b04ab 100644 --- a/OpenSim/Examples/SimpleApp/Program.cs +++ b/OpenSim/Examples/SimpleApp/Program.cs @@ -2,16 +2,17 @@ using System; using System.Collections.Generic; using System.Text; using OpenSim; -using OpenSim.Servers; using OpenSim.GridInterfaces.Local; using OpenSim.Framework.Interfaces; using OpenSim.Framework.Types; -using OpenSim.UserServer; using OpenSim.Framework.Console; using OpenSim.world; -using OpenSim.Physics.Manager; using OpenSim.Assets; using libsecondlife; +using OpenSim.UserServer; +using OpenSim.Servers; +using OpenSim.Framework; +using OpenSim.Caches; namespace SimpleApp { @@ -32,9 +33,9 @@ namespace SimpleApp LoginServer loginServer = new LoginServer( simAddr, simPort, 0, 0, false ); loginServer.Startup(); - - AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); - loginServer.SetSessionHandler(localSessions.AddNewSessionHandler ); + loginServer.SetSessionHandler( AddNewSessionHandler ); + + AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); InventoryCache inventoryCache = new InventoryCache(); @@ -67,9 +68,10 @@ namespace SimpleApp m_console.ReadLine(); } - private void AddNewSessionHandler(Login loginData) + private bool AddNewSessionHandler(ulong regionHandle, Login loginData) { - m_console.WriteLine( LogPriority.NORMAL, "Recieved Login from [{0}] [{1}]", loginData.First, loginData.Last ); + m_console.WriteLine( LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last ); + return true; } #region IAssetReceiver Members diff --git a/OpenSim/Examples/SimpleApp/SimpleApp.csproj b/OpenSim/Examples/SimpleApp/SimpleApp.csproj index 51e14de..f7cca86 100644 --- a/OpenSim/Examples/SimpleApp/SimpleApp.csproj +++ b/OpenSim/Examples/SimpleApp/SimpleApp.csproj @@ -1,86 +1,144 @@ - + - Debug - AnyCPU + Local 8.0.50727 2.0 - {AD062D99-DD53-4D37-A4B8-2AF635377AEB} + {24B12448-0000-0000-0000-000000000000} + Debug + AnyCPU + + + + SimpleApp + JScript + Grid + IE50 + false Exe - Properties + SimpleApp - SimpleApp + + + - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt + False + 285212672 + False + + + TRACE;DEBUG + + True + 4096 + False + ..\..\..\bin\ + False + False + False 4 + - pdbonly - true - bin\Release\ + False + 285212672 + False + + TRACE - prompt + + False + 4096 + True + bin\ + False + False + False 4 + - - False + ..\..\..\bin\libsecondlife.dll + False + + + OpenSim.World.dll + False + + + System.dll + False + + + ..\..\..\bin\System.Data.dll + False + + + System.Xml.dll + False - - - - - - - - - - {A7CD0630-0000-0000-0000-000000000000} - OpenSim.Framework.Console + + OpenSim.Caches + {1938EB12-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - {8ACA2445-0000-0000-0000-000000000000} OpenSim.Framework + {8ACA2445-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - - {8BB20F0A-0000-0000-0000-000000000000} - OpenSim.Servers - - - {8E81D43C-0000-0000-0000-000000000000} - XMLRPC + + OpenSim.Framework.Console + {A7CD0630-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - {546099CD-0000-0000-0000-000000000000} OpenSim.GridInterfaces.Local - - - {8BE16150-0000-0000-0000-000000000000} - OpenSim.Physics.Manager + {546099CD-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - {632E1BFD-0000-0000-0000-000000000000} OpenSim.RegionServer + {632E1BFD-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - - {642A14A8-0000-0000-0000-000000000000} - OpenSim.World + + OpenSim.Servers + {8BB20F0A-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False + + + XMLRPC + {8E81D43C-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - - - \ No newline at end of file + + + Code + + + Code + + + Code + + + + + + + + + + diff --git a/OpenSim/Examples/SimpleApp/SimpleApp.exe.build b/OpenSim/Examples/SimpleApp/SimpleApp.exe.build new file mode 100644 index 0000000..d63fe41 --- /dev/null +++ b/OpenSim/Examples/SimpleApp/SimpleApp.exe.build @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OpenSim/Examples/SimpleApp2/MyClientView.cs b/OpenSim/Examples/SimpleApp2/MyClientView.cs index dd8869c..4ef3c94 100644 --- a/OpenSim/Examples/SimpleApp2/MyClientView.cs +++ b/OpenSim/Examples/SimpleApp2/MyClientView.cs @@ -9,6 +9,7 @@ using libsecondlife.Packets; using OpenSim.Assets; using OpenSim.Framework.Types; using OpenSim.Framework; +using OpenSim.Caches; namespace SimpleApp2 { @@ -40,7 +41,7 @@ namespace SimpleApp2 { LLVector3 pos = new LLVector3(128, 128, 128); - MoveAgentIntoRegion(m_world.RegionInfo); + MoveAgentIntoRegion(m_world.RegionInfo, pos, LLVector3.Zero ); SendAvatarData( m_world.RegionInfo, FirstName, LastName, AgentId, 0, diff --git a/OpenSim/Examples/SimpleApp2/MyPacketServer.cs b/OpenSim/Examples/SimpleApp2/MyPacketServer.cs index 9c21016..67878c4 100644 --- a/OpenSim/Examples/SimpleApp2/MyPacketServer.cs +++ b/OpenSim/Examples/SimpleApp2/MyPacketServer.cs @@ -7,14 +7,16 @@ using System.Net; using libsecondlife.Packets; using OpenSim.Framework.Interfaces; using OpenSim.Framework; +using OpenSim.Caches; namespace SimpleApp2 { public class MyPacketServer : PacketServer { private float[] m_map; - - public MyPacketServer(float[] map, OpenSimNetworkHandler networkHandler, uint port ) : base( networkHandler, port ) + + public MyPacketServer(float[] map, ClientStackNetworkHandler networkHandler, uint port) + : base(networkHandler, port) { m_map = map; } diff --git a/OpenSim/Examples/SimpleApp2/Program.cs b/OpenSim/Examples/SimpleApp2/Program.cs index 9b977f6..34ede1b 100644 --- a/OpenSim/Examples/SimpleApp2/Program.cs +++ b/OpenSim/Examples/SimpleApp2/Program.cs @@ -9,9 +9,10 @@ using OpenSim.Framework.Types; using OpenSim.UserServer; using OpenSim.Framework.Console; using OpenSim.world; -using OpenSim.Physics.Manager; using OpenSim.Assets; using libsecondlife; +using OpenSim.Framework; +using OpenSim.Caches; namespace SimpleApp2 { @@ -37,8 +38,8 @@ namespace SimpleApp2 LoginServer loginServer = new LoginServer(simAddr, simPort, 0, 0, false); loginServer.Startup(); - AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); - loginServer.SetSessionHandler(localSessions.AddNewSessionHandler); + AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); + loginServer.SetSessionHandler( AddNewSessionHandler ); InventoryCache inventoryCache = new InventoryCache(); @@ -86,9 +87,10 @@ namespace SimpleApp2 return map; } - private void AddNewSessionHandler(Login loginData) + private bool AddNewSessionHandler(ulong regionHandle, Login loginData) { - m_console.WriteLine(LogPriority.NORMAL, "Recieved Login from [{0}] [{1}]", loginData.First, loginData.Last); + m_console.WriteLine(LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last); + return true; } static void Main(string[] args) diff --git a/OpenSim/Examples/SimpleApp2/SimpleApp2.csproj b/OpenSim/Examples/SimpleApp2/SimpleApp2.csproj index 92664e3..104c4cb 100644 --- a/OpenSim/Examples/SimpleApp2/SimpleApp2.csproj +++ b/OpenSim/Examples/SimpleApp2/SimpleApp2.csproj @@ -1,87 +1,147 @@ - + - Debug - AnyCPU + Local 8.0.50727 2.0 - {C84B2171-D386-4377-B490-9C5A56674B9E} + {24DF2448-0000-0000-0000-000000000000} + Debug + AnyCPU + + + + SimpleApp2 + JScript + Grid + IE50 + false Exe - Properties + SimpleApp2 - SimpleApp2 + + + - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt + False + 285212672 + False + + + TRACE;DEBUG + + True + 4096 + False + ..\..\..\bin\ + False + False + False 4 + - pdbonly - true - bin\Release\ + False + 285212672 + False + + TRACE - prompt + + False + 4096 + True + bin\ + False + False + False 4 + - - False + ..\..\..\bin\libsecondlife.dll + False + + + OpenSim.World.dll + False + + + System.dll + False + + + ..\..\..\bin\System.Data.dll + False + + + System.Xml.dll + False - - - - - - - - - - - {A7CD0630-0000-0000-0000-000000000000} - OpenSim.Framework.Console + + OpenSim.Caches + {1938EB12-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - {8ACA2445-0000-0000-0000-000000000000} OpenSim.Framework + {8ACA2445-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - - {8BB20F0A-0000-0000-0000-000000000000} - OpenSim.Servers - - - {8E81D43C-0000-0000-0000-000000000000} - XMLRPC + + OpenSim.Framework.Console + {A7CD0630-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - {546099CD-0000-0000-0000-000000000000} OpenSim.GridInterfaces.Local - - - {8BE16150-0000-0000-0000-000000000000} - OpenSim.Physics.Manager + {546099CD-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - {632E1BFD-0000-0000-0000-000000000000} OpenSim.RegionServer + {632E1BFD-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - - {642A14A8-0000-0000-0000-000000000000} - OpenSim.World + + OpenSim.Servers + {8BB20F0A-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False + + + XMLRPC + {8E81D43C-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False - - - \ No newline at end of file + + + Code + + + Code + + + Code + + + Code + + + + + + + + + + diff --git a/OpenSim/Examples/SimpleApp2/SimpleApp2.exe.build b/OpenSim/Examples/SimpleApp2/SimpleApp2.exe.build new file mode 100644 index 0000000..b47e7c3 --- /dev/null +++ b/OpenSim/Examples/SimpleApp2/SimpleApp2.exe.build @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user index 5941547..518ce40 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user @@ -2,7 +2,7 @@ Debug AnyCPU - C:\New Folder\second-life-viewer\opensim-dailys2\opensim15-06\Sugilite\bin\ + C:\Documents and Settings\Stefan\My Documents\source\opensim\branches\Sugilite\bin\ 8.0.50727 ProjectFiles 0 diff --git a/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj b/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj index f88eb32..5f8b0ed 100644 --- a/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj +++ b/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\..\bin\Physics\ + bin\ False False False diff --git a/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj b/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj index 08f54aa..22d7786 100644 --- a/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj +++ b/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\..\bin\Physics\ + bin\ False False False diff --git a/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj b/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj index aa89cc1..0cebe66 100644 --- a/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj +++ b/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\..\bin\Physics\ + bin\ False False False diff --git a/OpenSim/OpenSim.Region/OpenSim.Region.csproj b/OpenSim/OpenSim.Region/OpenSim.Region.csproj index 94efbed..2a5d6ec 100644 --- a/OpenSim/OpenSim.Region/OpenSim.Region.csproj +++ b/OpenSim/OpenSim.Region/OpenSim.Region.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\bin\ + bin\ False False False diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj index 63eeb9c..17a651d 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\bin\ + bin\ False False False diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj b/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj index aae0ab8..e38c879 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\bin\ + bin\ False False False diff --git a/OpenSim/OpenSim/OpenSim.csproj b/OpenSim/OpenSim/OpenSim.csproj index fb0e0c1..df3a32c 100644 --- a/OpenSim/OpenSim/OpenSim.csproj +++ b/OpenSim/OpenSim/OpenSim.csproj @@ -50,7 +50,7 @@ False 4096 True - ..\..\bin\ + bin\ False False False -- cgit v1.1