1: 2010-05-23 (日) 00:45:28 admin |
現: 2010-05-23 (日) 01:03:02 admin |
- | *** [#r72743cd] | + | *** DeBug[#r72743cd] |
| + | - OpenSim/Services/Interfaces/IGridUserService.cs |
| + | - GridUserInfo コンストラクタのミス |
| | | |
- | *** [#g928ed08] | + | public GridUserInfo(Dictionary<string, object> kvp) |
- | **** Region [#a918b2d9] | + | { |
| + | if (kvp.ContainsKey("UserID")) |
| + | UserID = kvp["UserID"].ToString(); |
| + | |
| + | if (kvp.ContainsKey("HomeRegionID")) |
| + | UUID.TryParse(kvp["HomeRegionID"].ToString(), out HomeRegionID); |
| + | if (kvp.ContainsKey("HomePosition")) |
| + | Vector3.TryParse(kvp["HomePosition"].ToString(), out HomePosition); |
| + | if (kvp.ContainsKey("HomeLookAt")) |
| + | Vector3.TryParse(kvp["HomeLookAt"].ToString(), out HomeLookAt); |
| + | |
| + | if (kvp.ContainsKey("LastRegionID")) |
| + | - UUID.TryParse(kvp["LastRegionID"].ToString(), out HomeRegionID); |
| + | + UUID.TryParse(kvp["LastRegionID"].ToString(), out LastRegionID); |
| + | if (kvp.ContainsKey("LastPosition")) |
| + | Vector3.TryParse(kvp["LastPosition"].ToString(), out LastPosition); |
| + | if (kvp.ContainsKey("LastLookAt")) |
| + | Vector3.TryParse(kvp["LastLookAt"].ToString(), out LastLookAt); |
| + | |
| + | if (kvp.ContainsKey("Login")) |
| + | DateTime.TryParse(kvp["Login"].ToString(), out Login); |
| + | if (kvp.ContainsKey("Logout")) |
| + | DateTime.TryParse(kvp["Logout"].ToString(), out Logout); |
| + | if (kvp.ContainsKey("Online")) |
| + | Boolean.TryParse(kvp["Online"].ToString(), out Online); |
| + | } |
| + | |
| + | #br |
| + | |
| + | *** 参考: ホームへのテレポートの処理シーケンス[#g928ed08] |
| + | |
| + | **** Regionサーバ [#a918b2d9] |
| - OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | | - OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs |
- | -- TeleportHome(UUID id, IClientAPI client) | + | -TeleportHome(UUID id, IClientAPI client) |
- | --- OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs | + | -- OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs |
- | ---- GetGridUserInfo(string userID) | + | -- GetGridUserInfo(string userID) |
- | ----- Get() | + | --- Get() |
| **** Robust を POST Requestで呼び出し [#f4899c59] | | **** Robust を POST Requestで呼び出し [#f4899c59] |
- | - queryString = VERSIONMIN=0&VERSIONMAX=0&METHOD=getgriduserinfo&UserID=f529f8ae-89f2-4156-9f35-3f8441258d81 | + | - queryString |
- | **** Robust [#ae4e51ba] | + | VERSIONMIN=0&VERSIONMAX=0&METHOD=getgriduserinfo&UserID=f529f8ae-89f2-4156-9f35-3f8441258d81 |
| + | |
| + | **** Robustサーバ [#ae4e51ba] |
| - OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | | - OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs |
- | -- GetGridUserInfo() デリゲート呼び出し | + | - GetGridUserInfo() デリゲート呼び出し |
- | --- OpenSim/Services/UserAccountService/GridUserService.cs | + | -- OpenSim/Services/UserAccountService/GridUserService.cs |
- | ---- GetGridUserInfo() | + | -- GetGridUserInfo() |
- | **** Region へのRespose [#v09bf752] | + | |
| + | **** Regionサーバ へのRespose [#v09bf752] |
| <?xml version="1.0"?> | | <?xml version="1.0"?> |
| <ServerResponse><result type="List"> | | <ServerResponse><result type="List"> |
| <Login>5/22/2010 2:20:16 PM</Login> | | <Login>5/22/2010 2:20:16 PM</Login> |
| <Logout>5/22/2010 2:09:37 PM</Logout> | | <Logout>5/22/2010 2:09:37 PM</Logout> |
- | </result></ServerResponse> | + | </result></ServerResponse> |
- | | + | |
- | ↓ | + | |
- | | + | |
- | <?xml version="1.0"?> | + | |
- | <ServerResponse><result type="List"> | + | |
- | <UserID>f529f8ae-89f2-4156-9f35-3f8441258d81</UserID> | + | |
- | <HomeRegionID>87b03ad8-ff29-450b-a070-d82e44b50ed1</HomeRegionID> | + | |
- | <HomePosition><128.0104, 123.036, 24.94418></HomePosition> | + | |
- | <HomeLookAt><-0.06136713, 0.9981153, 0></HomeLookAt> | + | |
- | <LastRegionID>27425ff2-ba01-42d5-9564-d07cffa6b213</LastRegionID> | + | |
- | <LastPosition><128.0132, 123.0014, 26.24999></LastPosition> | + | |
- | <LastLookAt><0, 0, 0></LastLookAt> | + | |
- | <Online>True</Online> | + | |
- | <Login>5/22/2010 2:31:03 PM</Login> | + | |
- | <Logout>5/22/2010 2:28:17 PM</Logout> | + | |
- | </result></ServerResponse> | + | |
| | | |
- | Get() | + | ****Regionサーバ [#h6ed3ccb] |
| + | - OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs |
| + | - Get() |
| + | -- GridUserInfo のコンストラクタ呼び出し(ここでバグる) |
| + | --- OpenSim/Services/Interfaces/IGridUserService.cs |
| + | --- GridUserInfo (コンストラクタ:ここでバグる) |