Justin Clark-Casey (justincc)
53aa48b42c
Add "attachments" show console command that will show the server's record of which attachments an in-scene avatar has.
...
For debugging purposes.
2012-05-17 01:46:36 +01:00
Justin Clark-Casey (justincc)
b33801f854
Improve logging on the prim inventory script asset request path for future use.
...
This adds name and description of the request handler to http request logging when DebugLevel >= 1
2012-05-17 01:45:51 +01:00
Talun
fc88ce0615
Mantis 6015 new LSL function llGetAgentList.
...
Details in the lsl wiki
2012-05-17 01:45:43 +01:00
Justin Clark-Casey (justincc)
28daec7f4e
Remove physics actor related race conditions in SetVehicleFlags() and SetPhysicsAxisRotation()
...
sop.PhysActor can currently become null at any time.
2012-05-17 01:45:35 +01:00
Justin Clark-Casey (justincc)
f25efa291d
Add automated TestllBreakLink()
2012-05-17 01:45:24 +01:00
Justin Clark-Casey (justincc)
5ed0559cf2
Add automated TestllCreateLink()
2012-05-17 01:45:13 +01:00
Justin Clark-Casey (justincc)
8c1e549c12
refactor: Eliminate local id parameter from api initialize.
...
This is always available from m_host.LocalId
2012-05-17 01:44:59 +01:00
Justin Clark-Casey (justincc)
796334c5ff
Instead of constantly looking up unchanging self item in script code, pass in self item on initialization.
2012-05-17 01:44:21 +01:00
Justin Clark-Casey (justincc)
2e1c2e1261
Escape and unescape xml element names if necessary in ServerUtils.BuildXmlData() and ParseElement()
...
If AvatarService appearance data is retrieved over the network, then ServerUtils was attempting to transfer names such as "Wearable 0:0" directly to xml element names, resulting in an exception.
Space is not valid in xml element names. Neither is : in this case since the intention is not to namespace. Using names directly as keys is not a good idea.
To get around this problem this patch escapes and unescapes the element names as appropriate.
This has no impact on existing xml (since it had to be valid in the first place) but allows AvatarService data to be used over the network.
Setting appearance (from simulator to AvatarService) did not suffer this problem since the values are passed in the query string which is already properly escaped.
2012-05-10 00:50:20 +01:00
Talun
a896aac4bd
Mantis 1456 same region teleport of a sitting avatar.
...
Region to region was fixed some time ago in EntityTransferModule.
This applies the same fix for same region teleports.
2012-05-10 00:50:00 +01:00
Justin Clark-Casey (justincc)
80030d3f15
Perform SceneGraph.DuplicateObject() under existing m_updateLock already used for link and delinking, in order to avoid race conditions.
...
DuplicateObject() relies on source object having correct link numbers for the duration of the dupe.
Both link and delink can change link numbers such that they are not consistent for short periods of time.
2012-05-10 00:49:37 +01:00
Oren Hurvitz
4eba4a37ed
Log the full exception when errors occur in BaseHttpServer
2012-05-10 00:49:29 +01:00
Justin Clark-Casey (justincc)
dd0858e204
For osGetGridNick(), osGetGridName(), osGetGridLoginURI() and osGetGridCustom(), try to read from the [GridInfoService] section on standalone rather than [GridInfo]
...
[GridInfoService] is the section that's actually in bin/config-include/StandaloneCommon.ini.example
2012-05-10 00:49:15 +01:00
Justin Clark-Casey (justincc)
25fa6ee699
refactor: Instead of performing a ScenePresence lookup twice over LocateClientObject() and GetClientScene(), do the lookup just once in LocateClientObject()
2012-05-10 00:49:08 +01:00
Justin Clark-Casey (justincc)
84dfffe0aa
Fix a bug in FriendsModule.StatusNotify() where all subsequent friends would not be notified once a non-local friend was found.
2012-05-10 00:48:57 +01:00
Justin Clark-Casey (justincc)
aba803c447
Change LongCallTime on WebUtil to 3000, to match the time where request handling is considered "slow".
...
This may be the wrong thing to do but stops lots of log spam in HG setups now that the monitoring is extended to other outgoing calls.
LongCallTime may need to be made configurable.
2012-05-10 00:47:59 +01:00
Justin Clark-Casey (justincc)
79aae63aff
minor: Tweak BaseHttpServer message to make it clear that this relates to slow handling of inbound requests.
2012-05-10 00:47:43 +01:00
Justin Clark-Casey (justincc)
59e93b8ee3
Extend 'slow' request logging to other server outbound requests (forms, rest, async rest) as well as the existing logging on outbound OSD requests.
...
Also prints out the first 100 chars of any slow request data since this can contain useful info (such as agent ID).
2012-05-10 00:47:26 +01:00
Justin Clark-Casey (justincc)
e0e63f312f
Reinsert a 2000ms delay before closing a no longer required agent on the 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-10 00:39:57 +01:00
Snoopy Pfeffer
d453372f4e
Fixes Mantis #5999 . llSetLinkPrimitiveParams with PRIM_BUMP_SHINY did cause a runtime error.
2012-05-10 00:39:50 +01:00
Justin Clark-Casey (justincc)
0f5a77c5bd
Remove the somewhat misleading logging of the string length of some unknown requests, as this appeared to be some kind of numbered error code.
...
This brings these messages into line with similar messages that did not do this.
2012-05-10 00:39:43 +01:00
Justin Clark-Casey (justincc)
0c96d7ea5c
minor: resolve some mono compiler warnings
2012-05-10 00:39:35 +01:00
Justin Clark-Casey (justincc)
4b947cd6d3
Implement optional name and description on http stream handlers so that we can relate a slow request to what the handler actually does and the agent it serves, if applicable.
...
This is most useful for capabilities where the url is not self-describing.
2012-05-10 00:38:26 +01:00
Justin Clark-Casey (justincc)
ca586ca809
Comment out the five second sleep in etm.DoTeleport() if the old agent needs to be closed because it is no longer in the child's view distance.
...
This sleep appears unnecessary since a sleep has already occurred in WaitForCallback() whilst waiting for the destination region to notify of teleport success.
There are no async operations between this sleep and the WaitForCallback()
If this sleep is present, then teleporting back to the source region within 5 seconds results in a disconnection.
If this sleep is commented out then teleporting quickly back and forth between two simulators appears to work without issue.
Tested on standalone, local grid and distributed grid.
Please revert if there's something that I've missed.
2012-05-10 00:29:02 +01:00
Justin Clark-Casey (justincc)
880358f46b
Remove some test code that accidentally crept in with 9d2e1c67
2012-05-10 00:28:53 +01:00
Justin Clark-Casey (justincc)
3393babb7d
Add regression test for teleporting between neighbouring regions on the same 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-05-10 00:28:47 +01:00
Justin Clark-Casey (justincc)
c3ae90c067
Move max teleport distance check down into etm.DoTeleport() since this should apply to all teleport calls, not just those through Teleport()
2012-05-10 00:28:27 +01:00
Justin Clark-Casey (justincc)
25983f20a0
refactor: Split most of EntityTransferModule.Teleport() into its same region and different region teleport components.
...
DoTeleport() now retrives IEventQueue itself rather than requiring it to be passed in.
2012-05-10 00:25:25 +01:00
Justin Clark-Casey (justincc)
1441758bc6
Create TestHelpers.EnableLogging() and DisableLogging() to turn logging on and off within tests.
...
This makes *.Tests.dll.config files no longer needed, hence deleted.
2012-05-10 00:25:14 +01:00
Justin Clark-Casey (justincc)
c7bbeb4490
Add request verb and url to error messages in WebUtil that lack this.
...
Make exception printing consistent across windows and mono.
Conflicts:
OpenSim/Framework/WebUtil.cs
2012-05-10 00:21:09 +01:00
Diva Canto
6145f90423
Slight rewording of output messages.
2012-05-10 00:17:36 +01:00
Diva Canto
2e397d1514
HG: Moved User-level code down to the HGEntityTransferModule where it belongs.
2012-05-10 00:16:51 +01:00
Diva Canto
a5d0a29dd9
Moved the inventory manipulation from HGEntityTransferModule to HGInventoryAccessModule where it belongs. They need to exchange some events, so added those to EventManager. Those events (TeleportStart and TeleportFail) are nice to have anyway.
2012-05-10 00:10:18 +01:00
Melanie
de843fd0a8
Implement bulk inventory update over CAPS (not recursive by design,
...
do NOT CHANGE THIS, needed for HG 2.0)
2012-05-10 00:05:47 +01:00
Melanie
ced4eeddcf
Typo fix
2012-05-10 00:05:41 +01:00
Melanie
093910e90e
Fix typos
2012-05-10 00:05:32 +01:00
Melanie
37685ec1b4
Start on Bulk inventory update via CAPS. Not functional yet. HG v2
2012-05-10 00:05:26 +01:00
Melanie
ccd7d35b3f
Add a corresponding method for items. HG v2
2012-05-10 00:05:19 +01:00
Melanie
de7e0d7e52
Add SendRemoveInventoryFolders which allows to remove one or more
...
folders from the viewer's inventory view. For HG v2.0. More to come
2012-05-10 00:05:13 +01:00
Diva Canto
89ee03a24d
HG: beginning of a more restrictive inventory access procedure (optional). Experimental: we'll try switching the root folder from under the viewer.
2012-05-10 00:02:14 +01:00
Melanie
79d1d3ca55
Commit the avination Teleport() methods (adaptedto justincc's changes)
2012-05-09 23:58:42 +01:00
Justin Clark-Casey (justincc)
675c208c7e
zero out SP velocity before calling SP.Teleport(), as the client expects (though this is also effectively done by physics at the moment)
2012-05-09 23:58:35 +01:00
Justin Clark-Casey (justincc)
b3307850ab
refactor: Combine ScenePresence.Teleport() and TeleportWithMomentum()
...
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-05-09 23:58:27 +01:00
Oren Hurvitz
eaa840dbd9
OSSL: fixed the threat level check for osParseJSONNew
2012-05-09 23:57:49 +01:00
Justin Clark-Casey (justincc)
f64089fa6c
Restore _parent_scene.actor_name_map[prim_geom] = this; accidentally removed from ODEPrim.SetGeom.
...
This occurred in 7a574be3fd
from Sat 21 Apr 2012.
This should fix collision detection.
Mnay thanks to tglion for the spot and the fix in http://opensimulator.org/mantis/view.php?id=5988
2012-05-09 23:57:27 +01:00
Justin Clark-Casey (justincc)
5157d2023d
refactor: simply some properties code in BasicPhysicsPlugin
2012-05-09 23:52:41 +01:00
Justin Clark-Casey (justincc)
2cd927bb14
Fix bug where setting phantom on a prim would result in a server log message rather than setting phantom.
...
This was an oversight when removing some race conditions from PhysicsActor setting recently.
Regression tests extended to probe this code path.
Extending regression tests required implementation of a BasicPhysicsPrim (there was none before). However, BasicPhysics plugin is still of no current practical use other than to fill in as a component for other parts of regression testing.
2012-05-09 23:52:04 +01:00
Justin Clark-Casey (justincc)
2889961622
Comment out spurious Body != IntPtr.Zero code after disableBody(), since disableBody() sets Body == IntPtr.Zero on all code paths.
2012-05-09 23:51:56 +01:00
Justin Clark-Casey (justincc)
232f59749e
refactor: Simplify ODEPrim.AddChildPrim() by returning early where appropriate.
2012-05-09 23:51:48 +01:00
Justin Clark-Casey (justincc)
d368a10cc7
Add test for setting physics in a linkset
2012-05-09 23:51:41 +01:00
Justin Clark-Casey (justincc)
139b848774
Add regression test for prim status when root prim in a new linkset is non-physical
2012-05-09 23:51:34 +01:00
Justin Clark-Casey (justincc)
74a5226af5
Fix a bug where linking a non-physical prim with a physical prim as root would make the non-physical prim phantom rather than part of the physics object.
...
On region restart, the whole object would become physical as expected.
Observed behaviour from elsewhere is that all prims in a new linkset should take on the status of the root prim.
Add regression test for this behaviour.
2012-05-09 23:51:25 +01:00
Justin Clark-Casey (justincc)
c7ddc7a633
Remove redundant prim_geom != IntPtr.Zero checks in ODEPrim.
...
prim_geom == IntPtr.Zero only before a new add prim taint is processed (which is the first taint) or in operations such as scale change which are done in taint or under lock.
Therefore, we can remove these checks which were not consistently applied anyway.
If there is a genuine problem, better to see it quickly in a NullReferenceException than hide the bug.
2012-05-09 23:39:47 +01:00
Justin Clark-Casey (justincc)
265707d21c
If a physical prim is manually moved (e.g. by a user) then set the geometry position as well as the body position
...
This is necessary to stop the moved prim snapping back to the original position on deselection if moved only once
This resolves http://opensimulator.org/mantis/view.php?id=5966
2012-05-09 23:39:37 +01:00
Justin Clark-Casey (justincc)
eb39d1c4d4
Comment out debug [ASYNC DELETER] messages for now.
2012-04-30 19:29:17 +01:00
Justin Clark-Casey (justincc)
1197d48fc7
Remove mono compiler warning. Adjust message log to error from info
2012-04-30 19:29:08 +01:00
Justin Clark-Casey (justincc)
23e1a55ed5
Add text about using double quotes to surround console command arguments containing spaces to "help" text.
...
e.g. show object name "My long object name"
2012-04-30 19:29:01 +01:00
Justin Clark-Casey (justincc)
ba2a539603
Put scene object related console commands into new "Objects" help category rather than "Regions"
2012-04-30 19:28:54 +01:00
Justin Clark-Casey (justincc)
8a8093d8dd
Add flags information (phantom, physics, etc.) to "show object" and "show part" console commands
2012-04-30 19:28:41 +01:00
Justin Clark-Casey (justincc)
3fb0103452
Add regression test for teleporting an agent between separated regions on the same simulator.
...
This involves a large amount of change in test scene setup code to allow test scenes to share shared modules
SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static
May split these out into separate classes in the future.
2012-04-30 19:27:21 +01:00
Justin Clark-Casey (justincc)
aeefdaedc7
minor: make NPC tests run in a given order, comment out log lines in mock region data plugins, null out scene in script and npc torture tests, add other doc comments to torture tests
2012-04-30 19:18:54 +01:00
Justin Clark-Casey (justincc)
756d1f917f
Stop individually deleting objects at the end of each ObjectTortureTest.
...
We can now do this since the entire scene and all objects within it are now successfully gc'd at the end of these tests.
This greatly improves the time taken to run each test (by reducing teardown time, not the time to actually do the test work that we're interested in).
Slightly simplifies config read in Scene constructor to help facilitate this.
2012-04-30 19:18:47 +01:00
Justin Clark-Casey (justincc)
6fa3dffad2
Use a fully stubbed out MockConsole for unit tests rather than inheriting from CommandConsole.
...
This is so that the static MainConsole.Instance doesn't retain references to methods registered by scene and other modules to service commands.
This prevents the scene from being garbage collected at the end of a test.
This is not the final thing preventing GC - next up is the timer started by SimStatsReporter that holds a reference to Scene that prevents end of test gc.
2012-04-30 19:17:06 +01:00
Justin Clark-Casey (justincc)
123e781cb3
Make TestSetPhysicsSinglePrim() actually add the object to the scene in order to test more code paths.
2012-04-30 19:15:07 +01:00
Justin Clark-Casey (justincc)
ed9bf5b0c6
Add regression test for prim status when root prim in a new linkset is non-physical
2012-04-30 19:14:35 +01:00
Justin Clark-Casey (justincc)
dd4e39ca1d
refactor: extract common setup code in SceneObjectStatusTests
2012-04-30 19:13:33 +01:00
Justin Clark-Casey (justincc)
5a551b074b
Add TestSetPhysics() to SOP status tests
2012-04-30 19:13:24 +01:00
Justin Clark-Casey (justincc)
c1a9355865
Tweak log messages on local region to region teleport path to help with problem resolution.
2012-04-30 19:05:27 +01:00
Diva Canto
3ea6c25fb6
Teleports: bounce off repeated requests of teleporting the same agent. Some scripts do that, and that fails the whole thing.
2012-04-30 19:05:24 +01:00
Justin Clark-Casey (justincc)
2d3135448c
Comment out old Scene.HandleLogOffUserFromGrid() to reduce client closing analysis complexity
2012-04-30 19:01:30 +01:00
Justin Clark-Casey (justincc)
36a99af37c
minor: Add more detail to unauthorized caps client message
2012-04-30 19:01:23 +01:00
Justin Clark-Casey (justincc)
2aefd15913
minor: Add region name to dropped inbound packet message
2012-04-30 19:01:13 +01:00
Justin Clark-Casey (justincc)
6bc55b1086
minor: Add avatar name to removing agent log message
2012-04-30 19:00:47 +01:00
Justin Clark-Casey (justincc)
7058ce2c70
Comment out avatar move to target message for now.
2012-04-30 19:00:39 +01:00
Justin Clark-Casey (justincc)
8e111e9018
Add regression test TestSameRegionTeleport()
2012-04-30 18:59:50 +01:00
Justin Clark-Casey (justincc)
d8bd7ca436
Comment out AvatarService.SetAvatar debug log line for now
2012-04-30 18:59:43 +01:00
Justin Clark-Casey (justincc)
392f73a000
Comment out some debug ATTACHMENTS log messages for now.
2012-04-30 18:59:35 +01:00
Justin Clark-Casey (justincc)
67efbaf33b
Comment out the noisier AVFACTORY log messages for now.
...
Permanently comment out warnings about ScenePresence not being found - this is entirely expected if the avatar has alraedy logged out or left the scene.
2012-04-30 18:59:27 +01:00
Justin Clark-Casey (justincc)
0d06740148
Improve teleport log debug and error messages to tell us who is teleporting.
2012-04-30 18:58:37 +01:00
Diva Canto
eda6947a22
Changed the Map-related messages from Info to Debug. They're debug messages.
2012-04-30 18:49:07 +01:00
Justin Clark-Casey (justincc)
f331173145
Add online/offline indicator to "friends show" region console command.
...
Improve output table formatting.
2012-04-30 18:48:57 +01:00
Justin Clark-Casey (justincc)
a666cd9e1f
Add osForceAttachToAvatar() and osForceDetachFromAvatar()
...
These behave identically to llAttachToAvatar() and llDetachFromAvatar() except that they do not enforce the PERMISSION_ATTACH check
Intended for use in completely controlled dedicated environments where these checks are more a UI hinderance than a help.
Threat level high.
2012-04-24 00:50:32 +01:00
Justin Clark-Casey (justincc)
2657aa6987
Replace common code to fetch self inventory item (as opposed to uuid) with GetSelfInventoryItem()
...
However, at some point it would be far more convenient to receive the TaskInventoryItem in the constructor rather than just the item UUID, so we don't have to constantly refetch our self item.
2012-04-24 00:45:09 +01:00
Justin Clark-Casey (justincc)
6610cd2332
refactor: Replace calls to InventorySelf() with existing m_itemID in LSL_Api
...
There's no point look up an item ID that we already have.
2012-04-24 00:44:57 +01:00
Justin Clark-Casey (justincc)
0c8b44d514
Add more exception detail to Exception and IOException throws in BaseHttpServer.HandleRequest()
2012-04-24 00:40:19 +01:00
Justin Clark-Casey (justincc)
ec46ff4445
Stop teleports from dropping tall avatars through or embedding them in the floor when lured by short avatars.
...
This involves giving the ceiling of the Z-component in a lure rather than the floor.
Ideally we would give the exact float compensating for relative avatar height but it looks like that isn't possible with the parcel id format used in lures
2012-04-24 00:37:37 +01:00
Melanie
db891880e6
Fix a logic error in app domain creation
2012-04-24 00:36:54 +01:00
Melanie
9c433e8c50
Don't re-add the assembly resolver for each script if not creating the appdomain
2012-04-24 00:36:46 +01:00
Justin Clark-Casey (justincc)
5141863ae3
On "show part" command, show link number.
...
This replaces the Parts count which was rather pointless for a prim (it was either 1 if a child or the number of parts if the root).
This information is still avaliable on the "show object" command.
2012-04-18 23:02:02 +01:00
Justin Clark-Casey (justincc)
d23550dea5
minor: Add some method doc. Add warnings since calling SOG link/delink methods directly rather than through Scene may allow race conditions.
2012-04-18 23:01:56 +01:00
Justin Clark-Casey (justincc)
c3b12510ae
Add TestGetChildPartPositionAfterObjectRotation()
2012-04-18 23:01:42 +01:00
Justin Clark-Casey (justincc)
b2685e3671
Add test TestGetChildPartPosition()
2012-04-18 23:01:33 +01:00
Justin Clark-Casey (justincc)
601d2ddbf3
Move some public methods on WebStatsModule to private to reduce some static analysis complexity.
...
There's no obvious reason for these methods to be public.
2012-04-18 23:01:27 +01:00
Justin Clark-Casey (justincc)
a5e8fe70af
Use INSERT OR REPLACE INTO sql in WebStatsModule for session update rather than separate insert and update statements
2012-04-18 23:01:12 +01:00
Justin Clark-Casey (justincc)
9b3a96aa81
correct bug where f_invalid was being inserted on a webstats update for an existing session rather than d_world_kb
2012-04-18 23:01:06 +01:00
Justin Clark-Casey (justincc)
d674e815bd
Simplify WebStatsModule by removing the uncompleted migrations section.
...
Use "create table if not exists" instead.
Client stats data is transitory data that it is not worth migrating.
2012-04-18 23:01:00 +01:00
Justin Clark-Casey (justincc)
c2e696d686
Fix bug in WebStatsModule where an exception would always be output on update if the user teleported to another region on that simulator.
...
This was because update was looking for an existing stats record unique in session id, agent id and region id.
But if the user teleports to another region then region id changes.
WebStatsModule promptly doesn't find the existing record and tries to insert a new one, but only session id is the primary key and that's still the same, which makes things go bang.
This makes the update search only on the unique session id.
This is only an issue with simulators that have multiple regions where the webstats module is enabled.
2012-04-18 23:00:51 +01:00
Justin Clark-Casey (justincc)
411dbb8df4
Add GroupPosition and GetWorldPosition() checks to TestGetRootPartPosition()
2012-04-18 23:00:43 +01:00
Justin Clark-Casey (justincc)
b22dfbbf15
minor: make test names consistent
2012-04-18 23:00:36 +01:00
Justin Clark-Casey (justincc)
4c39a3fdbf
refactor: move common init code into SetUp() in SceneObjectSpatialTests
2012-04-18 23:00:30 +01:00
Justin Clark-Casey (justincc)
f3eb366f24
refactor: put SOG position test in a separate TestSceneObjectGroupPosition()
2012-04-18 23:00:22 +01:00
Justin Clark-Casey (justincc)
a20d1b8f6b
Add simple RelativePosition and OffsetPosition checks to TestGetRootPartPosition
2012-04-18 23:00:14 +01:00
Justin Clark-Casey (justincc)
0a51289332
Add very basic TestGetRootPartPosition() test
2012-04-18 23:00:02 +01:00
Justin Clark-Casey (justincc)
97ebfb00b4
Rather than having a FromFolderID property on every single prim and only ever using the root prim one, store on SOG instead.
...
This reduces pointless memory usage.
2012-04-18 22:59:24 +01:00
Justin Clark-Casey (justincc)
c7d664f9d0
Store FromItemID for attachments once on SOG instead of on every SOP and only ever using the root part entry.
...
This eliminates some pointless memory use.
2012-04-18 22:59:18 +01:00
Justin Clark-Casey (justincc)
c2fbaaa95d
refactor: Eliminate unnecessary SOP.m_physActor
2012-04-18 22:59:08 +01:00
Justin Clark-Casey (justincc)
84d4b390f1
remove possible PhysActor unexpectedly null race conditions when changing prim collision status
...
factor out common SOP physics scene adding code into a common SOP.AddToPhysics() that is the counterpart to the existing RemoveFromPhysics()
2012-04-18 22:58:17 +01:00
Justin Clark-Casey (justincc)
54e59099b7
Fix more SOP.PhysActor race conditions in LSL_Api
2012-04-18 22:58:10 +01:00
Justin Clark-Casey (justincc)
d9585ba37e
Eliminate race condition where many callers would check SOP.PhysicsActor != null then assume it was still not null in later code.
...
Another thread could come and turn off physics for a part (null PhysicsActor) at any point.
Had to turn off localCopy on warp3D CoreModules section in prebuild.xml since on current nant this copies all DLLs in bin/ which can be a very large number with compiled DLLs
No obvious reason for doing that copy - nothing else does it.
2012-04-18 22:58:03 +01:00
Justin Clark-Casey (justincc)
45c617b5c3
Allow llRegionSayTo() to work on the PUBLIC_CHANNEL, as per http://wiki.secondlife.com/wiki/LlRegionSayTo
...
Addresses http://opensimulator.org/mantis/view.php?id=5950
2012-04-18 22:55:30 +01:00
Justin Clark-Casey (justincc)
4b0c78c64f
minor: remove some now unneeded code from FriendsCommandsModule
2012-04-18 22:55:12 +01:00
Justin Clark-Casey (justincc)
dd36e23a62
Make default "show friends" console command show friends fetched from the friends service.
...
There is no a --cache option which will show friends from the local cache if available.
2012-04-18 22:55:05 +01:00
Justin Clark-Casey (justincc)
e2dade05d9
Lock NullFriendsData.m_Data for consistency and against concurrent read/write
2012-04-18 22:54:57 +01:00
Justin Clark-Casey (justincc)
fbd61106cb
refactor: Move "friends show cache" console command out into separate FriendsCommandsModule.
...
Expose required methods on IFriendsModule. Rename GetFriends() -> GetFriendsFromCache() for self-documentation
2012-04-18 22:54:45 +01:00
Justin Clark-Casey (justincc)
67e66a2d34
Add simple login test with online friends. Add IFriendsModule.GrantRights() for granting rights via a module call.
...
Rename IFriendsModule.GetFriendPerms() -> GetRightsGrantedByFriend() to be more self-documenting and consistent with friends module terminology.
Add some method doc.
2012-04-18 22:46:10 +01:00
Justin Clark-Casey (justincc)
59911963ca
refactor: Stop passing both IClientAPI and agentID to friend event listeners, these are redundant. Replace a few magic numbers with FriendRights enum already used elsewhere.
2012-04-18 22:45:31 +01:00
Justin Clark-Casey (justincc)
dc2a4a6ccd
Add simple regression test for logging in with offline friends. Don't expect to receive any in this instance.
2012-04-18 22:41:19 +01:00
Justin Clark-Casey (justincc)
81fb0b4f07
Add back parts of reverted changes that were not concerned with child agent caching.
...
This adds ScenePresence to IClientAPI.SceneAgent earlier on in the add client process so that its information is available to EventManager.OnNewClient() and OnClientLogin()
Also add a code comment as to why we're caching friend information for child agents.
2012-04-18 22:41:12 +01:00
Melanie
a06c8fb7b2
Also add OSS header to interface
2012-04-18 22:41:05 +01:00
Melanie
05e70f76a9
Change namespace on CallingCardModule and correct interface file placemant. Also ass OpenSource header
2012-04-18 22:36:24 +01:00
Melanie
b9f4836d3e
Committing the Avination calling card module
2012-04-18 22:36:03 +01:00
Melanie
ef77dc932b
Adding the Avination calling card interface
2012-04-18 22:35:57 +01:00
Melanie
5c2ffa260c
Pushing the Avination Calling card hooks. Module to follow.
2012-04-18 22:35:11 +01:00
Justin Clark-Casey (justincc)
23d04fa25c
Add "friends show cache <first-name> <last-name>" command for debugging purposes.
...
This adds a reverse lookup (name -> ID) to IUserManagement instead of hitting the UserAccountService directly.
2012-04-18 22:11:42 +01:00
Justin Clark-Casey (justincc)
67dbce4512
minor: Add some documentation to OnNewClient and OnClientClosed events
2012-04-18 22:11:31 +01:00
Justin Clark-Casey (justincc)
46170fd0d8
minor: clean up some code formatting in VivoxVoiceModule.cs
2012-04-18 22:11:18 +01:00
Justin Clark-Casey (justincc)
f85a453dc8
Allow the user to enter help topics in upper or lowercase.
...
Forcing uppercase (e.g. help Assets) is too annoying.
Thanks to WhiteStar for pointing this out.
2012-04-18 22:10:27 +01:00
nebadon
bcfe48e05b
fix yield prolog so it compiles with mono 2.11 there has been a bugzilla
...
report files with mono project in regards to this change, this simply
lets us move forward with using mono 2.11 for now :
https://bugzilla.xamarin.com/show_bug.cgi?id=4052
2012-04-18 22:10:05 +01:00
Justin Clark-Casey (justincc)
722ca250ea
Move "change region" command into general category
2012-04-18 22:05:45 +01:00
Justin Clark-Casey (justincc)
f4df128e52
Uses shorter AddCommand form for "show estates"
2012-04-18 22:05:38 +01:00
Justin Clark-Casey (justincc)
8cc5322b39
Display help commander topics in capitalized form - the commands themselves are still lowercase.
...
Also convert the estate commands to simply AddCommand() calls so that commands from two different modules can be placed in the same category
2012-04-18 22:05:24 +01:00
Justin Clark-Casey (justincc)
1480845597
Change "help" to display categories/module list then "help <category/module>" to display commands in a category.
...
This is to deal with the hundred lines of command splurge when one previously typed "help"
Modelled somewhat on the mysql console
One can still type help <command> to get per command help at any point.
Categories capitalized to avoid conflict with the all-lowercase commands (except for commander system, as of yet).
Does not affect command parsing or any other aspects of the console apart from the help system.
Backwards compatible with existing modules.
2012-04-18 22:05:03 +01:00
Justin Clark-Casey (justincc)
c877e73463
Comment out log message about sending periodic appearance updates.
2012-03-30 02:33:26 +01:00
Justin Clark-Casey (justincc)
e6b12e1f9d
Add experimental SendPeriodicAppearanceUpdates = true/false setting to [Startup] in OpenSim.ini
...
On osgrid and other places, I have observed that manually sending appearance updates from the console often relieves grey avatar syndrome.
Despite hunting high and low, I haven't been able to find where this packet is sometimes being lost - it might be a persistent viewer bug for all I know.
Therefore, this experimental setting resends appearance data for everybody in the scene every 60 seconds. These packets are small and the viewer only fetches texture
data if it doesn't already have it.
Default is false.
2012-03-30 02:33:10 +01:00
Justin Clark-Casey (justincc)
bfbbd4ccba
Add a scene maintenance thread in parallel to the heartbeat thread. The maintenance thread will end up running regular jobs that don't need to be in the main scene loop.
...
The idea is to make the critical main scene loop as skinny as possible - it doesn't need to run things that aren't time critical and don't depend on update ordering.
This will be done gradually over time to try and uncover any issues. Many non-criticial scene loop activities are being launched on separate threadpool threads anyway.
This may also allow modules to register their own maintenance jobs without having to maintain their own timers and threads.
Currently the maintenance loop runs once a second, as opposed to the 89ms scene loop.
2012-03-30 02:33:01 +01:00
Justin Clark-Casey (justincc)
fec7016665
Remove unnecessary shutting down check in Scene.Heartbeat(). Add some method doc. Rename HeartbeatThread, shuttingdown to conform to code standards.
2012-03-30 02:32:53 +01:00
Justin Clark-Casey (justincc)
47fe6170b2
Rename Scene.StartTimer() to Start() - this method no longer uses a timer. Comment out more effectively unused old heartbeat code.
2012-03-30 02:32:34 +01:00
Justin Clark-Casey (justincc)
24b5fb8523
Add commented out section on collisions switch in Scene.SetSceneCoreDebug().
...
This was not implemented before the recent changes but should be at some point.
2012-03-30 02:24:03 +01:00
Justin Clark-Casey (justincc)
e8cd9688ce
If "debug scene updates true" then print out to log when a garbage collection occurs.
2012-03-30 02:23:27 +01:00
Justin Clark-Casey (justincc)
fa952f6d35
Add Scene.DebugUpdates switch which, if turned on, will print out a warning when a frame updates takes longer than twice the desired time
...
This is controlled via "debug scene updates true|false" on the region console.
Also fix an oversight with "debug scene teleport true|false"
2012-03-30 02:23:20 +01:00
Justin Clark-Casey (justincc)
df55fd69af
Incorporate scene teleporting debugging into "debug scene teleport true|false" command
2012-03-30 02:23:13 +01:00
Justin Clark-Casey (justincc)
019fc4c1f2
Replace "scene debug true false true" console command with "scene debug scripting true" or other parameters as appropriate.
...
This is to allow individual switching of scene debug settings and to provide flexibiltiy for additional settings.
2012-03-30 02:22:59 +01:00
Justin Clark-Casey (justincc)
22ea441feb
fix compile error from last commit
2012-03-30 02:22:57 +01:00
Justin Clark-Casey (justincc)
9f5b33e52e
refactor: simplify EstateManagementModule.handleEstateDebugRegionRequest()
2012-03-30 02:21:42 +01:00
Justin Clark-Casey (justincc)
92837c4f89
Add ability to log warn if a frame takes longer than twice the expected time. Currently commented out.
2012-03-30 02:21:32 +01:00
Justin Clark-Casey (justincc)
68ce06f40f
remove unnecessary tmpFrameMS, use maintc instead for frame time calculation
2012-03-30 02:21:04 +01:00
Justin Clark-Casey (justincc)
279b31c75b
Move frame loop entirely within Scene.Update() for better future performance analysis and stat accuracy.
...
Update() now accepts a frames parameter which can control the number of frames updated.
-1 will update until shutdown.
The watchdog updating moves above the maintc recalculation for any required sleep since it should be accounted for within the frame.
2012-03-30 02:20:46 +01:00
Justin Clark-Casey (justincc)
3117b3cd88
refactor: precalculate the fixed movement factor for avatar tilting (sqrt(2)) rather than doing it multiple times on every move.
2012-03-30 02:20:35 +01:00
Justin Clark-Casey (justincc)
9b547f76e7
refactor: Eliminate unnecessary duplicate avCapsuleTilted
2012-03-30 02:20:29 +01:00
Justin Clark-Casey (justincc)
3d6675784a
Remove pointless ThreadAbortException catching in a test that isn't run anyway.
2012-03-30 02:20:21 +01:00
Justin Clark-Casey (justincc)
26f50eadd1
Remove some pointless catching/throwing in the scene loop.
2012-03-30 02:20:14 +01:00
Justin Clark-Casey (justincc)
6e8496ffc5
Comment out unused scene loop restart code.
...
This has actually been unused since at least 0.7.2 due to earlier changes.
2012-03-30 02:18:13 +01:00
Justin Clark-Casey (justincc)
88d6c4ec0e
Use m_lastFrameTick instead of m_lastUpdate in Scene.GetHealth(). m_lastUpdate is no longer properly updated and is redundant anyway.
2012-03-30 02:18:05 +01:00
Justin Clark-Casey (justincc)
135eeb45d6
Change flavour to extended
2012-03-30 02:16:11 +01:00
Justin Clark-Casey (justincc)
54ee59c0bb
Add Extended flavour option to opensim version information.
...
This flavour is for changes in addition to the 0.7.3-post-fixes branch that are too large to be considered fixes but should be reasonably stable.
This flavour will almost certainly never see a formal release.
2012-03-30 02:13:37 +01:00
Justin Clark-Casey (justincc)
4a5c61a33d
Enable voice by default on parcels to weaken effects of viewer 2/3 ParcelVoiceInfoRequest bug
...
Viewer 2/3 contains a bug where the viewer will constantly retry ParcelVoiceInfoRequest requests on voice-disabled parcels where voice is otherwise available.
Attempts to fix this server-side have not been successful - sending a non-OK http code (e.g. a 404) just makes the viewer request again immediately.
Dropping the request entirely is a bit better but the viewer still retries after a minute.
Estate settings already enabled voice by default so doing the same for parcels. This only has an effect if you have any voice system active at all.
Ultimately, the re-request bug needs to be fixed viewer-side (LL suffers from the same issue!) but it might be worth implementing the drop request hack.
2012-03-30 02:03:52 +01:00
Diva Canto
179c0f5f56
Merge branch '0.7.3-post-fixes' of ssh://opensimulator.org/var/git/opensim into 0.7.3-post-fixes
2012-03-22 20:36:01 -07:00
Justin Clark-Casey (justincc)
4dbf937707
Comment out login parameters debug output accidentally included with c4b2d24
2012-03-22 23:33:08 +00:00
Justin Clark-Casey (justincc)
9edb57e5e9
Comment out a terrain save-tile debugging message that accidentally crept in with c4b2d24
2012-03-22 23:17:54 +00:00
Justin Clark-Casey (justincc)
4d15ad63bf
refactor: simplify code for checks when part.OwnerID != destPart.OwnerID in MoveTaskInventoryItem()
2012-03-22 23:03:00 +00:00
Justin Clark-Casey (justincc)
4021709371
Fix llGiveInventory() so that it checks the destination part for AllowInventoryDrop, not the source.
...
This allows llAllowInventoryDrop() to work.
Regression test added for this case.
2012-03-22 23:02:49 +00:00
Justin Clark-Casey (justincc)
3c13f5c3aa
Add llGiveInventory() test from object to object where both objects are owned by the same user.
2012-03-22 23:02:35 +00:00
Justin Clark-Casey (justincc)
381517b451
Add prim name to "[MESH]: No recognized physics mesh..." log message
2012-03-22 23:01:39 +00:00
Justin Clark-Casey (justincc)
6ecf36d49c
Fix small typo
2012-03-22 22:47:03 +00:00
Justin Clark-Casey (justincc)
64eb4b8408
Fix crash where two scene loop threads could changes m_MeshToTriMeshMap at the same time.
...
Have to lock m_MeshToTriMeshMap as property is static and with more than one region two scene loops could try to manipulate at the same time.
2012-03-22 22:46:45 +00:00
Melanie
50c99fcda6
Change a false false to be truly true - or is this statement false?
...
Fixes perms boo-boo
2012-03-22 14:34:33 -07:00
Melanie
321de1f263
Rework Diva's patch to simplify it
2012-03-22 14:34:19 -07:00
Diva Canto
fa30ace67d
Fixed borkness with map search introduce by my last changes to it.
2012-03-20 17:49:05 -07:00
Justin Clark-Casey (justincc)
92baa79253
Add some doc about the EventManager.OnLoginsEnabled event.
2012-03-19 22:49:34 +00:00
Justin Clark-Casey (justincc)
e861b45313
Fix a bug where logins to standalones would fail if the RegionReady module was not active
...
Unfortunately, the OnLoginsEnabled event is currently only guaranteed to fire if the RegionReady module is active.
However, we can instantiate the AuthorizationService in the module RegionLoaded method since by this time all other modules will have been loaded
2012-03-19 22:49:14 +00:00
Justin Clark-Casey (justincc)
cf91ac68b6
Stop console command "xengine status" throwing an exception if there are no scripts in a region.
...
Addresses http://opensimulator.org/mantis/view.php?id=5940
2012-03-19 21:45:18 +00:00
Justin Clark-Casey (justincc)
d4aba13526
Clean up "save iar" help
2012-03-19 21:33:03 +00:00
Justin Clark-Casey (justincc)
d36c7c3782
minor: reuse threadpool count we just fetched instead of fetching it again
2012-03-19 21:32:50 +00:00
Justin Clark-Casey (justincc)
4385fcdeae
Add total scripts count to "show threads"
...
However, this returns 0 on Mono (at least on 2.6.7)! So not showing if it is zero.
2012-03-19 21:32:42 +00:00
Justin Clark-Casey (justincc)
04eb170624
refactor: separate out console and status report generation parts of XEngine
2012-03-19 21:32:34 +00:00
Justin Clark-Casey (justincc)
4803686078
Improve threadpool reporting to "show threads" console command (also gets printed out periodically)
2012-03-19 21:32:25 +00:00
Justin Clark-Casey (justincc)
20b0fda3bb
Add process working memory to "show stats" memory statistics.
...
This shows the actual amount of RAM being taken up by OpenSimulator (objects + vm overhead)
2012-03-19 21:32:16 +00:00
Justin Clark-Casey (justincc)
4e5f823595
In Top Scripts report, don't show scripts with no or less than 1 microsecond of execution time.
...
This is to make the report clearer and less confusing.
2012-03-19 21:32:02 +00:00
Justin Clark-Casey (justincc)
a74408d1d2
Aggregate script execution times by linksets rather than individual prims.
...
This is for the top scripts report.
2012-03-19 21:31:53 +00:00
Justin Clark-Casey (justincc)
8206537efd
Fix owner name display in "Top Colliders" and "Top Script" region reports.
2012-03-19 21:31:45 +00:00
Justin Clark-Casey (justincc)
a9a77bb3ab
Replace script-lines-per-second with the script execution time scaled by its measurement period and an idealised frame time.
...
The previous lines-per-second measurement used for top scripts report was inaccurate, since lines executed does not reflect time taken to execute.
Also, every fetch of the report would reset all the numbers limiting its usefulness and we weren't even guaranteed to see the top 100.
The actual measurement value should be script execution time per frame but XEngine does not work this way.
Therefore, we use actual script execution time scaled by the measurement period and an idealised frame time.
This is still not ideal but gives reasonable results and allows scripts to be compared.
This commit moves script execution time calculations from SceneGraph into IScriptModule implementations.
2012-03-19 21:31:38 +00:00
Justin Clark-Casey (justincc)
6390de689d
Remove property/field duplication in ScriptInstance where it's unnecessary.
2012-03-19 21:31:17 +00:00
Justin Clark-Casey (justincc)
41ce19836b
Simplify some logic in the ScriptInstance constructor - running is set to false in both if/else branches
2012-03-19 21:31:07 +00:00
Melanie
883a4f6fff
FireAndForget scripted rez - port from Avination
2012-03-19 21:30:31 +00:00
Justin Clark-Casey (justincc)
5f1da80fc1
minor: correct indentation levels
2012-03-19 21:30:16 +00:00
Justin Clark-Casey (justincc)
64217d67f6
Remove duplication of m_RunEvents and Running
2012-03-19 21:29:45 +00:00
Justin Clark-Casey (justincc)
b01c79354c
Fix a problem where multiple near simultaneous calls to llDie() from multiple scripts in the same linkset can cause unnecessary thread aborts.
...
The first llDie() could lock Scene.m_deleting_scene_object.
The second llDie() would then wait at this lock.
The first llDie() would go on to remove the second script but always abort it since the second script's WorkItem would not go away.
Easiest solution here is to remove the m_deleting_scene_object since it's no longer justified - we no longer lock m_parts but take a copy instead.
This also requires an adjustment in XEngine.OnRemoveScript not to use instance.ObjectID instead when firing the OnObjectRemoved event.
2012-03-19 21:29:34 +00:00
Justin Clark-Casey (justincc)
9ecbcb787c
Alleviate an issue where calling Thread.Abort() on script WorkItems can fail to release locks, resulting in a crippled simulator.
...
This seems to be a particular problem with ReaderWriterLockSlim, though other locks can be affected as well.
It has been seen to happen when llDie() is called in a linkset running more than one script.
Alleviation here means supplying a ScriptInstance.Stop() timeout of 1000ms rather than 0ms, to give events a chance to complete.
Also, we check the IsRunning status at the top of the ScriptInstance.EventProcessor() so that another event doesn't start in the mean time.
Ultimately, a better solution may have to be found since a long-running event would still exceed the timeout and be aborted.
2012-03-19 21:29:24 +00:00
Justin Clark-Casey (justincc)
e17e376b04
refactor: rename ScriptInstance.m_CurrentResult to m_CurrentWorkItem to make it more understandable as to what it is and what it does (hold a thread pool work item for a waiting of in-progress event)
...
Also add other various illustrative comments
2012-03-19 21:29:09 +00:00
Justin Clark-Casey (justincc)
1b4ea4f178
Add max thread and min thread information to "xengine status" region console command
2012-03-19 21:28:54 +00:00
Justin Clark-Casey (justincc)
7e4bd492fd
Add documentation to make more explicit the difference between OnRezScript and OnNewScript in the event manager
...
OnNewScript fires when a script is added to a scene
OnRezScript fires when the script actually runs (i.e. after permission checks, state retrieval, etc.)
2012-03-19 21:26:32 +00:00
Justin Clark-Casey (justincc)
588d56503d
Remove unnecessary explicit ElapsedEventHandler in SimReporter
2012-03-19 21:26:12 +00:00
Justin Clark-Casey (justincc)
e9602656f8
Add sensor, dataserver requests, timer and listener counts to "xengine status" command.
...
This is for diagnostic purposes.
2012-03-19 21:26:04 +00:00
Justin Clark-Casey (justincc)
0116d418f0
Fix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop()
...
They were all failing assertions but the exceptions these threw were caught as expected Exceptions.
I don't think we can easily distinguish these from the Exceptions that we're expecting.
So for now we'll do some messy manually checking with boolean setting instead.
This patch also corrects the assertions themselves.
2012-03-19 21:25:41 +00:00
Justin Clark-Casey (justincc)
9992974c66
Get all test methods in OpenSim.Region.ScriptEngine.Tests.dll to report that they're running
2012-03-19 21:25:30 +00:00
Justin Clark-Casey (justincc)
ba27d8a389
Fix off by one error in script error reporting.
2012-03-19 21:25:20 +00:00
Justin Clark-Casey (justincc)
f96e985763
Simplify NPCModuleTests code by putting the NPCModule in an instance variable rather than making each test fetch it seperately.
...
Also rename instance variables in the test to conform to naming standards and for understandability
2012-03-19 21:25:07 +00:00
Diva Canto
5b9eaae50d
Region access control! Region operators can now specify things like DisallowForeigners (means what it says) and DisallowResidents (means that only admins and managers can get into the region). This puts the never-completed AuthorizationService to good use. Note that I didn't implement a grid-wide Authorization service; this service implementation is done entirely locally on the simulator. This can be changed as usual by pluging in a different AuthorizationServicesConnector.
2012-03-17 19:49:14 -07:00
Diva Canto
74a13f7e3b
Fixes mantis #5923
2012-03-17 19:47:05 -07:00
Diva Canto
3e88fc8aad
Datasnapshot: added "secret" to the registration/deregistration query so that data providers can verify authenticity if they want.
2012-03-16 17:27:45 -07:00
Diva Canto
881740d702
DataSnapshot: renamed gridserverURL to gatekeeperURL, and normalimzed the capitalization of 'name' to lower case, also in the same <grid> section.
2012-03-16 17:27:29 -07:00
Diva Canto
9a643a1bb9
Terrain: added [Terrain] section with an option to load an initial flat terrain. Default is still pinhead island. I much rather have a flat land in the beginning.
...
Conflicts:
bin/OpenSim.ini.example
2012-03-16 13:14:26 -07:00
Diva Canto
a5488650ff
More on map search: send extra messages to the user regarding the region being found or not, because the UI is horribly confusing -- places profile is always "loading..." whether the region exists or not.
2012-03-15 20:24:26 -07:00
Diva Canto
a275127a65
More on SLURLs and V3. This is hacky, but it works. Basically, we have to redefine the encoding of HG URLs because the viewer messes them up. Examples of what works and doesn't work:
...
- secondlife://ucigrid00.nacs.uci.edu|8002/128/128 <-- works throughout the viewer
- secondlife://http|!!ucigrid00.nacs.uci.edu|8002+Test+Zone+1/128/128 <-- works throughout the viewer
- secondlife://http|!!grid.sciencesim.com!grid!hypergrid.php+Yellowstone01+74/128/128 <-- works throughout
- secondlife://http%3A%2F%2Fucigrid00.nacs.uci.edu%3A8002%20UCI%20Central%201/128/128 <-- works in chat, but not as URLs in the webkit
2012-03-15 16:14:20 -07:00
Diva Canto
02db31db6a
Revert "Revert "More hacking around viewer bug""
...
This reverts commit 0434758a0d
.
2012-03-15 16:14:07 -07:00
Diva Canto
8bd813e6fc
Revert "Revert "Hack around https://jira.secondlife.com/browse/VWR-28570 ""
...
This reverts commit 09ff121654
.
2012-03-15 16:13:50 -07:00
Diva Canto
09ff121654
Revert "Hack around https://jira.secondlife.com/browse/VWR-28570 "
...
This reverts commit d7651a389e
.
2012-03-15 14:38:22 -07:00
Diva Canto
0434758a0d
Revert "More hacking around viewer bug"
...
This reverts commit 8bb0a71083
.
2012-03-15 14:38:03 -07:00
Diva Canto
8bb0a71083
More hacking around viewer bug
2012-03-15 11:04:56 -07:00
Diva Canto
d7651a389e
Hack around https://jira.secondlife.com/browse/VWR-28570
2012-03-15 10:18:55 -07:00
Justin Clark-Casey (justincc)
824318a0c1
Go back to setting appearance directly in NPCModule.SetAppearance() to fix mantis 5914
...
The part reverted is from commit 2ebb421
.
Unfortunately, IAvatarFactoryModule.SetAppearance() does not transfer attachments.
I'm not sure how to do this separately, unfortunately I'll need to leave it to Dan :)
Regression test added for this case.
Mantis ref: http://opensimulator.org/mantis/view.php?id=5914
2012-03-06 01:32:44 +00:00
Justin Clark-Casey (justincc)
5e9ed22e84
Merge branch '0.7.3-post-fixes' of ssh://opensimulator.org/var/git/opensim into 0.7.3-post-fixes
2012-03-06 00:48:24 +00:00
Chris Hart
a6c611e7c9
Updates to MSSQL store for 0.7.3 to include:
...
* Telehub support
* Bugfix to Friends lookups
* Updates to Creator fields to store up to 255 characters for HG item creator storage
2012-03-06 00:45:58 +00:00
Diva Canto
72b325f8b5
Send the right name and creation date on the BasicProfileModule.
2012-03-01 19:58:57 -08:00
Justin Clark-Casey (justincc)
54d0514b13
Move SenseRepeaters.Count check inside the SenseRepeatListLock.
...
No methods in the List class are thread safe in the MS specification/documentation
2012-03-02 00:37:48 +00:00
Justin Clark-Casey (justincc)
58b1c3cec0
lock SenseRepeatListLock when added a new sensor during script reconstitution.
...
This is already being done in the other place where a sensor is added.
Adding a sensor whilst another thread is iterating over the sensor list can cause a concurrency exception.
2012-03-02 00:37:42 +00:00
Justin Clark-Casey (justincc)
71641523a3
Flick 0.7.3-post-fixes to Flavour.Post_Fixes
2012-02-29 23:43:41 +00:00
Justin Clark-Casey (justincc)
20bad0aa6c
Merge branch '0.7.3-post-fixes' of ssh://opensimulator.org/var/git/opensim into 0.7.3-post-fixes
2012-02-29 22:22:42 +00:00
Justin Clark-Casey (justincc)
e7f23a6218
Switch flavour to release
2012-02-29 22:10:33 +00:00
Justin Clark-Casey (justincc)
25c29db8b6
Don't start pCampbot if the user doesn't supply bot firstname, lastname stub and password
2012-02-29 22:04:17 +00:00
Justin Clark-Casey (justincc)
1750fba9ce
Call Dispose() via using() on SqliteCommands in WebStatsModule after use.
2012-02-29 22:04:04 +00:00
PixelTomsen
b18e410586
PRIM_SCULPT_FLAG_INVERT, PRIM_SCULPT_FLAG_MIRROR implemented
...
http://opensimulator.org/mantis/view.php?id=5763
2012-02-29 22:03:28 +00:00
Diva Canto
1fda8c5a86
HG: Remove async in posting assets to foreign grid. Mono hates concurrency there.
2012-02-26 14:30:58 -08:00
Justin Clark-Casey (justincc)
6b77b55d40
Merge branch 'master' into 0.7.3-post-fixes
2012-02-25 00:49:16 +00:00
Justin Clark-Casey (justincc)
b48b0b1e58
Remove EXPERIMENTAL tags from load iar/save iar commands.
2012-02-25 00:48:41 +00:00
Justin Clark-Casey (justincc)
dafcb3bcd7
Merge branch 'master' into 0.7.3-post-fixes
2012-02-24 23:35:59 +00:00
PixelTomsen
7b5e42c744
llGetLinkMedia, llSetLinkMedia, llClearLinkMedia implementation mantis: http://opensimulator.org/mantis/view.php?id=5756 http://opensimulator.org/mantis/view.php?id=5755 http://opensimulator.org/mantis/view.php?id=5754
2012-02-24 23:10:41 +00:00
Justin Clark-Casey (justincc)
bafef292f4
Take watchdog alarm calling back outside the m_threads lock.
...
This is how it was originally. This stops a very long running alarm callback from causing a problem.
2012-02-24 05:25:18 +00:00
Justin Clark-Casey (justincc)
9e6ffe7798
Rename Watchdog.GetThreads() to GetThreadsInfo() to reflect what it actually returns and for consistency.
2012-02-24 05:15:47 +00:00
Justin Clark-Casey (justincc)
84735b644c
Get rid of some of the identical exception catching in Scene.Update().
2012-02-24 05:12:56 +00:00
Justin Clark-Casey (justincc)
f67f37074f
Stop spurious scene loop startup timeout alarms for scenes with many prims.
...
On the first frame, all startup scene objects are added to the physics scene.
This can cause a considerable delay, so we don't start raising the alarm on scene loop timeouts until the second frame.
This commit also slightly changes the behaviour of timeout reporting.
Previously, a report was made for the very first timed out thread, ignoring all others until the next watchdog check.
Instead, we now report every timed out thread, though we still only do this once no matter how long the timeout.
2012-02-24 05:02:33 +00:00
Justin Clark-Casey (justincc)
fe229f10e6
In osSetSpeed(), if no avatar for a uuid is found then don't attempt to set speed.
2012-02-24 04:08:59 +00:00
PixelTomsen
0b9f4d7e74
llLinkSitTarget implementation http://wiki.secondlife.com/wiki/LlLinkSitTarget
2012-02-24 00:58:11 +00:00
Justin Clark-Casey (justincc)
f034958bdc
Load appropriate 32-bit/64-bit Windows sqlite dll if using WebStatsModule.
...
This should resolve http://opensimulator.org/mantis/view.php?id=5901
2012-02-23 23:11:47 +00:00
Justin Clark-Casey (justincc)
90ea00a109
Try to resolve some problems with viewers crashing after hitting parcel 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-23 22:56:42 +00:00
Melanie
9ed4245d9e
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
2012-02-23 01:42:08 +00:00
Melanie
1dfc990264
Add a position parameter to region crossing of objects. This avoids the
...
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-23 01:40:30 +00:00
Justin Clark-Casey (justincc)
5d31267185
Remove two spurious m_sceneGraph != null checks in Scene.cs. It's set in constructor and never subsequent set to null.
2012-02-22 00:55:16 +00:00
Justin Clark-Casey (justincc)
cf9b3e7708
Restore the taskItem null check that I accidentally blatted in 5397a6d
...
This is a valid check because the caller could supply an invalid uuid.
2012-02-21 23:41:48 +00:00
PixelTomsen
1c533eb520
Fix:LINK_ROOT flag for llGetLinkName() by SinglePrim
2012-02-21 23:15:33 +00:00
Justin Clark-Casey (justincc)
5397a6d4c6
Fix problem with dragging child part inventory item to user inventory.
...
This fixes the problem by fixing the permissions module to look at root part permissions rather than having to do this for every caller.
Resolves http://opensimulator.org/mantis/view.php?id=5569
2012-02-21 22:54:30 +00:00
Justin Clark-Casey (justincc)
76f411147d
Revert "Fix:Cannot drag inventory from child prim into inventory http://opensimulator.org/mantis/view.php?id=5569 "
...
This reverts commit 15ce73caca
.
As per the COMMENTS in http://opensimulator.org/mantis/view.php?id=5569 , I was going to fix this in a more general way.
2012-02-21 22:49:06 +00:00
PixelTomsen
15ce73caca
Fix:Cannot drag inventory from child prim into inventory http://opensimulator.org/mantis/view.php?id=5569
2012-02-21 22:07:12 +00:00
Justin Clark-Casey (justincc)
daee2eda93
Load 32-bit or 64-bit BulletSim Windows library automatically as appropriate.
...
This uses the same approach as ODE.
radams, if this doesn't work for you please feel free to revert.
2012-02-21 04:10:39 +00:00
Justin Clark-Casey (justincc)
68a4ef5ef6
Add 64 bit Windows sqlite3.dll and use this if running a 64-bit windows process.
2012-02-21 02:52:20 +00:00
Justin Clark-Casey (justincc)
90dc5f47e7
Fix bug where NPCs would establish child agents on other neighbour regions that had come up after the NPC was created.
2012-02-21 01:57:19 +00:00
Justin Clark-Casey (justincc)
19d271d3fc
Remove PhysXPlugin and wrappers.
...
In over 4 years this never progressed beyond an unimplemented stub.
This doesn't mean that it can't come back if someone is interested in implementing PhysX support.
2012-02-21 01:45:17 +00:00
Diva Canto
3259b1d1e0
Amend to last commit: synchronize access to queues.
2012-02-20 11:13:02 -08:00
Diva Canto
4a329098e8
Amend to last commit: synchronize access to queues.
2012-02-20 11:12:02 -08:00
Diva Canto
512910a51f
More improvements on agent position updates: if the target sims fail, blacklist them for 2 min, so that we don't keep doing remote calls that fail.
2012-02-20 11:00:01 -08:00
Diva Canto
99b9c1a9d5
More improvements on agent position updates: if the target sims fail, blacklist them for 2 min, so that we don't keep doing remote calls that fail.
2012-02-20 10:58:07 -08:00
Diva Canto
fdda57cf10
Merge branch '0.7.3-post-fixes' of ssh://opensimulator.org/var/git/opensim into 0.7.3-post-fixes
2012-02-19 16:48:09 -08:00
Diva Canto
ec8e34950d
One more tweak related to the previous 2 commits.
2012-02-19 16:47:04 -08:00
Diva Canto
93964ef3a4
Amend to last commit. This should have been committed too.
2012-02-19 16:46:47 -08:00
Diva Canto
5c8af6a136
A few more tweaks on position updates and create child agents. Mono hates 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-19 16:46:32 -08:00
Diva Canto
1c3ee5d1ce
One more tweak related to the previous 2 commits.
2012-02-19 16:42:01 -08:00
Diva Canto
b489c85226
Amend to last commit. This should have been committed too.
2012-02-19 15:37:37 -08:00
Diva Canto
dcea23906b
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
2012-02-19 12:28:47 -08:00
Diva Canto
20c65ac438
A few more tweaks on position updates and create child agents. Mono hates 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-19 12:28:07 -08:00
PixelTomsen
4d0c8aca05
Fix:OmegaX, OmegaY and OmegaZ not saved for child prims http://opensimulator.org/mantis/view.php?id=5893
...
Signed-off-by: nebadon <michael@osgrid.org>
2012-02-19 13:49:51 -05:00
PixelTomsen
8fc16ece96
Fix:Fly setting for Parcel dosen't work http://opensimulator.org/mantis/view.php?id=5887
...
Signed-off-by: nebadon <michael@osgrid.org>
2012-02-19 13:49:41 -05:00
BlueWall
fcbb375e8f
Use localy defined name, TPFlags, for Constants.TeleportFlags
2012-02-19 12:42:05 -05:00
BlueWall
49c65279fa
Route logins according to Estate, Telehub and TeleportFlags
2012-02-19 12:41:44 -05:00
BlueWall
86e8a56fe1
Propagate our teleport flags on logins
2012-02-19 12:41:30 -05:00
BlueWall
b199330682
Parcel sales support to SQLite
2012-02-19 12:41:11 -05:00
BlueWall
7a7ebaebd1
Fillin missing SQLite support for Telehubs
2012-02-19 12:40:46 -05:00
BlueWall
164ae0b24b
Fix missing telehub handling on login
2012-02-19 12:40:26 -05:00
BlueWall
bcb9577495
Use localy defined name, TPFlags, for Constants.TeleportFlags
2012-02-19 12:09:57 -05:00
PixelTomsen
d22715126c
Fix:Fly setting for Parcel dosen't work http://opensimulator.org/mantis/view.php?id=5887
...
Signed-off-by: nebadon <michael@osgrid.org>
2012-02-19 01:58:28 -07:00
PixelTomsen
a114367b9b
Fix:OmegaX, OmegaY and OmegaZ not saved for child prims http://opensimulator.org/mantis/view.php?id=5893
...
Signed-off-by: nebadon <michael@osgrid.org>
2012-02-19 01:00:01 -07:00
Diva Canto
7156545fca
This should smooth movement in heteregeneous networks by a lot: cache the region by position instead of looking it up all the time -- this was being done during the main update loop!
2012-02-18 22:15:58 -08:00
Diva Canto
2ffc055f7e
This should smooth movement in heteregeneous networks by a lot: cache the region by position instead of looking it up all the time -- this was being done during the main update loop!
2012-02-18 21:59:42 -08:00
BlueWall
14e9bf894c
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
2012-02-18 00:51:23 -05:00
BlueWall
f4cd35322f
Route logins according to Estate, Telehub and TeleportFlags
2012-02-18 00:45:43 -05:00
BlueWall
7bdcf9eb26
Propagate our teleport flags on logins
2012-02-18 00:32:09 -05:00
Justin Clark-Casey (justincc)
9846a1e56e
Report an error if the required native Windows ODE library can't be found.
2012-02-18 02:52:29 +00:00
BlueWall
fbccff4994
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
2012-02-17 21:15:18 -05:00
Justin Clark-Casey (justincc)
84184708de
Fix a bug where changing shape parameters of a child prim in a linkset would not persist.
...
Resolves http://opensimulator.org/mantis/view.php?id=5819
2012-02-18 01:15:43 +00:00
BlueWall
8f8b478d36
Parcel sales support to SQLite
2012-02-17 20:04:38 -05:00
Justin Clark-Casey (justincc)
b817c337dc
On Windows automatically load the correct native ODE library depending on whether the process is 32-bit or 64-bit
...
In theory, this means that a 64-bit Windows OS user can now run OpenSim.exe with ODE and use more than 2 (or 3) GB of memory.
However, this is completely untested since I don't currently own a 64-bit Windows box. Feedback appreciated.
Using OpenSim.32BitLaunch.exe should continue to work. Other platforms are unaffected.
This will currently not work with sqlite - I will add that too if this works.
2012-02-18 00:33:52 +00:00
BlueWall
d03e878d53
Fillin missing SQLite support for Telehubs
2012-02-17 17:31:20 -05:00
Dan Lake
b313d16493
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
2012-02-17 13:51:54 -08:00
Dan Lake
784263f5e3
Added the TriggerAvatarAppearanceChanged to EventManager. It's triggered by AvatarFactoryModule after an avatar's appearance has been succesfully changed and persisted (if the persist option is set).
2012-02-17 13:45:45 -08:00
Robert Adams
6baa13ab7a
Add new and updated script events
2012-02-17 09:12:41 -08:00
BlueWall
0e16e0fb6a
Merge branch 'master' of /home/opensim/src/opensim
2012-02-17 08:21:33 -05:00
BlueWall
ba98d6fffe
Fix missing telehub handling on login
2012-02-17 08:03:53 -05:00
Justin Clark-Casey (justincc)
73a5abf4d9
Merge branch 'master' into 0.7.3-post-fixes
2012-02-17 04:04:38 +00:00
Justin Clark-Casey (justincc)
630c8dc828
switch version flavour to rc2
2012-02-17 04:03:59 +00:00
Justin Clark-Casey (justincc)
972f73ed2b
Make osNpcStopAnimation() call AvatarStopAnimation() rather than AvatarPlayAnimation()
2012-02-17 02:53:12 +00:00
Justin Clark-Casey (justincc)
6de89246c2
Merge branch 'master' into 0.7.3-post-fixes
2012-02-17 00:02:16 +00:00
BlueWall
c5ff37bf3e
Merge branch 'master' of /home/opensim/src/opensim
2012-02-16 09:01:02 -05:00
BlueWall
6b867773a8
Remove some debugging output form the logger
2012-02-16 08:59:34 -05:00
Justin Clark-Casey (justincc)
96973a5778
Merge branch 'master' into 0.7.3-post-fixes
2012-02-16 03:39:25 +00:00
Justin Clark-Casey (justincc)
912aac3447
minor formatting changes from last commit (4486n7d)
2012-02-16 03:37:40 +00:00
PixelTomsen
4486b7d8e8
Fix: Object owned by the group does not return to the last owner http://opensimulator.org/mantis/view.php?id=5404
2012-02-16 03:35:18 +00:00
Justin Clark-Casey (justincc)
1267094a51
Turn off logging on test in last commit ( 2b84295
).
2012-02-16 03:02:11 +00:00
Justin Clark-Casey (justincc)
2b842958cc
If shape properties fail SOP parsing (e.g. due to commas instead of decimal points) print out one short message listing the failing node names rather than lots of exceptions.
...
Adds skeleton bad float values deserialization test
2012-02-16 02:58:00 +00:00
Justin Clark-Casey (justincc)
80ec2ac167
Correct a bug introduced in 1f402fdf
(Feb 7 2012) where the delete friends grid call would try and contact the wrong uri. Also fixes the build from df960d5
2012-02-16 01:39:12 +00:00
Justin Clark-Casey (justincc)
df960d5767
Add known identity informatio nto log message if an exception is thrown during LLUDPServer.HandleUseCircuitCode()
2012-02-16 01:25:54 +00:00
Justin Clark-Casey (justincc)
c0760f9f91
Comment out "experimental" log message printed out whenever a physics mesh was generated for a mesh
...
Also adds prim name to the "no asset data" error log message
2012-02-16 00:28:57 +00:00