*OGS1 Key2Name/Name2Key works

*OGS1 doesnt crash on startup anymore
Sugilite
mingchen 2007-07-02 21:02:11 +00:00
parent 71f1b2d878
commit 67af17fdd1
4 changed files with 71 additions and 81 deletions

View File

@ -1,5 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
# Visual C# Express 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework.Data", "OpenSim\Framework\Data\OpenSim.Framework.Data.csproj", "{36B72A9B-0000-0000-0000-000000000000}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework.Data.DB4o", "OpenSim\Framework\Data.DB4o\OpenSim.Framework.Data.DB4o.csproj", "{FD2D303D-0000-0000-0000-000000000000}"
@ -29,17 +29,6 @@ Global
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
({FD2D303D-0000-0000-0000-000000000000}).2 = ({36B72A9B-0000-0000-0000-000000000000})
({17F7F694-0000-0000-0000-000000000000}).1 = ({36B72A9B-0000-0000-0000-000000000000})
({17F7F6BE-0000-0000-0000-000000000000}).2 = ({36B72A9B-0000-0000-0000-000000000000})
({6ECC56A9-0000-0000-0000-000000000000}).1 = ({36B72A9B-0000-0000-0000-000000000000})
({586E2916-0000-0000-0000-000000000000}).4 = ({36B72A9B-0000-0000-0000-000000000000})
({60FCC3A6-0000-0000-0000-000000000000}).4 = ({36B72A9B-0000-0000-0000-000000000000})
({60FCC3A6-0000-0000-0000-000000000000}).7 = ({4B7BFD1C-0000-0000-0000-000000000000})
({2FC96F92-0000-0000-0000-000000000000}).4 = ({36B72A9B-0000-0000-0000-000000000000})
({2FC96F92-0000-0000-0000-000000000000}).7 = ({586E2916-0000-0000-0000-000000000000})
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{36B72A9B-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{36B72A9B-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU

View File

@ -223,6 +223,7 @@ namespace OpenSim.Grid.GridServer
SimProfileData TheSim = null;
Hashtable requestData = (Hashtable)request.Params[0];
Console.WriteLine("WOOT: " + requestData.ToString());
if (requestData.ContainsKey("UUID"))
{
TheSim = getRegion(new LLUUID((string)requestData["UUID"]));

View File

@ -48,7 +48,7 @@ namespace OpenSim.Grid.GridServer
/// </summary>
public class OpenGrid_Main : conscmd_callback
{
private string ConfigDll = "OpenGrid.Config.GridConfigDb4o.dll";
private string ConfigDll = "OpenSim.Grid.GridServer.Config.dll";
private string GridDll = "OpenSim.Framework.Data.MySQL.dll";
public GridConfig Cfg;

View File

@ -35,10 +35,10 @@ namespace OpenSim.Region.Communications.OGS1
userData.userAssetURI = (string)data["server_asset"];
userData.profileFirstText = (string)data["profile_firstlife_about"];
userData.profileFirstImage = new LLUUID((string)data["profile_firstlife_image"]);
userData.profileCanDoMask = (uint)data["profile_can_do"];
userData.profileWantDoMask = (uint)data["profile_want_do"];
userData.profileCanDoMask = Convert.ToUInt32((string)data["profile_can_do"]);
userData.profileWantDoMask = Convert.ToUInt32(data["profile_want_do"]);
userData.profileImage = new LLUUID((string)data["profile_image"]);
userData.lastLogin = (int)data["profile_lastlogin"];
userData.lastLogin = Convert.ToInt32((string)data["profile_lastlogin"]);
userData.homeLocation = new LLVector3();
userData.homeLookAt = new LLVector3();
@ -51,8 +51,8 @@ namespace OpenSim.Region.Communications.OGS1
public UserProfileData GetUserProfile(string name)
{
try
{
//try
//{
Hashtable param = new Hashtable();
param["avatar_name"] = name;
IList parameters = new ArrayList();
@ -62,12 +62,12 @@ namespace OpenSim.Region.Communications.OGS1
Hashtable respData = (Hashtable)resp.Value;
return ConvertXMLRPCDataToUserProfile(respData);
}
catch (Exception e)
{
Console.WriteLine("Error when trying to fetch profile data by name from remote user server: " + e.Message);
}
return null;
//}
//catch (Exception e)
//{
// Console.WriteLine("Error when trying to fetch profile data by name from remote user server: " + e.Message);
//}
//return null;
}
public UserProfileData GetUserProfile(LLUUID avatarID)
{