diff options
25 files changed, 1134 insertions, 678 deletions
diff --git a/Common/OpenGrid.Framework.Communications/IUserServices.cs b/Common/OpenGrid.Framework.Communications/IUserServices.cs index 4cb66e7..3d8e791 100644 --- a/Common/OpenGrid.Framework.Communications/IUserServices.cs +++ b/Common/OpenGrid.Framework.Communications/IUserServices.cs | |||
@@ -36,9 +36,9 @@ namespace OpenGrid.Framework.Communications | |||
36 | { | 36 | { |
37 | public interface IUserServices | 37 | public interface IUserServices |
38 | { | 38 | { |
39 | UserProfileData GetUserProfile(string first_name, string last_name); | 39 | UserProfileData GetUserProfile(string firstName, string lastName); |
40 | UserProfileData GetUserProfile(string name); | 40 | UserProfileData GetUserProfile(string name); |
41 | UserProfileData GetUserProfile(LLUUID avatar_id); | 41 | UserProfileData GetUserProfile(LLUUID avatarID); |
42 | 42 | ||
43 | } | 43 | } |
44 | } | 44 | } |
diff --git a/Common/OpenGrid.Framework.UserManager/LoginResponse.cs b/Common/OpenGrid.Framework.UserManager/LoginResponse.cs new file mode 100644 index 0000000..1c51aeb --- /dev/null +++ b/Common/OpenGrid.Framework.UserManager/LoginResponse.cs | |||
@@ -0,0 +1,656 @@ | |||
1 | using System; | ||
2 | using System.Text; | ||
3 | using System.Text.RegularExpressions; | ||
4 | using System.Threading; | ||
5 | using System.Collections; | ||
6 | using System.Xml; | ||
7 | using libsecondlife; | ||
8 | using OpenSim.Framework.Utilities; | ||
9 | using OpenSim.Framework.Interfaces; | ||
10 | using Nwc.XmlRpc; | ||
11 | |||
12 | namespace OpenGrid.Framework.UserManagement | ||
13 | { | ||
14 | |||
15 | /// <summary> | ||
16 | /// A temp class to handle login response. | ||
17 | /// Should make use of UserProfileManager where possible. | ||
18 | /// </summary> | ||
19 | |||
20 | public class LoginResponse | ||
21 | { | ||
22 | private Hashtable loginFlagsHash; | ||
23 | private Hashtable globalTexturesHash; | ||
24 | private Hashtable loginError; | ||
25 | private Hashtable eventCategoriesHash; | ||
26 | private Hashtable uiConfigHash; | ||
27 | private Hashtable classifiedCategoriesHash; | ||
28 | |||
29 | private ArrayList loginFlags; | ||
30 | private ArrayList globalTextures; | ||
31 | private ArrayList eventCategories; | ||
32 | private ArrayList uiConfig; | ||
33 | private ArrayList classifiedCategories; | ||
34 | private ArrayList inventoryRoot; | ||
35 | private ArrayList initialOutfit; | ||
36 | private ArrayList agentInventory; | ||
37 | |||
38 | private UserInfo userProfile; | ||
39 | |||
40 | private LLUUID agentID; | ||
41 | private LLUUID sessionID; | ||
42 | private LLUUID secureSessionID; | ||
43 | private LLUUID baseFolderID; | ||
44 | private LLUUID inventoryFolderID; | ||
45 | |||
46 | // Login Flags | ||
47 | private string dst; | ||
48 | private string stipendSinceLogin; | ||
49 | private string gendered; | ||
50 | private string everLoggedIn; | ||
51 | private string login; | ||
52 | private int simPort; | ||
53 | private string simAddress; | ||
54 | private string agentAccess; | ||
55 | private Int32 circuitCode; | ||
56 | private uint regionX; | ||
57 | private uint regionY; | ||
58 | |||
59 | // Login | ||
60 | private string firstname; | ||
61 | private string lastname; | ||
62 | |||
63 | // Global Textures | ||
64 | private string sunTexture; | ||
65 | private string cloudTexture; | ||
66 | private string moonTexture; | ||
67 | |||
68 | // Error Flags | ||
69 | private string errorReason; | ||
70 | private string errorMessage; | ||
71 | |||
72 | // Response | ||
73 | private XmlRpcResponse xmlRpcResponse; | ||
74 | private XmlRpcResponse defaultXmlRpcResponse; | ||
75 | |||
76 | private string welcomeMessage; | ||
77 | private string startLocation; | ||
78 | private string allowFirstLife; | ||
79 | private string home; | ||
80 | private string seedCapability; | ||
81 | private string lookAt; | ||
82 | |||
83 | public LoginResponse() | ||
84 | { | ||
85 | this.loginFlags = new ArrayList(); | ||
86 | this.globalTextures = new ArrayList(); | ||
87 | this.eventCategories = new ArrayList(); | ||
88 | this.uiConfig = new ArrayList(); | ||
89 | this.classifiedCategories = new ArrayList(); | ||
90 | |||
91 | this.loginError = new Hashtable(); | ||
92 | this.eventCategoriesHash = new Hashtable(); | ||
93 | this.classifiedCategoriesHash = new Hashtable(); | ||
94 | this.uiConfigHash = new Hashtable(); | ||
95 | |||
96 | this.defaultXmlRpcResponse = new XmlRpcResponse(); | ||
97 | this.userProfile = new UserInfo(); | ||
98 | this.inventoryRoot = new ArrayList(); | ||
99 | this.initialOutfit = new ArrayList(); | ||
100 | this.agentInventory = new ArrayList(); | ||
101 | |||
102 | this.xmlRpcResponse = new XmlRpcResponse(); | ||
103 | this.defaultXmlRpcResponse = new XmlRpcResponse(); | ||
104 | |||
105 | this.SetDefaultValues(); | ||
106 | } // LoginServer | ||
107 | |||
108 | public void SetDefaultValues() | ||
109 | { | ||
110 | try | ||
111 | { | ||
112 | this.DST = "N"; | ||
113 | this.StipendSinceLogin = "N"; | ||
114 | this.Gendered = "Y"; | ||
115 | this.EverLoggedIn = "Y"; | ||
116 | this.login = "false"; | ||
117 | this.firstname = "Test"; | ||
118 | this.lastname = "User"; | ||
119 | this.agentAccess = "M"; | ||
120 | this.startLocation = "last"; | ||
121 | this.allowFirstLife = "Y"; | ||
122 | |||
123 | this.SunTexture = "cce0f112-878f-4586-a2e2-a8f104bba271"; | ||
124 | this.CloudTexture = "fc4b9f0b-d008-45c6-96a4-01dd947ac621"; | ||
125 | this.MoonTexture = "fc4b9f0b-d008-45c6-96a4-01dd947ac621"; | ||
126 | |||
127 | this.ErrorMessage = "You have entered an invalid name/password combination. Check Caps/lock."; | ||
128 | this.ErrorReason = "key"; | ||
129 | this.welcomeMessage = "Welcome to OpenSim!"; | ||
130 | this.seedCapability = ""; | ||
131 | this.home = "{'region_handle':[r" + (997 * 256).ToString() + ",r" + (996 * 256).ToString() + "], 'position':[r" + this.userProfile.homepos.X.ToString() + ",r" + this.userProfile.homepos.Y.ToString() + ",r" + this.userProfile.homepos.Z.ToString() + "], 'look_at':[r" + this.userProfile.homelookat.X.ToString() + ",r" + this.userProfile.homelookat.Y.ToString() + ",r" + this.userProfile.homelookat.Z.ToString() + "]}"; | ||
132 | this.lookAt = "[r0.99949799999999999756,r0.03166859999999999814,r0]"; | ||
133 | this.RegionX = (uint)255232; | ||
134 | this.RegionY = (uint)254976; | ||
135 | |||
136 | // Classifieds; | ||
137 | this.AddClassifiedCategory((Int32)1, "Shopping"); | ||
138 | this.AddClassifiedCategory((Int32)2, "Land Rental"); | ||
139 | this.AddClassifiedCategory((Int32)3, "Property Rental"); | ||
140 | this.AddClassifiedCategory((Int32)4, "Special Attraction"); | ||
141 | this.AddClassifiedCategory((Int32)5, "New Products"); | ||
142 | this.AddClassifiedCategory((Int32)6, "Employment"); | ||
143 | this.AddClassifiedCategory((Int32)7, "Wanted"); | ||
144 | this.AddClassifiedCategory((Int32)8, "Service"); | ||
145 | this.AddClassifiedCategory((Int32)9, "Personal"); | ||
146 | |||
147 | |||
148 | this.SessionID = LLUUID.Random(); | ||
149 | this.SecureSessionID = LLUUID.Random(); | ||
150 | this.AgentID = LLUUID.Random(); | ||
151 | |||
152 | Hashtable InitialOutfitHash = new Hashtable(); | ||
153 | InitialOutfitHash["folder_name"] = "Nightclub Female"; | ||
154 | InitialOutfitHash["gender"] = "female"; | ||
155 | this.initialOutfit.Add(InitialOutfitHash); | ||
156 | } | ||
157 | catch (Exception e) | ||
158 | { | ||
159 | OpenSim.Framework.Console.MainLog.Instance.WriteLine( | ||
160 | OpenSim.Framework.Console.LogPriority.LOW, | ||
161 | "LoginResponse: Unable to set default values: " + e.Message | ||
162 | ); | ||
163 | } | ||
164 | |||
165 | } // SetDefaultValues | ||
166 | |||
167 | #region Login Failure Methods | ||
168 | public XmlRpcResponse GenerateFailureResponse(string reason, string message, string login) | ||
169 | { | ||
170 | // Overwrite any default values; | ||
171 | this.xmlRpcResponse = new XmlRpcResponse(); | ||
172 | |||
173 | // Ensure Login Failed message/reason; | ||
174 | this.ErrorMessage = message; | ||
175 | this.ErrorReason = reason; | ||
176 | |||
177 | this.loginError["reason"] = this.ErrorReason; | ||
178 | this.loginError["message"] = this.ErrorMessage; | ||
179 | this.loginError["login"] = login; | ||
180 | this.xmlRpcResponse.Value = this.loginError; | ||
181 | return (this.xmlRpcResponse); | ||
182 | } // GenerateResponse | ||
183 | |||
184 | public XmlRpcResponse CreateFailedResponse() | ||
185 | { | ||
186 | return (this.CreateLoginFailedResponse()); | ||
187 | } // CreateErrorConnectingToGridResponse() | ||
188 | |||
189 | public XmlRpcResponse CreateLoginFailedResponse() | ||
190 | { | ||
191 | return (this.GenerateFailureResponse("key", "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist.", "false")); | ||
192 | } // LoginFailedResponse | ||
193 | |||
194 | public XmlRpcResponse CreateAlreadyLoggedInResponse() | ||
195 | { | ||
196 | return (this.GenerateFailureResponse("presence", "You appear to be already logged in, if this is not the case please wait for your session to timeout, if this takes longer than a few minutes please contact the grid owner", "false")); | ||
197 | } // CreateAlreadyLoggedInResponse() | ||
198 | |||
199 | public XmlRpcResponse CreateDeadRegionResponse() | ||
200 | { | ||
201 | return (this.GenerateFailureResponse("key", "The region you are attempting to log into is not responding. Please select another region and try again.", "false")); | ||
202 | } | ||
203 | |||
204 | public XmlRpcResponse CreateGridErrorResponse() | ||
205 | { | ||
206 | return (this.GenerateFailureResponse("key", "Error connecting to grid. Could not percieve credentials from login XML.", "false")); | ||
207 | } | ||
208 | |||
209 | #endregion | ||
210 | |||
211 | public XmlRpcResponse ToXmlRpcResponse() | ||
212 | { | ||
213 | try | ||
214 | { | ||
215 | |||
216 | Hashtable responseData = new Hashtable(); | ||
217 | |||
218 | this.loginFlagsHash = new Hashtable(); | ||
219 | this.loginFlagsHash["daylight_savings"] = this.DST; | ||
220 | this.loginFlagsHash["stipend_since_login"] = this.StipendSinceLogin; | ||
221 | this.loginFlagsHash["gendered"] = this.Gendered; | ||
222 | this.loginFlagsHash["ever_logged_in"] = this.EverLoggedIn; | ||
223 | this.loginFlags.Add(this.loginFlagsHash); | ||
224 | |||
225 | responseData["first_name"] = this.Firstname; | ||
226 | responseData["last_name"] = this.Lastname; | ||
227 | responseData["agent_access"] = this.agentAccess; | ||
228 | |||
229 | this.globalTexturesHash = new Hashtable(); | ||
230 | this.globalTexturesHash["sun_texture_id"] = this.SunTexture; | ||
231 | this.globalTexturesHash["cloud_texture_id"] = this.CloudTexture; | ||
232 | this.globalTexturesHash["moon_texture_id"] = this.MoonTexture; | ||
233 | this.globalTextures.Add(this.globalTexturesHash); | ||
234 | this.eventCategories.Add(this.eventCategoriesHash); | ||
235 | |||
236 | this.AddToUIConfig("allow_first_life", this.allowFirstLife); | ||
237 | this.uiConfig.Add(this.uiConfigHash); | ||
238 | |||
239 | responseData["sim_port"] =(Int32) this.SimPort; | ||
240 | responseData["sim_ip"] = this.SimAddress; | ||
241 | responseData["agent_id"] = this.AgentID.ToStringHyphenated(); | ||
242 | responseData["session_id"] = this.SessionID.ToStringHyphenated(); | ||
243 | responseData["secure_session_id"] = this.SecureSessionID.ToStringHyphenated(); | ||
244 | responseData["circuit_code"] = this.CircuitCode; | ||
245 | responseData["seconds_since_epoch"] = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; | ||
246 | responseData["login-flags"] = this.loginFlags; | ||
247 | responseData["global-textures"] = this.globalTextures; | ||
248 | responseData["seed_capability"] = this.seedCapability; | ||
249 | |||
250 | responseData["event_categories"] = this.eventCategories; | ||
251 | responseData["event_notifications"] = new ArrayList(); // todo | ||
252 | responseData["classified_categories"] = this.classifiedCategories; | ||
253 | responseData["ui-config"] = this.uiConfig; | ||
254 | |||
255 | responseData["inventory-skeleton"] = this.agentInventory; | ||
256 | responseData["inventory-skel-lib"] = new ArrayList(); // todo | ||
257 | responseData["inventory-root"] = this.inventoryRoot; | ||
258 | responseData["gestures"] = new ArrayList(); // todo | ||
259 | responseData["inventory-lib-owner"] = new ArrayList(); // todo | ||
260 | responseData["initial-outfit"] = this.initialOutfit; | ||
261 | responseData["start_location"] = this.startLocation; | ||
262 | responseData["seed_capability"] = this.seedCapability; | ||
263 | responseData["home"] = this.home; | ||
264 | responseData["look_at"] = this.lookAt; | ||
265 | responseData["message"] = this.welcomeMessage; | ||
266 | responseData["region_x"] = (Int32)this.RegionX * 256; | ||
267 | responseData["region_y"] = (Int32)this.RegionY * 256; | ||
268 | |||
269 | //responseData["inventory-lib-root"] = new ArrayList(); // todo | ||
270 | //responseData["buddy-list"] = new ArrayList(); // todo | ||
271 | |||
272 | responseData["login"] = "true"; | ||
273 | this.xmlRpcResponse.Value = responseData; | ||
274 | |||
275 | return (this.xmlRpcResponse); | ||
276 | } | ||
277 | catch (Exception e) | ||
278 | { | ||
279 | OpenSim.Framework.Console.MainLog.Instance.WriteLine( | ||
280 | OpenSim.Framework.Console.LogPriority.LOW, | ||
281 | "LoginResponse: Error creating XML-RPC Response: " + e.Message | ||
282 | ); | ||
283 | return (this.GenerateFailureResponse("Internal Error", "Error generating Login Response", "false")); | ||
284 | |||
285 | } | ||
286 | |||
287 | } // ToXmlRpcResponse | ||
288 | |||
289 | public void SetEventCategories(string category, string value) | ||
290 | { | ||
291 | this.eventCategoriesHash[category] = value; | ||
292 | } // SetEventCategories | ||
293 | |||
294 | public void AddToUIConfig(string itemName, string item) | ||
295 | { | ||
296 | this.uiConfigHash[itemName] = item; | ||
297 | } // SetUIConfig | ||
298 | |||
299 | public void AddClassifiedCategory(Int32 ID, string categoryName) | ||
300 | { | ||
301 | this.classifiedCategoriesHash["category_name"] = categoryName; | ||
302 | this.classifiedCategoriesHash["category_id"] = ID; | ||
303 | this.classifiedCategories.Add(this.classifiedCategoriesHash); | ||
304 | // this.classifiedCategoriesHash.Clear(); | ||
305 | } // SetClassifiedCategory | ||
306 | |||
307 | #region Properties | ||
308 | public string Login | ||
309 | { | ||
310 | get | ||
311 | { | ||
312 | return this.login; | ||
313 | } | ||
314 | set | ||
315 | { | ||
316 | this.login = value; | ||
317 | } | ||
318 | } // Login | ||
319 | |||
320 | public string DST | ||
321 | { | ||
322 | get | ||
323 | { | ||
324 | return this.dst; | ||
325 | } | ||
326 | set | ||
327 | { | ||
328 | this.dst = value; | ||
329 | } | ||
330 | } // DST | ||
331 | |||
332 | public string StipendSinceLogin | ||
333 | { | ||
334 | get | ||
335 | { | ||
336 | return this.stipendSinceLogin; | ||
337 | } | ||
338 | set | ||
339 | { | ||
340 | this.stipendSinceLogin = value; | ||
341 | } | ||
342 | } // StipendSinceLogin | ||
343 | |||
344 | public string Gendered | ||
345 | { | ||
346 | get | ||
347 | { | ||
348 | return this.gendered; | ||
349 | } | ||
350 | set | ||
351 | { | ||
352 | this.gendered = value; | ||
353 | } | ||
354 | } // Gendered | ||
355 | |||
356 | public string EverLoggedIn | ||
357 | { | ||
358 | get | ||
359 | { | ||
360 | return this.everLoggedIn; | ||
361 | } | ||
362 | set | ||
363 | { | ||
364 | this.everLoggedIn = value; | ||
365 | } | ||
366 | } // EverLoggedIn | ||
367 | |||
368 | public int SimPort | ||
369 | { | ||
370 | get | ||
371 | { | ||
372 | return this.simPort; | ||
373 | } | ||
374 | set | ||
375 | { | ||
376 | this.simPort = value; | ||
377 | } | ||
378 | } // SimPort | ||
379 | |||
380 | public string SimAddress | ||
381 | { | ||
382 | get | ||
383 | { | ||
384 | return this.simAddress; | ||
385 | } | ||
386 | set | ||
387 | { | ||
388 | this.simAddress = value; | ||
389 | } | ||
390 | } // SimAddress | ||
391 | |||
392 | public LLUUID AgentID | ||
393 | { | ||
394 | get | ||
395 | { | ||
396 | return this.agentID; | ||
397 | } | ||
398 | set | ||
399 | { | ||
400 | this.agentID = value; | ||
401 | } | ||
402 | } // AgentID | ||
403 | |||
404 | public LLUUID SessionID | ||
405 | { | ||
406 | get | ||
407 | { | ||
408 | return this.sessionID; | ||
409 | } | ||
410 | set | ||
411 | { | ||
412 | this.sessionID = value; | ||
413 | } | ||
414 | } // SessionID | ||
415 | |||
416 | public LLUUID SecureSessionID | ||
417 | { | ||
418 | get | ||
419 | { | ||
420 | return this.secureSessionID; | ||
421 | } | ||
422 | set | ||
423 | { | ||
424 | this.secureSessionID = value; | ||
425 | } | ||
426 | } // SecureSessionID | ||
427 | |||
428 | public Int32 CircuitCode | ||
429 | { | ||
430 | get | ||
431 | { | ||
432 | return this.circuitCode; | ||
433 | } | ||
434 | set | ||
435 | { | ||
436 | this.circuitCode = value; | ||
437 | } | ||
438 | } // CircuitCode | ||
439 | |||
440 | public uint RegionX | ||
441 | { | ||
442 | get | ||
443 | { | ||
444 | return this.regionX; | ||
445 | } | ||
446 | set | ||
447 | { | ||
448 | this.regionX = value; | ||
449 | } | ||
450 | } // RegionX | ||
451 | |||
452 | public uint RegionY | ||
453 | { | ||
454 | get | ||
455 | { | ||
456 | return this.regionY; | ||
457 | } | ||
458 | set | ||
459 | { | ||
460 | this.regionY = value; | ||
461 | } | ||
462 | } // RegionY | ||
463 | |||
464 | public string SunTexture | ||
465 | { | ||
466 | get | ||
467 | { | ||
468 | return this.sunTexture; | ||
469 | } | ||
470 | set | ||
471 | { | ||
472 | this.sunTexture = value; | ||
473 | } | ||
474 | } // SunTexture | ||
475 | |||
476 | public string CloudTexture | ||
477 | { | ||
478 | get | ||
479 | { | ||
480 | return this.cloudTexture; | ||
481 | } | ||
482 | set | ||
483 | { | ||
484 | this.cloudTexture = value; | ||
485 | } | ||
486 | } // CloudTexture | ||
487 | |||
488 | public string MoonTexture | ||
489 | { | ||
490 | get | ||
491 | { | ||
492 | return this.moonTexture; | ||
493 | } | ||
494 | set | ||
495 | { | ||
496 | this.moonTexture = value; | ||
497 | } | ||
498 | } // MoonTexture | ||
499 | |||
500 | public string Firstname | ||
501 | { | ||
502 | get | ||
503 | { | ||
504 | return this.firstname; | ||
505 | } | ||
506 | set | ||
507 | { | ||
508 | this.firstname = value; | ||
509 | } | ||
510 | } // Firstname | ||
511 | |||
512 | public string Lastname | ||
513 | { | ||
514 | get | ||
515 | { | ||
516 | return this.lastname; | ||
517 | } | ||
518 | set | ||
519 | { | ||
520 | this.lastname = value; | ||
521 | } | ||
522 | } // Lastname | ||
523 | |||
524 | public string AgentAccess | ||
525 | { | ||
526 | get | ||
527 | { | ||
528 | return this.agentAccess; | ||
529 | } | ||
530 | set | ||
531 | { | ||
532 | this.agentAccess = value; | ||
533 | } | ||
534 | } | ||
535 | |||
536 | public string StartLocation | ||
537 | { | ||
538 | get | ||
539 | { | ||
540 | return this.startLocation; | ||
541 | } | ||
542 | set | ||
543 | { | ||
544 | this.startLocation = value; | ||
545 | } | ||
546 | } // StartLocation | ||
547 | |||
548 | public string LookAt | ||
549 | { | ||
550 | get | ||
551 | { | ||
552 | return this.lookAt; | ||
553 | } | ||
554 | set | ||
555 | { | ||
556 | this.lookAt = value; | ||
557 | } | ||
558 | } | ||
559 | |||
560 | public string SeedCapability | ||
561 | { | ||
562 | get | ||
563 | { | ||
564 | return this.seedCapability; | ||
565 | } | ||
566 | set | ||
567 | { | ||
568 | this.seedCapability = value; | ||
569 | } | ||
570 | } // SeedCapability | ||
571 | |||
572 | public string ErrorReason | ||
573 | { | ||
574 | get | ||
575 | { | ||
576 | return this.errorReason; | ||
577 | } | ||
578 | set | ||
579 | { | ||
580 | this.errorReason = value; | ||
581 | } | ||
582 | } // ErrorReason | ||
583 | |||
584 | public string ErrorMessage | ||
585 | { | ||
586 | get | ||
587 | { | ||
588 | return this.errorMessage; | ||
589 | } | ||
590 | set | ||
591 | { | ||
592 | this.errorMessage = value; | ||
593 | } | ||
594 | } // ErrorMessage | ||
595 | |||
596 | public ArrayList InventoryRoot | ||
597 | { | ||
598 | get | ||
599 | { | ||
600 | return this.inventoryRoot; | ||
601 | } | ||
602 | set | ||
603 | { | ||
604 | this.inventoryRoot = value; | ||
605 | } | ||
606 | } | ||
607 | |||
608 | public ArrayList InventorySkeleton | ||
609 | { | ||
610 | get | ||
611 | { | ||
612 | return this.agentInventory; | ||
613 | } | ||
614 | set | ||
615 | { | ||
616 | this.agentInventory = value; | ||
617 | } | ||
618 | } | ||
619 | |||
620 | public string Home | ||
621 | { | ||
622 | get | ||
623 | { | ||
624 | return this.home; | ||
625 | } | ||
626 | set | ||
627 | { | ||
628 | this.home = value; | ||
629 | } | ||
630 | } | ||
631 | |||
632 | public string Message | ||
633 | { | ||
634 | get | ||
635 | { | ||
636 | return this.welcomeMessage; | ||
637 | } | ||
638 | set | ||
639 | { | ||
640 | this.welcomeMessage = value; | ||
641 | } | ||
642 | } | ||
643 | #endregion | ||
644 | |||
645 | |||
646 | public class UserInfo | ||
647 | { | ||
648 | public string firstname; | ||
649 | public string lastname; | ||
650 | public ulong homeregionhandle; | ||
651 | public LLVector3 homepos; | ||
652 | public LLVector3 homelookat; | ||
653 | } | ||
654 | } | ||
655 | } | ||
656 | |||
diff --git a/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj b/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj index 232712b..9a3cdba 100644 --- a/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj +++ b/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.csproj | |||
@@ -108,6 +108,9 @@ | |||
108 | </ProjectReference> | 108 | </ProjectReference> |
109 | </ItemGroup> | 109 | </ItemGroup> |
110 | <ItemGroup> | 110 | <ItemGroup> |
111 | <Compile Include="LoginResponse.cs"> | ||
112 | <SubType>Code</SubType> | ||
113 | </Compile> | ||
111 | <Compile Include="UserManagerBase.cs"> | 114 | <Compile Include="UserManagerBase.cs"> |
112 | <SubType>Code</SubType> | 115 | <SubType>Code</SubType> |
113 | </Compile> | 116 | </Compile> |
diff --git a/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.dll.build b/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.dll.build index a2f5d13..9dc2383 100644 --- a/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.dll.build +++ b/Common/OpenGrid.Framework.UserManager/OpenGrid.Framework.UserManagement.dll.build | |||
@@ -11,6 +11,7 @@ | |||
11 | <resources prefix="OpenGrid.Framework.UserManagement" dynamicprefix="true" > | 11 | <resources prefix="OpenGrid.Framework.UserManagement" dynamicprefix="true" > |
12 | </resources> | 12 | </resources> |
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="LoginResponse.cs" /> | ||
14 | <include name="UserManagerBase.cs" /> | 15 | <include name="UserManagerBase.cs" /> |
15 | </sources> | 16 | </sources> |
16 | <references basedir="${project::get-base-directory()}"> | 17 | <references basedir="${project::get-base-directory()}"> |
diff --git a/Common/OpenGrid.Framework.UserManager/UserManagerBase.cs b/Common/OpenGrid.Framework.UserManager/UserManagerBase.cs index eaa53dd..01fbf3a 100644 --- a/Common/OpenGrid.Framework.UserManager/UserManagerBase.cs +++ b/Common/OpenGrid.Framework.UserManager/UserManagerBase.cs | |||
@@ -79,37 +79,7 @@ namespace OpenGrid.Framework.UserManagement | |||
79 | pluginAssembly = null; | 79 | pluginAssembly = null; |
80 | } | 80 | } |
81 | 81 | ||
82 | /// <summary> | 82 | #region Get UserProfile |
83 | /// | ||
84 | /// </summary> | ||
85 | /// <param name="user"></param> | ||
86 | public void AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) | ||
87 | { | ||
88 | UserProfileData user = new UserProfileData(); | ||
89 | user.homeLocation = new LLVector3(128, 128, 100); | ||
90 | user.UUID = LLUUID.Random(); | ||
91 | user.username = firstName; | ||
92 | user.surname = lastName; | ||
93 | user.passwordHash = pass; | ||
94 | user.passwordSalt = ""; | ||
95 | user.created = Util.UnixTimeSinceEpoch(); | ||
96 | user.homeLookAt = new LLVector3(100, 100, 100); | ||
97 | user.homeRegion = Util.UIntsToLong((regX * 256), (regY * 256)); | ||
98 | |||
99 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) | ||
100 | { | ||
101 | try | ||
102 | { | ||
103 | plugin.Value.addNewUserProfile(user); | ||
104 | |||
105 | } | ||
106 | catch (Exception e) | ||
107 | { | ||
108 | OpenSim.Framework.Console.MainLog.Instance.Verbose( "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); | ||
109 | } | ||
110 | } | ||
111 | } | ||
112 | |||
113 | /// <summary> | 83 | /// <summary> |
114 | /// Loads a user profile from a database by UUID | 84 | /// Loads a user profile from a database by UUID |
115 | /// </summary> | 85 | /// </summary> |
@@ -190,7 +160,9 @@ namespace OpenGrid.Framework.UserManagement | |||
190 | 160 | ||
191 | return null; | 161 | return null; |
192 | } | 162 | } |
163 | #endregion | ||
193 | 164 | ||
165 | #region Get UserAgent | ||
194 | /// <summary> | 166 | /// <summary> |
195 | /// Loads a user agent by uuid (not called directly) | 167 | /// Loads a user agent by uuid (not called directly) |
196 | /// </summary> | 168 | /// </summary> |
@@ -258,94 +230,9 @@ namespace OpenGrid.Framework.UserManagement | |||
258 | return null; | 230 | return null; |
259 | } | 231 | } |
260 | 232 | ||
261 | /// <summary> | 233 | #endregion |
262 | /// Creates a error response caused by invalid XML | ||
263 | /// </summary> | ||
264 | /// <returns>An XMLRPC response</returns> | ||
265 | private static XmlRpcResponse CreateErrorConnectingToGridResponse() | ||
266 | { | ||
267 | XmlRpcResponse response = new XmlRpcResponse(); | ||
268 | Hashtable ErrorRespData = new Hashtable(); | ||
269 | ErrorRespData["reason"] = "key"; | ||
270 | ErrorRespData["message"] = "Error connecting to grid. Could not percieve credentials from login XML."; | ||
271 | ErrorRespData["login"] = "false"; | ||
272 | response.Value = ErrorRespData; | ||
273 | return response; | ||
274 | } | ||
275 | |||
276 | /// <summary> | ||
277 | /// Creates an error response caused by bad login credentials | ||
278 | /// </summary> | ||
279 | /// <returns>An XMLRPC response</returns> | ||
280 | private static XmlRpcResponse CreateLoginErrorResponse() | ||
281 | { | ||
282 | XmlRpcResponse response = new XmlRpcResponse(); | ||
283 | Hashtable ErrorRespData = new Hashtable(); | ||
284 | ErrorRespData["reason"] = "key"; | ||
285 | ErrorRespData["message"] = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist."; | ||
286 | ErrorRespData["login"] = "false"; | ||
287 | response.Value = ErrorRespData; | ||
288 | return response; | ||
289 | } | ||
290 | |||
291 | /// <summary> | ||
292 | /// Creates an error response caused by being logged in already | ||
293 | /// </summary> | ||
294 | /// <returns>An XMLRPC Response</returns> | ||
295 | private static XmlRpcResponse CreateAlreadyLoggedInResponse() | ||
296 | { | ||
297 | XmlRpcResponse response = new XmlRpcResponse(); | ||
298 | Hashtable PresenceErrorRespData = new Hashtable(); | ||
299 | PresenceErrorRespData["reason"] = "presence"; | ||
300 | PresenceErrorRespData["message"] = "You appear to be already logged in, if this is not the case please wait for your session to timeout, if this takes longer than a few minutes please contact the grid owner"; | ||
301 | PresenceErrorRespData["login"] = "false"; | ||
302 | response.Value = PresenceErrorRespData; | ||
303 | return response; | ||
304 | } | ||
305 | |||
306 | /// <summary> | ||
307 | /// Creates an error response caused by target region being down | ||
308 | /// </summary> | ||
309 | /// <returns>An XMLRPC Response</returns> | ||
310 | private static XmlRpcResponse CreateDeadRegionResponse() | ||
311 | { | ||
312 | XmlRpcResponse response = new XmlRpcResponse(); | ||
313 | Hashtable PresenceErrorRespData = new Hashtable(); | ||
314 | PresenceErrorRespData["reason"] = "key"; | ||
315 | PresenceErrorRespData["message"] = "The region you are attempting to log into is not responding. Please select another region and try again."; | ||
316 | PresenceErrorRespData["login"] = "false"; | ||
317 | response.Value = PresenceErrorRespData; | ||
318 | return response; | ||
319 | } | ||
320 | |||
321 | /// <summary> | ||
322 | /// Customises the login response and fills in missing values. | ||
323 | /// </summary> | ||
324 | /// <param name="response">The existing response</param> | ||
325 | /// <param name="theUser">The user profile</param> | ||
326 | public virtual void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | ||
327 | { | ||
328 | |||
329 | } | ||
330 | |||
331 | /// <summary> | ||
332 | /// Checks a user against it's password hash | ||
333 | /// </summary> | ||
334 | /// <param name="profile">The users profile</param> | ||
335 | /// <param name="password">The supplied password</param> | ||
336 | /// <returns>Authenticated?</returns> | ||
337 | public bool AuthenticateUser(ref UserProfileData profile, string password) | ||
338 | { | ||
339 | OpenSim.Framework.Console.MainLog.Instance.Verbose( | ||
340 | "Authenticating " + profile.username + " " + profile.surname); | ||
341 | |||
342 | password = password.Remove(0, 3); //remove $1$ | ||
343 | |||
344 | string s = Util.Md5Hash(password + ":" + profile.passwordSalt); | ||
345 | |||
346 | return profile.passwordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase); | ||
347 | } | ||
348 | 234 | ||
235 | #region CreateAgent | ||
349 | /// <summary> | 236 | /// <summary> |
350 | /// Creates and initialises a new user agent - make sure to use CommitAgent when done to submit to the DB | 237 | /// Creates and initialises a new user agent - make sure to use CommitAgent when done to submit to the DB |
351 | /// </summary> | 238 | /// </summary> |
@@ -390,7 +277,7 @@ namespace OpenGrid.Framework.UserManagement | |||
390 | { | 277 | { |
391 | string[] parts = startLoc.Remove(0, 4).Split('&'); | 278 | string[] parts = startLoc.Remove(0, 4).Split('&'); |
392 | string region = parts[0]; | 279 | string region = parts[0]; |
393 | 280 | ||
394 | //////////////////////////////////////////////////// | 281 | //////////////////////////////////////////////////// |
395 | //SimProfile SimInfo = new SimProfile(); | 282 | //SimProfile SimInfo = new SimProfile(); |
396 | //SimInfo = SimInfo.LoadFromGrid(theUser.currentAgent.currentHandle, _config.GridServerURL, _config.GridSendKey, _config.GridRecvKey); | 283 | //SimInfo = SimInfo.LoadFromGrid(theUser.currentAgent.currentHandle, _config.GridServerURL, _config.GridSendKey, _config.GridRecvKey); |
@@ -424,6 +311,58 @@ namespace OpenGrid.Framework.UserManagement | |||
424 | return true; | 311 | return true; |
425 | } | 312 | } |
426 | 313 | ||
314 | #endregion | ||
315 | |||
316 | /// <summary> | ||
317 | /// Checks a user against it's password hash | ||
318 | /// </summary> | ||
319 | /// <param name="profile">The users profile</param> | ||
320 | /// <param name="password">The supplied password</param> | ||
321 | /// <returns>Authenticated?</returns> | ||
322 | public virtual bool AuthenticateUser(ref UserProfileData profile, string password) | ||
323 | { | ||
324 | OpenSim.Framework.Console.MainLog.Instance.Verbose( | ||
325 | "Authenticating " + profile.username + " " + profile.surname); | ||
326 | |||
327 | password = password.Remove(0, 3); //remove $1$ | ||
328 | |||
329 | string s = Util.Md5Hash(password + ":" + profile.passwordSalt); | ||
330 | |||
331 | return profile.passwordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase); | ||
332 | } | ||
333 | |||
334 | #region Xml Response | ||
335 | |||
336 | /// <summary> | ||
337 | /// | ||
338 | /// </summary> | ||
339 | /// <param name="firstname"></param> | ||
340 | /// <param name="lastname"></param> | ||
341 | /// <returns></returns> | ||
342 | public virtual UserProfileData GetTheUser(string firstname, string lastname) | ||
343 | { | ||
344 | return getUserProfile(firstname, lastname); | ||
345 | } | ||
346 | |||
347 | /// <summary> | ||
348 | /// | ||
349 | /// </summary> | ||
350 | /// <returns></returns> | ||
351 | public virtual string GetMessage() | ||
352 | { | ||
353 | return _config.DefaultStartupMsg; | ||
354 | } | ||
355 | |||
356 | /// <summary> | ||
357 | /// Customises the login response and fills in missing values. | ||
358 | /// </summary> | ||
359 | /// <param name="response">The existing response</param> | ||
360 | /// <param name="theUser">The user profile</param> | ||
361 | public virtual void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) | ||
362 | { | ||
363 | |||
364 | } | ||
365 | |||
427 | /// <summary> | 366 | /// <summary> |
428 | /// Main user login function | 367 | /// Main user login function |
429 | /// </summary> | 368 | /// </summary> |
@@ -441,6 +380,7 @@ namespace OpenGrid.Framework.UserManagement | |||
441 | string passwd = ""; | 380 | string passwd = ""; |
442 | 381 | ||
443 | UserProfileData TheUser; | 382 | UserProfileData TheUser; |
383 | LoginResponse logResponse = new LoginResponse(); | ||
444 | 384 | ||
445 | if (GoodXML) | 385 | if (GoodXML) |
446 | { | 386 | { |
@@ -448,20 +388,20 @@ namespace OpenGrid.Framework.UserManagement | |||
448 | lastname = (string)requestData["last"]; | 388 | lastname = (string)requestData["last"]; |
449 | passwd = (string)requestData["passwd"]; | 389 | passwd = (string)requestData["passwd"]; |
450 | 390 | ||
451 | TheUser = getUserProfile(firstname, lastname); | 391 | TheUser = GetTheUser(firstname, lastname); |
452 | if (TheUser == null) | 392 | if (TheUser == null) |
453 | return CreateLoginErrorResponse(); | 393 | return logResponse.CreateLoginFailedResponse(); |
454 | 394 | ||
455 | GoodLogin = AuthenticateUser(ref TheUser, passwd); | 395 | GoodLogin = AuthenticateUser(ref TheUser, passwd); |
456 | } | 396 | } |
457 | else | 397 | else |
458 | { | 398 | { |
459 | return CreateErrorConnectingToGridResponse(); | 399 | return logResponse.CreateGridErrorResponse(); |
460 | } | 400 | } |
461 | 401 | ||
462 | if (!GoodLogin) | 402 | if (!GoodLogin) |
463 | { | 403 | { |
464 | return CreateLoginErrorResponse(); | 404 | return logResponse.CreateLoginFailedResponse(); |
465 | } | 405 | } |
466 | else | 406 | else |
467 | { | 407 | { |
@@ -469,7 +409,7 @@ namespace OpenGrid.Framework.UserManagement | |||
469 | if (TheUser.currentAgent != null && TheUser.currentAgent.agentOnline) | 409 | if (TheUser.currentAgent != null && TheUser.currentAgent.agentOnline) |
470 | { | 410 | { |
471 | // Reject the login | 411 | // Reject the login |
472 | return CreateAlreadyLoggedInResponse(); | 412 | return logResponse.CreateAlreadyLoggedInResponse(); |
473 | } | 413 | } |
474 | // Otherwise... | 414 | // Otherwise... |
475 | // Create a new agent session | 415 | // Create a new agent session |
@@ -477,39 +417,8 @@ namespace OpenGrid.Framework.UserManagement | |||
477 | 417 | ||
478 | try | 418 | try |
479 | { | 419 | { |
480 | Hashtable responseData = new Hashtable(); | ||
481 | 420 | ||
482 | LLUUID AgentID = TheUser.UUID; | 421 | LLUUID AgentID = TheUser.UUID; |
483 | |||
484 | // Global Texture Section | ||
485 | Hashtable GlobalT = new Hashtable(); | ||
486 | GlobalT["sun_texture_id"] = "cce0f112-878f-4586-a2e2-a8f104bba271"; | ||
487 | GlobalT["cloud_texture_id"] = "fc4b9f0b-d008-45c6-96a4-01dd947ac621"; | ||
488 | GlobalT["moon_texture_id"] = "fc4b9f0b-d008-45c6-96a4-01dd947ac621"; | ||
489 | ArrayList GlobalTextures = new ArrayList(); | ||
490 | GlobalTextures.Add(GlobalT); | ||
491 | |||
492 | // Login Flags Section | ||
493 | Hashtable LoginFlagsHash = new Hashtable(); | ||
494 | LoginFlagsHash["daylight_savings"] = "N"; | ||
495 | LoginFlagsHash["stipend_since_login"] = "N"; | ||
496 | LoginFlagsHash["gendered"] = "Y"; // Needs to be combined with below... | ||
497 | LoginFlagsHash["ever_logged_in"] = "Y"; // Should allow male/female av selection | ||
498 | ArrayList LoginFlags = new ArrayList(); | ||
499 | LoginFlags.Add(LoginFlagsHash); | ||
500 | |||
501 | // UI Customisation Section | ||
502 | Hashtable uiconfig = new Hashtable(); | ||
503 | uiconfig["allow_first_life"] = "Y"; | ||
504 | ArrayList ui_config = new ArrayList(); | ||
505 | ui_config.Add(uiconfig); | ||
506 | |||
507 | // Classified Categories Section | ||
508 | Hashtable ClassifiedCategoriesHash = new Hashtable(); | ||
509 | ClassifiedCategoriesHash["category_name"] = "Generic"; | ||
510 | ClassifiedCategoriesHash["category_id"] = (Int32)1; | ||
511 | ArrayList ClassifiedCategories = new ArrayList(); | ||
512 | ClassifiedCategories.Add(ClassifiedCategoriesHash); | ||
513 | 422 | ||
514 | // Inventory Library Section | 423 | // Inventory Library Section |
515 | ArrayList AgentInventoryArray = new ArrayList(); | 424 | ArrayList AgentInventoryArray = new ArrayList(); |
@@ -534,62 +443,37 @@ namespace OpenGrid.Framework.UserManagement | |||
534 | ArrayList InventoryRoot = new ArrayList(); | 443 | ArrayList InventoryRoot = new ArrayList(); |
535 | InventoryRoot.Add(InventoryRootHash); | 444 | InventoryRoot.Add(InventoryRootHash); |
536 | 445 | ||
537 | Hashtable InitialOutfitHash = new Hashtable(); | ||
538 | InitialOutfitHash["folder_name"] = "Nightclub Female"; | ||
539 | InitialOutfitHash["gender"] = "female"; | ||
540 | ArrayList InitialOutfit = new ArrayList(); | ||
541 | InitialOutfit.Add(InitialOutfitHash); | ||
542 | |||
543 | // Circuit Code | 446 | // Circuit Code |
544 | uint circode = (uint)(Util.RandomClass.Next()); | 447 | uint circode = (uint)(Util.RandomClass.Next()); |
545 | 448 | ||
546 | // Generics | 449 | logResponse.Lastname = TheUser.surname; |
547 | responseData["last_name"] = TheUser.surname; | 450 | logResponse.Firstname = TheUser.username; |
548 | responseData["ui-config"] = ui_config; | 451 | logResponse.AgentID = AgentID.ToStringHyphenated(); |
549 | responseData["sim_ip"] = "127.0.0.1"; //SimInfo.sim_ip.ToString(); | 452 | logResponse.SessionID = TheUser.currentAgent.sessionID.ToStringHyphenated(); |
550 | responseData["login-flags"] = LoginFlags; | 453 | logResponse.SecureSessionID = TheUser.currentAgent.secureSessionID.ToStringHyphenated(); |
551 | responseData["global-textures"] = GlobalTextures; | 454 | logResponse.InventoryRoot = InventoryRoot; |
552 | responseData["classified_categories"] = ClassifiedCategories; | 455 | logResponse.InventorySkeleton = AgentInventoryArray; |
553 | responseData["event_categories"] = new ArrayList(); | 456 | logResponse.CircuitCode = (Int32)circode; |
554 | responseData["inventory-skeleton"] = AgentInventoryArray; | 457 | logResponse.RegionX = 0; //overwritten |
555 | responseData["inventory-skel-lib"] = new ArrayList(); | 458 | logResponse.RegionY = 0; //overwritten |
556 | responseData["inventory-root"] = InventoryRoot; | 459 | logResponse.Home = "!!null temporary value {home}!!"; // Overwritten |
557 | responseData["event_notifications"] = new ArrayList(); | 460 | //logResponse.LookAt = "\n[r" + TheUser.homeLookAt.X.ToString() + ",r" + TheUser.homeLookAt.Y.ToString() + ",r" + TheUser.homeLookAt.Z.ToString() + "]\n"; |
558 | responseData["gestures"] = new ArrayList(); | 461 | logResponse.SimAddress = "127.0.0.1"; //overwritten |
559 | responseData["inventory-lib-owner"] = new ArrayList(); | 462 | logResponse.SimPort = 0; //overwritten |
560 | responseData["initial-outfit"] = InitialOutfit; | 463 | logResponse.Message = this.GetMessage(); |
561 | responseData["seconds_since_epoch"] = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; | 464 | |
562 | responseData["start_location"] = "last"; | ||
563 | responseData["home"] = "!!null temporary value {home}!!"; // Overwritten | ||
564 | responseData["message"] = _config.DefaultStartupMsg; | ||
565 | responseData["first_name"] = TheUser.username; | ||
566 | responseData["circuit_code"] = (Int32)circode; | ||
567 | responseData["sim_port"] = 0; //(Int32)SimInfo.sim_port; | ||
568 | responseData["secure_session_id"] = TheUser.currentAgent.secureSessionID.ToStringHyphenated(); | ||
569 | responseData["look_at"] = "\n[r" + TheUser.homeLookAt.X.ToString() + ",r" + TheUser.homeLookAt.Y.ToString() + ",r" + TheUser.homeLookAt.Z.ToString() + "]\n"; | ||
570 | responseData["agent_id"] = AgentID.ToStringHyphenated(); | ||
571 | responseData["region_y"] = (Int32)0; // Overwritten | ||
572 | responseData["region_x"] = (Int32)0; // Overwritten | ||
573 | responseData["seed_capability"] = ""; | ||
574 | responseData["agent_access"] = "M"; | ||
575 | responseData["session_id"] = TheUser.currentAgent.sessionID.ToStringHyphenated(); | ||
576 | responseData["login"] = "true"; | ||
577 | |||
578 | try | 465 | try |
579 | { | 466 | { |
580 | this.CustomiseResponse(ref responseData, ref TheUser); | 467 | this.CustomiseResponse(ref logResponse, ref TheUser); |
581 | } | 468 | } |
582 | catch (Exception e) | 469 | catch (Exception e) |
583 | { | 470 | { |
584 | Console.WriteLine(e.ToString()); | 471 | Console.WriteLine(e.ToString()); |
585 | return CreateDeadRegionResponse(); | 472 | return logResponse.CreateDeadRegionResponse(); |
586 | } | 473 | } |
587 | |||
588 | CommitAgent(ref TheUser); | 474 | CommitAgent(ref TheUser); |
589 | 475 | ||
590 | response.Value = responseData; | 476 | return logResponse.ToXmlRpcResponse(); |
591 | // TheUser.SendDataToSim(SimInfo); | ||
592 | return response; | ||
593 | 477 | ||
594 | } | 478 | } |
595 | catch (Exception E) | 479 | catch (Exception E) |
@@ -602,6 +486,8 @@ namespace OpenGrid.Framework.UserManagement | |||
602 | 486 | ||
603 | } | 487 | } |
604 | 488 | ||
489 | #endregion | ||
490 | |||
605 | /// <summary> | 491 | /// <summary> |
606 | /// Deletes an active agent session | 492 | /// Deletes an active agent session |
607 | /// </summary> | 493 | /// </summary> |
@@ -617,6 +503,37 @@ namespace OpenGrid.Framework.UserManagement | |||
617 | } | 503 | } |
618 | 504 | ||
619 | /// <summary> | 505 | /// <summary> |
506 | /// | ||
507 | /// </summary> | ||
508 | /// <param name="user"></param> | ||
509 | public void AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) | ||
510 | { | ||
511 | UserProfileData user = new UserProfileData(); | ||
512 | user.homeLocation = new LLVector3(128, 128, 100); | ||
513 | user.UUID = LLUUID.Random(); | ||
514 | user.username = firstName; | ||
515 | user.surname = lastName; | ||
516 | user.passwordHash = pass; | ||
517 | user.passwordSalt = ""; | ||
518 | user.created = Util.UnixTimeSinceEpoch(); | ||
519 | user.homeLookAt = new LLVector3(100, 100, 100); | ||
520 | user.homeRegion = Util.UIntsToLong((regX * 256), (regY * 256)); | ||
521 | |||
522 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) | ||
523 | { | ||
524 | try | ||
525 | { | ||
526 | plugin.Value.addNewUserProfile(user); | ||
527 | |||
528 | } | ||
529 | catch (Exception e) | ||
530 | { | ||
531 | OpenSim.Framework.Console.MainLog.Instance.Verbose("Unable to add user via " + plugin.Key + "(" + e.ToString() + ")"); | ||
532 | } | ||
533 | } | ||
534 | } | ||
535 | |||
536 | /// <summary> | ||
620 | /// Returns an error message that the user could not be found in the database | 537 | /// Returns an error message that the user could not be found in the database |
621 | /// </summary> | 538 | /// </summary> |
622 | /// <returns>XML string consisting of a error element containing individual error(s)</returns> | 539 | /// <returns>XML string consisting of a error element containing individual error(s)</returns> |
@@ -693,6 +610,8 @@ namespace OpenGrid.Framework.UserManagement | |||
693 | return sw.ToString(); | 610 | return sw.ToString(); |
694 | } | 611 | } |
695 | 612 | ||
613 | #region REST Methods | ||
614 | //should most likely move out of here and into the grid's userserver sub class | ||
696 | public string RestGetUserMethodName(string request, string path, string param) | 615 | public string RestGetUserMethodName(string request, string path, string param) |
697 | { | 616 | { |
698 | UserProfileData userProfile = getUserProfile(param.Trim()); | 617 | UserProfileData userProfile = getUserProfile(param.Trim()); |
@@ -716,6 +635,7 @@ namespace OpenGrid.Framework.UserManagement | |||
716 | 635 | ||
717 | return ProfileToXml(userProfile); | 636 | return ProfileToXml(userProfile); |
718 | } | 637 | } |
638 | #endregion | ||
719 | 639 | ||
720 | } | 640 | } |
721 | } | 641 | } |
diff --git a/Common/OpenSim.Framework/Types/NetworkServersInfo.cs b/Common/OpenSim.Framework/Types/NetworkServersInfo.cs index 0cf0ea6..709b7dd 100644 --- a/Common/OpenSim.Framework/Types/NetworkServersInfo.cs +++ b/Common/OpenSim.Framework/Types/NetworkServersInfo.cs | |||
@@ -45,16 +45,47 @@ namespace OpenSim.Framework.Types | |||
45 | public string UserRecvKey = ""; | 45 | public string UserRecvKey = ""; |
46 | public bool isSandbox; | 46 | public bool isSandbox; |
47 | 47 | ||
48 | public uint DefaultHomeLocX = 0; | ||
49 | public uint DefaultHomeLocY = 0; | ||
50 | |||
48 | public void InitConfig(bool sandboxMode, IGenericConfig configData) | 51 | public void InitConfig(bool sandboxMode, IGenericConfig configData) |
49 | { | 52 | { |
50 | this.isSandbox = sandboxMode; | 53 | this.isSandbox = sandboxMode; |
51 | 54 | ||
52 | try | 55 | try |
53 | { | 56 | { |
57 | string attri = ""; | ||
58 | // default home location X | ||
59 | attri = ""; | ||
60 | attri = configData.GetAttribute("DefaultLocationX"); | ||
61 | if (attri == "") | ||
62 | { | ||
63 | string location = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Default Home Location X", "1000"); | ||
64 | configData.SetAttribute("DefaultLocationX", location); | ||
65 | this.DefaultHomeLocX = (uint)Convert.ToUInt32(location); | ||
66 | } | ||
67 | else | ||
68 | { | ||
69 | this.DefaultHomeLocX = (uint)Convert.ToUInt32(attri); | ||
70 | } | ||
71 | |||
72 | // default home location Y | ||
73 | attri = ""; | ||
74 | attri = configData.GetAttribute("DefaultLocationY"); | ||
75 | if (attri == "") | ||
76 | { | ||
77 | string location = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Default Home Location Y", "1000"); | ||
78 | configData.SetAttribute("DefaultLocationY", location); | ||
79 | this.DefaultHomeLocY = (uint)Convert.ToUInt32(location); | ||
80 | } | ||
81 | else | ||
82 | { | ||
83 | this.DefaultHomeLocY = (uint)Convert.ToUInt32(attri); | ||
84 | } | ||
85 | |||
54 | if (!isSandbox) | 86 | if (!isSandbox) |
55 | { | 87 | { |
56 | string attri = ""; | 88 | //Grid Server |
57 | //Grid Server URL | ||
58 | attri = ""; | 89 | attri = ""; |
59 | attri = configData.GetAttribute("GridServerURL"); | 90 | attri = configData.GetAttribute("GridServerURL"); |
60 | if (attri == "") | 91 | if (attri == "") |
diff --git a/Common/OpenSim.Framework/Types/PrimData.cs b/Common/OpenSim.Framework/Types/PrimData.cs index 836b8fb..56d41b3 100644 --- a/Common/OpenSim.Framework/Types/PrimData.cs +++ b/Common/OpenSim.Framework/Types/PrimData.cs | |||
@@ -60,7 +60,6 @@ namespace OpenSim.Framework.Types | |||
60 | public sbyte PathTwistBegin; | 60 | public sbyte PathTwistBegin; |
61 | public byte[] Texture; | 61 | public byte[] Texture; |
62 | 62 | ||
63 | |||
64 | public Int32 CreationDate; | 63 | public Int32 CreationDate; |
65 | public uint OwnerMask = FULL_MASK_PERMISSIONS; | 64 | public uint OwnerMask = FULL_MASK_PERMISSIONS; |
66 | public uint NextOwnerMask = FULL_MASK_PERMISSIONS; | 65 | public uint NextOwnerMask = FULL_MASK_PERMISSIONS; |
diff --git a/Common/OpenSim.Servers/LoginResponse.cs b/Common/OpenSim.Servers/LoginResponse.cs index debfe43..dc4732c 100644 --- a/Common/OpenSim.Servers/LoginResponse.cs +++ b/Common/OpenSim.Servers/LoginResponse.cs | |||
@@ -72,7 +72,7 @@ namespace OpenSim.UserServer | |||
72 | private ArrayList initialOutfit; | 72 | private ArrayList initialOutfit; |
73 | private ArrayList agentInventory; | 73 | private ArrayList agentInventory; |
74 | 74 | ||
75 | private UserProfile userProfile; | 75 | private UserInfo userProfile; |
76 | 76 | ||
77 | private LLUUID agentID; | 77 | private LLUUID agentID; |
78 | private LLUUID sessionID; | 78 | private LLUUID sessionID; |
@@ -131,7 +131,7 @@ namespace OpenSim.UserServer | |||
131 | this.uiConfigHash = new Hashtable(); | 131 | this.uiConfigHash = new Hashtable(); |
132 | 132 | ||
133 | this.defaultXmlRpcResponse = new XmlRpcResponse(); | 133 | this.defaultXmlRpcResponse = new XmlRpcResponse(); |
134 | this.userProfile = new UserProfile(); | 134 | this.userProfile = new UserInfo(); |
135 | this.inventoryRoot = new ArrayList(); | 135 | this.inventoryRoot = new ArrayList(); |
136 | this.initialOutfit = new ArrayList(); | 136 | this.initialOutfit = new ArrayList(); |
137 | this.agentInventory = new ArrayList(); | 137 | this.agentInventory = new ArrayList(); |
@@ -181,28 +181,9 @@ namespace OpenSim.UserServer | |||
181 | this.AddClassifiedCategory((Int32)8, "Service"); | 181 | this.AddClassifiedCategory((Int32)8, "Service"); |
182 | this.AddClassifiedCategory((Int32)9, "Personal"); | 182 | this.AddClassifiedCategory((Int32)9, "Personal"); |
183 | 183 | ||
184 | int SessionRand = Util.RandomClass.Next(1, 999); | 184 | this.SessionID = LLUUID.Random(); |
185 | this.SessionID = new LLUUID("aaaabbbb-0200-" + SessionRand.ToString("0000") + "-8664-58f53e442797"); | ||
186 | this.SecureSessionID = LLUUID.Random(); | 185 | this.SecureSessionID = LLUUID.Random(); |
187 | 186 | this.AgentID = LLUUID.Random(); | |
188 | this.userProfile.Inventory.CreateRootFolder(this.userProfile.UUID, true); | ||
189 | this.baseFolderID = this.userProfile.Inventory.GetFolderID("Textures"); | ||
190 | this.inventoryFolderID = this.userProfile.Inventory.GetFolderID("My Inventory-"); | ||
191 | Hashtable InventoryRootHash = new Hashtable(); | ||
192 | InventoryRootHash["folder_id"] = this.userProfile.Inventory.InventoryRoot.FolderID.ToStringHyphenated(); | ||
193 | this.inventoryRoot.Add(InventoryRootHash); | ||
194 | |||
195 | Hashtable TempHash; | ||
196 | foreach (InventoryFolder InvFolder in this.userProfile.Inventory.InventoryFolders.Values) | ||
197 | { | ||
198 | TempHash = new Hashtable(); | ||
199 | TempHash["name"] = InvFolder.FolderName; | ||
200 | TempHash["parent_id"] = InvFolder.ParentID.ToStringHyphenated(); | ||
201 | TempHash["version"] = (Int32)InvFolder.Version; | ||
202 | TempHash["type_default"] = (Int32)InvFolder.DefaultType; | ||
203 | TempHash["folder_id"] = InvFolder.FolderID.ToStringHyphenated(); | ||
204 | this.agentInventory.Add(TempHash); | ||
205 | } | ||
206 | 187 | ||
207 | Hashtable InitialOutfitHash = new Hashtable(); | 188 | Hashtable InitialOutfitHash = new Hashtable(); |
208 | InitialOutfitHash["folder_name"] = "Nightclub Female"; | 189 | InitialOutfitHash["folder_name"] = "Nightclub Female"; |
@@ -219,15 +200,6 @@ namespace OpenSim.UserServer | |||
219 | 200 | ||
220 | } // SetDefaultValues | 201 | } // SetDefaultValues |
221 | 202 | ||
222 | protected virtual LLUUID GetAgentId() | ||
223 | { | ||
224 | // todo | ||
225 | LLUUID Agent; | ||
226 | int AgentRand = Util.RandomClass.Next(1, 9999); | ||
227 | Agent = new LLUUID("99998888-0100-" + AgentRand.ToString("0000") + "-8ec1-0b1d5cd6aead"); | ||
228 | return Agent; | ||
229 | } // GetAgentId | ||
230 | |||
231 | private XmlRpcResponse GenerateFailureResponse(string reason, string message, string login) | 203 | private XmlRpcResponse GenerateFailureResponse(string reason, string message, string login) |
232 | { | 204 | { |
233 | // Overwrite any default values; | 205 | // Overwrite any default values; |
@@ -287,9 +259,6 @@ namespace OpenSim.UserServer | |||
287 | this.AddToUIConfig("allow_first_life", this.allowFirstLife); | 259 | this.AddToUIConfig("allow_first_life", this.allowFirstLife); |
288 | this.uiConfig.Add(this.uiConfigHash); | 260 | this.uiConfig.Add(this.uiConfigHash); |
289 | 261 | ||
290 | // Create a agent and session LLUUID | ||
291 | this.agentID = this.GetAgentId(); | ||
292 | |||
293 | responseData["sim_port"] = this.SimPort; | 262 | responseData["sim_port"] = this.SimPort; |
294 | responseData["sim_ip"] = this.SimAddress; | 263 | responseData["sim_ip"] = this.SimAddress; |
295 | responseData["agent_id"] = this.AgentID.ToStringHyphenated(); | 264 | responseData["agent_id"] = this.AgentID.ToStringHyphenated(); |
@@ -320,6 +289,9 @@ namespace OpenSim.UserServer | |||
320 | responseData["region_x"] = (Int32)this.RegionX * 256; | 289 | responseData["region_x"] = (Int32)this.RegionX * 256; |
321 | responseData["region_y"] = (Int32)this.RegionY * 256; | 290 | responseData["region_y"] = (Int32)this.RegionY * 256; |
322 | 291 | ||
292 | //responseData["inventory-lib-root"] = new ArrayList(); // todo | ||
293 | //responseData["buddy-list"] = new ArrayList(); // todo | ||
294 | |||
323 | responseData["login"] = "true"; | 295 | responseData["login"] = "true"; |
324 | this.xmlRpcResponse.Value = responseData; | 296 | this.xmlRpcResponse.Value = responseData; |
325 | 297 | ||
@@ -355,6 +327,7 @@ namespace OpenSim.UserServer | |||
355 | // this.classifiedCategoriesHash.Clear(); | 327 | // this.classifiedCategoriesHash.Clear(); |
356 | } // SetClassifiedCategory | 328 | } // SetClassifiedCategory |
357 | 329 | ||
330 | #region Properties | ||
358 | public string Login | 331 | public string Login |
359 | { | 332 | { |
360 | get | 333 | get |
@@ -667,5 +640,16 @@ namespace OpenSim.UserServer | |||
667 | } | 640 | } |
668 | } // ErrorMessage | 641 | } // ErrorMessage |
669 | 642 | ||
670 | } // LoginResponse | 643 | #endregion |
671 | } // namespace OpenSim.UserServer \ No newline at end of file | 644 | |
645 | |||
646 | public class UserInfo | ||
647 | { | ||
648 | public string firstname; | ||
649 | public string lastname; | ||
650 | public ulong homeregionhandle; | ||
651 | public LLVector3 homepos; | ||
652 | public LLVector3 homelookat; | ||
653 | } | ||
654 | } | ||
655 | } \ No newline at end of file | ||
diff --git a/Common/OpenSim.Servers/LoginServer.cs b/Common/OpenSim.Servers/LoginServer.cs index 1243147..e5373dd 100644 --- a/Common/OpenSim.Servers/LoginServer.cs +++ b/Common/OpenSim.Servers/LoginServer.cs | |||
@@ -148,36 +148,14 @@ namespace OpenSim.UserServer | |||
148 | 148 | ||
149 | NumClients++; | 149 | NumClients++; |
150 | 150 | ||
151 | // Create a agent and session LLUUID | ||
152 | // Agent = GetAgentId(first, last); | ||
153 | // int SessionRand = Util.RandomClass.Next(1, 999); | ||
154 | // Session = new LLUUID("aaaabbbb-0200-" + SessionRand.ToString("0000") + "-8664-58f53e442797"); | ||
155 | // LLUUID secureSess = LLUUID.Random(); | ||
156 | |||
157 | loginResponse.SimPort = m_simPort.ToString(); | 151 | loginResponse.SimPort = m_simPort.ToString(); |
158 | loginResponse.SimAddress = m_simAddr.ToString(); | 152 | loginResponse.SimAddress = m_simAddr.ToString(); |
159 | // loginResponse.AgentID = Agent.ToStringHyphenated(); | 153 | |
160 | // loginResponse.SessionID = Session.ToStringHyphenated(); | ||
161 | // loginResponse.SecureSessionID = secureSess.ToStringHyphenated(); | ||
162 | loginResponse.CircuitCode = (Int32)(Util.RandomClass.Next()); | 154 | loginResponse.CircuitCode = (Int32)(Util.RandomClass.Next()); |
163 | XmlRpcResponse response = loginResponse.ToXmlRpcResponse(); | 155 | XmlRpcResponse response = loginResponse.ToXmlRpcResponse(); |
164 | Hashtable responseData = (Hashtable)response.Value; | 156 | Hashtable responseData = (Hashtable)response.Value; |
165 | 157 | ||
166 | //inventory | 158 | |
167 | /* ArrayList InventoryList = (ArrayList)responseData["inventory-skeleton"]; | ||
168 | Hashtable Inventory1 = (Hashtable)InventoryList[0]; | ||
169 | Hashtable Inventory2 = (Hashtable)InventoryList[1]; | ||
170 | LLUUID BaseFolderID = LLUUID.Random(); | ||
171 | LLUUID InventoryFolderID = LLUUID.Random(); | ||
172 | Inventory2["name"] = "Textures"; | ||
173 | Inventory2["folder_id"] = BaseFolderID.ToStringHyphenated(); | ||
174 | Inventory2["type_default"] = 0; | ||
175 | Inventory1["folder_id"] = InventoryFolderID.ToStringHyphenated(); | ||
176 | |||
177 | ArrayList InventoryRoot = (ArrayList)responseData["inventory-root"]; | ||
178 | Hashtable Inventoryroot = (Hashtable)InventoryRoot[0]; | ||
179 | Inventoryroot["folder_id"] = InventoryFolderID.ToStringHyphenated(); | ||
180 | */ | ||
181 | CustomiseLoginResponse(responseData, first, last); | 159 | CustomiseLoginResponse(responseData, first, last); |
182 | 160 | ||
183 | Login _login = new Login(); | 161 | Login _login = new Login(); |
@@ -191,11 +169,6 @@ namespace OpenSim.UserServer | |||
191 | _login.BaseFolder = loginResponse.BaseFolderID; | 169 | _login.BaseFolder = loginResponse.BaseFolderID; |
192 | _login.InventoryFolder = loginResponse.InventoryFolderID; | 170 | _login.InventoryFolder = loginResponse.InventoryFolderID; |
193 | 171 | ||
194 | //working on local computer if so lets add to the gridserver's list of sessions? | ||
195 | /* if (m_gridServer.GetName() == "Local") | ||
196 | { | ||
197 | ((LocalGridBase)m_gridServer).AddNewSession(_login); | ||
198 | }*/ | ||
199 | ulong reghand = Helpers.UIntsToLong((regionX * 256), (regionY * 256)); | 172 | ulong reghand = Helpers.UIntsToLong((regionX * 256), (regionY * 256)); |
200 | AddSession(reghand,_login); | 173 | AddSession(reghand,_login); |
201 | 174 | ||
diff --git a/OpenGridServices.sln b/OpenGridServices.sln index e492872..4772960 100644 --- a/OpenGridServices.sln +++ b/OpenGridServices.sln | |||
@@ -1,5 +1,5 @@ | |||
1 | Microsoft Visual Studio Solution File, Format Version 9.00 | 1 | Microsoft Visual Studio Solution File, Format Version 9.00 |
2 | # Visual Studio 2005 | 2 | # Visual C# Express 2005 |
3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Config.GridConfigDb4o", "OpenGridServices\OpenGrid.Config\GridConfigDb4o\OpenGrid.Config.GridConfigDb4o.csproj", "{B0027747-0000-0000-0000-000000000000}" | 3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Config.GridConfigDb4o", "OpenGridServices\OpenGrid.Config\GridConfigDb4o\OpenGrid.Config.GridConfigDb4o.csproj", "{B0027747-0000-0000-0000-000000000000}" |
4 | EndProject | 4 | EndProject |
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Data", "Common\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj", "{62CDF671-0000-0000-0000-000000000000}" | 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Data", "Common\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj", "{62CDF671-0000-0000-0000-000000000000}" |
@@ -25,71 +25,61 @@ EndProject | |||
25 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenUser.Config.UserConfigDb4o", "OpenGridServices\OpenUser.Config\UserConfigDb4o\OpenUser.Config.UserConfigDb4o.csproj", "{7E494328-0000-0000-0000-000000000000}" | 25 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenUser.Config.UserConfigDb4o", "OpenGridServices\OpenUser.Config\UserConfigDb4o\OpenUser.Config.UserConfigDb4o.csproj", "{7E494328-0000-0000-0000-000000000000}" |
26 | EndProject | 26 | EndProject |
27 | Global | 27 | Global |
28 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | 28 | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
29 | Debug|Any CPU = Debug|Any CPU | 29 | Debug|Any CPU = Debug|Any CPU |
30 | Release|Any CPU = Release|Any CPU | 30 | Release|Any CPU = Release|Any CPU |
31 | EndGlobalSection | 31 | EndGlobalSection |
32 | GlobalSection(ProjectDependencies) = postSolution | 32 | GlobalSection(ProjectConfigurationPlatforms) = postSolution |
33 | ({39BD9497-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 33 | {B0027747-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
34 | ({0A563AC1-0000-0000-0000-000000000000}).1 = ({62CDF671-0000-0000-0000-000000000000}) | 34 | {B0027747-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
35 | ({0F3C3AC1-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 35 | {B0027747-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
36 | ({1E3F341A-0000-0000-0000-000000000000}).1 = ({62CDF671-0000-0000-0000-000000000000}) | 36 | {B0027747-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
37 | ({DA9A7391-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 37 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
38 | ({21BFC8E2-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 38 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
39 | ({21BFC8E2-0000-0000-0000-000000000000}).3 = ({7924FD35-0000-0000-0000-000000000000}) | 39 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
40 | ({66591469-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 40 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
41 | EndGlobalSection | 41 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
42 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | 42 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
43 | {B0027747-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 43 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
44 | {B0027747-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 44 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
45 | {B0027747-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 45 | {0A563AC1-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
46 | {B0027747-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 46 | {0A563AC1-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
47 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 47 | {0A563AC1-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
48 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 48 | {0A563AC1-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
49 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 49 | {0F3C3AC1-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
50 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 50 | {0F3C3AC1-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
51 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 51 | {0F3C3AC1-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
52 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 52 | {0F3C3AC1-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
53 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 53 | {1E3F341A-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
54 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 54 | {1E3F341A-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
55 | {0A563AC1-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 55 | {1E3F341A-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
56 | {0A563AC1-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 56 | {1E3F341A-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
57 | {0A563AC1-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 57 | {7924FD35-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
58 | {0A563AC1-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 58 | {7924FD35-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
59 | {0F3C3AC1-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 59 | {7924FD35-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
60 | {0F3C3AC1-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 60 | {7924FD35-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
61 | {0F3C3AC1-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 61 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
62 | {0F3C3AC1-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 62 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
63 | {1E3F341A-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 63 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
64 | {1E3F341A-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 64 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
65 | {1E3F341A-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 65 | {0021261B-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
66 | {1E3F341A-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 66 | {0021261B-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
67 | {7924FD35-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 67 | {0021261B-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
68 | {7924FD35-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 68 | {0021261B-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
69 | {7924FD35-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 69 | {21BFC8E2-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
70 | {7924FD35-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 70 | {21BFC8E2-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
71 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 71 | {21BFC8E2-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
72 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 72 | {21BFC8E2-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
73 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 73 | {66591469-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
74 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 74 | {66591469-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
75 | {0021261B-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 75 | {66591469-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
76 | {0021261B-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 76 | {66591469-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
77 | {0021261B-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 77 | {7E494328-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
78 | {0021261B-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 78 | {7E494328-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
79 | {21BFC8E2-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 79 | {7E494328-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
80 | {21BFC8E2-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 80 | {7E494328-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
81 | {21BFC8E2-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 81 | EndGlobalSection |
82 | {21BFC8E2-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 82 | GlobalSection(SolutionProperties) = preSolution |
83 | {66591469-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 83 | HideSolutionNode = FALSE |
84 | {66591469-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 84 | EndGlobalSection |
85 | {66591469-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
86 | {66591469-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
87 | {7E494328-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
88 | {7E494328-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
89 | {7E494328-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
90 | {7E494328-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
91 | EndGlobalSection | ||
92 | GlobalSection(SolutionProperties) = preSolution | ||
93 | HideSolutionNode = FALSE | ||
94 | EndGlobalSection | ||
95 | EndGlobal | 85 | EndGlobal |
diff --git a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs index 6f5f054..14e330b 100644 --- a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs +++ b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs | |||
@@ -55,7 +55,7 @@ namespace OpenGridServices.UserServer | |||
55 | /// </summary> | 55 | /// </summary> |
56 | /// <param name="response">The existing response</param> | 56 | /// <param name="response">The existing response</param> |
57 | /// <param name="theUser">The user profile</param> | 57 | /// <param name="theUser">The user profile</param> |
58 | public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | 58 | public override void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) |
59 | { | 59 | { |
60 | // Load information from the gridserver | 60 | // Load information from the gridserver |
61 | SimProfile SimInfo = new SimProfile(); | 61 | SimProfile SimInfo = new SimProfile(); |
@@ -63,15 +63,15 @@ namespace OpenGridServices.UserServer | |||
63 | 63 | ||
64 | // Customise the response | 64 | // Customise the response |
65 | // Home Location | 65 | // Home Location |
66 | response["home"] = "{'region_handle':[r" + (SimInfo.RegionLocX * 256).ToString() + ",r" + (SimInfo.RegionLocY * 256).ToString() + "], " + | 66 | response.Home = "{'region_handle':[r" + (SimInfo.RegionLocX * 256).ToString() + ",r" + (SimInfo.RegionLocY * 256).ToString() + "], " + |
67 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + | 67 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + |
68 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; | 68 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; |
69 | 69 | ||
70 | // Destination | 70 | // Destination |
71 | response["sim_ip"] = SimInfo.sim_ip; | 71 | response.SimAddress = SimInfo.sim_ip; |
72 | response["sim_port"] = (Int32)SimInfo.sim_port; | 72 | response.SimPort = (Int32)SimInfo.sim_port; |
73 | response["region_y"] = (Int32)SimInfo.RegionLocY * 256; | 73 | response.RegionX = SimInfo.RegionLocY ; |
74 | response["region_x"] = (Int32)SimInfo.RegionLocX * 256; | 74 | response.RegionY = SimInfo.RegionLocX ; |
75 | 75 | ||
76 | // Notify the target of an incoming user | 76 | // Notify the target of an incoming user |
77 | Console.WriteLine("Notifying " + SimInfo.regionname + " (" + SimInfo.caps_url + ")"); | 77 | Console.WriteLine("Notifying " + SimInfo.regionname + " (" + SimInfo.caps_url + ")"); |
@@ -83,7 +83,7 @@ namespace OpenGridServices.UserServer | |||
83 | SimParams["firstname"] = theUser.username; | 83 | SimParams["firstname"] = theUser.username; |
84 | SimParams["lastname"] = theUser.surname; | 84 | SimParams["lastname"] = theUser.surname; |
85 | SimParams["agent_id"] = theUser.UUID.ToString(); | 85 | SimParams["agent_id"] = theUser.UUID.ToString(); |
86 | SimParams["circuit_code"] = (Int32)Convert.ToUInt32(response["circuit_code"]); | 86 | SimParams["circuit_code"] = (Int32)Convert.ToUInt32(response.CircuitCode); |
87 | SimParams["startpos_x"] = theUser.currentAgent.currentPos.X.ToString(); | 87 | SimParams["startpos_x"] = theUser.currentAgent.currentPos.X.ToString(); |
88 | SimParams["startpos_y"] = theUser.currentAgent.currentPos.Y.ToString(); | 88 | SimParams["startpos_y"] = theUser.currentAgent.currentPos.Y.ToString(); |
89 | SimParams["startpos_z"] = theUser.currentAgent.currentPos.Z.ToString(); | 89 | SimParams["startpos_z"] = theUser.currentAgent.currentPos.Z.ToString(); |
diff --git a/OpenSim.sln b/OpenSim.sln index 36421d7..45849b1 100644 --- a/OpenSim.sln +++ b/OpenSim.sln | |||
@@ -1,5 +1,5 @@ | |||
1 | Microsoft Visual Studio Solution File, Format Version 9.00 | 1 | Microsoft Visual Studio Solution File, Format Version 9.00 |
2 | # Visual Studio 2005 | 2 | # Visual C# Express 2005 |
3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Communications", "Common\OpenGrid.Framework.Communications\OpenGrid.Framework.Communications.csproj", "{683344D5-0000-0000-0000-000000000000}" | 3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Communications", "Common\OpenGrid.Framework.Communications\OpenGrid.Framework.Communications.csproj", "{683344D5-0000-0000-0000-000000000000}" |
4 | EndProject | 4 | EndProject |
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Data", "Common\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj", "{62CDF671-0000-0000-0000-000000000000}" | 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGrid.Framework.Data", "Common\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj", "{62CDF671-0000-0000-0000-000000000000}" |
@@ -51,191 +51,113 @@ EndProject | |||
51 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XMLRPC", "Common\XmlRpcCS\XMLRPC.csproj", "{8E81D43C-0000-0000-0000-000000000000}" | 51 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XMLRPC", "Common\XmlRpcCS\XMLRPC.csproj", "{8E81D43C-0000-0000-0000-000000000000}" |
52 | EndProject | 52 | EndProject |
53 | Global | 53 | Global |
54 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | 54 | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
55 | Debug|Any CPU = Debug|Any CPU | 55 | Debug|Any CPU = Debug|Any CPU |
56 | Release|Any CPU = Release|Any CPU | 56 | Release|Any CPU = Release|Any CPU |
57 | EndGlobalSection | 57 | EndGlobalSection |
58 | GlobalSection(ProjectDependencies) = postSolution | 58 | GlobalSection(ProjectConfigurationPlatforms) = postSolution |
59 | ({683344D5-0000-0000-0000-000000000000}).1 = ({62CDF671-0000-0000-0000-000000000000}) | 59 | {683344D5-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
60 | ({683344D5-0000-0000-0000-000000000000}).2 = ({8ACA2445-0000-0000-0000-000000000000}) | 60 | {683344D5-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
61 | ({39BD9497-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 61 | {683344D5-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
62 | ({DA9A7391-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 62 | {683344D5-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
63 | ({DA9A7391-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000}) | 63 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
64 | ({DA9A7391-0000-0000-0000-000000000000}).4 = ({A7CD0630-0000-0000-0000-000000000000}) | 64 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
65 | ({DA9A7391-0000-0000-0000-000000000000}).5 = ({E88EF749-0000-0000-0000-000000000000}) | 65 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
66 | ({DA9A7391-0000-0000-0000-000000000000}).6 = ({8BB20F0A-0000-0000-0000-000000000000}) | 66 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
67 | ({DA9A7391-0000-0000-0000-000000000000}).10 = ({8E81D43C-0000-0000-0000-000000000000}) | 67 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
68 | ({438A9556-0000-0000-0000-000000000000}).3 = ({683344D5-0000-0000-0000-000000000000}) | 68 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
69 | ({438A9556-0000-0000-0000-000000000000}).4 = ({1938EB12-0000-0000-0000-000000000000}) | 69 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
70 | ({438A9556-0000-0000-0000-000000000000}).5 = ({8ACA2445-0000-0000-0000-000000000000}) | 70 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
71 | ({438A9556-0000-0000-0000-000000000000}).6 = ({A7CD0630-0000-0000-0000-000000000000}) | 71 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
72 | ({438A9556-0000-0000-0000-000000000000}).7 = ({E88EF749-0000-0000-0000-000000000000}) | 72 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
73 | ({438A9556-0000-0000-0000-000000000000}).8 = ({79CED992-0000-0000-0000-000000000000}) | 73 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
74 | ({438A9556-0000-0000-0000-000000000000}).9 = ({8BE16150-0000-0000-0000-000000000000}) | 74 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
75 | ({438A9556-0000-0000-0000-000000000000}).10 = ({196916AF-0000-0000-0000-000000000000}) | 75 | {438A9556-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
76 | ({438A9556-0000-0000-0000-000000000000}).11 = ({632E1BFD-0000-0000-0000-000000000000}) | 76 | {438A9556-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
77 | ({438A9556-0000-0000-0000-000000000000}).12 = ({8BB20F0A-0000-0000-0000-000000000000}) | 77 | {438A9556-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
78 | ({438A9556-0000-0000-0000-000000000000}).13 = ({2270B8FE-0000-0000-0000-000000000000}) | 78 | {438A9556-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
79 | ({438A9556-0000-0000-0000-000000000000}).16 = ({8E81D43C-0000-0000-0000-000000000000}) | 79 | {1938EB12-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
80 | ({1938EB12-0000-0000-0000-000000000000}).1 = ({8ACA2445-0000-0000-0000-000000000000}) | 80 | {1938EB12-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
81 | ({8ACA2445-0000-0000-0000-000000000000}).2 = ({A7CD0630-0000-0000-0000-000000000000}) | 81 | {1938EB12-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
82 | ({8ACA2445-0000-0000-0000-000000000000}).5 = ({8E81D43C-0000-0000-0000-000000000000}) | 82 | {1938EB12-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
83 | ({E88EF749-0000-0000-0000-000000000000}).0 = ({8ACA2445-0000-0000-0000-000000000000}) | 83 | {8ACA2445-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
84 | ({546099CD-0000-0000-0000-000000000000}).2 = ({8ACA2445-0000-0000-0000-000000000000}) | 84 | {8ACA2445-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
85 | ({546099CD-0000-0000-0000-000000000000}).3 = ({A7CD0630-0000-0000-0000-000000000000}) | 85 | {8ACA2445-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
86 | ({B55C0B5D-0000-0000-0000-000000000000}).1 = ({8ACA2445-0000-0000-0000-000000000000}) | 86 | {8ACA2445-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
87 | ({B55C0B5D-0000-0000-0000-000000000000}).2 = ({A7CD0630-0000-0000-0000-000000000000}) | 87 | {A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
88 | ({B55C0B5D-0000-0000-0000-000000000000}).5 = ({8E81D43C-0000-0000-0000-000000000000}) | 88 | {A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
89 | ({79CED992-0000-0000-0000-000000000000}).1 = ({683344D5-0000-0000-0000-000000000000}) | 89 | {A7CD0630-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
90 | ({79CED992-0000-0000-0000-000000000000}).2 = ({62CDF671-0000-0000-0000-000000000000}) | 90 | {A7CD0630-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
91 | ({79CED992-0000-0000-0000-000000000000}).3 = ({DA9A7391-0000-0000-0000-000000000000}) | 91 | {E88EF749-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
92 | ({79CED992-0000-0000-0000-000000000000}).4 = ({8ACA2445-0000-0000-0000-000000000000}) | 92 | {E88EF749-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
93 | ({4F874463-0000-0000-0000-000000000000}).1 = ({8BE16150-0000-0000-0000-000000000000}) | 93 | {E88EF749-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
94 | ({8BE16150-0000-0000-0000-000000000000}).1 = ({8ACA2445-0000-0000-0000-000000000000}) | 94 | {E88EF749-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
95 | ({8BE16150-0000-0000-0000-000000000000}).2 = ({A7CD0630-0000-0000-0000-000000000000}) | 95 | {546099CD-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
96 | ({63A05FE9-0000-0000-0000-000000000000}).2 = ({8BE16150-0000-0000-0000-000000000000}) | 96 | {546099CD-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
97 | ({988F0AC4-0000-0000-0000-000000000000}).1 = ({8BE16150-0000-0000-0000-000000000000}) | 97 | {546099CD-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
98 | ({196916AF-0000-0000-0000-000000000000}).3 = ({683344D5-0000-0000-0000-000000000000}) | 98 | {546099CD-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
99 | ({196916AF-0000-0000-0000-000000000000}).4 = ({1938EB12-0000-0000-0000-000000000000}) | 99 | {B55C0B5D-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
100 | ({196916AF-0000-0000-0000-000000000000}).5 = ({8ACA2445-0000-0000-0000-000000000000}) | 100 | {B55C0B5D-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
101 | ({196916AF-0000-0000-0000-000000000000}).6 = ({A7CD0630-0000-0000-0000-000000000000}) | 101 | {B55C0B5D-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
102 | ({196916AF-0000-0000-0000-000000000000}).7 = ({E88EF749-0000-0000-0000-000000000000}) | 102 | {B55C0B5D-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
103 | ({196916AF-0000-0000-0000-000000000000}).8 = ({8BE16150-0000-0000-0000-000000000000}) | 103 | {79CED992-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
104 | ({196916AF-0000-0000-0000-000000000000}).9 = ({8BB20F0A-0000-0000-0000-000000000000}) | 104 | {79CED992-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
105 | ({196916AF-0000-0000-0000-000000000000}).10 = ({2270B8FE-0000-0000-0000-000000000000}) | 105 | {79CED992-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
106 | ({196916AF-0000-0000-0000-000000000000}).13 = ({8E81D43C-0000-0000-0000-000000000000}) | 106 | {79CED992-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
107 | ({632E1BFD-0000-0000-0000-000000000000}).3 = ({1938EB12-0000-0000-0000-000000000000}) | 107 | {4F874463-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
108 | ({632E1BFD-0000-0000-0000-000000000000}).4 = ({8ACA2445-0000-0000-0000-000000000000}) | 108 | {4F874463-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
109 | ({632E1BFD-0000-0000-0000-000000000000}).5 = ({A7CD0630-0000-0000-0000-000000000000}) | 109 | {4F874463-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
110 | ({632E1BFD-0000-0000-0000-000000000000}).6 = ({E88EF749-0000-0000-0000-000000000000}) | 110 | {4F874463-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
111 | ({632E1BFD-0000-0000-0000-000000000000}).7 = ({8BE16150-0000-0000-0000-000000000000}) | 111 | {8BE16150-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
112 | ({632E1BFD-0000-0000-0000-000000000000}).8 = ({196916AF-0000-0000-0000-000000000000}) | 112 | {8BE16150-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
113 | ({632E1BFD-0000-0000-0000-000000000000}).9 = ({8BB20F0A-0000-0000-0000-000000000000}) | 113 | {8BE16150-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
114 | ({632E1BFD-0000-0000-0000-000000000000}).10 = ({2270B8FE-0000-0000-0000-000000000000}) | 114 | {8BE16150-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
115 | ({632E1BFD-0000-0000-0000-000000000000}).13 = ({8E81D43C-0000-0000-0000-000000000000}) | 115 | {63A05FE9-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
116 | ({8BB20F0A-0000-0000-0000-000000000000}).1 = ({8ACA2445-0000-0000-0000-000000000000}) | 116 | {63A05FE9-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
117 | ({8BB20F0A-0000-0000-0000-000000000000}).2 = ({A7CD0630-0000-0000-0000-000000000000}) | 117 | {63A05FE9-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
118 | ({8BB20F0A-0000-0000-0000-000000000000}).5 = ({8E81D43C-0000-0000-0000-000000000000}) | 118 | {63A05FE9-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
119 | ({EE9E5D96-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000}) | 119 | {988F0AC4-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
120 | ({EE9E5D96-0000-0000-0000-000000000000}).4 = ({A7CD0630-0000-0000-0000-000000000000}) | 120 | {988F0AC4-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
121 | ({E1B79ECF-0000-0000-0000-000000000000}).2 = ({8ACA2445-0000-0000-0000-000000000000}) | 121 | {988F0AC4-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
122 | ({E1B79ECF-0000-0000-0000-000000000000}).3 = ({A7CD0630-0000-0000-0000-000000000000}) | 122 | {988F0AC4-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
123 | ({6B20B603-0000-0000-0000-000000000000}).1 = ({8ACA2445-0000-0000-0000-000000000000}) | 123 | {196916AF-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
124 | ({6B20B603-0000-0000-0000-000000000000}).2 = ({A7CD0630-0000-0000-0000-000000000000}) | 124 | {196916AF-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
125 | ({24B12448-0000-0000-0000-000000000000}).1 = ({683344D5-0000-0000-0000-000000000000}) | 125 | {196916AF-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
126 | ({24B12448-0000-0000-0000-000000000000}).2 = ({1938EB12-0000-0000-0000-000000000000}) | 126 | {196916AF-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
127 | ({24B12448-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000}) | 127 | {632E1BFD-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
128 | ({24B12448-0000-0000-0000-000000000000}).4 = ({A7CD0630-0000-0000-0000-000000000000}) | 128 | {632E1BFD-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
129 | ({24B12448-0000-0000-0000-000000000000}).5 = ({546099CD-0000-0000-0000-000000000000}) | 129 | {632E1BFD-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
130 | ({24B12448-0000-0000-0000-000000000000}).6 = ({79CED992-0000-0000-0000-000000000000}) | 130 | {632E1BFD-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
131 | ({24B12448-0000-0000-0000-000000000000}).7 = ({196916AF-0000-0000-0000-000000000000}) | 131 | {8BB20F0A-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
132 | ({24B12448-0000-0000-0000-000000000000}).8 = ({632E1BFD-0000-0000-0000-000000000000}) | 132 | {8BB20F0A-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
133 | ({24B12448-0000-0000-0000-000000000000}).9 = ({8BB20F0A-0000-0000-0000-000000000000}) | 133 | {8BB20F0A-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
134 | ({24B12448-0000-0000-0000-000000000000}).13 = ({8E81D43C-0000-0000-0000-000000000000}) | 134 | {8BB20F0A-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
135 | EndGlobalSection | 135 | {EE9E5D96-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
136 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | 136 | {EE9E5D96-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
137 | {683344D5-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 137 | {EE9E5D96-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
138 | {683344D5-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 138 | {EE9E5D96-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
139 | {683344D5-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 139 | {E1B79ECF-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
140 | {683344D5-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 140 | {E1B79ECF-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
141 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 141 | {E1B79ECF-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
142 | {62CDF671-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 142 | {E1B79ECF-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
143 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 143 | {6B20B603-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
144 | {62CDF671-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 144 | {6B20B603-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
145 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 145 | {6B20B603-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
146 | {39BD9497-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 146 | {6B20B603-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
147 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 147 | {2270B8FE-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
148 | {39BD9497-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 148 | {2270B8FE-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
149 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 149 | {2270B8FE-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
150 | {DA9A7391-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 150 | {2270B8FE-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
151 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 151 | {24B12448-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
152 | {DA9A7391-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 152 | {24B12448-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
153 | {438A9556-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 153 | {24B12448-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
154 | {438A9556-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 154 | {24B12448-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
155 | {438A9556-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 155 | {8E81D43C-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
156 | {438A9556-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 156 | {8E81D43C-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU |
157 | {1938EB12-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 157 | {8E81D43C-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU |
158 | {1938EB12-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 158 | {8E81D43C-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU |
159 | {1938EB12-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | 159 | EndGlobalSection |
160 | {1938EB12-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | 160 | GlobalSection(SolutionProperties) = preSolution |
161 | {8ACA2445-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 161 | HideSolutionNode = FALSE |
162 | {8ACA2445-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | 162 | EndGlobalSection |
163 | {8ACA2445-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
164 | {8ACA2445-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
165 | {A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
166 | {A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
167 | {A7CD0630-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
168 | {A7CD0630-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
169 | {E88EF749-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
170 | {E88EF749-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
171 | {E88EF749-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
172 | {E88EF749-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
173 | {546099CD-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
174 | {546099CD-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
175 | {546099CD-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
176 | {546099CD-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
177 | {B55C0B5D-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
178 | {B55C0B5D-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
179 | {B55C0B5D-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
180 | {B55C0B5D-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
181 | {79CED992-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
182 | {79CED992-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
183 | {79CED992-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
184 | {79CED992-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
185 | {4F874463-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
186 | {4F874463-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
187 | {4F874463-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
188 | {4F874463-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
189 | {8BE16150-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
190 | {8BE16150-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
191 | {8BE16150-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
192 | {8BE16150-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
193 | {63A05FE9-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
194 | {63A05FE9-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
195 | {63A05FE9-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
196 | {63A05FE9-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
197 | {988F0AC4-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
198 | {988F0AC4-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
199 | {988F0AC4-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
200 | {988F0AC4-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
201 | {196916AF-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
202 | {196916AF-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
203 | {196916AF-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
204 | {196916AF-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
205 | {632E1BFD-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
206 | {632E1BFD-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
207 | {632E1BFD-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
208 | {632E1BFD-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
209 | {8BB20F0A-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
210 | {8BB20F0A-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
211 | {8BB20F0A-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
212 | {8BB20F0A-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
213 | {EE9E5D96-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
214 | {EE9E5D96-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
215 | {EE9E5D96-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
216 | {EE9E5D96-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
217 | {E1B79ECF-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
218 | {E1B79ECF-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
219 | {E1B79ECF-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
220 | {E1B79ECF-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
221 | {6B20B603-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
222 | {6B20B603-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
223 | {6B20B603-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
224 | {6B20B603-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
225 | {2270B8FE-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
226 | {2270B8FE-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
227 | {2270B8FE-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
228 | {2270B8FE-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
229 | {24B12448-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
230 | {24B12448-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
231 | {24B12448-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
232 | {24B12448-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
233 | {8E81D43C-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
234 | {8E81D43C-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
235 | {8E81D43C-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
236 | {8E81D43C-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU | ||
237 | EndGlobalSection | ||
238 | GlobalSection(SolutionProperties) = preSolution | ||
239 | HideSolutionNode = FALSE | ||
240 | EndGlobalSection | ||
241 | EndGlobal | 163 | EndGlobal |
diff --git a/OpenSim/Examples/SimpleApp/Program.cs b/OpenSim/Examples/SimpleApp/Program.cs index de6e6d3..944bca3 100644 --- a/OpenSim/Examples/SimpleApp/Program.cs +++ b/OpenSim/Examples/SimpleApp/Program.cs | |||
@@ -53,7 +53,7 @@ namespace SimpleApp | |||
53 | 53 | ||
54 | ClientView.TerrainManager = new TerrainManager(new SecondLife()); | 54 | ClientView.TerrainManager = new TerrainManager(new SecondLife()); |
55 | 55 | ||
56 | CommunicationsManager communicationsManager = new CommunicationsLocal(); | 56 | CommunicationsManager communicationsManager = new CommunicationsLocal(1000, 1000); |
57 | 57 | ||
58 | RegionInfo regionInfo = new RegionInfo( ); | 58 | RegionInfo regionInfo = new RegionInfo( ); |
59 | 59 | ||
diff --git a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs index 795f99d..008d47e 100644 --- a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs +++ b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs | |||
@@ -41,13 +41,20 @@ namespace OpenSim.LocalCommunications | |||
41 | public class CommunicationsLocal : CommunicationsManager | 41 | public class CommunicationsLocal : CommunicationsManager |
42 | { | 42 | { |
43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); | 43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); |
44 | protected LocalUserServices UserServices = new LocalUserServices(); | 44 | public LocalUserServices UserServices; |
45 | 45 | ||
46 | public CommunicationsLocal() | 46 | public CommunicationsLocal(uint defaultHomeX , uint defaultHomeY) |
47 | { | 47 | { |
48 | UserServices = new LocalUserServices(this , defaultHomeX, defaultHomeY); | ||
49 | UserServices.AddPlugin("OpenGrid.Framework.Data.DB4o.dll"); | ||
48 | UserServer = UserServices; | 50 | UserServer = UserServices; |
49 | GridServer = SandBoxServices; | 51 | GridServer = SandBoxServices; |
50 | InterRegion = SandBoxServices; | 52 | InterRegion = SandBoxServices; |
51 | } | 53 | } |
54 | |||
55 | internal void InformRegionOfLogin(ulong regionHandle, Login login) | ||
56 | { | ||
57 | this.SandBoxServices.AddNewSession(regionHandle, login); | ||
58 | } | ||
52 | } | 59 | } |
53 | } | 60 | } |
diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs index fdfdd16..7a7f2bf 100644 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs | |||
@@ -4,9 +4,11 @@ using System.Collections.Generic; | |||
4 | using System.Text; | 4 | using System.Text; |
5 | 5 | ||
6 | using OpenGrid.Framework.Communications; | 6 | using OpenGrid.Framework.Communications; |
7 | using OpenSim.Framework.User; | 7 | //using OpenSim.Framework.User; |
8 | using OpenGrid.Framework.UserManagement; | 8 | using OpenGrid.Framework.UserManagement; |
9 | using OpenGrid.Framework.Data; | 9 | using OpenGrid.Framework.Data; |
10 | using OpenSim.Framework.Types; | ||
11 | using OpenSim.Framework.Utilities; | ||
10 | 12 | ||
11 | using libsecondlife; | 13 | using libsecondlife; |
12 | 14 | ||
@@ -14,30 +16,102 @@ namespace OpenSim.LocalCommunications | |||
14 | { | 16 | { |
15 | public class LocalUserServices : UserManagerBase, IUserServices | 17 | public class LocalUserServices : UserManagerBase, IUserServices |
16 | { | 18 | { |
17 | 19 | private CommunicationsLocal m_Parent; | |
18 | public LocalUserServices() | ||
19 | { | ||
20 | 20 | ||
21 | private uint defaultHomeX ; | ||
22 | private uint defaultHomeY; | ||
23 | public LocalUserServices(CommunicationsLocal parent, uint defHomeX, uint defHomeY) | ||
24 | { | ||
25 | m_Parent = parent; | ||
26 | defaultHomeX = defHomeX; | ||
27 | defaultHomeY = defHomeY; | ||
21 | } | 28 | } |
22 | 29 | ||
23 | public UserProfileData GetUserProfile(string first_name, string last_name) | 30 | public UserProfileData GetUserProfile(string firstName, string lastName) |
24 | { | 31 | { |
25 | return GetUserProfile(first_name + " " + last_name); | 32 | return GetUserProfile(firstName + " " + lastName); |
26 | } | 33 | } |
27 | 34 | ||
28 | public UserProfileData GetUserProfile(string name) | 35 | public UserProfileData GetUserProfile(string name) |
29 | { | 36 | { |
30 | return null; | 37 | return this.getUserProfile(name); |
38 | } | ||
39 | public UserProfileData GetUserProfile(LLUUID avatarID) | ||
40 | { | ||
41 | return this.getUserProfile(avatarID); | ||
42 | } | ||
43 | |||
44 | /// <summary> | ||
45 | /// | ||
46 | /// </summary> | ||
47 | /// <returns></returns> | ||
48 | public override string GetMessage() | ||
49 | { | ||
50 | return "Welcome to OpenSim"; | ||
51 | } | ||
52 | |||
53 | public override UserProfileData GetTheUser(string firstname, string lastname) | ||
54 | { | ||
55 | UserProfileData profile = getUserProfile(firstname, lastname); | ||
56 | if (profile != null) | ||
57 | { | ||
58 | |||
59 | return profile; | ||
60 | } | ||
61 | |||
62 | //no current user account so make one | ||
63 | Console.WriteLine("No User account found so creating a new one "); | ||
64 | this.AddUserProfile(firstname, lastname, "test", defaultHomeX, defaultHomeY); | ||
65 | |||
66 | profile = getUserProfile(firstname, lastname); | ||
67 | |||
68 | return profile; | ||
31 | } | 69 | } |
32 | public UserProfileData GetUserProfile(LLUUID avatar_id) | 70 | |
71 | public override bool AuthenticateUser(ref UserProfileData profile, string password) | ||
33 | { | 72 | { |
34 | return null; | 73 | //for now we will accept any password in sandbox mode |
74 | Console.WriteLine("authorising user"); | ||
75 | return true; | ||
35 | } | 76 | } |
36 | 77 | ||
37 | public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | 78 | public override void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) |
38 | { | 79 | { |
80 | ulong currentRegion = theUser.currentAgent.currentHandle; | ||
81 | RegionInfo reg = m_Parent.GridServer.RequestNeighbourInfo(currentRegion); | ||
82 | |||
83 | |||
84 | if (reg != null) | ||
85 | { | ||
86 | response.Home = "{'region_handle':[r" + (reg.RegionLocX * 256).ToString() + ",r" + (reg.RegionLocY * 256).ToString() + "], " + | ||
87 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + | ||
88 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; | ||
89 | |||
90 | response.SimAddress = reg.IPListenAddr; | ||
91 | response.SimPort = (Int32)reg.IPListenPort; | ||
92 | response.RegionX = reg.RegionLocX ; | ||
93 | response.RegionY = reg.RegionLocY ; | ||
94 | |||
95 | theUser.currentAgent.currentRegion = reg.SimUUID; | ||
96 | theUser.currentAgent.currentHandle = reg.RegionHandle; | ||
97 | |||
98 | Login _login = new Login(); | ||
99 | //copy data to login object | ||
100 | _login.First = response.Firstname; | ||
101 | _login.Last = response.Lastname; | ||
102 | _login.Agent = response.AgentID; | ||
103 | _login.Session = response.SessionID; | ||
104 | _login.SecureSession = response.SecureSessionID; | ||
105 | _login.CircuitCode = (uint)response.CircuitCode; | ||
106 | |||
107 | m_Parent.InformRegionOfLogin(currentRegion, _login); | ||
108 | } | ||
109 | else | ||
110 | { | ||
111 | Console.WriteLine("not found region " + currentRegion); | ||
112 | } | ||
39 | 113 | ||
40 | } | 114 | } |
41 | 115 | ||
42 | } | 116 | } |
43 | } | 117 | } |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 7716410..ca8e5c3 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -425,7 +425,7 @@ namespace OpenSim.Region.Scenes | |||
425 | Console.WriteLine("No default terrain, procedurally generating..."); | 425 | Console.WriteLine("No default terrain, procedurally generating..."); |
426 | this.Terrain.hills(); | 426 | this.Terrain.hills(); |
427 | 427 | ||
428 | // this.localStorage.SaveMap(this.Terrain.getHeights1D()); | 428 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); |
429 | } | 429 | } |
430 | else | 430 | else |
431 | { | 431 | { |
@@ -439,7 +439,7 @@ namespace OpenSim.Region.Scenes | |||
439 | Console.WriteLine("Unable to load default terrain, procedurally generating instead..."); | 439 | Console.WriteLine("Unable to load default terrain, procedurally generating instead..."); |
440 | Terrain.hills(); | 440 | Terrain.hills(); |
441 | } | 441 | } |
442 | // this.localStorage.SaveMap(this.Terrain.getHeights1D()); | 442 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); |
443 | } | 443 | } |
444 | } | 444 | } |
445 | else | 445 | else |
diff --git a/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs index 24278da..d21b11f 100644 --- a/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs +++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Body.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Region.Scenes | |||
49 | { | 49 | { |
50 | } | 50 | } |
51 | 51 | ||
52 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) | 52 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) |
53 | { | 53 | { |
54 | } | 54 | } |
55 | 55 | ||
@@ -69,11 +69,11 @@ namespace OpenSim.Region.Scenes | |||
69 | 69 | ||
70 | } | 70 | } |
71 | 71 | ||
72 | public void processMovement(IClientAPI remoteClient, uint flags, LLQuaternion bodyRotation) | 72 | public void processMovement(IClientAPI remoteClient, uint flags, LLQuaternion bodyRotation) |
73 | { | 73 | { |
74 | } | 74 | } |
75 | 75 | ||
76 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) | 76 | public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) |
77 | { | 77 | { |
78 | } | 78 | } |
79 | 79 | ||
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs index 7a0cbe3..1a03216 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs | |||
@@ -189,6 +189,14 @@ namespace OpenSim | |||
189 | OutPacket(mov); | 189 | OutPacket(mov); |
190 | } | 190 | } |
191 | 191 | ||
192 | /// <summary> | ||
193 | /// | ||
194 | /// </summary> | ||
195 | /// <param name="message"></param> | ||
196 | /// <param name="type"></param> | ||
197 | /// <param name="fromPos"></param> | ||
198 | /// <param name="fromName"></param> | ||
199 | /// <param name="fromAgentID"></param> | ||
192 | public void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) | 200 | public void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) |
193 | { | 201 | { |
194 | SendChatMessage(Helpers.StringToField(message), type, fromPos, fromName, fromAgentID); | 202 | SendChatMessage(Helpers.StringToField(message), type, fromPos, fromName, fromAgentID); |
diff --git a/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs b/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs deleted file mode 100644 index 407ebe0..0000000 --- a/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs +++ /dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | using OpenSim.Framework.Interfaces; | ||
32 | |||
33 | namespace OpenSim | ||
34 | { | ||
35 | |||
36 | public class NetworkServersInfo | ||
37 | { | ||
38 | public string AssetURL = "http://127.0.0.1:8003/"; | ||
39 | public string AssetSendKey = ""; | ||
40 | |||
41 | public string GridURL = ""; | ||
42 | public string GridSendKey = ""; | ||
43 | public string GridRecvKey = ""; | ||
44 | public string UserURL = ""; | ||
45 | public string UserSendKey = ""; | ||
46 | public string UserRecvKey = ""; | ||
47 | public bool isSandbox; | ||
48 | |||
49 | public void InitConfig(bool sandboxMode, IGenericConfig configData) | ||
50 | { | ||
51 | this.isSandbox = sandboxMode; | ||
52 | |||
53 | try | ||
54 | { | ||
55 | if (!isSandbox) | ||
56 | { | ||
57 | string attri = ""; | ||
58 | //Grid Server URL | ||
59 | attri = ""; | ||
60 | attri = configData.GetAttribute("GridServerURL"); | ||
61 | if (attri == "") | ||
62 | { | ||
63 | this.GridURL = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Grid server URL", "http://127.0.0.1:8001/"); | ||
64 | configData.SetAttribute("GridServerURL", this.GridURL); | ||
65 | } | ||
66 | else | ||
67 | { | ||
68 | this.GridURL = attri; | ||
69 | } | ||
70 | |||
71 | //Grid Send Key | ||
72 | attri = ""; | ||
73 | attri = configData.GetAttribute("GridSendKey"); | ||
74 | if (attri == "") | ||
75 | { | ||
76 | this.GridSendKey = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Key to send to grid server", "null"); | ||
77 | configData.SetAttribute("GridSendKey", this.GridSendKey); | ||
78 | } | ||
79 | else | ||
80 | { | ||
81 | this.GridSendKey = attri; | ||
82 | } | ||
83 | |||
84 | //Grid Receive Key | ||
85 | attri = ""; | ||
86 | attri = configData.GetAttribute("GridRecvKey"); | ||
87 | if (attri == "") | ||
88 | { | ||
89 | this.GridRecvKey = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Key to expect from grid server", "null"); | ||
90 | configData.SetAttribute("GridRecvKey", this.GridRecvKey); | ||
91 | } | ||
92 | else | ||
93 | { | ||
94 | this.GridRecvKey = attri; | ||
95 | } | ||
96 | |||
97 | attri = ""; | ||
98 | attri = configData.GetAttribute("AssetServerURL"); | ||
99 | if (attri == "") | ||
100 | { | ||
101 | this.AssetURL = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Asset server URL", "http://127.0.0.1:8003/"); | ||
102 | configData.SetAttribute("AssetServerURL", this.GridURL); | ||
103 | } | ||
104 | else | ||
105 | { | ||
106 | this.AssetURL = attri; | ||
107 | } | ||
108 | |||
109 | } | ||
110 | configData.Commit(); | ||
111 | } | ||
112 | catch (Exception e) | ||
113 | { | ||
114 | OpenSim.Framework.Console.MainLog.Instance.Warn("Config.cs:InitConfig() - Exception occured"); | ||
115 | OpenSim.Framework.Console.MainLog.Instance.Warn(e.ToString()); | ||
116 | } | ||
117 | } | ||
118 | } | ||
119 | |||
120 | } | ||
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj index e569187..b1ce3eb 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj | |||
@@ -157,9 +157,6 @@ | |||
157 | <Compile Include="ClientViewBase.cs"> | 157 | <Compile Include="ClientViewBase.cs"> |
158 | <SubType>Code</SubType> | 158 | <SubType>Code</SubType> |
159 | </Compile> | 159 | </Compile> |
160 | <Compile Include="NetworkServersInfo.cs"> | ||
161 | <SubType>Code</SubType> | ||
162 | </Compile> | ||
163 | <Compile Include="PacketServer.cs"> | 160 | <Compile Include="PacketServer.cs"> |
164 | <SubType>Code</SubType> | 161 | <SubType>Code</SubType> |
165 | </Compile> | 162 | </Compile> |
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build index 520f826..12dca8a 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build | |||
@@ -18,7 +18,6 @@ | |||
18 | <include name="ClientView.PacketHandlers.cs" /> | 18 | <include name="ClientView.PacketHandlers.cs" /> |
19 | <include name="ClientView.ProcessPackets.cs" /> | 19 | <include name="ClientView.ProcessPackets.cs" /> |
20 | <include name="ClientViewBase.cs" /> | 20 | <include name="ClientViewBase.cs" /> |
21 | <include name="NetworkServersInfo.cs" /> | ||
22 | <include name="PacketServer.cs" /> | 21 | <include name="PacketServer.cs" /> |
23 | <include name="RegionApplicationBase.cs" /> | 22 | <include name="RegionApplicationBase.cs" /> |
24 | <include name="UDPServer.cs" /> | 23 | <include name="UDPServer.cs" /> |
diff --git a/OpenSim/OpenSim/OpenSim.csproj b/OpenSim/OpenSim/OpenSim.csproj index fb0e0c1..a8cadc0 100644 --- a/OpenSim/OpenSim/OpenSim.csproj +++ b/OpenSim/OpenSim/OpenSim.csproj | |||
@@ -86,6 +86,12 @@ | |||
86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
87 | <Private>False</Private> | 87 | <Private>False</Private> |
88 | </ProjectReference> | 88 | </ProjectReference> |
89 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.UserManager\OpenGrid.Framework.UserManagement.csproj"> | ||
90 | <Name>OpenGrid.Framework.UserManagement</Name> | ||
91 | <Project>{DA9A7391-0000-0000-0000-000000000000}</Project> | ||
92 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
93 | <Private>False</Private> | ||
94 | </ProjectReference> | ||
89 | <ProjectReference Include="..\OpenSim.Caches\OpenSim.Caches.csproj"> | 95 | <ProjectReference Include="..\OpenSim.Caches\OpenSim.Caches.csproj"> |
90 | <Name>OpenSim.Caches</Name> | 96 | <Name>OpenSim.Caches</Name> |
91 | <Project>{1938EB12-0000-0000-0000-000000000000}</Project> | 97 | <Project>{1938EB12-0000-0000-0000-000000000000}</Project> |
diff --git a/OpenSim/OpenSim/OpenSim.exe.build b/OpenSim/OpenSim/OpenSim.exe.build index 78e4fa3..068e160 100644 --- a/OpenSim/OpenSim/OpenSim.exe.build +++ b/OpenSim/OpenSim/OpenSim.exe.build | |||
@@ -23,6 +23,7 @@ | |||
23 | <include name="../../bin/Db4objects.Db4o.dll" /> | 23 | <include name="../../bin/Db4objects.Db4o.dll" /> |
24 | <include name="../../bin/libsecondlife.dll" /> | 24 | <include name="../../bin/libsecondlife.dll" /> |
25 | <include name="../../bin/OpenGrid.Framework.Communications.dll" /> | 25 | <include name="../../bin/OpenGrid.Framework.Communications.dll" /> |
26 | <include name="../../bin/OpenGrid.Framework.UserManagement.dll" /> | ||
26 | <include name="../../bin/OpenSim.Caches.dll" /> | 27 | <include name="../../bin/OpenSim.Caches.dll" /> |
27 | <include name="../../bin/OpenSim.Framework.dll" /> | 28 | <include name="../../bin/OpenSim.Framework.dll" /> |
28 | <include name="../../bin/OpenSim.Framework.Console.dll" /> | 29 | <include name="../../bin/OpenSim.Framework.Console.dll" /> |
diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs index 0ef6cbd..3b83fd8 100644 --- a/OpenSim/OpenSim/OpenSimMain.cs +++ b/OpenSim/OpenSim/OpenSimMain.cs | |||
@@ -106,13 +106,13 @@ namespace OpenSim | |||
106 | this.SetupLocalGridServers(); | 106 | this.SetupLocalGridServers(); |
107 | this.checkServer = new CheckSumServer(12036); | 107 | this.checkServer = new CheckSumServer(12036); |
108 | this.checkServer.ServerListener(); | 108 | this.checkServer.ServerListener(); |
109 | sandboxCommunications = new CommunicationsLocal(); | 109 | sandboxCommunications = new CommunicationsLocal(this.serversData.DefaultHomeLocX, this.serversData.DefaultHomeLocY); |
110 | this.commsManager = sandboxCommunications; | 110 | this.commsManager = sandboxCommunications; |
111 | } | 111 | } |
112 | else | 112 | else |
113 | { | 113 | { |
114 | this.SetupRemoteGridServers(); | 114 | this.SetupRemoteGridServers(); |
115 | this.commsManager = new CommunicationsLocal(); //shouldn't be using the local communications manager | 115 | this.commsManager = new CommunicationsLocal(this.serversData.DefaultHomeLocX, this.serversData.DefaultHomeLocY); //shouldn't be using the local communications manager |
116 | } | 116 | } |
117 | 117 | ||
118 | startuptime = DateTime.Now; | 118 | startuptime = DateTime.Now; |
@@ -132,11 +132,15 @@ namespace OpenSim | |||
132 | 132 | ||
133 | if (m_sandbox) | 133 | if (m_sandbox) |
134 | { | 134 | { |
135 | httpServer.AddXmlRPCHandler("login_to_simulator", sandboxCommunications.UserServices.XmlRpcLoginMethod); | ||
136 | |||
137 | /* | ||
135 | loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); | 138 | loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); |
136 | loginServer.Startup(); | 139 | loginServer.Startup(); |
137 | loginServer.SetSessionHandler(sandboxCommunications.SandBoxServices.AddNewSession); | 140 | loginServer.SetSessionHandler(sandboxCommunications.SandBoxServices.AddNewSession); |
138 | //sandbox mode with loginserver not using accounts | 141 | //sandbox mode with loginserver not using accounts |
139 | httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); | 142 | httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); |
143 | */ | ||
140 | } | 144 | } |
141 | 145 | ||
142 | //Start http server | 146 | //Start http server |
diff --git a/prebuild.xml b/prebuild.xml index cae15a2..4e13403 100644 --- a/prebuild.xml +++ b/prebuild.xml | |||
@@ -638,6 +638,7 @@ | |||
638 | <Reference name="OpenGrid.Framework.Communications"/> | 638 | <Reference name="OpenGrid.Framework.Communications"/> |
639 | <Reference name="OpenSim.Caches"/> | 639 | <Reference name="OpenSim.Caches"/> |
640 | <Reference name="XMLRPC"/> | 640 | <Reference name="XMLRPC"/> |
641 | <Reference name="OpenGrid.Framework.UserManagement" /> | ||
641 | <Reference name="OpenSim.LocalCommunications"/> | 642 | <Reference name="OpenSim.LocalCommunications"/> |
642 | 643 | ||
643 | <Files> | 644 | <Files> |