Commit Graph

24174 Commits (8981cba137e6eea28f7a1e8f60e21ae8cad1b67b)

Author SHA1 Message Date
UbitUmarov 88763178c5 display prim name, if unzip of selected phsyics mesh part fails on ubMeshmerizer ( thx Dan) 2015-10-11 20:17:58 +01:00
UbitUmarov 2b354902b5 fix the casting to Boolean of lsl types vector,quaternion,list and rotation, so that if(variable) does compile and work. key still requires a explicit compare to NULL_KEY 2015-10-08 06:27:37 +01:00
UbitUmarov 3a498b0637 change NPC restriction options default from restricted to all allowed, as master 2015-10-08 02:39:14 +01:00
UbitUmarov 7fb1063990 dont send of the contents of LinkFolders also on Multiple folder fetch. Outfits changes still seem to work, except FS that doesnt delete the links to previus outfits, as singularity does 2015-10-06 21:32:02 +01:00
UbitUmarov aa64d3bb7c dont send of the contents of LinkFolders 2015-10-06 18:17:15 +01:00
UbitUmarov 24ca32d8a8 send DisplayNames dates in UTC and not region local time. send a next update date that can be parsed and make it also in future so name edition is blocked since we don't suport them. (singu fails to display date, and seems to fail converting utc to local time 2015-10-05 10:43:45 +01:00
UbitUmarov 2700231764 in llAttachToAvatarTemp() (TempAttachmentsModule) dont add to inventory, like master 2015-10-04 03:34:55 +01:00
Robert Adams e1ce04de42 Implement an overridable implementation of PhysicsActor.SetVehicle()
that works for all physics engines.
BulletSim: implement an optimized version of SetVehicle() that still
  uses the vehicle code to do bounds checking but does it in one taint
  operation.
