UbitUmarov
764f270d34
revert last change and add delays on testing, since child updates now have time control, since they are heavy http connections
2015-12-16 23:13:10 +00:00
UbitUmarov
ddd067266b
temporary remove the delay on first child updates
2015-12-16 22:43:31 +00:00
UbitUmarov
41ae6f06e0
several changes to parcels access control and scenepresence updates rates
2015-12-16 22:16:51 +00:00
UbitUmarov
9327bb2546
a few more changes on parcels location finding
2015-12-15 18:19:08 +00:00
UbitUmarov
a9e8bd2884
remove replaced code
2015-12-15 17:20:00 +00:00
UbitUmarov
c7b963df8f
replace GetNearestPoint... funtions
2015-12-15 17:13:32 +00:00
UbitUmarov
2f7e9a97db
rename a parameter
2015-12-14 14:07:30 +00:00
UbitUmarov
78794b1dfe
bug fix
2015-12-14 14:06:17 +00:00
UbitUmarov
2a354f6c28
calculate land startpoint, endpoint and center estimate when it is updated, it not every time they are needed
2015-12-14 11:57:24 +00:00
UbitUmarov
6c5005aa3b
several changes to telehubs, LandPoint and land access
2015-12-13 16:59:01 +00:00
UbitUmarov
36e53b0e03
fix: do tell and log denied access to estate
2015-12-13 12:42:15 +00:00
UbitUmarov
5d6da6bb35
fix: if no groups module, deny access
2015-12-13 12:14:31 +00:00
UbitUmarov
f3c03aaa62
several changes to region and land access control - this may be a bit broken now
2015-12-13 11:31:06 +00:00
UbitUmarov
0934e1cf71
add IsEstateManager check to Permissions
2015-12-12 10:03:07 +00:00
UbitUmarov
b35d3a3134
fix backup control flag, still a bad merge effect
2015-12-11 02:06:32 +00:00
UbitUmarov
6de7da467a
keep SOG reference to root part since two many things depend on deleted SOGs not being deleted
2015-12-10 17:04:39 +00:00
UbitUmarov
62009ba9c0
remove some SOG references on delete to help GC
2015-12-10 14:00:43 +00:00
UbitUmarov
7d8b783d31
send a full update on GroupResize, not a terse
2015-12-05 08:30:30 +00:00
UbitUmarov
e37c4e878c
more changes on lookAt and RotLookAt; do something in attachments
2015-12-01 12:11:48 +00:00
UbitUmarov
a9e58d6175
some changes due to lookAt and RotLookAt
2015-12-01 10:15:38 +00:00
UbitUmarov
9928076d1a
remove terrain height clamping left over the ushort format testing
2015-11-27 23:46:58 +00:00
UbitUmarov
bb0db96256
DeregisterRegion from grid earlier on close
2015-11-27 14:01:42 +00:00
UbitUmarov
e2fb600bf5
change Backup on scene close to Forced, and not dependent on last change time.
2015-11-27 13:56:57 +00:00
UbitUmarov
c5395cef74
remove thread Heartbeat from watchdog
2015-11-27 13:45:14 +00:00
Melanie Thielker
9afe2b018f
Mantis #7765 : Add new ClampNegativeZ option. Defaults to false to restore prior functionality.
...
Avination code wasn't designed for deep building.
2015-11-26 17:29:50 +01:00
UbitUmarov
172bb05ec2
suspend the use of DisableSimulator, that is causing teleport and crossing issues
2015-11-25 04:13:13 +00:00
UbitUmarov
e9345479c4
remove warning on siting in phantom prims without sittarget
2015-11-23 22:11:27 +00:00
Jak Daniels
cc992bf156
Changes to TerrainModule/ITerrainModule to support importing OARs with different Region sizes to the destination region.
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2015-11-22 01:32:36 +00:00
Jak Daniels
7cac0ccbe3
Changes to TerrainChannel/ITerrainChannel to support importing OARs with different Region sizes to the destination region.
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2015-11-22 01:32:08 +00:00
UbitUmarov
3f4fdacb34
remove a warning
2015-11-21 01:55:17 +00:00
UbitUmarov
156fdd4908
remove some duplicate using statements
2015-11-21 01:49:31 +00:00
UbitUmarov
0c93159297
remove unused return value on DeliverMessageTo()
2015-11-20 00:09:56 +00:00
UbitUmarov
f242137e31
work around some 'tests' errors: add a DefaultPermitions module to sceneB
2015-11-19 01:18:34 +00:00
UbitUmarov
da5aad87bf
start adding LegacySitOffsets option. TRUE will prevent the use of new math for the compensation of SL sittarget bug, and so not break content. (this is the main code change)
2015-11-17 17:41:09 +00:00
UbitUmarov
0991ad321a
work around some 'tests' errors: UUID.Zero is a invalid ownerID
2015-11-17 08:58:00 +00:00
UbitUmarov
f7f5aba597
remove unused parameter
2015-11-17 07:59:11 +00:00
UbitUmarov
16d158f2f1
work around some 'tests' errors: missing call to InventoryDeQueueAndDelete()
2015-11-17 05:49:39 +00:00
UbitUmarov
ec0a16c559
work around some 'tests' errors: suspend sit on sittarget until im not 2 sleepy to fix the math
2015-11-17 01:53:44 +00:00
UbitUmarov
083b52173b
work around some 'tests' errors: suspend undo-redo tests until new ones can be written to conform to new code
2015-11-17 01:44:15 +00:00
UbitUmarov
67aefb5e42
bug fix: StateSource of a SOG that is not a attachment is StateSource.PrimCrossing
2015-11-17 00:48:35 +00:00
UbitUmarov
895a57e426
work around some 'tests' errors: backup is async
2015-11-16 23:25:28 +00:00
UbitUmarov
52a3cc39e9
work around some 'tests' errors: fix math
2015-11-16 22:41:36 +00:00
UbitUmarov
3a65627481
work around some 'tests' error: internal GroupResize() doesn't heave Undo
2015-11-16 21:42:39 +00:00
UbitUmarov
10d5c80910
work around some 'tests' error: object is deleted on DeRezObjects, fix last commit side effects
2015-11-16 21:28:59 +00:00
UbitUmarov
ca4b7efd0f
dont find parts of groups marked as Deleted
2015-11-16 21:11:22 +00:00
UbitUmarov
99ecf522cd
work around some 'tests' error: object is deleted on DeRezObjects
2015-11-16 20:59:57 +00:00
UbitUmarov
250db8c82a
work around some 'tests' error: object crossing is async
2015-11-16 20:34:23 +00:00
Melanie Thielker
8c7f475740
Add some values to the SimulatorFeatures cap's OpenSimExtras section:
...
SimulatorFPS: The actual optimal FPS of the simulator, un-fudged
SimulatorFPSFactor: The fudge factor that is applied to the stats sent to the viewer
SimulatorFPSWarnPercent: The percentage below which a lag meter should go to amber
SimulatorFPSCritPercent: The percentage below which a lag meter should go to red
To display the real values, a viewer would divide the reported FPS by the SimulatorFPSFactor and use that to calculate the percentage of SimulatorFPS. E.g. reported is 55fps, SimulatorFPSFactor is 5.0 and SimulatorFPS is 11.
2015-11-12 21:13:44 +01:00
Melanie Thielker
d3911606ef
Move a call to RequestModuleInterface to a new scene callback function
...
because the current implementation would have always returned null
2015-11-12 20:34:09 +01:00
UbitUmarov
2b937fdf40
reduce the small MTU violation sending terrain compressed patchs
2015-11-10 23:56:08 +00:00
UbitUmarov
d17633f6c0
replace StatisticsFPSfactor that needed to be changed with FrameTime to a simpler true or false Normalized55FPS that is now TRUE by default. Incorrectly this commit also contains changes that should had their own commits: changes to heartbeat time control ant to gathering and calculation of related statistics.
2015-11-09 15:06:41 +00:00
UbitUmarov
097c56330a
rename MinFrameTime as FrameTime, since it is not a minimum but a target value; retune its value a bit so reported FPS is closer to integer value; change ode step size acording to reduce jitter in phys FPS; Make Statistics Scaling factor (fludge factor) configurable. (legacy default of 5.0 in code)
2015-11-08 04:28:46 +00:00
Melanie Thielker
69585a4824
More plumbing of the EntityTransferContext (not yet complete)
2015-11-01 19:11:14 +01:00
UbitUmarov
72684592ba
Merge branch 'master' into avinationmerge
...
Conflicts:
OpenSim/Framework/AvatarAppearance.cs
OpenSim/Framework/Servers/ServerBase.cs
OpenSim/Framework/VersionInfo.cs
OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs
OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet/Properties/AssemblyInfo.cs
OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
OpenSim/Services/HypergridService/GatekeeperService.cs
OpenSim/Services/Interfaces/IAvatarService.cs
OpenSim/Services/LLLoginService/LLLoginService.cs
2015-11-01 03:01:59 +00:00
Melanie Thielker
ea56f4f27c
Introduce an EntityTransferContext carrying the version numbers to pass
...
to all interested functions. Should fix the varregion conditional.
Still a testing version, do NOT use in production!
2015-10-31 18:13:02 +01:00
Melanie Thielker
e8e0ba6d8f
Remove testing cruft that is blocking the new protocols. Unit tests no
...
longer test TP v1 now.
TP v1 will be removed within 6 months anyway.
2015-10-31 17:22:27 +01:00
UbitUmarov
9232876421
let silly tests override version on local connections
2015-10-31 02:05:11 +00:00
Melanie Thielker
f0fd028ed9
Merge branch 'master' of opensimulator.org:/var/git/opensim
2015-10-31 00:06:34 +01:00
Melanie Thielker
dc6d9eadf3
Testing stage of the new versioning system. Use at own risk. May not
...
work. Will eat your babies. Yada. Yada.
2015-10-31 00:01:35 +01:00
UbitUmarov
dd9b06e3b6
fix mantis 7733, reverting setting of IsAttachment on first call to full check. Replace instead same simple IsAttachment tests by full checks
2015-10-29 22:14:11 +00:00
UbitUmarov
9e6d9e0436
friends rights to edit objects display on viewers fixed. This needs to be optimized in future
2015-10-27 01:17:32 +00:00
UbitUmarov
c3532ba876
set SOG.IsAttachment when doing a full check, so future gets see the right value
2015-10-25 19:59:05 +00:00
UbitUmarov
28d4afbe3a
replace objects scale clamp by a more readable clamp. Simplify GroupResize and let rescale factors < 1 also be checked for size limits, Set new scales directly not checking them again.
2015-10-23 01:39:53 +01:00
UbitUmarov
7cb6ecb9f5
Make physics engines finish internal representation of loaded prims before starting simulation so it does start for all at same time. Currently only in use by ubOde
2015-10-22 17:34:28 +01:00
UbitUmarov
e464bf5d82
recover scripts execution time stat i lost on previus changes. Behing async, this will not add with other time stats giving total frame time, as happens on other simulators. But its a good diag stat.
2015-10-21 18:34:06 +01:00
UbitUmarov
0045398324
move ugly convertion of axis locks 3 bit flags to a wasted vector3 down to PhysicsActor. Let engines use LockAngularMotion with either Vector3 argument or byte
2015-10-20 19:00:26 +01:00
UbitUmarov
d8528a7ba0
add axis locks to sop serializer. Now they are also saved to inventory
2015-10-20 18:37:24 +01:00
UbitUmarov
3c69071145
also apply axis locks, when creating a prim physics actor
2015-10-20 18:21:13 +01:00
UbitUmarov
52860a7d15
stop using a Vector3 to store 3bits
2015-10-20 16:55:18 +01:00
UbitUmarov
dfd60d6f71
STATUS_ROTATE are linkset flags and not prim
2015-10-20 15:37:43 +01:00
Diva Canto
59b63b6406
On to 0.8.3!
...
Conflicts:
OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet/Properties/AssemblyInfo.cs
2015-10-18 21:51:49 -07:00
Diva Canto
06d2508b96
On to 0.8.3!
2015-10-18 21:47:10 -07:00
UbitUmarov
8e333c953d
in stats use real integration time, not the wanted one. Dont let stats calls overlap using a proper lock object
2015-10-12 11:29:13 +01:00
UbitUmarov
1af6ac4bfc
remove unused method parameter master also removed
2015-10-02 17:44:19 +01:00
UbitUmarov
6ae7341e42
send DisableSimulator messages on closing childagents. Possible still not on at best timming, or on the right source files
2015-10-01 20:50:12 +01:00
UbitUmarov
2abe1ccc59
change GetNewRezLocation physics ray results processing
2015-10-01 14:47:32 +01:00
UbitUmarov
6df75a927c
let hoverheight rest position be a falling state
2015-09-30 20:37:14 +01:00
UbitUmarov
4a2e6db344
add high level code suport for SetHoverHeight() called from a attachment, so in future physics engines can also suport it
2015-09-30 17:34:25 +01:00
UbitUmarov
0151c773e2
let sp know about scene before anything else on creation
2015-09-30 06:05:28 +01:00
UbitUmarov
5b7a3c703d
clamp all draw distance changes within region limits
2015-09-30 05:57:02 +01:00
UbitUmarov
feb78b2910
add several options for NPC creation so abusive use can be reduced (restrictive by default) UNTESTED
2015-09-30 02:45:11 +01:00
UbitUmarov
f97807b53f
let us see our online friends
2015-09-28 20:57:33 +01:00
UbitUmarov
028cbb7cbe
remove a auxiliar vector no longer needed
2015-09-28 18:10:27 +01:00
UbitUmarov
ad58f9b17e
recover a lost position check for mega regions
2015-09-28 17:55:35 +01:00
UbitUmarov
05db03e809
fix unscripted sits without physics help
2015-09-26 03:14:06 +01:00
UbitUmarov
d0a7e5bd78
fix object rez on terrain, i broke adding physics assistance
2015-09-26 02:33:57 +01:00
UbitUmarov
0fb033e567
fix object crossings to other scene on same instance
2015-09-26 01:31:57 +01:00
UbitUmarov
e6f675b81b
rearrange source code
2015-09-25 17:41:50 +01:00
UbitUmarov
2b0587770a
add butterflies to terrain
2015-09-25 05:46:06 +01:00
UbitUmarov
13b8b17b9a
we still don't have extended wind and cloud neither do viewers
2015-09-24 20:55:39 +01:00
UbitUmarov
a6b8eb7bca
some cleanup on terrain encoder
2015-09-24 19:11:17 +01:00
UbitUmarov
f484773447
save a few more bits per flat patch
2015-09-24 15:23:52 +01:00
UbitUmarov
58daecfccb
don't mess ray direction..
2015-09-24 06:57:53 +01:00
UbitUmarov
af34bfddd1
add physics assistance on placement of a new object. This may help on mantis 7727, but may still need more work
2015-09-24 06:46:07 +01:00
UbitUmarov
c83351b9c0
fix the DC term on flat patch encoding
2015-09-23 22:35:27 +01:00
UbitUmarov
63bc0b574f
speedup flat terrain patchs encoding, plus a few minor changes.
2015-09-23 21:04:13 +01:00
UbitUmarov
ccfb561e8d
change the encapsulation of compressed land patchs in llUDP packets
2015-09-23 00:01:32 +01:00
UbitUmarov
032958709b
last merging of sog m_linkedAvatars into m_sittingAvatars - untested.
2015-09-21 21:49:51 +01:00
UbitUmarov
25677e4a1b
try to remove Scenepresence dependence on sog m_linkedAvatars, sitting may still work
2015-09-21 21:31:01 +01:00
UbitUmarov
04800a7570
add missing sit check
2015-09-21 19:56:59 +01:00
Kevin Cozens
b412db72be
Fix a regression to GetSittingAvatars(). Return List<ScenePresence> once more.
2015-09-21 11:00:34 -04:00
UbitUmarov
87ad573ec2
MapBlockFromGridRegion and Map2BlockFromGridRegion are the same thing
2015-09-18 02:00:10 +01:00
UbitUmarov
b9137e2dee
avoid a null ref (that should not happen after last commit), also reduce use of thread jobs, where one is good enought
2015-09-15 22:30:39 +01:00
UbitUmarov
3906bb2749
fix missing check for viaHGLogin
2015-09-15 22:24:50 +01:00
UbitUmarov
5becc16acf
try to improve vehicles crossing with Xengine. Lag seems main issue now, but needs testing, specially the fail cases, that most likelly need more work
2015-09-14 16:40:01 +01:00
Melanie Thielker
f24414c063
Remove the last proprietary copyright headers, insert BSD ones.
2015-09-13 21:03:38 +02:00
UbitUmarov
209cb840a2
missing file...
2015-09-12 21:56:07 +01:00
UbitUmarov
af0febf6a7
inventory mess
2015-09-11 19:55:38 +01:00
UbitUmarov
6a0465b70a
remove diva's inventory cache since it seems to cause mantis 7720, broken items UUID. Guess it doesn't cover all paths
2015-09-11 04:46:15 +01:00
UbitUmarov
daf8a4d01d
fix lost sending of initial terrain to child agents
2015-09-10 01:02:52 +01:00
UbitUmarov
40fd7cbf74
a mess with Modules and Module
2015-09-08 20:03:54 +01:00
UbitUmarov
774c42e7fb
fix some compile
2015-09-08 17:02:44 +01:00
UbitUmarov
31afc76fcf
fix some compile
2015-09-08 16:51:42 +01:00
UbitUmarov
5b3e2ab9aa
Merge branch 'mbworknew1' into ubitworkvarnew
2015-09-08 15:03:22 +01:00
Robert Adams
4dd17c4117
More 'everything is a module' merging.
...
Have most of UbitOde converted.
There are compile errors in OpenSimBase as the new modules stuff is not all there.
Removed ChOdePlugin as it's connection to OdePlugin was tangled.
2015-09-08 06:15:46 -07:00
UbitUmarov
29d78f7e3a
add script events per sec stat, using the time report code, but ignoring the time for nowwq
2015-09-08 14:13:56 +01:00
Robert Adams
e5367d822b
Merge of ubitworkvarnew with opensim/master as of 20150905.
...
This integrates the OpenSim refactoring to make physics, etc into modules.
AVN physics hasn't been moved to new location.
Does not compile yet.
Merge branch 'osmaster' into mbworknew1
2015-09-08 04:54:16 -07:00
UbitUmarov
16025fa34b
remove a forgotten cast to int
2015-09-06 20:28:59 +01:00
Diva Canto
82ea4179da
Clean up viewer-based access control specifications.
2015-09-06 10:00:20 -07:00
UbitUmarov
3a0137cb45
fix odd drawdistance control initialization
2015-09-06 16:36:30 +01:00
UbitUmarov
c1a4786be0
still a missing stat ID
2015-09-06 01:01:31 +01:00
UbitUmarov
0ddcc55166
let extra stats travel side by side with viewers ones... try to fix damm array indexes all over the place
2015-09-06 00:32:20 +01:00
UbitUmarov
2130984bef
a few changes to stats. Array order coerent on users. give up on moses stats for now, since SimExtraStatsCollector cant reach SimStatsReport etc
2015-09-04 23:07:25 +01:00
Diva Canto
d00f73c3a4
Deleted OpenSim.Framework.Communications. Moved its two remaining files to OpenSim.Framework.
2015-09-04 14:39:23 -07:00
Diva Canto
218eb908be
In SceneGraph, use the property PhysicsScene instead of the variable _PhysScene, so that it gets properly initialized before being dereferenced.
2015-09-04 10:54:04 -07:00
UbitUmarov
a54e0339ef
remove a forgotten 1000.9 factor on physics fps
2015-09-04 14:33:46 +01:00
UbitUmarov
08f9c54554
use GetTimeStampMS to increase heartbeat and stats timing resolution. some rearrange on stat code ( MOSES special ones still out )
2015-09-04 12:05:31 +01:00
UbitUmarov
cdaed11387
at last we can login and see objects ( friends is dead and disable in
...
scenepresence)
2015-09-03 18:39:08 +01:00
UbitUmarov
a11edceb00
seems to compile ( tests comented out)
2015-09-02 19:54:53 +01:00
UbitUmarov
371c9dd2af
bad merge?
2015-09-01 14:54:35 +01:00
Diva Canto
11194209df
First commit where physics work as region module.
...
Moved all physics dlls out of Physics and into bin directly, so they can be found by the module loader.
Removed call to PhysicsPluginManager.
2015-08-31 14:09:15 -07:00
UbitUmarov
31a50a73cb
dont change camera on crossings
2015-08-31 14:21:50 +01:00
UbitUmarov
4905c74ddf
start sending terrain patchs in completmovement where we know its
...
position. Also reset camera to position on makeroot
2015-08-31 14:08:32 +01:00
Diva Canto
ce2c67876e
More namespace and dll name changes. Still no functional changes.
2015-08-30 21:05:36 -07:00
Diva Canto
2c0cad6dd3
Renamed the namespaces too
2015-08-30 20:29:31 -07:00
Diva Canto
5648eb7bd1
Moved instantiation of SceneCommunicationService object to inside the scene constructor. This was a left over from the original monolithic design of scene communications. The less the instantiators of scenes know about the scene's internals, the better.
2015-08-30 15:52:26 -07:00
UbitUmarov
0edffae7e4
more on tps and crossings
2015-08-30 19:17:35 +01:00
Diva Canto
f6d79c7cbb
Mantis #7713 : fixed bug introduced by 1st MOSES patch.
2015-08-30 11:07:27 -07:00
UbitUmarov
b114a04ed4
fix NeighborRegions code
2015-08-29 03:41:43 +01:00
UbitUmarov
b82b16c954
take taints check terrain out of Onframe event and add a new event for it. Slow it down to 1/4 heartbeat rate (once every 363ms aprox)
2015-08-27 15:01:15 +01:00
UbitUmarov
244f0c6352
change terrain internal representation to float. ushort work with legal
...
sl terrain, but may break existent terrain and that may cost a lot more
than the cost of memory
2015-08-25 16:51:48 +01:00
UbitUmarov
64d05bab0f
terrain stored as ushorts with gzip compression
2015-08-25 13:36:45 +01:00
UbitUmarov
1c752296bf
change internal representation of terrain from int to ushort. This will
...
suporte height from 0 to 655.53m that includes SL limits ( still need to
add code to trap eventual negative values from dbs or user input)
2015-08-24 18:40:28 +01:00
UbitUmarov
3829df1059
try to implement core load oar options
2015-08-24 17:05:16 +01:00
UbitUmarov
cbc569a1e0
rename ImapTileModule as IMAPImageUploadModule to match core
2015-08-24 11:06:12 +01:00
Robert Adams
11209c72f5
In ScenePresence, when removing from the physical scene, unsubscribe
...
from collisions before removing the collision callbacks.
Should not make operational differences.
2015-08-23 21:13:40 -07:00
UbitUmarov
5da9979024
Warp3D map now seems to work
2015-08-22 16:35:49 +01:00
UbitUmarov
d22d46ee96
update MapSearchModule
2015-08-22 13:41:45 +01:00
UbitUmarov
6555bbffaa
remove the noise part on the PinHeadIsland. why to want something that
...
does not compress well on island?
2015-08-21 00:47:44 +01:00
UbitUmarov
f6a59f74ab
remove a 256m check
2015-08-21 00:35:55 +01:00
Jeff Kelley
e1a455eae5
Fix multiple moving_end and add moving_start to llSetKeyframedMotion
...
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-08-20 00:24:14 +02:00
Melanie Thielker
028506cf3c
Partial plumbing for the agent stateful module features negotiation
2015-08-20 00:18:45 +02:00
UbitUmarov
d2776ec645
funny bug
2015-08-19 17:14:29 +01:00
UbitUmarov
601914ecd8
find sending of initial terrain using PushTerrain as os core
2015-08-19 16:28:03 +01:00
UbitUmarov
7661366223
minor change
2015-08-19 15:24:12 +01:00
UbitUmarov
0af2fafddf
add missing regionExtent setup and Scene physicsscene configuration ( not
...
exactly as core)
2015-08-19 11:04:28 +01:00
UbitUmarov
0b105da626
Merge branch 'mbworkvar2' into ubitvar
2015-08-19 08:48:50 +01:00
Melanie Thielker
c83da03183
Create want and need lists for agent data interchange formats.
2015-08-16 01:45:15 +02:00
Melanie Thielker
2374c4a4c1
Adding the IAgentStatefulModule interface. It is used in addtion to
...
one of the existing module interfaces to denote a module that holds
agent specific state that should be transferred to other regions
2015-08-15 19:08:45 +02:00
Oren Hurvitz
d24528b3bc
Show Script Time in the statistics panel
...
The value shown is the number of milliseconds per frame that were spent executing scripts in this region.
2015-08-11 08:44:26 +01:00
Oren Hurvitz
4ad1468165
Better handling of invalid XML: a) prevent infinite loop on EOF; b) better logging
...
If the XML was truncated for some reason then ExecuteReadProcessors() would get into an infinite loop, using high CPU. Now it detects EOF (and several other error cases) and aborts.
The rest of the changes just improve logging of XML in case of errors, so that we can see what the bad XML is.
2015-08-11 07:35:37 +01:00
Diva Canto
959872315f
WARNING: massive refactor to follow libomv's latest changes regarding inventory folders. The newest version of libomv itself is committed here. Basically, everything that was using the AssetType enum has been combed through; many of those uses were changed to the new FolderType enum.
...
This means that from now on, [new] root folders have code 8 (FolderType.Root), as the viewers expect, as opposed to 9, which was what we had been doing. Normal folders are as they were, -1. Also now sending folder code 100 for Suitcase folders to viewers, with no filter.
All tests pass, but fingers crossed!
2015-08-08 12:12:50 -07:00
Oren Hurvitz
5a59a6d445
Removed unused variable
2015-08-03 15:31:48 +03:00
Robert Adams
fdb7a804fc
Add an option to processes physics collisions using FireAndForget.
...
Off by default but set with [Startup]ShouldUseFireAndForgetForCollsions=true
There is a problem with physics colliions sometimes stopping. One suspicion
is that the long callback path from the physics engine into the script engine
is causing problems. Enabling this feature passes the collision into the
script engine on a separate thread and not the main simulation thread.
Tester can enable this and see if the collsions stay around. If they still
fail, this commit should be reverted and another solution looked for.
2015-08-02 22:31:53 -07:00
Diva Canto
e5a1243abc
Mantis #7657 and #7514 . This should alleviate the problem of bad object assets being passed around via HG and archives. No guarantees that all the leaks have been found, but at least it detects and fixes these bad assets upon:
...
(1) storing and getting assets over HG -- assuming the core HG asset service is being used (not the case with OSGrid!)
(2) importing assets via OAR and IAR
Instantiation of bad assets now should also work, instead of producing an exception, but the bad assets themselves aren't being fixed in the DB. That should be done with a cleaning tool -- see Perl script in Mantis #7657 .
Virus!
2015-08-01 18:58:05 -07:00
Oren Hurvitz
e174dc87fb
Fixed the whitespace in Scene.cs
...
The whitespace in this file was fubared recently
2015-07-13 12:37:18 +03:00
Diva Canto
03f142730c
Squoosh one more warning
2015-06-14 08:14:09 -07:00
Cinder
0fa94f222d
Refactor AgentPreferences so that database operations happen centrally. the opensim way.
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 07:27:42 -07:00
Cinder
c1ddb7f05e
Relicense AgentPreferences files to BSD and OpenSimulator
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 07:27:26 -07:00
Cinder
6f71d5c2c6
Support for Linden AgentPreferences capability and friends (UpdateAgentLanguage and UpdateAgentInformation) and Mantis #7157
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 07:27:01 -07:00
dahlia
58972f65ac
SceneObjectPart.UpdateLookAt() now uses corrected libomv quaternion functions.
2015-06-10 01:26:38 -07:00
Diva Canto
cc22d81b4d
The only purpose of this commit is to remove an erroneous comment. It turns out that rezzing the attachments is necessary in modern viewers too. Proof: commenting the lines below the comment results in no attachments seen in the avatar.
2015-06-05 09:47:36 -07:00
Diva Canto
83267e19f6
Mantis #7536 . This may alleviate the side effects of broken SceneObjects XML. It doesn't (can't) fix the cause.
2015-06-04 16:17:45 -07:00
Melanie Thielker
edcba95ab5
Merge branch 'master' into moses
...
Conflicts:
OpenSim/Region/Framework/Scenes/Scene.cs
2015-05-20 23:40:52 +02:00
Talun
d9afe354ac
New values returned by llGetEnv
...
Implements recent changes to llGetEnv
region_cpu_ratio hardcoded to 1
region_product_sku hardcoded to OpenSim
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-20 14:36:54 -04:00
Michael Heilmann
946a6622fe
Removing duplicate definition
2015-05-19 15:52:13 -04:00
Michael Heilmann
140ea04b9d
Merging Opensim upstream before generating patch
2015-05-19 15:18:45 -04:00
Glenn Martin
91a55c0794
Merge branch 'master' of https://github.com/M-O-S-E-S/opensim into moses.metricsPhase2
...
Fixed conflicts.
Conflicts:
OpenSim/Region/Framework/Scenes/Scene.cs
2015-05-19 14:07:44 -04:00
AliciaRaven
cb586d1158
Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)
...
This patch fixes permission issues with dragging scripted objects. As on LL grid, scripted prims can not be dragged. Also after dragging, the group was not marked as updated. This meant that after the region was restarted the group would revert to its original position. This version fixes issues where scripts in child prims were not detected and also blocks grab for attachments.
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-05-13 12:16:14 -05:00
Diva Canto
1abbad71b4
Refactored some code that is used in two different dlls related to SOP rewriting. Also added some unit tests that relate to mantis #7514
2015-05-05 20:59:09 -07:00
Glenn Martin
72e17b0219
Merge remote-tracking branch 'upstream/master' into moses.metricsPhase2
...
Conflicts:
OpenSim/Region/Framework/Scenes/Scene.cs
OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
2015-05-01 14:11:16 -04:00
Steven Zielinski
625452b84b
Updated phase 2 to have the changes originally done in phase 1 for the defaultNumberFramesStored.
...
Test Plan: Tested using opensim standalone on windows with json stats.
Reviewers: rlouden
Reviewed By: rlouden
Differential Revision: http://cr.irl.ucf.edu/D275
2015-04-30 16:02:45 -04:00
Diva Canto
da32512ea4
Updated all occurrences of AssemblyVersion("0.8.1.*") to AssemblyVersion("0.8.2.*")
2015-04-29 18:47:17 -07:00
Steven Zielinski
59778cfc2a
Added in all metrics for Phase 1 except for Time Dilation.
...
Test Plan:
Tested on local opensim and firestorm. Not tested with JSON stats
reporter.
Reviewers: rlouden
Reviewed By: rlouden
Differential Revision: http://cr.irl.ucf.edu/D269
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-04-29 18:22:24 -07:00
Steven Zielinski
cb3c6038af
Changed the 10 value to be a constant value inside of the Scene called m_DefaultNumberFramesStored.
...
Test Plan: Tested on windows with the json stats reporter.
Reviewers: rlouden, kboswell, clattin, ssirigam, martin
Reviewed By: rlouden, kboswell, clattin, ssirigam, martin
Differential Revision: http://cr.irl.ucf.edu/D273
2015-04-29 16:20:03 -04:00
BlueWall
e171ae899d
Revert "Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)"
...
We found that linksets can move if the root prim is unscripted. Will revert this until a fix can be implemented.
2015-04-28 17:24:54 -05:00
Steven Zielinski
bebdc29eff
Changed the 10 value to be a constant value inside of the Scene called m_DefaultNumberFramesStored.
...
Test Plan: Tested on windows with the json stats reporter.
Reviewers: rlouden, ssirigam, martin, kboswell, clattin
Differential Revision: http://cr.irl.ucf.edu/D273
2015-04-28 16:56:53 -04:00
Steven Zielinski
0b3adc961b
Added in all metrics for Phase 1 except for Time Dilation.
...
Test Plan:
Tested on local opensim and firestorm. Not tested with JSON stats
reporter.
Reviewers: rlouden
Reviewed By: rlouden
Differential Revision: http://cr.irl.ucf.edu/D269
2015-04-21 17:33:26 -04:00
Robert Louden
c3138f9f38
Phase 2 additons with Frame Dilation metric.
2015-04-21 16:15:48 -04:00
Glenn Martin
1959eb8372
Moved over metrics from previous OpenSim 0.8.0.3 repository (this new repository is now the master branch from OpenSim).
2015-04-21 14:29:17 -04:00
AliciaRaven
f11720d71f
Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)
...
This patch fixes permission issues with dragging scripted objects. As on LL grid, scripted prims can not be dragged now. Also after dragging, the group was not marked as updated. This meant that after the region was restarted the group would revert to its original position.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-04-20 16:38:37 -04:00
Robert Adams
7d699514a5
Revert "Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)"
...
This change sees to enable general moving of objects with touch scripts.
Reverting until the move permissions are understood.
This reverts commit 28ce323802
.
2015-04-19 20:22:55 -07:00
AliciaRaven
28ce323802
Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)
...
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-04-17 19:37:18 -05:00
Magnuz Binder
beba2ce781
Fix stand position for differing seat and root rotation.
...
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-04-12 12:53:47 -04:00
Robert Adams
07dead7dcb
varregion: any conversions of use of Constants.RegionSize converted into
...
Util.cs routines to convert region coords to and from world coords or handles.
2015-03-29 14:25:12 -07:00
Robert Adams
c5a7bf6601
varregion: add varregion and TerrainData use in LLClientView.
...
Add sending multiple parcel patches and sending patches by avatar
view distance.
2015-03-28 08:30:52 -07:00
Robert Adams
bedafb8fae
varregion: refactor use of 'double heightmap[,]' into references to new class TerrainData
...
and push the implementation from Scene into the database readers and writers.
2015-03-27 19:32:50 -07:00
Melanie Thielker
752901c5f4
Make attachment rezzing async again for NPC. Doing that sync causes a deadlock
...
with the script thread.
2015-03-24 01:37:14 +01:00
Robert Adams
9f18e3ba80
Varregion: first cut at removing Border class checks for region crossings.
...
Added Scene.PositionIsInCurrentRegion(pos) to sense when new position needs some crossing work.
Many changes made to EntityTransferModule to accomodate new crossing sense logic.
2015-03-22 21:53:02 -07:00
dahlia
83e58ebc7c
oops someone set individual quaternion members and forgot to normalize
2015-03-17 13:14:03 -07:00
Justin Clark-Casey (justincc)
310e44f250
Re-enabled ability for avatar to ascend and descend whilst controlling view with lmb held down on avatar (in most viewers).
...
This had been disabled by 30b7863
(Fri Feb 27 2015).
Relates to http://opensimulator.org/mantis/view.php?id=6835
2015-03-17 18:55:33 +00:00
Robert Adams
00b5b915c7
BulletSim: add VEHICLE_ more parameter value limit checking.
...
This only bounds passed parameters as there is no good way of refusing
the parameter setting. This mostly means that passing NaN's won't
crash the simulator.
2015-03-07 17:47:40 -08:00
Justin Clark-Casey (justincc)
7d3bafd5ab
Add outbound URL filter to llHttpRequest() and osSetDynamicTextureURL*() script functions.
...
This is to address an issue where HTTP script functions could make calls to localhost and other endpoints inside the simulator's LAN.
By default, calls to all private addresses are now blocked as per http://en.wikipedia.org/wiki/Reserved_IP_addresses
If you require exceptions to this, configure [Network] OutboundDisallowForUserScriptsExcept in OpenSim.ini
2015-03-04 18:27:50 +00:00
BlueWall
7e8bad05ec
Fix erratic Npc movement
2015-03-02 20:09:22 -05:00
Freaky Tech
2482d567cf
added missing senderId in GiveInventoryFolder this little mistake prevented passing on folders for HG visitors
...
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-03-02 15:59:49 -05:00
Justin Clark-Casey (justincc)
59d6d03909
Comment out now unused and not properly working private SP.m_leftButtonDown with a comment on how probably to implement it properly if it is needed in the future
2015-02-27 23:48:05 +00:00
Justin Clark-Casey (justincc)
30b786351e
Don't slow down avatar walk speed if camera is changed (e.g. by holding down lmb on an avatar and moving the mouse).
...
Does this by not applying unwanted direction components to the avatar self movement calculation (exception is flying in mouse look).
Matches behaviuor on linden lab grid
Addresses http://opensimulator.org/mantis/view.php?id=6835
2015-02-27 23:43:12 +00:00
Justin Clark-Casey (justincc)
ca7cc9b2e2
Don't slide crouching avatar when camera is panned around them with left mouse button
...
This matches linden lab grid behaviour
2015-02-27 19:43:31 +00:00
BlueWall
aeb8a4bf85
Revert "Adding dynamic ossl permission control"
...
This reverts commit a3681f3052
until
further testing. Jenkins now fails ossl tests.
2015-02-27 12:27:10 -05:00
BlueWall
a3681f3052
Adding dynamic ossl permission control
...
Add permission by identifying uuid (owner/creator/group) and function. Revoke
permission in the same manner. Permission adjustments immediately effect
running scripts ability to call os functions.
osGrantScriptPermissions(UUID key,string function) Threat Level Severe
osRevokeScriptPermissions(UUID key,string function) Threat Level Severe
work sponsored by: Rage
2015-02-27 11:05:15 -05:00
Justin Clark-Casey (justincc)
412dd7dfc5
When an avatar is walking across a region border, force the first AgentUpdate received on the new root agent to update movement parameters.
...
This prevents the avatar from drifting in its last direction of travel if a movement key was released at certain moments in the cross.
Relates to http://opensimulator.org/mantis/view.php?id=7435
2015-02-26 00:48:51 +00:00
Justin Clark-Casey (justincc)
a03d893f2c
Fix bug where the uuid gatherer was not inspecting UUIDs for items in an embedded object's inventory.
...
Added regression test for this case.
Likely a regression since 08606ae4
(Thu Jan 8 2015)
Relates to Mantises 7439, 7450 and possibly others.
2015-02-25 21:12:46 +00:00
Justin Clark-Casey (justincc)
b1b72d7c2f
Reduce coupling in regression test task inventory creation methods to make them usable in tests with no scene present
2015-02-25 20:30:03 +00:00
dahlia
8b2af1071f
Add NaN and Infinity tests for SOP Velocity and Acceleration setters.
2015-02-16 23:51:37 -08:00
dahlia
78814a1533
Use a boolean flag to signal lookat is running instead of Quaternion.Identity so it can be a valid target orientation
2015-02-16 19:42:36 -08:00
dahlia
2700b096bc
Filter NaN and Infinity values at SOP AngularVelocity setter
2015-02-16 19:06:01 -08:00
Justin Clark-Casey (justincc)
dd6f560c05
If serialized scene object XML has a SavedScriptState with no UUID, then read past the innerXML instead of wrongly continously looping on the same element.
...
Addresses http://opensimulator.org/mantis/view.php?id=7437
2015-02-11 00:53:56 +00:00
dahlia
12119a9d7d
llLookAt() strength parameter should slow rotation as it is increased. Thanks Vegaslan for pointing this out.
2015-02-07 17:39:46 -08:00
dahlia
2ed1afd32b
llLookAt(): reduce and clamp strengh to reduce probability of overshoot
2015-02-07 14:17:37 -08:00
dahlia
506e62f815
llLookAt() and llRotLookAt(): all orientation updates now done via angular velocity manipulation. Also correct some orientation glitches during interpolation.
2015-02-06 22:36:26 -08:00
dahlia
3b7c3378f1
Manage Angular Velocity during llLookAt() rotation of physical objects
2015-02-05 23:13:06 -08:00
dahlia
ee810a2cb5
Set angular velocity in physics actor in SceneObjectPart.AngularVelocity setter. Enables llSetAngularVelocity()
2015-02-05 14:29:51 -08:00
Justin Clark-Casey (justincc)
1d2616e7a2
If the owner of an object is taking a copy from the scene (e.g. via the "take copy" option on a viewer) then only require owner copy perms, not copy and transfer.
...
This matches Linden Lab behaviour and what was already possible via shift-copy.
Transfer would not apply here as the owner and copier are the same.
This is the only functional change, all other current take copy logic remains the same.
Adds regression tests around relevant take copy cases.
2015-02-03 23:43:30 +00:00
Justin Clark-Casey (justincc)
d0a2ea0857
Fix regression where the stored state of every second script in an object rezzed from inventory (e.g. attachments) was no longer loaded.
...
Likely a regression since f132f642
(2014-08-28)
Relates to http://opensimulator.org/mantis/view.php?id=7278
2015-01-23 00:27:57 +00:00
Justin Clark-Casey (justincc)
aef6fd6927
If the SnedInventoryAync() method receives an exception log this but make sure it does not terminate the process.
...
Relates to http://opensimulator.org/mantis/view.php?id=7421
2015-01-21 20:54:23 +00:00
Justin Clark-Casey (justincc)
25dd30ddb6
minor: Fix some CR line endings in Scene.Inventory.cs
2015-01-21 00:33:54 +00:00
Justin Clark-Casey (justincc)
a846e63c70
If [Permissions] serverside_object_permissions = false or the undocumented propogate_permissions = false, don't propogate permissions of prim inventory items.
...
This was a regression from 13f31fd
(4 Nov 2013)
Relates to http://opensimulator.org/mantis/view.php?id=7399
2015-01-21 00:21:27 +00:00
Justin Clark-Casey (justincc)
ac93ba9f85
minor: correct SceneCommunicationService.LogHeader spelling
...
Relates to http://opensimulator.org/mantis/view.php?id=7337
2015-01-20 00:19:33 +00:00
Justin Clark-Casey (justincc)
beef41f24c
Stop simulators attempting to contact registered but offline regions (RegionFlags.Persistent but not RegioNFlags.RegionOnline) on startup and when an avatar completes a teleport.
...
This eliminates spurious network calls and failure reporting.
This is done by adding RegionFlags to the GridRegion returned data in a backward compatible way as an alternative to multiple IGridService.GetRegionFlags() calls
Using a simulator or a grid service older than this commit will just see previous behaviour.
2015-01-14 19:45:19 +00:00
Diva Canto
20b34135cb
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
2015-01-09 08:32:40 -08:00
Diva Canto
e2dd15625f
Added GetDisplayNames capability. For now, we don't actually use display names, and this cap returns the regular name. But this moves the server side into the newer, preferred, protocol used by the viewer for fetching the names of agents in the scene given their UUIDs. (the old protocol is via UDP). This works fine in my limited tests, but could use further testing by others.
2015-01-09 08:31:56 -08:00
Justin Clark-Casey (justincc)
801a86ca03
When inspecting a script or notecard, also try to look up any assets embedded therein.
...
This is primarily to fix an issue where inventory items for NPC attachments would not be saved in archives as the assets referenced in the appearance notecard were not checked in this manner.
Relates to http://opensimulator.org/mantis/view.php?id=7376
2015-01-08 20:36:03 +00:00
Justin Clark-Casey (justincc)
08606ae409
Make the IteratingUuidGatherer the only UuidGatherer.
...
This UUID gatherer provides a superset of the previous gatherer's functionality
as it also allows the caller to control gathering iterations for load purposes.
2015-01-08 20:21:40 +00:00
Diva Canto
2138d5c7f8
Renamed VERSION_NUMBER to VersionNumber
2014-12-30 15:27:28 -08:00
Diva Canto
7466ef0525
This cleans up versioning. Specifically:
...
- It establishes 4 digits for opensim versions
- It uses the same number between opensim releases and mono addins versions
It also eliminates the last addin.xml files that were still there, for consistency.
2014-12-30 12:53:31 -08:00
Diva Canto
5cf6a6f830
WARNING: BREAKING CHANGES FOR REGION MODULE DEVELOPMENT.
...
This cleans up Opensim's use of mono addins. In particular, the extension points /OpenSim/RegionModules and /OpenSim/WindModule moved from OpenSim.exe to OpenSim.Region.Framework.dll. From here on, developers of region modules should declare their dlls to be dependent on OpenSim.Region.Framework, starting with version 0.8.1
Additional changes:
- Addins version uniformly updated to 0.8.1. These numbers should be compatible with the release numbers or else it becomes very confusing.
- Mono addins directives moved from files addins.xml to embedded directives in the class and assembly declarations, to make it all consistent
2014-12-30 07:58:42 -08:00
Diva Canto
bb82076a4d
Allow for richer semantics of object derez. Specifically, allow the existence of region modules that do other kinds of garbage collection. Instead of placing deleted objects in the user's Trash folder, or deleting them immediately (UseTrashOnDelete = false), a module may decide to take garbage collection under its control. For example, it may place derezzed objects in a certain area inworld and delete them later.
2014-12-25 12:17:07 -08:00
Justin Clark-Casey (justincc)
e901253b49
Fix recent regression where a race condition meant SP.MakeRootAgent() would sometimes look to start attachment scripts before ETM.HandleIncomingSceneObject() had added them.
...
Probably a regression since ghosts branch merge on Nov 26 2014
2014-12-17 00:25:24 +00:00
Justin Clark-Casey (justincc)
f3ab7c0f5c
refactor: rename IteratingUuidGather.AddAssetUuidToInspect() and RecordAssetUuids() to AddForInspection() as this properly describes what both of these methods do.
2014-12-05 00:21:42 +00:00
Justin Clark-Casey (justincc)
9208fb5d54
refactor: Make IteratingUUIDGatherer take a dictionary in its constructor like UUIDGatherer, so we can deal with future cases where the dictionary may already be pre-populated.
2014-12-04 23:55:59 +00:00
Justin Clark-Casey (justincc)
bee3f203cd
Allow scripts in attachments on an owned NPC to call NPC functions on that NPC
2014-12-04 22:52:46 +00:00
Justin Clark-Casey (justincc)
5861401faa
Remove long unused region parameters from SceneBase. Some of these weren't even being set. Region parameters come from Scene.RegionInfo instead.
2014-12-03 21:44:22 +00:00
Justin Clark-Casey (justincc)
2d2aa6e076
minor: Just have one message that displays successful registration of a region with its parameters rather than 2
2014-12-03 21:40:39 +00:00
Justin Clark-Casey (justincc)
dcc36507f3
Halve the prediction lag for region crossing to improve most flying region crossings without degrading the walk cross experience (neither of which have been that great anyway).
2014-11-29 00:48:26 +00:00
Justin Clark-Casey (justincc)
265fe349e0
Somewhat improve avatar region crossings by properly preserving velocity when avatar enters the new region.
...
This commit addresses the following issues were causing velocity to be set to 0 on the new region, disrupting flight in particular
* Full avatar updates contained no velocity information, which does appear to have some effect in testing.
* BulletSim was always setting the velocity to 0 for the new BSCharacter. Now, physics engines take a velocity parameter when setting up characters so we can avoid this.
This patch applies to both Bullet and ODE.
2014-11-29 00:12:11 +00:00
UbitUmarov
e8d67af3e1
change/fix rez position and rotation on llRezObject and llRezAtRoot
2014-11-27 23:32:24 +00:00
Justin Clark-Casey (justincc)
86367d7219
refactor: Move methods to start a monitored thread, start work in its own thread and run work in the jobengine from Watchdog to a WorkManager class.
...
This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management.
Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget.
Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
2014-11-25 23:56:32 +00:00
Justin Clark-Casey (justincc)
28d1dbfee4
Move conditionals which control whether a task is placed in the JobEngine inside Watchdog.RunJob() (renamed from RunWhenPossible) and generalize them.
2014-11-25 23:23:11 +00:00
Justin Clark-Casey (justincc)
aeae34505f
When processing incoming attachments via HG, if a request for uuid gathering or final asset import takes too long remove remaining requests from same user to prevent hold up of other user's incoming attachments.
...
This improves upon the earlier naive simply queueing immplementation.
Threshold is 30 seconds. If this happens to a user they can relog and fetch will be reattempted.
2014-11-25 23:23:11 +00:00
Justin Clark-Casey (justincc)
06a5d6e9ef
Introduce an IteratingUuidGatherer where each fetch from the asset service (iteration) can be controlled by the caller.
...
This is to enable an imminent change where incoming HG scene object fetching can assess the time taken by each request rather than being forced to perform all requests in one call.
Soon, this will replace the existing UuidGatherer since it is both simpler and more flexible.
2014-11-25 23:23:11 +00:00
Justin Clark-Casey (justincc)
1d19e1bbd0
Add naive implementation of controlled incoming HG attachments to manage load.
...
Instead of processing all incoming attachment scene object concurrently, process them consecutively to eliminate potential overload from this source.
This is a naive implementation because it does not currently account for slow foreign asset services.
Although it may take longer, this approach may also improve attachment visibility for HG avatars
since the scene object is now always added to the scene after receiving assets from the foreign service and not before.
2014-11-25 23:23:10 +00:00
Justin Clark-Casey (justincc)
ec8d21c434
Label all threadpool calls being made in core OpenSimulator. This is to add problem diagnosis.
...
"show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
2014-11-25 23:23:10 +00:00
Justin Clark-Casey (justincc)
3a1ce2715a
Add "wearables check" console command
...
This checks that all the wearable assets and any assets for a given logged in avatar exist in the asset service
2014-11-25 23:23:09 +00:00
Justin Clark-Casey (justincc)
a9dde81753
minor: Correct letter accidentally added to copyright notice on top of Scene.cs (almost five years ago!)
2014-11-25 23:22:20 +00:00
Justin Clark-Casey (justincc)
b7ef6009a7
In Scene.AddNewAgent(), avoid a situation where an exception can result in a client being added to the manager without IClientAPI.SceneAgent being set.
...
This is done by adjusting the order of code so that SceneAgent will always be set before adding the client.
Various parts of the code (rightly) assume that a a client registered to the manager will always have a SceneAgent set no matter what.
2014-11-25 23:22:20 +00:00
Justin Clark-Casey (justincc)
1c9529aa9e
If JobEngine is active, then use it to copy/rez attachments for an avatar entering the scene that isn't initially logging on. This will execute tasks consecutively rather than concurrently.
...
This has two aims
1) Reduce initial teleport failures when a foreign Hypergrid user enters a region by not holding up the teleport for attachment rez (this can be particularly costly when HG gets all assets in the object graph.
2) Reduce server load that may impact other simulator activities.
This complements existing JobEngine options that perform initial login attachment rez and appearance send in consecutive tasks.
2014-11-25 23:21:38 +00:00
Justin Clark-Casey (justincc)
fc878a33ed
refactor: consistently put all test classes in the OpenSim.Tests.Common package rather than some in OpenSim.Tests.Common.Mock
...
the separate mock package was not useful and was just another using line to always add
2014-11-25 23:21:37 +00:00
Justin Clark-Casey (justincc)
b9b483151f
Eliminate a few unnecessary calculations in the maintenance loop.
...
Also uses wait event instead of sleep for periodicity control.
2014-11-25 23:18:38 +00:00
Justin Clark-Casey (justincc)
7d30bb13be
Fix recent minor regression where the default frame time wasn't being set if there was no startup config section.
...
Caused some regression tests to fail.
2014-11-25 23:18:38 +00:00
Justin Clark-Casey (justincc)
7bababaab6
Improve frame time stability by taking a few unnecessary repeated calculations out of the main scene loop.
...
Also uses a wait event to sleep rather than a Thread.Sleep to allow the loop to be interrupted in a more controlled manner when necessary.
2014-11-25 23:18:38 +00:00
Justin Clark-Casey (justincc)
5b6fb7245a
Set ThreadPriority on main scene thread to highest.
...
This will only have an effect on Windows systems or mono with the (not recommended) mono-3.2.8 debug patch https://gist.github.com/justincc/31e52218d098529b4696 applied
2014-11-25 23:18:38 +00:00
Justin Clark-Casey (justincc)
9fb3065d33
Temporarily add root agent rez attachments work to job engine if it is running rather than as a fire and forget.
...
Experiment to see if serializing attachment rez and send initial data jobs improves other parts of sim performance.
2014-11-25 23:18:38 +00:00
Justin Clark-Casey (justincc)
859b1c5ba4
Add experimental job engine to see if queueing some existing async work during root agent entry to a region improves perf rather than always attempting to execute everything concurrently
...
Job engine is controlled via "debug jobengine start|stop|status".
Can only currently be enabled and disabled dynamically at runtime.
Currently only applies to code sending initial region data (objects, other avatar data) to a client.
2014-11-25 23:18:37 +00:00
Justin Clark-Casey
3247a7cb3e
refactor: capitalize SOP.moveToTarget() and stopMoveToTarget() in accordance with code guidelines and the rest of the methods.
2014-11-19 20:12:28 +00:00
UbitUmarov
6bebb9206c
fix stopMoveToTarget in attachments case ( similar to core fix)
2014-11-19 20:11:16 +00:00
Justin Clark-Casey
7a2c77e7ea
If calling llStopMoveToTarget() on an in-world prim, don't send an unnecessary object update if the prim was not moving to target.
...
This involves making PhysicsActor.PIDActive get as well as set.
On physics components that don't implement this (all characters and some phys engines) we return false.
2014-11-19 20:06:56 +00:00
Justin Clark-Casey
bdebd525db
Remove SOP.StopMoveToTarget scheduled update which is now being done in SOG.stopMoveToTarget() as of last commit 67e568
2014-11-19 19:16:03 +00:00
Justin Clark-Casey
67e56872f3
If llStopMoveToTarget() is called on an attachment, then stop the avatar if it was moving to target.
...
Same behaviour as on Linden Lab grid.
Will probably also address http://opensimulator.org/mantis/view.php?id=7369 by not generating spurious object updates when llStopMoveToTarget() is called in attachments where the avatar is not moving.
2014-11-19 19:08:33 +00:00
UbitUmarov
bb5ab05482
fix rez position being for root or center for a single object case
2014-11-19 18:20:30 +00:00
UbitUmarov
7bcb68d7c4
some steps to rez center or root of prim inventory object at requested
...
position ( does nothing diferent still )
2014-11-19 16:59:11 +00:00
UbitUmarov
b4a91f5dde
return bbox and offsetHeight to RezObject
2014-11-19 16:43:56 +00:00
Justin Clark-Casey
5aa8ba1b45
Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a valid set pin in a destination prim rather than the unset no pin state
...
Adds regression test for this case.
2014-11-11 17:59:56 +00:00
Melanie Thielker
bec456c2a5
Remove the Invisible stuff and add more baked caching. Refactor selection of textures to save to Bakes module.
2014-11-11 07:09:30 +01:00
Melanie Thielker
64deb6ae6f
Second part of invisible base avatar option
2014-11-10 19:49:58 +01:00
Melanie Thielker
46424a4a77
Add a new baked texure module methid to support baked texturing mesh avatars
2014-11-10 04:47:37 +01:00
Melanie Thielker
6d2e924f24
Call the bake module each time we see a new attachment to see if the attachment
...
needs textures
2014-11-10 04:46:51 +01:00
UbitUmarov
fdb0598446
remove duplicated lines
2014-11-08 00:25:44 +00:00
UbitUmarov
caddabb5c4
scale ChildAgentThrottles with distance (internal to child server and not
...
root as was done before )
2014-11-06 22:25:16 +00:00
UbitUmarov
ead78764ab
allow drawdistance to change between 32 and MaxDrawDistance, configurable
...
value default to 256, so should have no effect. Next steps needed: reduce
client udp Throttles with distance, update childreen connections with
significat movement and view range changes, Make disconnect be delayed in time, make disconnects be receiving region action not sender on region changes. Allow distance less than 256 to only connect to visible regions, even none. Make this be relative to camera and not agent position or region centers as it is now.
2014-11-06 19:03:25 +00:00
UbitUmarov
a6ffcbb7f9
always write physicsShapeType on sop serialization since default value
...
can't be guessed in some cases
2014-11-03 00:56:48 +00:00
UbitUmarov
37a5eab0f5
BUG FIX prevent references to null scene (as happens on mesh uploads)
2014-11-03 00:03:53 +00:00
Melanie Thielker
30f3de549a
Merge branch 'avination-current'
2014-10-30 01:32:36 +01:00
Melanie Thielker
3afd64f2f7
Fix a script load issue
2014-10-30 01:29:03 +01:00
UbitUmarov
e4d84d8ff6
try to make a avatar usesable if its siting part didn't cross, or crossed
...
back. This situation points to that sitted avatars should be sent in same
http connection that crosses the object
2014-10-28 13:52:00 +00:00
UbitUmarov
bc4d0179b3
remove debug message
2014-10-26 12:38:22 +00:00
UbitUmarov
b07ea475bf
delete keyframes on temporary backup group
2014-10-26 12:30:11 +00:00
UbitUmarov
525322efa2
bug fix
2014-10-26 12:24:12 +00:00
UbitUmarov
b43ce909aa
Debug... ( restored TriggerOnSceneObjectPreSave)
2014-10-26 11:28:24 +00:00
UbitUmarov
cfc8de096b
remove lock that did nothing, DEBUG disable TriggerOnSceneObjectPreSave
2014-10-26 10:48:53 +00:00
UbitUmarov
6600282fe9
another try to prevent double crossing
2014-10-26 10:08:13 +00:00
UbitUmarov
139044fc79
keep intransit flag even if deleted, dont set sog position if in transit
2014-10-26 01:25:28 +00:00
UbitUmarov
639f128d2c
some cleanup, localID coerence fix..
2014-10-26 01:27:43 +01:00
UbitUmarov
d9d58a7b33
some code reorder/minor changes
2014-10-25 23:00:41 +01:00
UbitUmarov
16608ffb01
don't backup in transit SOGs
2014-10-24 21:51:38 +01:00
UbitUmarov
4571e5bc3e
try to make SOG crossings full async. Simplify some borders checking....
2014-10-24 18:10:28 +01:00
UbitUmarov
31c036c044
refuse crossings if logins disabled
...
Please enter the commit message for your changes. Lines starting
2014-10-21 19:22:51 +01:00
UbitUmarov
b1ccf3f110
make sure we return false if catch() is triggered on crossing
2014-10-21 13:04:26 +01:00
UbitUmarov
59413adcee
do agent crossing async, including QUERYACCESS ( need to check vehicles for
...
this also ), so it doesn't stop heartbeat
2014-10-21 11:57:47 +01:00
UbitUmarov
afa9b4a002
Assume childreen don't need to know caps seeds
2014-10-20 09:14:27 +01:00
UbitUmarov
f44c29effb
try to fix propagation of seeds to all relevante regions
2014-10-19 15:51:12 +01:00
UbitUmarov
b7708b9d1f
change child agents creation/notification. As before this assumes that
...
sending regions close out of view connections.
2014-10-18 18:27:38 +01:00
UbitUmarov
f9588730cf
debug makeroot timing
2014-10-17 14:36:02 +01:00
UbitUmarov
2bea66ed27
send motion control state in update to childs. Reset CollisionPlane on
...
makechild
2014-10-17 14:07:11 +01:00
Melanie Thielker
14259b5f99
Fix an obscure permissions exploit. Taking items from a friend's prim could
...
possibly result in a privilege escalation
2014-10-16 03:53:56 +02:00
Melanie Thielker
04612f41a7
Fix transferring inventory from prims to agent inventory
2014-10-16 03:46:45 +02:00
UbitUmarov
c0a75fcc03
fix targetOmega resend on deselect on the right place, can't be at sop
...
but packethandlers
2014-10-06 00:17:41 +01:00
UbitUmarov
57caf468e8
bug fix: resend part targetOmega on deSelect
2014-10-04 08:30:04 +01:00
UbitUmarov
6f149ef6ae
bug fix: leave jumping state only to landing, without fallback into
...
onsurface, etc
2014-10-04 07:49:05 +01:00
UbitUmarov
4ae960a4f0
bug fix: revert back check on creating link
2014-10-04 03:43:20 +01:00
Justin Clark-Casey (justincc)
cbd428cff3
Add LSL transaction_result event.
...
This is cinderblocks' transaction_result.diff from http://opensimulator.org/mantis/view.php?id=7329 but I have used lsl.parser.cs and lsl.lexer.cs files generated directly from opensim-libs rather than those supplied in the patch.
I also added scriptEvents.transaction_reuslt.
The required parser/lexer generation file changes were made in commit d564f28 in the opensim-libs repo.
Thanks!
2014-10-04 00:16:47 +01:00
UbitUmarov
94f42cef90
added a missing angularVelocity.Zero on sitting, removed odd camera based
...
movement vectors, plus little other things
2014-10-03 18:32:52 +01:00
Justin Clark-Casey (justincc)
57e75d7c03
Do not add attachments to the region scene object backup list.
...
Attachment persistence is not handled in this way and this just results in a load of busy work until a check in each SOG terminates a backup check for attachments anyway.
2014-10-02 22:30:44 +01:00
Justin Clark-Casey (justincc)
afa85e6b3c
Set appearance refresh to false by default.
...
This setting was originally added some time ago to deal with issues where appearance was not received properly by all users.
However, it does not scale well with large numbers of agents.
Disabling to see if the original problem has abated or whether this will have to be tackled in another way.
2014-10-02 22:30:44 +01:00
UbitUmarov
6d1f1103f3
clean up coments, use a even faster XY move request detection
2014-10-01 16:36:06 +01:00
UbitUmarov
4c8819a143
removed useless unreal inworld movement vector estimation. Do animation state using movement control flags only, on avatar frame of reference. This will hold
...
valid until the up direction is allowed to be diferent from the world one.
2014-10-01 04:32:19 +01:00
UbitUmarov
b9be9097aa
fix a incomplet landing handling case
2014-09-30 17:02:24 +01:00
UbitUmarov
2af7205813
keep same animation if in transit
2014-09-30 00:13:52 +01:00
UbitUmarov
3052a53889
change avatar physics and motion control. Still not that good :(
2014-09-29 20:17:05 +01:00
Justin Clark-Casey (justincc)
530b0cbbf1
Move expired objects cleaning trigger to the maintenance thread of a region rather than it's main scene loop.
...
[Startup] default setting UpdateTempCleaningEveryNFrames becomes UpdateTempCleaningEveryNSeconds.
Default becomes 180s instead of effective 182s (which would also vary with any changes in frame time or extra long frames)
2014-09-27 00:23:52 +01:00
UbitUmarov
09e05d48b9
refuse to do a inventory link if provided asset type is not a link or
...
folderlink
2014-09-26 13:28:24 +01:00
UbitUmarov
d29a04fc20
remove debug msgs
2014-09-26 03:52:10 +01:00
UbitUmarov
598ab37b97
debug msg
2014-09-26 02:52:44 +01:00
Justin Clark-Casey (justincc)
9fcee73326
Make "generate map" console command also trigger upload to maptiles as well as asset generation without performing tile generation twice.
2014-09-26 01:02:19 +01:00
UbitUmarov
8c68772624
bug fix: add missing attach to region heartbeat event to update animations
2014-09-26 00:54:06 +01:00
UbitUmarov
c9079360b9
coment out stack trace at newUserConnection, add log msh at createAgent
2014-09-24 18:37:59 +01:00
UbitUmarov
46bf6d1640
add stack trace debug message
2014-09-24 18:29:23 +01:00
UbitUmarov
4206c1248f
same thing on another lock(acd)
2014-09-24 01:51:36 +01:00
UbitUmarov
d96fe6eaf5
replace a lock on a unkown origin object with a lock on a well defined
...
one.
2014-09-24 01:37:51 +01:00
Justin Clark-Casey (justincc)
c015cb3134
Remove an unnecessary check at the bottom of Scene.CloseAgent()
...
At this point sp != null so no check required.
2014-09-24 00:50:24 +01:00
UbitUmarov
6d2cdd31fe
populate collision lists with LinkNumber, and detected structure in
...
Xengine
2014-09-23 23:59:05 +01:00
UbitUmarov
f37364b56f
Merge branch 'master' into ubitworkmaster
2014-09-23 23:20:28 +01:00
Melanie Thielker
309cfeff88
If an agent is logging in, rather than teleporting, make sure all known
...
circuits for that agent are closed.
2014-09-23 21:53:09 +02:00
AliciaRaven
1e22091193
Modifications to previous IAR commits to bring them more inline with existing OpenSim code conventions. Also include new IAR save switch in console help print out.
2014-09-23 00:04:59 +01:00
AliciaRaven
5bc3bbbcf3
Add an event callback for loading IAR files. The callback for creating them already existed but not for loading. This is of interest for use by region modules. Also includes reporting numbers of items saved and items filtered to the completed log printout.
2014-09-23 00:04:53 +01:00
AliciaRaven
08675d44a7
Change existing IAR save to use UUID for its callback reference instead of Guid. This is for uniformity as discussed on IRC.
2014-09-23 00:04:50 +01:00
UbitUmarov
79e47eb60e
some changes in link/unlink code, bypassing complex variables set methods
2014-09-22 23:32:55 +01:00
UbitUmarov
c82e456345
debug show stack trace
2014-09-22 21:13:36 +01:00
Melanie Thielker
4cc552162e
Merge branch 'ubitworkmaster'
2014-09-22 18:50:06 +02:00
Melanie Thielker
0bfba122f0
When a ghosted avatar is removed, also remove any remaining CAPS
2014-09-22 18:49:08 +02:00
UbitUmarov
ea4a526095
a few more changes on link/unlink
2014-09-22 16:09:39 +01:00
UbitUmarov
b7fca5bcac
same in a few more spots
2014-09-22 14:44:47 +01:00
UbitUmarov
fe3c1b9e98
send to world or backup, after setting finding information
2014-09-22 14:32:56 +01:00
UbitUmarov
bcaf202e34
update scenegraph group find by part information in sog link, so script link functions do update that also.
2014-09-22 13:59:23 +01:00
UbitUmarov
a70ed79c39
compile fix
2014-09-21 23:26:17 +01:00
UbitUmarov
d1ccc6d5cc
release lock a bit sooner when not needed, add a try on more complex db
...
store call
2014-09-21 23:23:20 +01:00
UbitUmarov
adda696cd0
protect getting the item
2014-09-21 22:46:44 +01:00
UbitUmarov
51ec2d83ac
remove redundant code
2014-09-21 22:43:17 +01:00
UbitUmarov
9c552212a9
exclude npcs from baked cache
2014-09-19 16:51:51 +01:00
UbitUmarov
242bb425f3
fix positions on same frames transitions
2014-09-19 01:07:20 +01:00
BlueWall
519c753e46
This fixes the Scene thread renaming issue
2014-09-17 20:25:27 -04:00