aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-05-18Cleanup + change properties to set fields with private set : Thanks Justin ↵BlueWall1-1/+0
for the tip.
2012-05-18Provide Telehub setting to allow use of landmarksBlueWall1-1/+2
Setting to allow use of landmarks to override telehub routing. Default is off.
2012-05-17Check agent limit against root agent count rather than both root and child ↵Justin Clark-Casey (justincc)1-2/+11
agents From sl docs such as http://community.secondlife.com/t5/English-Knowledge-Base/Managing-Private-Regions/ta-p/700115 agent should apply to avatars only. This makes sense from a user perspective, and also from a code perspective since child agents with no physics or actions take up a fraction of root agent resources. As such, the check is now only performed in Scene.QueryAccess() - cross and teleport check this before allowing an agent to translocate. This also removes an off-by-one error that could occur in certain circumstances on teleport when a new child agent was double counted when a pre-teleport agent update was performed. This does not affect an existing bug where limits or other QueryAccess() checks are not applied to avatars logging directly into a region.
2012-05-17Force the default Telehub router if no matches are found in the config.BlueWall1-29/+28
2012-05-13Add configurable SpawnPointRoutingBlueWall1-19/+84
Will use one of three selected methods to route avatar landing points when using Telehubs. The setting is in [Startup] using SpawnPointRouting = closest/random/sequence closest: The default setting. Routes avatar to the nearest SpawnPoint to the location. random: Picks random SpawnPoints to land the avatar. sequence: Follows a sequence to place the avatar on the next available SpawnPoint location Conflicts: OpenSim/Region/Framework/Scenes/Scene.cs
2012-05-08Trigger event when scene presences are updatedDan Lake1-0/+10
2012-05-09Mantis 1456 same region teleport of a sitting avatar.Talun1-0/+2
Region to region was fixed some time ago in EntityTransferModule. This applies the same fix for same region teleports.
2012-05-04Mantis 60004 problems with damage and llSetDamage. In damage enabled areas ↵Talun1-7/+46
this patch - Deletes any objects that have damage set > 0 that deliver that damage to an avatar Stops Gods receiving damage, Stops volume detect objects causing damage Deletes NPCS when their helth reduces to zero Gradually "heals" damage to an avatar Resets health on going to a non damage area
2012-05-03Reinsert a 2000ms delay before closing a no longer required agent on the ↵Justin Clark-Casey (justincc)1-4/+10
source region after teleport to resolve Imprudence teleport problems. Viewers 1 and 3 are fine with doing this immediately. However, Imprudence has a small delay (<200ms, >500ms) after receiving the AgentCompleteMovement reply packet on the destination region before regarding that region as the currnet region. If Imprudence receives a DisableSimulator in this period, it quits. We are not restoring the full 5000ms delay since this brings back a bug where teleports permanently fail if an avatar tries to teleport back too quickly. This commit also sends the AgentCompleteMovement packet to the client before telling the source region to release its old agent, in order to further cut down any possibility of the DisableSimulator being recieved before the AgentMovementComplete.
2012-05-01Add regression test for teleporting between neighbouring regions on the same ↵Justin Clark-Casey (justincc)1-2/+2
simulator This adds a non-advertised wait_for_callback option in [EntityTransfer]. Default is always true. Teleport tests disable the wait for callback from the destination region in order to run within a single thread.
2012-04-30refactor: Simplify by combining SafeSendControlsToScripts() from fe8e835 ↵Justin Clark-Casey (justincc)1-73/+75
into SendControlsToScripts() (instead of SendControlToScripts()).
2012-04-30Fixed: scripted controls didn't work if the avatar was sitting downOren Hurvitz1-9/+15
This fixes a bug introduced in 6473674bbf6ce006512083902e8ff1796d8c8b22
2012-04-27Fixed: custom walking animations didn't stop when the avatar stopped walking.Oren Hurvitz1-14/+19
This happened because the scripts were notified about control changes (e.g., the user stopped pressing the Forward key) when the animation was still WALK, so the script didn't stop the walking animation. Fixing this required: a) Update the movement animation *before* notifying the script; b) Add locking to prevent clashes with the Heartbeat thread (which also updates the animations); c) Handle the case of a user who stops walking just as the avatar is in the air: the avatar should STAND in that case, not WALK. This reverts commit feef1dd73243cfdd5322632fb67e64cabc1ad4bc.
2012-04-26Tweak log messages on local region to region teleport path to help with ↵Justin Clark-Casey (justincc)1-1/+4
problem resolution.
2012-04-25Comment out avatar move to target message for now.Justin Clark-Casey (justincc)1-3/+3
2012-04-25Commit the avination Teleport() methods (adaptedto justincc's changes)Melanie1-1/+12
2012-04-25refactor: Combine ScenePresence.Teleport() and TeleportWithMomentum()Justin Clark-Casey (justincc)1-16/+0
These are identical apart from setting Velocity = zero, which has no practical effect anyway since this is zeroed when the avatar is added back to the physics scene.
2012-04-25Add regression test TestSameRegionTeleport()Justin Clark-Casey (justincc)1-0/+6
2012-04-17refactor: Rename EstateSettings.IsEstateManager() to ↵Justin Clark-Casey (justincc)1-3/+3
EstateSettings.IsEstateManagerOrOwner() to reflect what it actually does. This makes it consistent with other parts of OpenSimulator that are treating ESTATE_MANAGER and ESTATE_OWNER as different entities. As per opensim-dev mailing list.
2012-04-12Mantis 55025 Implement script time.Talun1-0/+19
Signed-off-by: nebadon <michael@osgrid.org>
2012-04-09Mantis5502 implementation of some of the new constantsTalun1-0/+38
Signed-off-by: Melanie <melanie@t-data.com>
2012-04-06For llGetMass(), return the mass of the avatar is the object is attached.Justin Clark-Casey (justincc)1-0/+16
As per http://lslwiki.net/lslwiki/wakka.php?wakka=llGetMass This is the mass as used by the physics engine (ODE or Bullet).
2012-03-28HG 2.0: added the beginning of HGSuitcaseInventoryService. Plus moved the ↵Diva Canto1-16/+0
hack away from ScenePresence. This is better but it still doesn't restore the inventory upon arrival.
2012-03-27More on switching the root folder from under the viewer. More experiments.Diva Canto1-0/+18
2012-03-21Incorporate scene teleporting debugging into "debug scene teleport ↵Justin Clark-Casey (justincc)1-1/+1
true|false" command
2012-03-20slight increase in jump power to make running jump slightly better.nebadon1-1/+1
2012-03-20reduce avatar verticle jump from the absurd 5 meter jump to a lessnebadon1-1/+1
absurd 3m vertical jump to better match what you would see in Second Life and be more in line with what users would expect.
2012-03-09Get rid of unnecessary ParentID == 0 check on SP.Get_AbsolutePosition since ↵Justin Clark-Casey (justincc)1-2/+2
this is handled by the necessary ParentPart check
2012-03-09Use SP.ParentPart instead of ParentID in places where it's more efficient ↵Justin Clark-Casey (justincc)1-13/+13
(saving extra null checks, etc.) However, it looks like we should retain SP.ParentID since it's much easier to use that in places where another thread could change ParentPart to null. Otherwise one has to clumsily put ParentPart in a reference, etc. to avoid a race.
2012-03-09refactor: cleanup SP.HandleAgentSit so that everything is done within one if ↵Justin Clark-Casey (justincc)1-15/+8
(part != null), rather than having unnecessary multiple checks
2012-03-09Remove a race condition from SP.Set_AbsolutePosition where we assume the ↵Justin Clark-Casey (justincc)1-5/+5
ParentPart is still not null if the ParentID != 0 Another thread could come in and stand the avatar between those two instructions.
2012-03-08Hold a ref to the prim we're sat on rather than querying scene each timeMelanie1-27/+29
the check for significant is carried out. Prevents a deadlock condition.
2012-03-02ScenePresence line endings and fix AllowMovement default to true.Dan Lake1-30/+30
2012-03-01In ScenePresence, removed several private variables used to store public ↵Dan Lake1-108/+44
parameters. They were only used by the get/set and make code harder to refactor.
2012-02-23Try to resolve some problems with viewers crashing after hitting parcel ↵Justin Clark-Casey (justincc)1-5/+8
banlines or freezing on the banline. This involves 1) On forcible teleport, call m_scene.RequestTeleportLocation() rather than ScenePresence.Teleport() - only EntityTransferModule now should call SP.Teleport() 2) When avatar is being forcibly moved due to banlines, use a 'stop movement' tolerance of 0.2 to requested position rather than 1 This prevents the avatar sometimes being stuck to banlines until they teleport somewhere else. This aims to fix some problems in http://opensimulator.org/mantis/view.php?id=5822
2012-02-23Add a position parameter to region crossing of objects. This avoids theMelanie1-1/+1
potential bad update that places an object at the opposite side of the origin sim for a moment before actually crossing it. Especially important in grids like OSG where lag between sims is high.
2012-02-19Amend to last commit. This should have been committed too.Diva Canto1-1/+1
2012-02-19A few more tweaks on position updates and create child agents. Mono hates ↵Diva Canto1-1/+2
concurrent uses of the same TCP connection, and even of the connections to the same server. So let's stop doing it. This patch makes movement much smoother when there are lots of neighbours.
2012-02-11Make ScenePresence.MovementFlag a private only settable value to reduce ↵Justin Clark-Casey (justincc)1-7/+4
complexity of code analysis
2012-01-24Teleport routing, part 1Melanie1-0/+53
2012-01-16Comment out noisy log lines I accidentally included in the nant build target ↵Justin Clark-Casey (justincc)1-1/+1
adjustment commit. Left in the method doc.
2012-01-16Remove monocov and other obsolete nant build targets.Justin Clark-Casey (justincc)1-1/+1
monocov was a code coverage attempt 3 years ago which no longer works. other removed targets have been commented out or unused for a very long time
2012-01-10HG landing points: this hopefully fixes some confusion that was making HG ↵Diva Canto1-5/+6
avies always land in 0,0
2012-01-09Add some run-time debugging supportBlueWall1-1/+3
Add configuration option - DEBUG to enable debugging methods. This is temporary for helping users testing teleport routing be able to report back the data with the test cases. We can remove when finished with this, or leave it if it proves to be useful. Users: set DEBUG = true in OpenSim.ini to get more information from teleport routing. The default is false. It presently prints the TeleportFlags value.
2012-01-09Use our TeleportFlagsBlueWall1-20/+28
Switch to our TeleportFlags enum instead of LibOMV because we need to define a type for HG Logins. Also moved some debugging in ScenePresence into a function to make it simpler to enable/disable.
2012-01-09TP Routing debugBlueWall1-2/+5
Fix test to checking against bitfield instead of int
2012-01-09Fix teleport routing for incoming HG+OwnerBlueWall1-18/+19
Incoming HG owner/estate manager, etc. is routed according to the rules defined for teleports within the local grid. Left some commented debugging code inside so we can test other cases. Will remove when tings are settled in.
2012-01-09Debugging HG teleport routingBlueWall1-0/+18
Add some temporary debugging to the teleport routing to get a better view of what happens when HG jumps are made.
2012-01-09Fix HG teleport routingBlueWall1-2/+4
Needed to breakout the ViaHGLogin check to it's own section. For some reason it would not factor in when combined with the other teleport flag types.
2012-01-09Fix a build breakMelanie1-1/+1