2015-10-02 18:35:02 -07:00
UbitUmarov 124602c6c2 reduce some diferences with master 2015-10-02 22:47:31 +01:00
UbitUmarov d900d0112d put back ip check on llSetContentType 2015-10-02 18:55:09 +01:00
UbitUmarov b8cb9d1bbb also on another location, plus a bit clean 2015-10-02 18:39:05 +01:00
UbitUmarov de51b7af85 do group SetPos sync as master, script thread does need to wait for it to be done. This needs improvement, doing it async again with script thread waiting watching coop 2015-10-02 17:56:02 +01:00
UbitUmarov bdd7ea06ff change llSetContentType to master version, but removing IP check 2015-10-02 17:45:48 +01:00
UbitUmarov 1af6ac4bfc remove unused method parameter master also removed 2015-10-02 17:44:19 +01:00
UbitUmarov 31873485d9 do not send DisableSimulator on teleport if agent is already returning 2015-10-02 02:42:25 +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 6bc479fecd make bakes reception handle empty BakedTexture elements. But at same time stop sending them, only sending to Xbakes server items that do have a texture, like master does 2015-10-01 19:30:37 +01:00
UbitUmarov 2abe1ccc59 change GetNewRezLocation physics ray results processing 2015-10-01 14:47:32 +01:00
UbitUmarov e110ca24cf remove a forgotten if that is actually only a statement 2015-10-01 14:37:24 +01:00
UbitUmarov 7e8544f26e fix missing clear of queued timer even and state transition flags on scripts reset 2015-10-01 05:20:04 +01:00
UbitUmarov 6df75a927c let hoverheight rest position be a falling state 2015-09-30 20:37:14 +01:00
UbitUmarov aa3303e3af add get method on physics actors PIDHoverActive 2015-09-30 20:13:31 +01:00
UbitUmarov f87e284ec2 first steps adding suport for llSetHoverHeight() called from attachments on ubOde. Sure needs work.. like sp motion control still assumes stopped and not falling state. Only very basic test on flat land done 2015-09-30 19:14:37 +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 d281ec5342 some fixes/changes on land send 2015-09-30 06:09:01 +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 1124d14eb0 remove some restrictions on NPCs creation 2015-09-29 22:15:56 +01:00
UbitUmarov 3e9b326fcc clean some spacing issues 2015-09-29 21:44:25 +01:00
UbitUmarov 0b21724fe4 try fix some whitespaces VS decided to change 2015-09-29 02:29:55 +01:00
UbitUmarov f2c8f83215 add processing of AvatarGroupsRequest message that should be used to get other avatars group memberships, but keep it disabled since some viewers no longer suport it correctly and expect memberships in reply to avatar properties, so we need to keep wasting bandwith sending useless information when some viewers really only want avatarproperties 2015-09-29 01:43:49 +01:00
UbitUmarov a580d945d1 remove groups handlers onClientClose also on groups V2 2015-09-28 21:03:20 +01:00
UbitUmarov cf6856a8df remove groups handlers onClientClosed 2015-09-28 21:00:08 +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 e0de76aa14 put back virtual declarations 2015-09-28 16:47:44 +01:00
UbitUmarov fb69661bb9 ... ossl merge issue 2015-09-28 16:40:55 +01:00
UbitUmarov fd20a9576d ... post merge issue 2015-09-28 16:03:10 +01:00
UbitUmarov 6ded1da9f2 ... merge issue 2015-09-28 15:49:22 +01:00
UbitUmarov c4ef8984a3 clear merge issue 2015-09-28 15:21:23 +01:00
UbitUmarov 93af984e94 add missing handlers for preferences 2015-09-28 13:22:32 +01:00
UbitUmarov 6e12836d71 change copyright to opensim 2015-09-28 13:08:46 +01:00
UbitUmarov 380d1c1d5a change copyright to opensim 2015-09-28 12:58:23 +01:00
UbitUmarov 55d0425dfe add missing handlers for preferences 2015-09-28 12:47:29 +01:00
UbitUmarov 4c0ef5a0ef change version string 2015-09-28 12:37:12 +01:00
UbitUmarov c6f8b5d682 remove virtual declarations master doesnt have 2015-09-28 11:53:37 +01:00
UbitUmarov dcd36d0c9b apply changes to xmlrcp groups to groups V2, compiles but not tested :( 2015-09-27 16:53:36 +01:00
UbitUmarov 04b32e1982 let SendAvatarGroupsReply fall back to UDP if no caps and make use of it 2015-09-27 07:07:40 +01:00
UbitUmarov 18536b4be6 add missing SendAgentGroupDataUpdate to llClientView 2015-09-27 06:38:19 +01:00
UbitUmarov 1e23b3482c AvatarGroupsReply message does not have ListInProfile fields 2015-09-27 06:21:38 +01:00
UbitUmarov b269185031 several changes to xmlrpcGroups. Packets AgentData and AgentGroupData are private to the requesting agent, etc 2015-09-27 06:10:12 +01:00
UbitUmarov 238b32d95f in xmlrpcGroups send all groups on MakeRoot. this will slow down crossings even more, but viewers seem to need it now, something to review later 2015-09-26 19:17:59 +01:00
UbitUmarov ae195632e9 add the Default Groups module lost in the merge 2015-09-26 18:18:29 +01:00
UbitUmarov 239dcaffb7 coment out some debug, clean a bit 2015-09-26 14:14:05 +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 07a8618c56 revert previus wrong commit 2015-09-25 21:43:51 +01:00
UbitUmarov 40ae9ec554 patch objects crossings for var regions, until region location is fully fixed 2015-09-25 18:38:52 +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 5ca610d56a bug fix, let ubODE see more than one mesh on cast ray 2015-09-24 06:32:40 +01:00
UbitUmarov 759789bc45 change console main help to match master 2015-09-24 02:07:30 +01:00
UbitUmarov 8fde2fb901 slow down terrain sending so other users of LAND queue do have a chance to send things 2015-09-24 00:35:06 +01:00
UbitUmarov e441c9cac1 dont let http keepalive and context reuse be true 2015-09-23 23:59:50 +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 592ba85b0a add Culture.FormatProvider on all casts to LSLString on Vectors and Quaternions. This may need better checking 2015-09-23 17:04:48 +01:00
UbitUmarov 9e183cbd30 fix for future non square regions 2015-09-23 03:31:23 +01:00
UbitUmarov 5f5dbfc264 same for old Ode 2015-09-23 01:50:59 +01:00
UbitUmarov 43ca70655f remove a odd floating offset on physical prims/terrain collisions 2015-09-23 01:42:24 +01:00
UbitUmarov ccfb561e8d change the encapsulation of compressed land patchs in llUDP packets 2015-09-23 00:01:32 +01:00
UbitUmarov 778793d77f fix GetPacketsQueuedCount typos in last commit 2015-09-22 19:24:58 +01:00
UbitUmarov ae70f61a64 let minimum wqburst be a bit larger than MTU 2015-09-22 18:56:03 +01:00
UbitUmarov a8dc07ff5c removed a protocol breaking lludp debug option that no one should try, changed terrain send throotle to be by packets in queue, reduced odds of MTU violation on terrain send (still bad). Most UDP protocol implementations may not mind much, but our code still does 2015-09-22 18:39:59 +01:00
UbitUmarov 032958709b last merging of sog m_linkedAvatars into m_sittingAvatars - untested. 2015-09-21 21:49:51 +01:00
UbitUmarov a6b8cc9887 replace LSL reference to sog GetLinkedAvatars 2015-09-21 21:38:50 +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
UbitUmarov c7b1d52e29 remove duplicated and breaking code 2015-09-21 17:59:44 +01:00
Kevin Cozens b412db72be Fix a regression to GetSittingAvatars(). Return List<ScenePresence> once more. 2015-09-21 11:00:34 -04:00
UbitUmarov a81a1865b5 coment out lludp debug things that only fill up the help screen 2015-09-21 12:13:59 +01:00
UbitUmarov f272a023e2 SQLite db migration update 2015-09-21 12:07:17 +01:00
UbitUmarov 33b4077c2c revert my change to the range of greyscale image maps, setting it back to 0 - 127.5 so not to break loading of old files. There isnt a range that fits all needs anyway 2015-09-21 00:44:53 +01:00
UbitUmarov fe5807cd09 fix terrain save greyscale mapping to 1:1 suporting standard 0-255m range and not only 0-127m. Jpeg format still using a non standard color encoded heightmap 2015-09-20 15:31:38 +01:00
UbitUmarov 56a4b5ba7a put back the hack to make viewers display map tags (now and then at least) that i had removed and do it also on the local region. Make parcel overlay a bit less transparent than i did before. 2015-09-19 21:30:09 +01:00
UbitUmarov ba4d0c1c6f a few more changes to worldMap. Use ExpireCaches, cache remote mapItems requests, etc 2015-09-19 06:42:52 +01:00
UbitUmarov 87ad573ec2 MapBlockFromGridRegion and Map2BlockFromGridRegion are the same thing 2015-09-18 02:00:10 +01:00
UbitUmarov 4798cce390 sync remote responses for mapItens with the local ones, but sending all valid information, so later we can cache/throotle 2015-09-17 21:51:51 +01:00
UbitUmarov ab18c801a9 dont block a region just bc it doesnt have the requested map item 2015-09-17 21:17:04 +01:00
UbitUmarov f4093a04e7 dont create terrain map asset for V1 viewers on large regions again, but do create parcel overlay since current viewers seem to use it (or we are missing something elsewhere) 2015-09-17 21:11:59 +01:00
UbitUmarov 6bca0c9c9c recover bulletS fps math change lost in merge 2015-09-17 08:45:52 +01:00
UbitUmarov 812e808cee remove messages on agents cross fails that got merged 2015-09-17 08:18:35 +01:00
UbitUmarov d767feafa4 generate maptile assets again, v2 do use at least the parcels overlay 2015-09-17 05:24:19 +01:00
UbitUmarov f6c2e6e1a3 merge issues and a few more changes 2015-09-17 05:10:24 +01:00
UbitUmarov 133f3a41eb remove bad merge code.. 2015-09-17 01:43:10 +01:00
UbitUmarov 2f1eab2792 remove bad merge from master 2015-09-16 16:34:16 +01:00
UbitUmarov 9ac01010f4 change point of evocation of AgentHasMovedAway for HG 2015-09-16 04:32:09 +01:00
Kevin Cozens 8c5a2e1e70 Added migration for UserAccounts table. 2015-09-15 21:52:12 -04:00
UbitUmarov 2bd7bbd1cb restore some avn code, fixing for var regions 2015-09-16 02:25:12 +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 19c5f9ce1d fix bad side efects of missing avination optional configuration 2015-09-15 21:33:26 +01:00
UbitUmarov 42954349e4 temporary reduce maxwearables, so teleport testing can be performed before other regions get updated 2015-09-15 16:48:04 +01:00
UbitUmarov 0a67cda224 remove redundant using(){} 2015-09-15 06:28:21 +01:00
UbitUmarov 2d88e4cf73 mute watchdog timeouts on world map work threads. They do wait for events for a long time 2015-09-15 04:56:26 +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
UbitUmarov 6b54c741ca try to add a mysql migration to avn 2015-09-14 03:35:01 +01:00
UbitUmarov ac6625f7b0 update ProtocolVersions 2015-09-14 00:30:14 +01:00
Melanie Thielker 82105ba81d Change the actual versions allowed to connect, which is different from
the interface major version
2015-09-14 01:26:30 +02:00
UbitUmarov 4386ee886d Merge branch 'ubitworkvarnew' of ssh://3dhosting.de/var/git/careminster into ubitworkvarnew 2015-09-14 00:05:25 +01:00
UbitUmarov 154e19b0e7 change interface version to 8, as core 2015-09-14 00:03:43 +01:00
Melanie Thielker 9d1515efdb Make regions tolerant to newer regions with more werables.
Also, bump the interface version to 8
2015-09-14 00:35:31 +02:00
Melanie Thielker f24414c063 Remove the last proprietary copyright headers, insert BSD ones. 2015-09-13 21:03:38 +02:00
UbitUmarov 672f7468f7 change the names also on the assembyInfo files 2015-09-13 00:05:29 +01:00
UbitUmarov 209cb840a2 missing file... 2015-09-12 21:56:07 +01:00
UbitUmarov e9a56d5e19 rename Ubit physics modules 2015-09-12 21:38:26 +01:00
UbitUmarov 064aade4c1 remove a silly and not necessary List i added 2015-09-12 17:20:07 +01:00
UbitUmarov 280780d3bc let regionCache really find a varregion by a position 2015-09-12 15:27:36 +01:00
UbitUmarov dfc142a50f try to be more friendly to HG 2015-09-12 14:37:07 +01:00
UbitUmarov 0eba5d25c3 revert validating Library textures. Those need to be on a grid assets or will not work anyway 2015-09-12 12:51:47 +01:00
UbitUmarov 8e920ac59d try to validate textures from library folder 2015-09-12 07:24:35 +01:00
UbitUmarov 118aff520e try to better merge avn and os fetchinventory and fetchinvdescendents 2015-09-12 06:10:52 +01:00
UbitUmarov 61ad58310b fix the typos that seem to matter so much to some :p 2015-09-12 02:21:27 +01:00
UbitUmarov 8621abf2b7 send a reply on UpdateInventoryItem with the transactionID viewer sent. Protocol seems to have also a callbackID on this, apparently ignored by viewers ( as possible the transactionID ) 2015-09-12 02:05:52 +01:00
UbitUmarov 410ae96d04 put back diva's cache with her recent fix but also avoid duplicated InventoryService.UpdateItem call in case of m_uploadState is complete. In that case CompleteItemUpload will do it 2015-09-11 22:26:05 +01:00
UbitUmarov 08187cb599 inventory mess return to the state before divas cache issue 2015-09-11 20:40:10 +01:00
UbitUmarov af0febf6a7 inventory mess 2015-09-11 19:55:38 +01:00
Diva Canto a6012a3fae Merge branch 'master' of ssh://opensimulator.org/var/git/opensim 2015-09-11 09:49:33 -07:00
Diva Canto 29aaf5564f Mantis #7720: AssetXferUploader was setting AssetID to UUID.Zero. Before that wouldn't matter (item would be a terminal object) but with the introduction of the item cache, it matters, because the object in the cache was being modified to have AssetID=UUID.Zero. Also keeping the item cache consistent when item properties change. 2015-09-11 09:48:51 -07:00
UbitUmarov 7841628313 change to avn fecthinventory and webfecth.. code 2015-09-11 16:25:46 +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 2bd8fb6b5a add a few terminating / in LSLhttp uris as core 2015-09-10 13:17:50 +01:00
UbitUmarov 82785f559e remove a avn thing before it gets into core 2015-09-10 13:00:30 +01:00
UbitUmarov daf8a4d01d fix lost sending of initial terrain to child agents 2015-09-10 01:02:52 +01:00
UbitUmarov b93412972e revert SynchronousRestObjectRequester timeout to miliseconds, and fix where it was wrong set in seconds 2015-09-09 23:17:18 +01:00
UbitUmarov 5e12bc452d minor clean, letting small classes be own module class 2015-09-09 19:03:31 +01:00
UbitUmarov 47aa8107fd let old ode also have a Module class 2015-09-09 18:53:24 +01:00
UbitUmarov e1a8125b4f found core hack to fix modules interdependencies RegionLoaded is not that obvius 2015-09-09 17:55:46 +01:00
UbitUmarov 8571736ff3 split Module from its scene, so if not enabled there is no scene memory allocation. All physics modules need this ( if not others) 2015-09-09 17:15:04 +01:00
UbitUmarov 9a919bac3f demote ConvexDecompositionDotNet to a simple dll, i had made it a region module 2015-09-09 15:07:35 +01:00
UbitUmarov 52fb24ade5 retouch ubitode module 2015-09-09 14:27:21 +01:00
Melanie Thielker e26d0ee40a Make sure the chat module doesn't deactivate just because the section
heading is missing
2015-09-09 05:40:39 +02:00
UbitUmarov ece4088a45 add missing llSetVelocity stub 2015-09-08 21:53:52 +01:00
UbitUmarov 254008cd1f and now.. seems to work.. but does it really work? 2015-09-08 21:41:52 +01:00
UbitUmarov 6dc4c8321d properties folders 2015-09-08 20:44:20 +01:00
UbitUmarov 40fd7cbf74 a mess with Modules and Module 2015-09-08 20:03:54 +01:00
UbitUmarov 339f60e990 more on compile.. 2015-09-08 18:45:53 +01:00
UbitUmarov ecc1969857 more on compile.. 2015-09-08 18:13:15 +01:00
UbitUmarov e8d5f23fc4 opps my files? 2015-09-08 17:34:27 +01:00
UbitUmarov 5c619fe0ab opps my files? 2015-09-08 17:21:45 +01:00
UbitUmarov d2d34a473d rename Ubitode 2015-09-08 17:17:09 +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 971b613d08 fix some compile 2015-09-08 16:47:31 +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 c4c6fcf7ad fix missing proprieties get, etc 2015-09-08 12:43:54 +01:00
UbitUmarov 2a84ef861a improve old ODE prim region borders 2015-09-07 13:27:13 +01:00
UbitUmarov 7276a89ddd recover opensim m_sendTerrainUpdatesByViewDistance. if false do as opensim (slower since it depended on sending terrain as TASK). if true send by view range and also all terrain at arrival 2015-09-07 11:23:00 +01:00
UbitUmarov abd6640453 allocate llRAW LookupHeightTable on demand and release it, saving a few 512KB of memory 2015-09-07 08:06:41 +01:00
UbitUmarov 3a8e76cdd1 restore terrain modifiers, left out earlier bc of merge errors, (untested) 2015-09-07 07:50:51 +01:00
Diva Canto 45046858a1 Typos in comments 2015-09-06 14:57:18 -07:00
UbitUmarov cfcfa8f3d7 add lost admin_reset_land method 2015-09-06 21:46:30 +01:00
UbitUmarov 16025fa34b remove a forgotten cast to int 2015-09-06 20:28:59 +01:00
UbitUmarov af440162f7 minor change, add a lock we had at avn 2015-09-06 20:22:44 +01:00
Diva Canto 82ea4179da Clean up viewer-based access control specifications. 2015-09-06 10:00:20 -07:00
Diva Canto 4f208b6282 Related to previous commits: fixed namespace. 2015-09-06 09:31:35 -07:00
UbitUmarov d9fafd9603 fix the missing initialization of the folish ProcessUnackedSends option 2015-09-06 17:12:31 +01:00
UbitUmarov 3a0137cb45 fix odd drawdistance control initialization 2015-09-06 16:36:30 +01:00
UbitUmarov 93b9a92990 add missing stub for llSetVelocity 2015-09-06 04:55:58 +01:00
Diva Canto f928d41a27 Amend to previous commit: delete the corresponding AssemblyInfo's 2015-09-05 17:40:27 -07:00
Diva Canto 3cf07564b6 Moved the two region loaders into the RegionLoaderPlugin dll, therefore eliminating 2 top-level dlls that didn't make much sense. 2015-09-05 17:37:07 -07:00
UbitUmarov 94d13c6d22 dont store/upload map asset for large regions, ( needs testing) 2015-09-06 01:21:20 +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
Diva Canto 5bfc2743c6 Deleted unused file. 2015-09-05 15:20:32 -07:00
UbitUmarov 4b1ecc90fc fix modifing m_threads on a foreach scanning it 2015-09-05 21:23:22 +01:00
Diva Canto c2346a0823 Changed a couple of comments to be more generic 2015-09-05 10:28:44 -07:00
UbitUmarov 13b1c5dfce let ode suport var size regions
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-09-05 10:17:30 -07:00
Diva Canto 2210c5807f Fixes a problem with Bullet physics when it is configured to run on a separate thread. 2015-09-04 16:33:07 -07:00
Diva Canto d7f22fb2cc POSScene wasn't really a region module. Fixed now. 2015-09-04 15:48:59 -07:00
Diva Canto a32187f53a Moved UserStatistics feature to OptionalModules too. 2015-09-04 15:28:51 -07:00
Diva Canto 49d19e3650 Moved DataSnapshot feature to OptionalModules too. 2015-09-04 15:17:53 -07:00
Diva Canto f9a7099abc Moved RegionCombinerModule to OptionalModules. Removed it as its own top-level project/dll. 2015-09-04 15:12:36 -07: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 9005365115 Deleted old unfinished code under Framework.Communications that wasn't being used anywhere.
Also folded GenericAsyncResult into RestClient, since it is used only there. This is preparation to remove Framework.Communications entirely.
2015-09-04 14:14:53 -07:00
Diva Canto 1559fc42b6 Deleted unused interface 2015-09-04 13:45:52 -07:00
UbitUmarov 1c93be198b comment a large debug message 2015-09-04 19:41:27 +01: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
Diva Canto 9d7e310e21 Deleted commented code 2015-09-04 09:40:21 -07:00
UbitUmarov 9aaaf705f5 actually reduce max number of ode spaces 2015-09-04 16:37:45 +01:00
UbitUmarov ce1c5de793 bug fix on ode spaces and allow more of them on large regions 2015-09-04 15:47:21 +01: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 f0c865555b add a GetTimeStampMS method, this returns a time stamp in miliSeconds with the resolution avaiable for StopWatchs. Value in double since it can be large (as machine uptime in high resolution ticks) 2015-09-04 11:05:15 +01:00
UbitUmarov ac4b2b2f50 normalise physics plugins to return fps as (simulated time / requested simulation time). improved a bit old ode simulations per call math 2015-09-04 09:42:33 +01:00
Diva Canto dac8edd5dd Transformed the LLUDP ad-hoc plugin into a region module. It works. 2015-09-03 15:59:06 -07:00
UbitUmarov 1434cb88fd a bit better addAvatar() call chain 2015-09-03 22:22:59 +01:00
UbitUmarov 2f9a018bc8 make addavatar more friendly between plugins 2015-09-03 22:09:27 +01:00
UbitUmarov 7bfa311e32 fix a old bug i added: MaxWearables can't be changed in runtime 2015-09-03 20:51:30 +01:00
UbitUmarov 5aa7a4fa52 fix CM_api compile error 2015-09-03 20:22:39 +01:00
UbitUmarov db6c4a89a8 minor clean 2015-09-03 20:05:17 +01:00
UbitUmarov b265e35d7c missing file 2015-09-03 18:50:51 +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
Diva Canto 0235e58fff Moved ExtendedPhysics from OptionalModules to Bullet project, because it's very much an optional Bullet feature. This way, Bullet doesn't need to depend on the OptionalModules dll. No changes in configs or behavior. 2015-09-01 09:20:20 -07:00
UbitUmarov 371c9dd2af bad merge? 2015-09-01 14:54:35 +01:00
Diva Canto 9435405ca1 Deleted physics plugin classes.
More unit tests fixed.
2015-08-31 16:23:43 -07:00
Diva Canto 50e7e38f45 Physics refactoring: all unit tests pass. 2015-08-31 15:04:10 -07: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
Diva Canto 134d4300f0 All physics plugins are now region modules. Compiles but doesn't run. 2015-08-31 13:02:51 -07:00
Diva Canto 49ab478d28 Fixed a namespace dependency. Also started preparing prebuild.xml for making physics region modules. 2015-08-31 09:41:00 -07:00
Diva Canto 3741edd1c7 Refactored Meshing modules:
- Moved ZeroMesher from OpenSim.Region.PhysicsModules.SharedBase to OpenSim.Region.PhysicsModules.Meshing
- Created subfolder for all Meshmerizer files, also in the same Meshing dll
- Made them both region modules, with ZeroMesher being the default one
This compiles but doesn't run yet.
2015-08-31 09:21:05 -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
UbitUmarov 0900f9dd7f fix slow moving physical objects moving without sending updates 2015-08-31 13:06:41 +01:00
Diva Canto ce2c67876e More namespace and dll name changes. Still no functional changes. 2015-08-30 21:05:36 -07:00
UbitUmarov c24f3b4f5e minor changes 2015-08-31 04:37:52 +01:00
Diva Canto 2c0cad6dd3 Renamed the namespaces too 2015-08-30 20:29:31 -07:00
Diva Canto 1d6b33bc2d Major renaming of Physics dlls / folders. No functional changes, just renames. 2015-08-30 20:06:53 -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 ecfd442c9b cache in memory water texture 2015-08-30 11:02:59 +01:00
UbitUmarov bd11311845 improve object crossings 2015-08-29 09:18:34 +01:00
UbitUmarov 207dd6da48 fix some effects ranges 2015-08-29 05:28:13 +01:00
UbitUmarov b114a04ed4 fix NeighborRegions code 2015-08-29 03:41:43 +01:00
UbitUmarov f31f9002de change default scopeID to UUID.Zero 2015-08-29 00:32:36 +01:00
UbitUmarov 46054d4f02 review ServiceBase for var 2015-08-28 20:54:59 +01:00
UbitUmarov ee4f61fe34 review llLoginService for var support 2015-08-28 20:49:29 +01:00
UbitUmarov f2259d37e2 review gridservice module. Not merged os code for varsize, since that
should be handle at db level
2015-08-28 20:26:24 +01:00
UbitUmarov 8a8acc41bb stop sending parcel overlays on parcels crossings since SL seems to have
stop sending also
2015-08-28 03:59:25 +01:00
UbitUmarov efc062b0cc send land parcels overlay in cat Land not Task, or avatar freezes 2015-08-28 03:34:28 +01:00
UbitUmarov c967ecf0c7 also limit terrain flood effects ( like on pait change this should have
no visible impact, just cpu saving)
2015-08-28 02:33:54 +01:00
UbitUmarov bd4ec5f26c restrict terrain PaintBrushes to the requested area 2015-08-27 22:36:14 +01:00
UbitUmarov f9efa23d5e remove the rest of #justEditedTerrain, it was sending patchs non
conforming to protocol, and no longer in agreement with how patchs are
 schedule to send
2015-08-27 21:30:51 +01:00
UbitUmarov 195dd054de make terrain undo non op, it is broken and can't be global but per agent 2015-08-27 21:07:16 +01:00
UbitUmarov d1b4e0dd6a fix terrain bake for revert. just good enought fix 2015-08-27 19:20:41 +01:00
UbitUmarov 030c866b34 rename revert map as baked map, bc thats what it is 2015-08-27 15:48:13 +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 c7f148ee64 minor clear. Use isTainted in is read clear form 2015-08-27 14:13:23 +01:00
UbitUmarov c7ddb790a7 change osd encoding of region size 2015-08-27 04:45:16 +01:00
UbitUmarov e2cfc73293 NEVER EVER SEND TERRAIN PATCHS AS UNRELIABLE!!!!!!!!!!!!!!!!!!!!!!!!!!
this costed me hours :P
2015-08-26 15:20:18 +01:00
UbitUmarov ce883e9b43 add more of the v03 checks and homeURL. Sending side only for now 2015-08-26 05:29:08 +01:00
UbitUmarov 73124f22cc change teleport version number to v0.3, without actually adding the checks
for 0.7 sims, etc that we don't have. Also still not using the homeURL
added in core.
2015-08-26 03:21:48 +01:00
UbitUmarov f4f3b18221 fix bug 2015-08-25 20:08:05 +01:00
UbitUmarov 22f573a0be update raw32 file reader to core one. Warning only suports square regions 2015-08-25 20:00:31 +01:00
UbitUmarov ef3deffeeb remove rest of ushort test code 2015-08-25 17:54:49 +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 50d73873db let mysql be happy with a NULL heighmap ( yeap i made several ) 2015-08-25 12:58:24 +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
Robert Adams 9a490ad2b9 Revert "BulletSim: delay adding a scene presence to the list of presences"
Remove these changes until the region crossing problems can be figured out.

This reverts commit 062ec0efbd.
2015-08-24 06:39:06 -07:00
UbitUmarov cbc569a1e0 rename ImapTileModule as IMAPImageUploadModule to match core 2015-08-24 11:06:12 +01:00
UbitUmarov 018d855f28 turn off KeepAlive 2015-08-24 07:38:33 +01:00
Robert Adams 062ec0efbd BulletSim: delay adding a scene presence to the list of presences
until it is fully configured. Another addition to fixing the
collisions stopping problem.
2015-08-23 21:15:04 -07: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
lillith xue 722d00903b Add Culture.FormatProvider to String.Format, like it is done for LSLFloat
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-08-24 01:21:33 +02:00
Melanie Thielker 87247dc2c9 Just replace all m_data accesses with accesses to Data, which is
protected against nullrefs
2015-08-24 00:08:08 +02:00
UbitUmarov c3e5519bf3 fix db region find by range for varregions ( ignoring others than Mysql) 2015-08-23 18:25:15 +01:00
UbitUmarov f4719cfe1b fix db region search by a position, for varregions ( ignoring other that
mysql for now )
2015-08-23 18:10:51 +01:00
UbitUmarov ca53671691 add missing culture format on lslvector toString 2015-08-23 17:31:15 +01:00
Melanie Thielker a9beee7050 Revert "Revert "Fix a possible nullref caused by accessing m_data rather than Data""
Needed after all

This reverts commit 26094c21fe.
2015-08-23 17:48:48 +02:00
Melanie Thielker c4ea4ea000 Fix the nullref in scripts - the right way 2015-08-23 17:36:08 +02:00
Melanie Thielker 26094c21fe Revert "Fix a possible nullref caused by accessing m_data rather than Data"
My bad!

This reverts commit 20326e1947.
2015-08-23 17:34:20 +02:00
UbitUmarov e8a75151fa more on world map 2015-08-23 04:55:18 +01:00
UbitUmarov 7f0201ffca fix region range compare 2015-08-23 04:48:44 +01:00
UbitUmarov 24a093035b more fixes on map 2015-08-23 01:42:51 +01:00
UbitUmarov a916ef570e fix mySQL ( ignoring other dbs ) 2015-08-23 01:33:56 +01: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 5b03a04fb0 fix worldMapModule 2015-08-22 11:56:01 +01:00
UbitUmarov e3d82ad706 delay terrain sending if land queue is 2 busy 2015-08-22 04:08:30 +01:00
UbitUmarov 17082da0da "uglyfy" GetModifiedPatchesInViewDistance. Also make it use camera or
avatar position
2015-08-21 20:19:04 +01:00
UbitUmarov 4bb55cad67 dont use SendTerrainUpdatesByViewDistance option, code executes as true.
the option will have other use
2015-08-21 03:04:52 +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
UbitUmarov 512c892d83 send regions size on map blocks 2015-08-20 20:18:15 +01:00
UbitUmarov 63f13b901a ubitode a bit more friendly for megas (still disabled) 2015-08-20 18:15:58 +01:00
UbitUmarov 379362facf make basic ode work with var regions for contribution back to CORE. ( avn
partial compatibility code needs to be reverted). Cant fully test.
2015-08-20 17:04:37 +01:00
UbitUmarov e312a0bc90 make it compatible with avn, no point making avn compatible with it 2015-08-20 14:18:17 +01:00
UbitUmarov 43a83da5ce update old git to os core version 2015-08-20 13:45:45 +01:00
Melanie Thielker 17e920aacd More plumbing on agent states 2015-08-20 00:40:49 +02: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
Melanie Thielker 35cbe76f27 Merge branch 'master' of opensimulator.org:/var/git/opensim 2015-08-19 23:34:13 +02:00
Melanie Thielker 20326e1947 Fix a possible nullref caused by accessing m_data rather than Data 2015-08-19 23:33:38 +02:00
Melanie 7633ebf36f Add explicit initialization because mono 3 doesn't like what mono 2 allows 2015-08-19 23:18:40 +02:00
Melanie Thielker 662b59af83 Convert the lsl list type into a struct. EXPERIMENTAL! This may affect
the llSetPrimitiveParams family of functions adversely. Please test!
2015-08-19 23:14:11 +02:00
UbitUmarov 9a0040d67c put back entities remove from updates on SendKillObject. 2015-08-19 20:38:49 +01:00
UbitUmarov ac83525bde another funny bug (mine this time) 2015-08-19 19:55:24 +01: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 abeb2ec4b3 ubitode varsize ( Mega disabled till better checks ) 2015-08-19 14:26:14 +01:00
UbitUmarov 2e15ed80cd fixes on warp3D 2015-08-19 12:08:45 +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
UbitUmarov f17b5c5985 Merge branch 'master' into ubitworkmaster 2015-08-19 02:47:14 +01:00
UbitUmarov fd82a0a0b7 add a Retry-After response header to the 503 sent when we are 2 busy to do
the request. just 503 could mean server down (?)
2015-08-19 00:26:43 +01:00
Melanie Thielker 25335b0707 Some unit tests are simply broken and create an API with a null m_item.
This isn't supposed to be done and should be changed in the tests.
For now, add a protective check.
2015-08-19 01:19:25 +02:00
Melanie Thielker 72dba594af Merge branch 'ubitworkmaster' 2015-08-19 01:09:24 +02:00
Melanie Thielker c61aee12d4 Fix adding a scalar to the end of a list 2015-08-19 01:04:10 +02:00
Melanie Thielker 62f3399559 Try to address Mantis #7689. When adding a scalar to a list, make a copy
as is done when adding another list.
2015-08-19 01:00:42 +02:00
UbitUmarov 48ef22f62e change pollService stop() to send 503 error and no keepalive. ( untested ) 2015-08-18 23:59:55 +01:00
UbitUmarov 05d72f77ff do keepalive on mesh and texture GET. Dont use reusecontext any where.
setting of keepalive is wrong, it should follow the requested one ( or
always as http1.1) only deny if needed (errors). KeepAlive may increase
stress on number of avaiable file descritors.
2015-08-18 21:32:03 +01:00
UbitUmarov 2cac56340a try to serialize http requests from same connection, so they are processed
in order. ( next commits will be about necessary keepAlive changes needed)
2015-08-18 21:03:34 +01:00
Melanie Thielker c53f732163 Change the IScriptApi back to it's original form, removing XEngine
specific additions that should not have been there in the first place.
Sleeping and time measurement are now completely internal to XEngine
2015-08-17 21:46:30 +02:00
Melanie Thielker ee7debcca6 Revert "When scripts are sleeping, don't count that as execution time"
The approach is good but the way it is written breaks the architecture.
Rewrite follows.

This reverts commit a568f06b7f.
2015-08-17 18:11:45 +02:00
Melanie Thielker 1de5612d8b Merge branch 'master' of opensimulator.org:/var/git/opensim 2015-08-17 18:08:32 +02:00
Melanie Thielker 664ecb1938 Prevent the spammy "many event" message from appearing in normal use.
Console command debug xengine now turns that on.
Also, per orenh, remove the triggers at 1000 and 10000 as they are not
useful now that top scripts works.
2015-08-17 18:05:39 +02:00
Diva Canto 0cdd1165c8 Minor improvement of previous patch. 2015-08-16 21:23:41 -07:00
Cinder fc6fe75268 MANTIS-7684 - Use the user management module to get username for script dialogs
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-08-16 21:13:42 -07:00
Melanie Thielker ce2aeb8424 Make Setup_XXX=disabled not even load the module at all, rather than
loading and not using it
2015-08-16 19:01:23 +02:00
Melanie Thielker c83da03183 Create want and need lists for agent data interchange formats. 2015-08-16 01:45:15 +02:00
Diva Canto 0f8a7982dc Merge branch 'master' of ssh://opensimulator.org/var/git/opensim 2015-08-15 16:08:42 -07:00
Diva Canto 4cbbbefbf6 Removed ignoreCase=true from the call to Type.GetInterface, because, well, we don't want to ignore case. And this seems to be causing problems in mono 4.3. 2015-08-15 16:08:14 -07: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
Melanie Thielker 1fb2f0296f Track selected objects per client 2015-08-15 02:46:41 +02:00
Drake Arconis 4f3198da22 Only send the requested ObjectPropertiesFamily in the RequestObjectPropertiesFamily reply and not the actual ObjectProperties packet
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-08-15 01:57:25 +02:00
Drake Arconis a5967d918a Send a proper ownerid for Object messages to conform with what viewer expects
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-08-15 01:18:20 +02:00
Melanie Thielker e9067c133c Remove DOS line endings from LSL_API.cs 2015-08-13 01:34:18 +02:00
Diva Canto a22e6cb7f5 Whitespace borkness? 2015-08-12 09:13:45 -07:00
Drake Arconis f25c67ea1d Send correct uuids in the FromID and ID packet fields for llInstantMessage
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-08-12 09:08:01 -07:00
Oren Hurvitz 59da146e9d When the user stops a script, have it remain stopped
Previously the script state was never saved for a !Running script, so upon region restart the script would be Running again.

The use of the 'StayStopped' flag is needed because all scripts are automatically stopped when the region shuts down, but in that case we shouldn't save in their state that they're !Running.
2015-08-11 08:44:27 +01:00
Oren Hurvitz a568f06b7f When scripts are sleeping, don't count that as execution time
Sleeping doesn't use the CPU.
2015-08-11 08:44:27 +01: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 5679cd0100 Changed "Script Execution Time" to be the gross time, i.e. including handling it in XEngine
Previously the "Net Time" was reported: only the time actually spent in the script's code. This is not a correct indication of how much load the script places on the simulator, because scripts that change state often or have many events use up a lot of time just in the event handlers, and previously this time wasn't counted.
2015-08-11 08:42:31 +01:00
Oren Hurvitz a3bed1fbcb Report "Script Execution Time" as the time spent executing the script in the last 30 seconds. Use a sliding window to calculate this.
Notes:
- This metric provides a better indication of which scripts are taking up a lot of CPU (and therefore should be optimized).
- Previously the execution time was reset to 0 in every new measurement period, causing the reported time to fluctuate for no reason. This has been fixed by using a sliding window.
2015-08-11 08:42:26 +01:00
Oren Hurvitz 287096d826 Improved calculation of Script Execution TimeStarted
1. Use a Stopwatch (a high-resolution timer)
2. Whenever we start a new measurement period, zero out the total execution time (previously it just kept accumulating)
3. Changed the measurement period from 30 minutes to 30 seconds. This is much more useful in the "Top Scripts" dialog, as it shows currently active scripts
2015-08-11 07:35:41 +01:00
Oren Hurvitz 20af31f18e Fixed mistakes related to confusion between Environment.TickCount (milliseconds) and TimeSpan.TicksPerXXX (10000 x milliseconds) 2015-08-11 07:35:40 +01:00
Oren Hurvitz 4c6fb9fb64 Log scripts that have processed many events: this is probably an indication of a problem 2015-08-11 07:35:39 +01:00
Oren Hurvitz aadd5627fe Removed unused code that checked wait_timeout in MySQLEstateData 2015-08-11 07:35:39 +01:00
Oren Hurvitz 7457173fe4 Fixed calling "debug xengine log" without the 'level' parameter: this should show the current log level; not crash 2015-08-11 07:35:38 +01:00
Oren Hurvitz c8135834db Prevent a crash if "debug jobengine log" is entered without a log level 2015-08-11 07:35:37 +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
Oren Hurvitz 373455a6fa Fixed mistakes in string format specifiers (e.g., "{0)" instead of {0}") 2015-08-11 06:16:23 +01:00
Robert Adams fe37cb9990 BulletSim: rearrange code and add different locking to eliminate chances
of race conditions and, especially, race conditions when an object is
removed and quickly re-added to a scene.

This hopefully reduces the occurance of problems when avatars TP within
a region -- the main problem being the loss of collisions.
2015-08-09 15:36:50 -07:00
Robert Adams fe86df0ec9 BulletSim: update the motion actors so they completely clean themselves
when Dispose() is called. This reduces chance of object leakage when
    destroying objects.
Rearrange initialization and shut down of BSActorLockAxis so it is
    consistant with other actors.
2015-08-09 15:34:06 -07:00
Kevin Cozens f3c883a26d Corrected spelling of SQLITE. Fixes mantis #7675. 2015-08-08 17:08:06 -04:00
Diva Canto d9a9f6f43b Convert the enum to int before casting it to string for DB query 2015-08-08 13:47:42 -07:00
Diva Canto 2c9ffc2a87 Fixed failing test 2015-08-08 12:56:52 -07: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 2153a01cc7 Have osAvatarName2Key check the cache first, even for foreign users
Another change: removed the second call to userManager.AddUser(). UserManagementModule won't modify an existing record.
2015-08-07 11:34:52 +03:00
Cinder f218cbd29d max-agent-groups support
Robust now tells viewers what the maximum number of groups is. Viewers show this limit to the users, and enforce it.

The default is 42, which is what viewers had assumed was the maximum number before this update.

Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-08-07 07:42:26 +01:00
Robert Adams 5a1279af8a BulletSim: clean up some code for axis locking. No functional change. 2015-08-06 21:48:50 -07:00
Robert Adams f0417c5d50 BulletSim: rearrange code and add some tests to try and resolve the
initialization race conditions reported in Mantis 6792.

When a region is initializing it seems that the prim initialization code
can be interrupted part way through then taints are processed for
prims that are not completely there.
2015-08-06 19:57:32 -07:00
Christopher 86c426e587 create osGetAvatarHomeURI
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-08-04 18:09:13 +02:00
Christopher b5be5ca490 Make osAvatarName2Key() able to get names from unknown HG users
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-08-04 18:08:54 +02:00
Oren Hurvitz c4f8630968 In the AgentCircuitData of HG users, set the last name to include the port
E.g., instead of "first.last @grid.example.com", the name is now "first.last @grid.example.com:8002"
2015-08-03 16:25:45 +03:00
Oren Hurvitz dc098ef671 Merged the two "Version 2" migrations in PGSQL 2015-08-03 15:34:59 +03:00
Geir Nøklebye 818735ae2c PGSL Presence migration to correct a double version 2 migration that existed
The migration file had a version 2 migration defined twice and
therefore the LastSeen field most likely never was defined in the
presence file. This migration adds the field and migrates the table to
version 4.

Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-08-03 13:32:11 +01: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
AliciaRaven ce62824b1f Add HGFSAssetService to the HypergridService to provide HG support for FSAssets. 2015-08-02 20:02:36 +01:00
Christopher bccf785665 osKey2Name returns now correct values for HG users who are not on the region.
Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-08-02 09:17:50 +01:00
Diva Canto c8cd2f18f5 Mantis #7657: similar fixes for FSAssets. 2015-08-01 20:27:04 -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
Diva Canto 32d87aa168 Mantis #7664: Added IHypergridLinker interface to establish a contract about what implementers need to provide publicly. This is used by 3rd-party addons such as Wifi. 2015-08-01 09:30:34 -07:00
Cinder 368ea78d14 Show last online status of group members from the PresenceService in group profiles
Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-07-31 17:19:13 +01:00
Oren Hurvitz 14b4d8bad7 Eliminated several warnings 2015-07-31 18:13:39 +03:00
Oren Hurvitz 149cb8dcbc XMLRPCModule now actually aborts the worker thread when requested 2015-07-31 18:13:23 +03:00
Geir Nøklebye 1de8c3570d PGSQL migrations for IM_Store, UserProfiles, removal of casting exception for UserProfiles and adding double precision to PGSQL Manager
PGSQL migrations for IM_Store, UserProfiles, removal of casting
exception for UserProfiles and adding double precision to PGSQL Manager.

Fixes the Offline IM to Email toggle and prepares for fixing Offline
IM.

Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-07-31 15:57:22 +01:00
Oren Hurvitz e979a7e7f0 Fixed bad log message
This fixes http://opensimulator.org/mantis/view.php?id=7661
2015-07-31 17:55:09 +03:00
Oren Hurvitz 8aa75f225b Fixed bug introduced in 4735514. The project didn't compile. 2015-07-26 14:09:17 +03:00
Geir Nøklebye a7fccbcf6f Update PGSQL groups handler to accept search queries from the viewer
Update PGSQL groups handler to accept search queries from the viewer.
Fixed malformed query strings.

Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-07-26 11:59:15 +01:00
Quill Littlefeather 4735514a88 Fixed not being charged to create classifeids on money enabled regions
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-07-26 02:31:31 +02:00
Oren Hurvitz 83da582261 Removed unused code related to DNS lookups 2015-07-23 14:50:50 +03:00
Melanie Thielker 7342192223 Add quotes aroung LandFlags as PGSQL seems to choke on the word when
it's bare.
2015-07-23 01:59:33 +02:00
Oren Hurvitz 43c8e2396e Added locking to HypergridLinker, to prevent problems if multiple linking requests for the same region are handled simultaneously 2015-07-22 20:39:30 +03:00
Oren Hurvitz 3a2d4c8b05 Added logging in places where regions are searched for by their location
This commit also fixes the log message "Region already exists in coordinates <{0},{1}>": it was actually showing the *requested* coordinates, instead of the coordinates of the previously-existing link.
2015-07-22 20:13:53 +03:00
Robert Adams 8cc7433d68 BulletSim: fix cut-and-paste typo in constraint frame setting.
This code is in the XNA module so it does not affect the normal
Bullet configuration .
2015-07-21 20:11:59 -07:00
AliciaRaven 297d31b1c2 Prevent two maptiles being generated at startup, one for v1 and another for v2-3 service. * v1 Service (WorldMapModule) is called directly by scene on startup. This patch moves the initial map registration of the v2-3 service (MapImageServiceModule) to that point so they can share the bitmap instead of doubling the work of Warp3D and exasperate its memory leak issues.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-07-21 15:11:47 -04:00
Melanie Thielker c7f6e248e8 Correcting errors in previous change: MySQL needs int unsigned, not
unsigned int. PGSQL has no unsigned types, changing to bigint.
2015-07-14 21:22:53 +02:00
Melanie Thielker 7b571a928c Mantis #7629: Change LandFlags column to unsigned. Thanks, Jim! 2015-07-14 21:16:25 +02:00
AliciaRaven 248c0e18de Prevent multiple instances of the FSAssets service causing problems. Protect against secondary instances registering duplicate console commands Also prevents multiple instances each starting a writer thread which will cause major file access exceptions as they fight over the contents of the spool directory.
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-07-13 19:04:33 +02: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
AliciaRaven f3f748ed11 Bringing FSAssets more inline with current OpenSim standards. * If no connection string found in assets config, fallback to using default database config * Create database storage interface to allow other db connectors to be written at some point * Add MySQL migrations file to create the initial db table * Added new config option named DaysBetweenAccessTimeUpdates to reduce db load by only updating access times when fetching assets if the last access time was over the threshold. This idea was taken from XAssets service. * Change log message headers to indicate FS assets is the source not just assets
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2015-07-12 04:03:08 +02:00
Melanie Thielker c59144ff13 More cleanup, add missing refs to prebuild, remove refs to stuff not
used. Will NOT compile.
2015-07-11 19:27:19 +02:00
Melanie Thielker a343c07d12 Some cleanup, add prebuild project, correct path 2015-07-11 19:21:32 +02:00
Melanie Thielker 2672637202 Rename for uniformity, add data module 2015-07-11 19:10:39 +02:00
Melanie Thielker db62e1ac3c Add main FSAssetsService 2015-07-11 19:07:42 +02:00
Melanie Thielker 987e7e4f84 Applying Gavin Hird's patch to correct PGSQL group notices. Thatk you,
Gavin
2015-06-26 19:08:51 +02:00
Robert Adams d750647fb1 BulletSim: fix two compiler warnings.
Mostly code left over from things that are not done that way anymore.
2015-06-25 22:02:12 -07:00
Diva Canto 0e401238e7 Merge branch 'master' of ssh://opensimulator.org/var/git/opensim 2015-06-25 15:02:06 -07:00
Diva Canto c299414d50 Fixed bad-ish code in login patch 2015-06-25 15:01:43 -07:00
Quill Littlefeather 4131fbea0c Changes to Welcome Message sent to clients.
.gitignore                                        |  1 +
 OpenSim/Services/LLLoginService/LLLoginService.cs | 32 +++++++++++++++--------
 1 files changed, 22 insertions(+), 11 deletions(-)

Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-25 14:53:51 -07:00
dahlia 3aa9e786de Thanks Gavin Hird for a fix for Mantis 0007604: DeleteClassifiedRecord exception PGSQL 2015-06-24 04:08:34 -07:00