aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorAdam Frisby2008-05-11 04:32:43 +0000
committerAdam Frisby2008-05-11 04:32:43 +0000
commitee352ebc7971fbb62319da53c520304bda5a15a2 (patch)
treec7f6fba9087846bb203e1f3812c4e3445c8650e1 /OpenSim/Region/Environment/Scenes
parent* Refactored two more OutPackets. ObjectPropertiesFamily, and Object Propert... (diff)
downloadopensim-SC-ee352ebc7971fbb62319da53c520304bda5a15a2.zip
opensim-SC-ee352ebc7971fbb62319da53c520304bda5a15a2.tar.gz
opensim-SC-ee352ebc7971fbb62319da53c520304bda5a15a2.tar.bz2
opensim-SC-ee352ebc7971fbb62319da53c520304bda5a15a2.tar.xz
* Added NPCModule and NPCAvatar classes for NPCs. Primitive, but we can grow them out.
* Fix for Scene.Inventory.cs - It assumes every entity at startup is a SceneObjectGroup. (Actually, this shouldn't have compiled[!] without a warning.) * Fix for LandManager at startup - it assumes there's a land channel when perhaps there isnt. (Bug that needs another refactor to fix. [Mike - I've assigned a ticket to you about this])
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs7
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs10
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs9
3 files changed, 22 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index e78ad2b..29bcf0b 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -50,9 +50,12 @@ namespace OpenSim.Region.Environment.Scenes
50 { 50 {
51 m_log.Info("[PRIM INVENTORY]: Starting scripts in scene"); 51 m_log.Info("[PRIM INVENTORY]: Starting scripts in scene");
52 52
53 foreach (SceneObjectGroup group in Entities.Values) 53 foreach (EntityBase group in Entities.Values)
54 { 54 {
55 group.StartScripts(); 55 if (group is SceneObjectGroup)
56 {
57 ((SceneObjectGroup) group).StartScripts();
58 }
56 } 59 }
57 } 60 }
58 61
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 2e1116b..e8a6c45 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1524,7 +1524,15 @@ namespace OpenSim.Region.Environment.Scenes
1524 1524
1525 CreateAndAddScenePresence(client, child); 1525 CreateAndAddScenePresence(client, child);
1526 1526
1527 LandChannel.SendParcelOverlay(client); 1527 try
1528 {
1529 LandChannel.SendParcelOverlay(client);
1530 } //BUG: Mike - please fix this.
1531 catch (KeyNotFoundException)
1532 {
1533 m_log.Warn("[LAND]: Bug #2 triggered with NPC. LandModule needs a refactor to fix this.");
1534 }
1535
1528 CommsManager.UserProfileCacheService.AddNewUser(client.AgentId); 1536 CommsManager.UserProfileCacheService.AddNewUser(client.AgentId);
1529 } 1537 }
1530 } 1538 }
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 043d337..466b20a 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -410,7 +410,14 @@ namespace OpenSim.Region.Environment.Scenes
410 RegisterToEvents(); 410 RegisterToEvents();
411 SetDirectionVectors(); 411 SetDirectionVectors();
412 412
413 m_scene.LandChannel.SendLandUpdate(this, true); 413 try
414 {
415 m_scene.LandChannel.SendLandUpdate(this, true);
416 } //BUG: Mike - please fix this.
417 catch (KeyNotFoundException)
418 {
419 m_log.Warn("[LAND]: Bug triggered with NPC. LandModule needs a refactor to fix this.");
420 }
414 } 421 }
415 422
416 public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, byte[] visualParams, 423 public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, byte[] visualParams,