Commit Graph

3687 Commits (e3ca1130757675c45268ec268026341ee4424b46)

Author SHA1 Message Date
alondria 6ac21141c6 Adds in +, -, and / operators for Rotations (and fixes Mantis 671) 2008-03-21 21:31:18 +00:00
alondria d3515bf22e Woops - forgot to call m_host.AddScriptLPS(1) in llGetObjectDetails.... 2008-03-21 20:20:39 +00:00
Justin Clarke Casey be83ac37f9 * Small adjust to last commit's logging so we only print out one warning when we start dropping requests 2008-03-21 20:19:43 +00:00
alondria 181c5ab7d7 Implements llGetObjectDetails() 2008-03-21 20:04:52 +00:00
Justin Clarke Casey 45ea156804 * If a client session requests the same texture more than n times (currently n=5), we now drop the subsequent requests
* This may improve region memory usage
* This is a short-term response to a problem whereby some clients keep requesting the same texture even after we've sent it
* This treats the symptom rather than the cause.
* n can be adjusted by changing the constant at the top of UserTextureDownloadService if necessary
2008-03-21 19:16:29 +00:00
alondria d76c6ee140 Implements llKey2Name(). 2008-03-21 18:45:09 +00:00
Charles Krinke 1e452dacf4 Comment out an unused 'str' and add a WriteLine to use
an "Exception e" with e.ToString() to eliminate 2 warnings.
2008-03-21 17:06:31 +00:00
Charles Krinke 21e5e65bb7 Comment out "m_randomizeWater" and "ms" until we use them later. 2008-03-21 16:52:55 +00:00
alondria 5c41051fda Implemented llOverMyLand() and correct llGetOwnerKey() to properly return the information for the argument key, opposed to the object the script is in. 2008-03-21 15:34:51 +00:00
Teravus Ovares 0cb05c1952 * Updated ray tracing code. It's now good enough to use when the XYZ vector components of the scale have a difference of less then 4.5 meters.
* When a new prim is created and raytracing is called for, raytrace from the camera position to the ground in the direction of the Norm(RayEnd - RayStart).
* If we got a hit based on our camera, create the new prim at the edge of the prim we hit.
* Don't raytrace if the difference between any component of the vector exceeds 4.5meters.
2008-03-21 05:54:56 +00:00
Adam Frisby 803670e6ea * Removed more encoding faults. 2008-03-21 02:36:34 +00:00
Adam Frisby fd8aa566b5 * Removed a bad encoder. 2008-03-21 02:32:56 +00:00
Adam Frisby 7286bd60b0 * Converted a large number of ASCII encodings to UTF8.
* We should not be using ASCII anywhere except for legacy compatibility reasons.
* A large number of UTF8 Encoders are being used in places where we should be using Util.StringToField instead. These have been tagged with // ENCODING FAULT
* This should fix Mantis#799 - Japanese Profile Text does not work.
2008-03-21 02:26:00 +00:00
Teravus Ovares dc79146d01 * Fix for #499: linked primsets don't rotate properly when using a door script that works OK on SL
* Fix for #693: llSetRot malfunction in linked prims causing instance of invisible prim
2008-03-21 00:52:41 +00:00
Justin Clarke Casey c1beb85315 * First draft resolution of mantis 777, 734, 389 - scripts do not save in non-home regions
* Should work in multi-region standalone and grid modes
* This should also solve other non-home region caps issues (map requests, RC client inventory requests, etc)
* We now pass CAPS information on to the destination region on region crossing, and set up a CAPS object when an agent becomes a master
* Current limitation is that this will only work if your http_listener_port is 9000
* This is a very early code cut (lots of bad practice, hard coding and inefficiency).  However, I wanted to get this out there for feedback and my own sanity.  Next few patches will clean up the mess.
2008-03-20 20:04:45 +00:00
MW f61ea1998e Added back a fix that lbsa71 did aqes ago to fix a buffer overflow in the packetpool, which somewhere through time got lost/reverted 2008-03-20 15:33:08 +00:00
Justin Clarke Casey 20473af892 Another poxy patch which consists mainly of logging changes (some already commented out) to find out what CAPS is doing 2008-03-20 13:03:26 +00:00
Jeff Ames 84289cfb4b Fix server crash when setting prims physical under basic physics. 2008-03-19 19:33:38 +00:00
Justin Clarke Casey 2b78c40d89 * Adding log debugging messages and making others more explicit
* This reveals that the problem with saving scripts in a non-home region in multi-region configurations is due to a CAPS setup issue
* For some reason the client is still using the CAPS on the region it just came from, causing the ScenePresence lookup to fail (since the presence is now, correctly, a child agent).
2008-03-19 19:25:10 +00:00
Teravus Ovares 8d5bcc9da1 * Fix for if 782: Locked prims may still be moved by click+drag.
* Remember, your admin user and estate managers can move locked objects that are not owned by them.  That functionality differs from the Linden way of thinking and it's by design! It is not a bug!  Create a non-god user and use that as your normal account.
2008-03-19 18:32:25 +00:00
Justin Clarke Casey f747687c8f * Patch to add llSetLinkPrimitiveParams stub
* Thanks krtaylor
2008-03-19 17:28:21 +00:00
Jeff Ames 3f2ea4f647 Thanks Ahzzmandius for fix for overflow in user profile About box or First Life About box when using non-ASCII encodings (bug #769). 2008-03-19 15:12:48 +00:00
Justin Clarke Casey 93d05b8b1f * Print a warning every 20 times a client requests a texture that it should already have received
* The warning will be 
[USER TEXTURE DOWNLOAD SERVICE]: Received {0} requests for already dispatched texture {1} from client {2}
This is to see whether the texture packet queue memory leak is caused by clients continually re-requesting textures they should already have
2008-03-19 14:38:58 +00:00
Justin Clarke Casey 16cd6cd82e * Documentation patch from krtaylor. Thanks! 2008-03-19 10:47:40 +00:00
Jeff Ames a0e1be3280 Fixed some comparisons of LLUUIDs to null.
Thanks to DrSchofld for pointing this out.
2008-03-19 09:36:13 +00:00
Justin Clarke Casey d135dad051 * Add a large amount of extra locking to m_parts in SceneObjectGroup
* Should help stop any InvalidOperationExceptions caused by concurrent read/write 
* The extra locking should be okay, but I'm really surprised we've got away without mucho crashes due to this...
2008-03-18 20:42:01 +00:00
Justin Clarke Casey f77ab46184 * Stop (which currently removes) all scripts in an object when that object is deleted from the region 2008-03-18 20:11:35 +00:00
Justin Clarke Casey 78e24380c8 * Stop grid inventory network failures crashing the client session
* Now the operation will just fail and post a message to the log instead, which may be mysterious to the client but isn't so brutal
2008-03-18 19:52:07 +00:00
Justin Clarke Casey 18f9f1410d * Just inserting some exploratory comments into inventory code 2008-03-18 18:19:44 +00:00
Jeff Ames e5b9144282 Formatting cleanup. 2008-03-18 15:30:38 +00:00
Adam Frisby aad69b9018 * Applying Mantis Patch #518.2 - State not persisted in MySQL DataStore 2008-03-18 14:54:44 +00:00
Jeff Ames bf8b5844f2 Formatting cleanup. Minor refactoring. 2008-03-18 14:51:42 +00:00
lbsa71 9c428d9935 * Applied Grumly57 patch for #781; Thanks, Grumly! 2008-03-18 13:39:29 +00:00
Justin Clarke Casey 0b7626b630 * Remove unused (and somewhat nonsensical) method in PhysicsActor
* Thanks for DrScofld for drawing attention to this
2008-03-18 11:37:34 +00:00
Justin Clarke Casey f81c491725 Patch from DrSchofld (IBM). In his own words
structs (such as LLUUID) are considered values by mono. comparing them against null makes no sense and the mono compiler will flag that as evaluating to always false --- except if "cleverly" disguised. the attached patch fixes such an occurrence in  OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs.

[yes, i'm on a crusade against comparing structs against null, go ask jradford from libsl ;-)]
2008-03-18 11:32:44 +00:00
Teravus Ovares 443c66b432 Since we don't yet have a reliable way to release the lock that prevents a user from logging in a second time if they're already registered as logged in;
* If a user logs in and they are noted as agentOnline.  Set agentOnline = false and send a 'you're already logged in' message to the user asking them to wait 5 minutes.  These 5 minutes are not enforced (because there's no foolproof interlock release yet without the grid operator getting a support call for every little sim crash).  When the user gets the message, they can log-in immediately after it, but the user can expect weird results if they don't wait 5 minutes and log-in to the region they were in previously.
2008-03-18 06:03:50 +00:00
Teravus Ovares 42857fe4e9 * Added the ability to type the partial name of a region in the start location box and go to that region if it's there. If no close match was found, it sends you home. This is tested on mySQL. There's untested code on grids that are based on sqlite and MSSQL. The SQL statements *should* be right, but your results may very.
* Ex, if you want to go to Wright Plaza, you simply need to type Wright Plaza in the start location in the client when you log-in.
2008-03-18 05:44:25 +00:00
Jeff Ames 47180080f0 Formatting cleanup. 2008-03-18 05:16:43 +00:00
Jeff Ames 175dc285ff Added copyright messages. Set svn:eol-style. Minor cleanup. 2008-03-18 03:51:59 +00:00
Jeff Ames 9f7639fd6d Formatting cleanup. 2008-03-18 03:41:05 +00:00
Teravus Ovares 4e30f862af Building on Joha's update...
* Server now listens to the client's start location request for 'home' or 'last' and sends the user to the home location or the last location.
2008-03-18 03:09:38 +00:00
Johan Berntsson 040a887b9c Last position will be stored in the DB on logout, and the avatar can continue from the same position in the next login (only with MySQL at the moment) 2008-03-18 01:38:07 +00:00
Justin Clarke Casey bbddc0dbe7 * Move missing texture request forward so that we don't actually ask the AssetCache for it if we know it's missing. 2008-03-17 21:44:54 +00:00
Justin Clarke Casey 872184fa2a * Inserting code to prepare to fix trash emptying and the edit texture inventory (again)
* Can't just do this fix since it stops subfolders working (though it appears subfolder renaming may be fubar at the moment)
2008-03-17 21:34:58 +00:00
Jeff Ames 79209c4297 Merged changes in Prebuild trunk up to r258 into OpenSim's Prebuild.
Hopefully this should make merging upstream easier.
Building with NAnt should still work, but Visual Studio is untested.
2008-03-17 20:55:21 +00:00
Justin Clarke Casey 9122762dc8 * More almost completely unproductive log message fiddling 2008-03-17 19:13:15 +00:00
Justin Clarke Casey 37c32e1154 * Make it more obvious if local user services are being used
* Tell the log whether the sim is started in standalone or grid mode
2008-03-17 19:08:23 +00:00
Justin Clarke Casey d137d4b907 * DEV: Remove client's CAPS handlers object when they log out 2008-03-17 18:16:36 +00:00
Jeff Ames a8aeec29da Fix a few mono compiler warnings. Minor cleanup. 2008-03-17 17:39:42 +00:00
Justin Clarke Casey cd1978b424 * Reduce the annoyingness of clients that continually request unfound textures (probably for some good reason) by dropping all subsequent requests after the first reply.
* Print out a console message every 20 tries rather than every single one.
* This weakens the problem but does not eliminate it
2008-03-17 17:30:01 +00:00