Commit Graph

5651 Commits (691c4bc756b9565e648ff8ad88cfbfabd1b0be76)

Author SHA1 Message Date
Charles Krinke d3bb8e42a6 Mantis#2289. Thank you kindly, SMeans for a patch that:
Corrects the spurious reference to MySQL namespace in
GridManager.cs.
2008-09-28 17:17:14 +00:00
Charles Krinke ee9033e2c7 Mantis#2288. Thank you kindly, SMeans, for a patch that:
Corrects the typo of namespace Opensim.Framework to 
OpenSim.Framework in Cache.cs.
2008-09-28 17:11:10 +00:00
Homer Horwitz 1cc927ad97 - Further cleanups
- Added TeleportFinish event to the event-queue. It works better than
  before (you can teleport), but it doesn't work quite right yet (you
  start TPing after the TP again).
  Beware: Still experimental and non-working.
2008-09-28 14:19:26 +00:00
Homer Horwitz 4452121227 Refactor to avoid some duplicate code. 2008-09-28 12:44:49 +00:00
Jeff Ames 0b4415849a Update svn properties. Minor formatting cleanup. Fix a compiler warning. Fix a UUID vs null comparison. 2008-09-28 03:21:11 +00:00
Teravus Ovares e78cdd9690 eol-style native; on EventQueueHelper 2008-09-28 02:59:42 +00:00
Teravus Ovares 25a998feb4 * okay.. Now you can do border crossings with the security 'fixed' client.. with EventQueue enabled.
* You occasionally loose the event queue if you cross back and forth between the same regions many multiples of times. 
* But Don't try to teleport!
2008-09-28 02:57:53 +00:00
Charles Krinke 6a863311f7 Mantis#2287. Thank you kindly, Idb for a patch that solves:
The current llGetLinkName returns an empty string if a prim 
with the given link number is not found in the link set. In 
SL an empty string is only returned if the prim name is actually 
blank, a NULL_KEY is returned instead with a couple of exceptions.
2008-09-28 01:12:57 +00:00
Teravus Ovares 4f0c759fb0 * With EventQueueGet enabled.. we can see into neighbor regions again on the Security 'fixed' client.. But don't try to cross yet! 2008-09-27 23:54:08 +00:00
Teravus Ovares 21bf26e9b4 * Adds flag to enable/disable EventQueueGet.
* If EventQueueGet is enabled, use that instead of a few UDP packets, if it's disabled use the UDP packets like normal.
* We *really* suggest users do not turn on EventQueueGet yet..  as it's highly experimental, broken, and resource intensive
* Updated OpenSim.ini.example
* Testers of EventQueueGet..   in OpenSim.ini, it's in the [Startup] Section..   change EventQueue = false, to EventQueue = true.
2008-09-27 23:06:28 +00:00
Teravus Ovares 07b32c9320 * Replace a generic error handler. 2008-09-27 22:06:51 +00:00
Teravus Ovares 98632ee594 * Event queue is now polling..
* returns FAKEEVENT instead of the connection returning a 502.   It doesn't like our 502's for some reason..  so, in leau of this..    send it a fake event.
* Once again, this is still 'really early' code, so please don't blame us if you have no more threads left.
2008-09-27 22:05:36 +00:00
Homer Horwitz 0e10c85617 Continue working on the new EventQueueGetModule. Not finished (or even working)
yet. This shouldn't break anything, but is work in progress, so be careful.
Contains a new file; do your runprebuilds.
2008-09-27 18:33:54 +00:00
Homer Horwitz 358bc41b03 - adding Dequeue with a timeout to the BlockingQueue 2008-09-27 18:29:17 +00:00
Melanie Thielker c0b60bb8cf Stop DNE saying "Loading script" when it's actually unloading. 2008-09-27 14:19:03 +00:00
Teravus Ovares 85b280385f * This is the very very early beginnings of an EventQueue:get module.
* This won't function yet as far as the client can tell..  because it doesn't respond to the first query with a 200 message.   
* We have to figure out how to encode those binary values in the example code in the module...  
* Committing this so we have a start point.  Will continue to work on this more today.
2008-09-27 09:42:31 +00:00
Melanie Thielker 1f8888a287 Update unit tests 2008-09-27 05:58:52 +00:00
Melanie Thielker 85068dae60 Add friendly error messages to both engines. 2008-09-27 05:31:43 +00:00
Melanie Thielker ec16750a87 Mantis #2277
Patch up a type name change in libomv. Thanks for tracking that down, idb
2008-09-26 23:38:59 +00:00
Melanie Thielker 5a9bb2eafb And actually do what I intended to do with the last commit. Message is gone. 2008-09-26 20:44:41 +00:00
Melanie Thielker b416422349 Kill "Compile successful" message when rezzing prims/wearing attachments
Changes behavior to send on_rez event to prims when rezzed from agent
inventory.
2008-09-26 20:18:31 +00:00
Melanie Thielker 415520cea6 Fix listeners in multi-region instances 2008-09-26 20:12:11 +00:00
Melanie Thielker 54ef88c12c Thank you, idb, for a patch that implements the stubs for llGetAgentLanguage() 2008-09-26 18:40:16 +00:00
Melanie Thielker 698ecec6f7 Remove another interface that is no longer needed 2008-09-26 18:37:53 +00:00
Melanie Thielker 4a69791875 Add "Notecard saved" message to saves of notecards into prims 2008-09-26 18:16:13 +00:00
Melanie Thielker e5db6a75d0 Finishing the code cleanup in DNE, make llDie work again in DNE.
Add some compile messages from XEngine into DNE as well.
2008-09-26 17:59:36 +00:00
Teravus Ovares 16b6738cda * Patch from JHurliman
* Updates to libomv r2243, 
* Remove lots of unnecessary typecasts
* Improves SendWindData()
Thanks jhurliman. 
* Will update OpenSim-libs in 10 minutes..
2008-09-26 17:25:22 +00:00
Melanie Thielker 34cfd710ce DNE code cleanups 2008-09-26 17:01:33 +00:00
Melanie Thielker e8d1235e91 Adds support for the "Running" checkbox and the "Reset" button, as well as
ResetScripts In Selection, Set Script to [not] Running In Selection from
the tools menu. Allows DNE script reset without a full recompile.
2008-09-26 16:37:29 +00:00
Melanie Thielker 6e9d7484d0 Pluggable API module (XEngine style) support for DNE 2008-09-26 16:19:50 +00:00
Melanie Thielker d8c470343e Compiler Connection! One world, one compiler! 2008-09-26 16:11:53 +00:00
Melanie Thielker 0313a1d439 After the last commit, the old Common assembly was still being loaded.
Removing it made DNE scripts crash. Fixed here.
Now on to converge the compilers.
2008-09-26 15:44:14 +00:00
Melanie Thielker 12a6b7c835 Yay! Common/ is gone! One API is achieved! 2008-09-26 15:34:23 +00:00
Justin Clarke Casey 055ea73b57 * minor: fix lolbug in RestInventoryService spotted by jhurliman 2008-09-26 15:29:30 +00:00
Justin Clarke Casey 97323345ee * minor: remove warnings 2008-09-26 15:28:14 +00:00
Justin Clarke Casey 4b78aa50e6 * Apply http://opensimulator.org/mantis/view.php?id=2274
* Reapply homer's click action implementation, which accidentally got blatted
* Thanks tyre
2008-09-26 15:18:22 +00:00
Justin Clarke Casey 1278563482 * refactor: do a tiny bit of cleanup 2008-09-26 15:15:19 +00:00
Melanie Thielker 24628928c3 Add per-instance date to DNE to avoid serializing stuff 10 times a second.
Clode cleanup and removal of commented stuff in ScriptManager.
2008-09-26 15:01:03 +00:00
Justin Clarke Casey 77eac708fa * refactor: split out AssetXferUploader 2008-09-26 15:01:01 +00:00
Justin Clarke Casey 1f53099136 * refactor: split out AgentAssetTransactionsManager 2008-09-26 14:41:57 +00:00
Justin Clarke Casey 7ee1f3dff6 * Implment task inventory item asset update for the old non CAPS transaction system
* This means that saving notecards in prim inventories should now work.
* Not the nicest code in the world - the transactions system is pretty fugly right now
* PLEASE NOTE: Currently, the prim will not repersist until up to 15 seconds after it is unselected.
* What we really need is a proper mechanism so that any prim updates still waiting when the simulator is quit are performed before exit.
2008-09-26 14:28:24 +00:00
Melanie Thielker 9c26c8c8da And another file 2008-09-26 13:46:46 +00:00
Melanie Thielker b2d60ef91d Pushing the missing file 2008-09-26 13:41:20 +00:00
Melanie Thielker 824283ca3c Remove all the subclassing complexity and script server interfaces from
DNE and move all of DNE into the DotNetEngine directory. Remove references
that would cause the script runtime to load the entire engine + scene into
each script appdomain. This might help DNE memory consumption.
2008-09-26 13:16:11 +00:00
Teravus Ovares 6b13730bc7 * Wind updates. Still random.. but in 4 directions instead of two!
* It seems kind of silly to be building a 256x256 array just to use two 16 float blocks..  but for now the layerdata routine requires it so we'll go along with that.
* We only fill a 32x16 area of the 256x256 float array with data.
* We use patches 0,0 and 0,1 for the first and second patch to determine the direction and magnitude of the wind.
2008-09-26 12:56:17 +00:00
Melanie Thielker 92ebbd1420 Remove interfaces that are no longer used from DNE 2008-09-26 12:04:16 +00:00
Melanie Thielker b65d2139c8 Bringing the OSSLPrim back. Prim.Rotation, etc, will now work again.
As a bonus, the OSSLPrim has now come to XEngine, too!
2008-09-26 03:04:36 +00:00
Melanie Thielker c21a8b9969 Full API convergence. Api is back in LSL_Api.cs and OSSL_Api.cs.
The binaries are still different, but that is only a small step away now.
The OSSLPrim has been removed. This commit will breal all scripts
using Prim.Scale(), etc, syntax. It was not secure and will have to
be brought back in another form.
2008-09-26 02:51:00 +00:00
Charles Krinke 33add28b51 Mantis#2265. Thank you kindly, Idb for a patch that:
Implements the LSL function llGetAttached().
2008-09-26 01:49:06 +00:00
Homer Horwitz 91e0369f83 Implement LSL-function llSetClickAction. 2008-09-25 20:37:56 +00:00
Melanie Thielker c713dcbada Some script engine interface changes 2008-09-25 20:04:59 +00:00
Homer Horwitz 0e6237739a Implement LSL-function llGetRegionAgentCount. 2008-09-25 19:02:14 +00:00
Melanie Thielker f926d917cb Fix script engine name parsing for DotNetEngine to make that actually work
Add a reference for Windows builds
2008-09-25 17:54:44 +00:00
Melanie Thielker f11107821e Add an extension to allow registering multiple interfaces of a type with
Scene. Make the script engines check that the engine name in the
//Engine:language comment is a valid engine and treat it as a normal
comment if it's not.
//DotNetEngine: needs to be written as //ScriptEngine.DotNetEngine: now, since
that is it's real internal name. //XEngine: still works
2008-09-25 17:26:32 +00:00
Charles Krinke 339671afc6 Mantis#2017. Thank you kindly, Tyre, for a patch that solves:
Check the client dialog box (from top menu) WORLD / REGION ESTATE 
/ REGION tab. The client dialog box seems to have a hard limit of 
about 32 characters per line available for displaying the region 
version number. Our regions are sending a string which is greater 
than the limit, causing the client to wrap the text and look ugly.
2008-09-25 14:57:40 +00:00
Melanie Thielker f6650d33cc Fixes an exception that is seen on regions running XEngine, where DNE
tries to stop a script that is not run by it
2008-09-25 14:20:31 +00:00
Teravus Ovares 4004172106 * Adds some Wind
* A little wind wouldn't hurt anyone, right?    This is the 'slightly breezy' setting..    hopefully you won't notice 'much' of a difference.
* It turns out the terrain patch routine is similar enough to the wind version that it can be used to hack together a breeze generator with a few mods.
* Not much configuration..   yet.  You only get breeze updates in the general vicinity of your camera now to keep bandwidth usage down.. and we're not talking about 'much' movement at the moment.
* initial version...      could use improvement I'm sure.
2008-09-25 11:46:05 +00:00
Dr Scofield b0192ea139 fixes a slight copy and paste bug in OGP module. 2008-09-25 11:04:52 +00:00
Dr Scofield 60618c1895 temporarily disabling HttpServer related stuff (take #2: Exclude takes
regex not shell glob)
2008-09-25 09:20:01 +00:00
Teravus Ovares 17be1b736d * In Standalone, add a persistant account for the OGP user.
* Gridmode, this has no effect at all.
2008-09-25 08:42:48 +00:00
Melanie Thielker a3fcaef890 CONVERGENCE!!!!!!
The entire LSL API is now in the single, shared file
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs
This is for both engines. The OSSL function are still separate.
2008-09-25 06:04:47 +00:00
Melanie Thielker f3c8963c86 Convergence is almost complete. This brings the diff between the API to < 10k
and makes it use a common set of types in both engine. Fixes the issues with
running both engines and HTTP requests / listens / timers etc..
Also fixes a couple of minor Scene issues and a CTB by nullref.
2008-09-25 05:13:44 +00:00
Charles Krinke 5edaddce6d Mantis#2123. Thank you kindly, Idb for a patch that solves:
Under both DotNetEngine and XEngine, if an agent's UUID 
is passed as the parameter to llGetObjectMass(), 
it throws an exception.
2008-09-25 03:58:03 +00:00
Teravus Ovares 031eb08b8e * Remove a message handler
* Add a more specific error handler for when we're unable to pull the OGP state
* rez_avatar/derez ?
2008-09-25 02:39:53 +00:00
Sean Dague 7117f8b680 removal of more dead alter table code 2008-09-25 00:20:57 +00:00
Melanie Thielker 9131ba23e1 Add a module selection option for the MapImage Module as well 2008-09-24 22:24:10 +00:00
Melanie Thielker 1d7095fbce Correct a capitalization error 2008-09-24 22:07:55 +00:00
Melanie Thielker c009da3508 Add WorldMapModule = "name" to OpenSim.ini. Default is "WorldMap". 2008-09-24 21:48:55 +00:00
Sean Dague c3f66be405 light mysql user tests 2008-09-24 21:17:00 +00:00
Sean Dague 2ef1b194fd expose it for real, missed the public keyword 2008-09-24 21:16:58 +00:00
Sean Dague b4f204e526 expose MySQLUserData class so that it can be tested 2008-09-24 21:16:56 +00:00
Sean Dague dabb311711 remove configurable table names from the mysql user driver. That
doesn't work in a world of migrations anyway, and is only cruft that
will confuse people.
2008-09-24 21:16:47 +00:00
Homer Horwitz fe9aea258f Add persistence of active gestures. This needs an UGAIM update to work.
Active gestures are sent as part of the login-response. Added
fetchActiveGestures to SQLite and MySQL; added an empty one for MSSQL and
NHibernate. Using the empty ones won't cause errors, but doesn't provide
persistence either, of course.
2008-09-24 21:12:21 +00:00
Sean Dague cffb975dd9 light the mysql region tests 2008-09-24 21:03:11 +00:00
Sean Dague 6392671335 let the asset tests run on MySQL. Interesting difference here, the
sqlite driver can handle .Data = Null, the mysql driver can not.  We
should decide which is the right behavior and adjust code for it.
2008-09-24 20:43:32 +00:00
Sean Dague 70d6cb8570 remove a bunch of out of date inline ALTER table commands that would only
confuse people.
2008-09-24 20:43:27 +00:00
Melanie Thielker fb7a29a5ef Rename lots of stuff in DNE to reduce source code differences in the
LSL implementation files. Rename lots of stuff in XEngine for the same
reason. Move methods between interfaces. Just refactor stuff.
2008-09-24 13:18:06 +00:00
Dr Scofield 5787480655 From: alan webb (alan_webb@us.ibm.com)
cleanups.
2008-09-24 12:04:58 +00:00
Dr Scofield 201805172f cleanups, fixing REST appearance services. 2008-09-24 11:39:08 +00:00
Melanie Thielker a042302100 Mantis #2250
Make ambiguous implicit conversion from LSLInteger to uint explicit
2008-09-24 11:16:53 +00:00
Melanie Thielker 218902bedc Decouple AsyncCommands from XEngine and the script instance. Make
all methods needed outside the API ststic. Async command processing
is now wholly internal to the API. This sets the stage for the next
convergence step.
2008-09-24 02:58:05 +00:00
Jeff Ames 3f79e6b3e7 Update svn properties, formatting cleanup. 2008-09-23 23:14:00 +00:00
Sean Dague 1aab81e235 couple of minor test cleanups to see if this gets us past the bamboo hump 2008-09-23 21:56:38 +00:00
Teravus Ovares ab4e48e57d leyla found a capitalization error in one of the OGP messages. Thanks leyla! 2008-09-23 21:24:38 +00:00
Melanie Thielker 48da2c24a2 Add the missing file 2008-09-23 21:23:23 +00:00
Sean Dague a70efd1fdf create the first attempted mysql test. This only runs locally if you
have a database configured as opensim-nunit with user opensim-nunit /
password opensim-nunit that has full perms on the database.
2008-09-23 21:03:03 +00:00
Melanie Thielker bbb962f64e Refactor BuiltIn_Commands_BaseClass to ScriptBaseClass to ease the later
code merging and transition to Shared/
2008-09-23 20:20:40 +00:00
Melanie Thielker 1e7a820bd1 Remove some debug output 2008-09-23 20:04:03 +00:00
Melanie Thielker 88277366bf Switches the direct event postings in the API file over to the Shared/
new style of parameter passing, using the IEventReceiver interface.
2008-09-23 20:02:32 +00:00
Teravus Ovares 0651efaafa * OGP GET, look for Accept header application/llsd+xml with an optional ?q= 2008-09-23 19:28:24 +00:00
Teravus Ovares 480377e853 * Fix a null reference exception that I introduced 2008-09-23 19:16:02 +00:00
Sean Dague 9a17d2b1fd remove log4net references, see if that helps fix bamboo 2008-09-23 19:11:06 +00:00
Teravus Ovares 439dd6cf8f * Get Requests for OGP don't have a Content-type: application/llsd+xml, they have an Accept: application/llsd+xml. 2008-09-23 18:41:26 +00:00
Sean Dague 908f1bcbe2 check in stubbing for mysql tests. This is ignored with
Assert.Ignore() for now, so it won't change anything, but
I want to make sure it doesn't break the bamboo infrastructure
in it's current state.
2008-09-23 18:38:25 +00:00
Melanie Thielker 6425680cff Add IEventReceiver to DNE - a consolidation series patch 2008-09-23 17:33:00 +00:00
Melanie Thielker 420a645036 Remove Common/LSL_Types.cs. Both script engines now use a single version
of the types, located in OpenSim/Region/ScriptEngines/Shared/LSL_Tyoes.cs
Also changes the compiler in DotNetEngine to use that. You _will_ need to
let your region recompile all your scripts!
2008-09-23 15:14:15 +00:00
Dr Scofield 29950ba419 this add POST support for asset services (howto forthcoming) and fixes
a couple of minor bugs.
2008-09-23 15:07:20 +00:00
Melanie Thielker 8ac4437d9a Add constants wrapping code from XEngine to DNE. This syncs up the parsers
between the engines again. Also, committed r60 in opensim libs with the
parser source changes.
2008-09-23 14:17:32 +00:00
Melanie Thielker d95794d05c Refactor XEngine parser as per suggestions from mikem 2008-09-23 13:28:17 +00:00
Melanie Thielker aef2afd3be Add file missed in last commit (which never completed) 2008-09-23 12:49:31 +00:00
Melanie Thielker dffa6567e8 Alter tests to match up with the results after tyre's patch 2008-09-23 12:17:21 +00:00
Melanie Thielker 44e566260c Mantis #2243
Thank you, tyre, for a patch that refactors LSL to use a unified set of
method signatures and type names, reorders methods and removes unused
and adds new method stubs.
2008-09-23 11:41:34 +00:00
Melanie Thielker 525f66b6f1 Small fix to eliminate a beauty spot 2008-09-23 03:49:07 +00:00
Melanie Thielker 70d264ee6c Update the permissions system to handle scripts and notecards the way
it was meant to. No functional changes, just better code
2008-09-23 03:36:16 +00:00
Teravus Ovares 611ffa3f60 * Update in OGP draft 3 protocol spec with regards to seed region requests running over GET instead of POST and the rez_avatar/request cap being wrapped in the capabilities map. 2008-09-23 01:54:04 +00:00
Melanie Thielker 48672c7fd6 Move script and notecard open perms checks from ClientView to the
perms module
2008-09-22 22:33:00 +00:00
Justin Clarke Casey 878166622b * Remove some old libsecondlife workarounds as suggested by jhurliman in http://opensimulator.org/mantis/view.php?id=2236 2008-09-22 20:16:11 +00:00
Justin Clarke Casey 8e00e933a4 * Apply http://opensimulator.org/mantis/view.php?id=2234
* Exceptions can thrown by llGetOwnerKey() 
* Thanks idb
2008-09-22 20:09:06 +00:00
Melanie Thielker c64551710e Remove the ugly-as-sin "interop" hack script perms fudging in
object inventory
2008-09-22 14:03:42 +00:00
Melanie Thielker a882fddb07 Remove comment in perms module after consulting with awebb 2008-09-22 14:01:41 +00:00
Melanie Thielker 908a1932a8 Fix a small logic error in my perms module changes 2008-09-22 13:03:54 +00:00
Melanie Thielker d7a98925ce Create CanEditObjectInventory to preserve the ability
to have different permissions on inventory and object
edits. This may be needed by the viewer on public grids
2008-09-22 12:52:56 +00:00
Dr Scofield 7def786ef4 cleanups in inventory REST code. also, disables digest authentications
for inventory REST calls for the time being, as firefox, curl, and
also python's urllib2 cannot authenticate using digest auth.

fix permission checking for prim inventory to be the same as for
normal edit ops.
2008-09-22 11:20:09 +00:00
Melanie Thielker b8a39a4dde Remove the script engine identifier tag, so the compiler just sees
the language specifier. Makes language specifiers work again with
script engine specifiers.
2008-09-22 11:18:49 +00:00
Dahlia Trimble 232aa783ad Disabled use of ODE internal geometry to see if it affects the "waves finger" error 2008-09-22 02:33:48 +00:00
Melanie Thielker 79ac01fb0c Prevent scripts from running under multiple engines at once 2008-09-22 02:11:40 +00:00
Melanie Thielker 1602ba6175 Allows to use the new script engine feature. Begin your script with
//XEngine: or //DotNetEnine: , optionally followed by a language
like //XEngine:lsl, and it will be run on the chosen engine.
2008-09-21 22:16:17 +00:00
Melanie Thielker 94aaf67dfa Change the scirpt engine loading mechanism. Script engines are now
ordinary region modules and are able to coexist in one instance.
See http://opensimulator.org/wiki/ScriptEngines for details. There were
changes to OpenSim.ini.example, please note DefaultScriptEngine.
Also see the User docs and FAQ on the Wiki. Default is DotNetEngine.
2008-09-21 21:47:00 +00:00
Justin Clarke Casey 451bd5a0ca * minor: warnings removal 2008-09-21 20:56:39 +00:00
Charles Krinke 37da083de5 Mantis#2233. Thank you kindly, Idb, for a patch that solves:
The constants for llGetParcelDetails were missing 
for DotNetEngine and XEngine.
2008-09-21 20:51:55 +00:00
Justin Clarke Casey 3782d6aab7 * minor: Remove some of the redundant asset id storage for now 2008-09-21 20:44:54 +00:00
Justin Clarke Casey 8fb3523ef7 * Start recording asset request times after a cache miss. This is very primtive at the moment - only the last time is kept for some classes of request
* This can be seen as "Latest asset request time after cache miss" in show stats on the region console
2008-09-21 20:29:06 +00:00
Justin Clarke Casey 70e8097e31 * Eliminate the need to copy asset request lists in the asset cache when an asset is received or missing
* Also eliminates a race condition
2008-09-21 18:53:58 +00:00
Justin Clarke Casey 52f0c8d15d * minor: tidy up of AssetCache, remove currently pointless storing of thread reference 2008-09-21 17:49:52 +00:00
Homer Horwitz 0f020a7cd2 Fix another reason for #2218 2008-09-21 17:01:58 +00:00
Justin Clarke Casey 1a71a3a567 * Fix http://opensimulator.org/mantis/view.php?id=2189
* Allow a grid mode region simulator to properly shutdown even if the grid service is offline
2008-09-21 16:58:14 +00:00
Homer Horwitz f6071c030d Don't attach attachements to child agents. This coincidentially fixes a race
condition that was the reason for mantis #2218.
2008-09-21 16:07:41 +00:00
Melanie Thielker 83b030229e Mantis #2232
Thank you, idb, for a patch that fixes an overflow issue in casting
string -> int for both engines, and adds tests!
2008-09-21 15:54:58 +00:00
Homer Horwitz 0105171fc4 The viewer only stores a screenshot on "Set home to here" if the alert that
follows show the text "Home position set.". Changed the message accordingly.
2008-09-21 13:31:30 +00:00
Melanie Thielker 8407d7fbd2 Mantis #2230
The result of constants arithmetic can be a CLI type. This allows floating
point CLI types to be parsed out of lists properly.
2008-09-21 12:18:30 +00:00
Tedd Hansen 4ce0e6d822 bugfix for shutdown 2008-09-21 09:04:39 +00:00
Dahlia Trimble 52af9b3fd7 ODE was using a box collision shape for some spheres - changed those cases to now use a mesh instead. 2008-09-21 08:12:52 +00:00
Melanie Thielker 85586bb7b2 Change XEngine startup to enable it to run as a normal region module
rather than a special one
2008-09-21 02:52:12 +00:00
Jeff Ames c8349e21c4 Update svn properties, minor formatting cleanup. 2008-09-21 02:41:22 +00:00
Melanie Thielker b597cbf39d Fix an exception in new ScriptEngine loader where a region would
throw on quit if there was no script engine loaded by the loader
2008-09-21 02:26:08 +00:00
Tedd Hansen ec494275a2 More locks, try's and disable some things in SEC - maybe it won't crash now. :) 2008-09-21 01:09:54 +00:00
Tedd Hansen 9c8aeff27c Some error handling to avoid errors in SEC 2008-09-21 00:42:27 +00:00
Melanie Thielker 70be30fbaa Completely revert the notecard uploading changes I made, since they
appear to break script saves in prims for some.
2008-09-21 00:05:33 +00:00
Tedd Hansen 752d3f3879 EXPERIMENTAL: Early commit of new Script Engine Component System 2008-09-21 00:03:13 +00:00
Melanie Thielker a8785f5b2c And re-reverse the names from last commit 2008-09-20 22:11:53 +00:00
Melanie Thielker e4bead4edc Remove CAPS notecard updating, as LL isn't supporting it and the viewer
is not playing nice
2008-09-20 22:04:59 +00:00
Melanie Thielker 82d79e3b0b Partially implement notecard saves in task inventory. Still makes the
notecard go read-only, but changes are saved.
2008-09-20 20:56:39 +00:00
Melanie Thielker 5557fb9dd2 XEngine: Fix loading lists from saved state 2008-09-20 20:07:10 +00:00
Justin Clarke Casey 41728f8a33 * Tidy up OGS1GridServices
* Remove what should be unnecessary RemoteException catches when executing local backend calls
2008-09-20 19:55:49 +00:00
Justin Clarke Casey 23ea8f5221 * refactor: remove unnecessary packet null check in LLClientView
* if a packet was really null it would be caught by the general exception handler at the top of the client thread, which would also provide more information and attempt a clean 
shutdown
2008-09-20 19:05:00 +00:00
Melanie Thielker e7064c0b19 Fix up some ScriptBase details 2008-09-20 18:17:04 +00:00
Homer Horwitz f352d6ed9b - Consistency fix: Like llGetNumberOfNotecardLines, llGetNotecardLine returns NULL_KEY on error now
- Conformance fix: If the notecard can't be found, shout on DEBUG_CHANNEL as the docs state
- Bug fix: Don't let llGetNotecardLine throw an exception on freshly created notecards
2008-09-20 17:32:58 +00:00
Teravus Ovares 42f04233a4 * Fix build error, (maybe)
* Might break something..     hard to say..      0.o
2008-09-20 17:17:41 +00:00
Melanie Thielker 5a1be7835c XEngine: Fix llGetListEntryType to return the correct type for the LSL types.
Change serialization to omit types it can't deal with.
2008-09-20 16:24:36 +00:00
Melanie Thielker f8f1bc6199 Add <expire> tag to data snapshot to give the search server an idea
of when to query this node again
2008-09-20 16:15:10 +00:00
Homer Horwitz 4d8544dada Fix Mantis #2215: llGetNotecardLine() not detecting EOF under DNE 2008-09-20 14:46:09 +00:00
Sean Dague 6a691df1a6 remove some extraneous debug messages from migrations 2008-09-20 12:44:39 +00:00
Teravus Ovares 12946e3327 * One more tweak in the OGP module to support OGP draft3.
* Recognize the proper cap message for rez_avatar/rez in the response cap.
2008-09-19 23:59:49 +00:00
Teravus Ovares 293a822f74 * Implements an experimental method to define which region you want to go to in your 'region domain' in OGP. 2008-09-19 21:37:49 +00:00
Homer Horwitz 025441d722 Small formatting cleanup, before chi11ken notices. Me bad. 2008-09-19 21:32:41 +00:00
Sean Dague 6dd2841ed8 add in bits to attempt to enable log4net on these tests to help when debugging 2008-09-19 20:53:42 +00:00
Justin Clarke Casey 7eb3b5a578 * minor: eliminate the current warnings
* you'd think from all this that I was one of those fanatically tidy people.  I can assure you from looking around my bedroom/study that this is not the case :)
2008-09-19 20:39:30 +00:00
Justin Clarke Casey e518fe5d34 * Enables logins to regions on a grid once they have finished starting up (this does not include script startup). 2008-09-19 20:02:19 +00:00
Sean Dague 858d8416b4 add a region settings test 2008-09-19 20:00:09 +00:00
Justin Clarke Casey fb5014cf5b * Duh, forgot I had undone some of the changes I meant to include in the previous commit 2008-09-19 19:07:20 +00:00
Justin Clarke Casey 4c7ddd2c71 * Remove one possible deadlock situation as seen today
* On script rez, XEngine was taking an m_scripts lock and then later on an m_parts lock when looking for a part by local id
* In the meantime, a scene object being deleted would take an m_parts lock and then later on try to take an m_scripts lock when it tried to trigger script removal
* There may be better ways to resolve this, but I believe that in general, we must always take an m_parts lock before an m_scripts lock
2008-09-19 18:50:19 +00:00
Sean Dague 7ac264c2f0 convert to using proper .net tempfiles, should have done this
initially.
2008-09-19 17:47:37 +00:00
Justin Clarke Casey 5fb7b485b2 * Only allow logins on standalone when the sim has completed it's initial startup (script startup doesn't count here)
* There was a small window where region logins were allowed before modules were loaded - avatars logins that hit this window could have caused bad things to happen.
* A similar change will follow for grid mode sometime soon
2008-09-19 17:41:21 +00:00
Melanie Thielker 5d3fe9f8cd Guard LLRezObject against NaN 2008-09-19 17:34:35 +00:00
Melanie Thielker 592f98c4aa Mantis #2217
Guard against NaN being returned from llRotBetween. Return a zero rotation
if the result is NaN.
2008-09-19 17:00:17 +00:00
Melanie Thielker 092ad53dc7 Fix issue introduces by a fix in 6256. Fixes mantis #2214 2008-09-19 13:11:55 +00:00
Dahlia Trimble e6afb28355 re-enabled some ODE internal proxies for some simple prim types to try to save some more memory 2008-09-19 09:13:27 +00:00
Teravus Ovares 468b7426c3 * Tweaked handler code to recognize LibOMV's LLSD Login by post content.
* OK for public consumption.
2008-09-19 01:36:02 +00:00
Teravus Ovares 610313ea64 * Added null exception handler where we couldn't locate a user data record in the cache for the user
* More OGP tweaks to make it play nice in an error condition.
* Still Experimental.
2008-09-19 01:11:40 +00:00
Teravus Ovares a1217410e5 * Switches content type from application/xml+llsd to application/llsd+xml on outgoing requests.
* Monitors / for getting the seed cap for rez_avatar/request on application/llsd+xml && application/xml+llsd && !application/xml
* Experimental, this might break LibOMV temporarily.
2008-09-19 00:13:16 +00:00
Melanie Thielker 48c2ef7e12 Fix llParcelMedia queries. Correct types and add a missing ToString() (XEngine) 2008-09-18 20:23:18 +00:00
Homer Horwitz e2564f2563 Add a db.Dispose before calling Delete on the SQLite database.
On Windows, you are not able to delete a file while there is
still a handle to it open.
2008-09-18 20:15:04 +00:00
Homer Horwitz 1c08f46ec3 - Add Dispose method to IRegionDataStore
- Add necessary dummy Dispose-methods where they are missing
- Implement the SQLite Dispose-methods
(currently only used for unit tests, in the next commit)
2008-09-18 20:10:09 +00:00
Justin Clarke Casey 48978ba3e0 * Apply http://opensimulator.org/mantis/view.php?id=2212
* Update llGetNumberOfNotecardLines() and llGetNotecardLine() to use dataserver on dotnetengine
* Thanks M.Igarashi
2008-09-18 18:58:39 +00:00
Justin Clarke Casey 8ff1bc5b03 * Make the ode simulation update loop print out the stack if an exception occurs (at least, this is what will happen on linux) 2008-09-18 18:54:42 +00:00
Melanie Thielker 6cfe4784cb Reverse yes and no for the parcel's "public" property to make it accurately
reflect parcel status
2008-09-18 18:54:27 +00:00
Melanie Thielker 903fbd1f06 XEngine: fix collisions, add event coalescing for collision events.
Fix a nasty concurrency issue that could cause a high event frequency
to start more than one thread pool job for a single script.
2008-09-18 18:50:39 +00:00
Teravus Ovares e6f3181d3a * Updates the SQLite region database to support the same properties that the MySQL version does for the table, prims.
* If this causes any unit tests to fail, the tests need to be updated.
2008-09-18 17:47:29 +00:00
Melanie Thielker 584704edd3 Remove redundant permissions check in OSSL_Api.cs 2008-09-18 17:06:47 +00:00
Melanie Thielker f856977c7b Fix list reset behavior, and thereby squash one warning 2008-09-18 17:04:02 +00:00
Dr Scofield 0dff3f2383 From: Robert Smart (SMARTROB@uk.ibm.com)
Patch for new scripting method osParseJSON.

also, a couple of warning bugs killed.
2008-09-18 16:53:26 +00:00
Jeff Ames ac083becd9 Update svn properties, minor formatting cleanup. 2008-09-18 16:07:06 +00:00
Dr Scofield e3a3ce7628 code formatting cleanup. 2008-09-18 15:54:27 +00:00
Dr Scofield eeb5381bbb and this actually adds the appearance code itself (and not just the
check-in message)
2008-09-18 15:50:52 +00:00
Dr Scofield 978b8af777 Adds REST interface for setting avatar appearance. cleans up a couple
of places in the REST inventory code.
2008-09-18 15:49:52 +00:00
Dr Scofield 03f246d6fe adds support to delete a region completely and offers that
functionality via the console command "delete-region" and also via
RemoteAdminPlugin.

minor typo fix.
2008-09-18 15:44:05 +00:00
Sean Dague 232d1af663 add some comments and some try blocks around object storage
in the hopes this will help debug why this is failing for some people.
2008-09-18 15:39:22 +00:00
Melanie Thielker 23c217dd7b Kan-Ed fix series.
Correct a condition where a prim is linked before it has been persisted
for the first time and is then persisted through it's former SOG with
a bad offset position.
2008-09-18 15:24:16 +00:00
Melanie Thielker 4cb430eb33 Mantis #2213
Thank you, nlin, for a patch that prevents physical prims from being
created twice when rezzed from a script.
2008-09-18 12:50:01 +00:00
Melanie Thielker bf0b7eaecb Another pointless multiplication/division removed 2008-09-18 12:44:18 +00:00
Melanie Thielker 1160731100 XEngine API refactor. Fully implement ALL_SIDES with sanity checks.
Correct color handling functions to no longer return the inverse color.
Remove pointless * 256 / 256 legacy constructs.
2008-09-18 12:37:44 +00:00
Melanie Thielker deaf0e3814 Kan-Ed fix series.
XEngine: Change a number of methods to use the new link part method.
Fix ALL_SIDES for llSetColor, llSetTexture, llSetAlpha, llSetPrimitiveParams,
llGetPrimitiveParams(PRIM_TEXTURE, PRIM_COLOR).
2008-09-18 03:38:20 +00:00
Melanie Thielker 553d554e2c Kan-Ed fix series.
XEngine: Introduce a common method to determine link parts to work on.
Fix llSetLinkColor method.
2008-09-18 02:54:17 +00:00
Melanie Thielker 66febc47ad Kan-Ed fix series. Fix up llRezAtRoot and llRezObject, fix llCreateLink
to send a full update and do a persistence save.
2008-09-17 23:50:21 +00:00
Melanie Thielker 386c3e41f0 Add various XML elements to the data snapshot. Changes by Fly-Man and
myself. Fix a crash in DataSnapshot when no master avatar and no
estate owner is set (e.g. "Mainland").
2008-09-17 23:08:46 +00:00
Melanie Thielker 7e8320bada Kan-Ed fix series. Fix llTakeControls to behave as documented.
XEngine fixes: prevent queue overruns, prevent spamming when no key
is down. Release controls when conflicting permissions are requested
or permissions are refused later. Release when prim or script are deleted.
Fixes Scene script instance deletion semantics.
2008-09-17 22:00:56 +00:00
Homer Horwitz 0ad5d8c0e7 Adding currentLookAt to useragents table in SQLite. This complements the
MySQL change from http://opensimulator.org/mantis/view.php?id=2073
2008-09-17 19:21:28 +00:00
Tedd Hansen e94d6f12ee More ScriptEngine cleanup 2008-09-17 16:46:23 +00:00
Justin Clarke Casey c9c59c68f1 * Apply http://opensimulator.org/mantis/view.php?id=2207
* Attached patch implements llRequestAgentData for DotNetEngine. (It already is implemented in XEngine.)
* Thanks Y. Nitta
2008-09-17 13:18:48 +00:00
Justin Clarke Casey 6bcdc82a46 * Apply http://opensimulator.org/mantis/view.php?id=2206
* Fix/implement LSL group-related functions llDetectedGroup, llSameGroup 
* Thanks nlin
2008-09-17 13:14:07 +00:00
Jeff Ames 5c165c9bdd Update svn properties, minor formatting cleanup. 2008-09-16 23:21:50 +00:00
Sean Dague ad379ed136 Added some terrain tests, and found a fun race condition in the sqlite
terrain driver in the process, which is now fixed.  yay for unit tests!
2008-09-16 19:51:14 +00:00
Sean Dague fe7a1af2bd we can use equals on strings because they are comparible, and
this is the prefered way of doing these tests.
2008-09-16 19:48:21 +00:00
Homer Horwitz e3cbde0f39 Mantis #904: Thanks jonc, for a patch that adds "useragents" table to
SQLite and stores the logout position in standalone mode.
Note: This adds a migration for SQLite, so do your runprebuild
2008-09-16 18:59:13 +00:00
Justin Clarke Casey 0e6e8624ad * Apply http://opensimulator.org/mantis/view.php?id=2205 with a few small tweaks
* LSL Conformance: llSetPayPrice should accept more than four arguments in list
* Thanks kcozens!
2008-09-16 18:49:57 +00:00
Sean Dague 2ff91dac41 add an inventory change test. 2008-09-16 18:33:49 +00:00
Justin Clarke Casey ad7df5b500 * Apply http://opensimulator.org/mantis/view.php?id=2204 (with a small tweak)
* Attached patch implements LSL llGetAgentSize() for DotNetEngine and XEngine.
* Thanks Y. Nitta!
2008-09-16 17:57:34 +00:00
Justin Clarke Casey c6dfc99f22 * Apply http://opensimulator.org/mantis/view.php?id=2203
* Implementation of LSL llBreakLink and llBreakAllLinks
* Thanks Y. Nitta!
2008-09-16 17:48:57 +00:00
Justin Clarke Casey 6b0097039a * Apply http://opensimulator.org/mantis/view.php?id=2202
* llGround causes Array out of bounds exception in KanEd#11 script 
* Thanks Y. Nitta!
2008-09-16 17:41:01 +00:00
Justin Clarke Casey f437c4d8c9 * minor: oops, remove a warning I just inserted myself - naughty boy 2008-09-16 17:35:35 +00:00
Justin Clarke Casey ec4189b722 * If an individual scene object throws an exception while storing, deal with this locally rather than letting it propogate up the stack
* This will allow other scene objects to persist and stop the exception taking down the whole region server
2008-09-16 17:30:30 +00:00
Justin Clarke Casey 0b52453762 * Change XEngine default configuration values to match those in OpenSim.example.ini
* Particularly important for max threads since setting this to 2 was causing all events to wait behind the regularly sleeping maintenance event
2008-09-16 16:41:46 +00:00
Justin Clarke Casey 7f3bfa277b * minor: method documentation 2008-09-16 16:37:16 +00:00
Melanie Thielker f46fc508d1 Mantis #1843
Applying DotNetEnine part of this patch. Thank you, nlin!
Corrects ad hoc key list comparison.
2008-09-16 10:26:54 +00:00
Jeff Ames eee31c6f28 Minor formatting cleanup. 2008-09-16 10:15:09 +00:00
Dr Scofield 03e3f88059 From: mike pitman <pitman@us.ibm.com>
New patch (terrainedit2.patch) is attached that passes unit tests (
and in fact supplies the new unit test to pass..:) The previous
failure was due to the change of the brush size to be linear instead
of exponential, and the fact that the test parameters were assuming
the exponentional brush size.

This patch also removes dependency on 'duration' argument for
adjustment step size. This should address the widely differing reports
of instability with terrain editing.

Note: 'doing this right' implies ultimately reading the parameters
from the ini file, which this patch does not do.
2008-09-16 07:19:22 +00:00
Melanie Thielker ae63b2d2ca Finish up OSSL enable/disable options in XEngine.
Now each function can be allowed, subject to threat level, disabled,
or restricted to certain UUIDs.
2008-09-15 23:50:07 +00:00
Melanie Thielker 2df0499da7 Refactor the os functions allowed check into the threat check method 2008-09-15 22:52:23 +00:00
Justin Clarke Casey a28a478546 * minor: recomment the console c# script printout I accidentally left in on the last ocmmit 2008-09-15 20:58:16 +00:00
Justin Clarke Casey 2b9e115fd7 * minor: eat up some yummy warnings 2008-09-15 20:50:57 +00:00
Justin Clarke Casey d0aabcb186 * Add "reset user password" command to user server
* Some copy and pasting has occurred because it's difficult to properly refactor some bits at present.  I'm very ashamed and it will disappear at some future point.
2008-09-15 19:17:10 +00:00
Justin Clarke Casey ddaa90d270 * refactor: collapse UpdateUserProfileProperties() into existing UpdateUserProfile
* the methods were identical except that the Properties one did a check for the user profile beforehand.  However, every caller was doing this already anyway.
2008-09-15 19:02:34 +00:00
Justin Clarke Casey 6791ac3958 * oops! Add interface file I forgot in the last checkin 2008-09-15 18:35:52 +00:00
Justin Clarke Casey c2ee263999 * refactor: Break out IUserServiceAdmin out of IUserService since admin methods don't need to be implemented on Grid hosted region servers 2008-09-15 18:23:36 +00:00
Justin Clarke Casey 9170361bee * Complete refactoring accidentally left unfinished so that all server help requests flow through the ShowHelp() method 2008-09-15 17:45:48 +00:00
Justin Clarke Casey 6d289c3ae0 * Add "reset user password" command to standalone region console
* Grid user server implementation to follow shortly
2008-09-15 17:29:11 +00:00
Melanie Thielker bf8b70ebeb Add the option to use Allow_osFunction = false for each OS function
in the XEngine section
2008-09-15 15:36:51 +00:00
Melanie Thielker 2eac6c17f4 Add more granularity and a risk asessment system to the OSSL API in XEngine.
Adds the fix from Mantis #2197 in it's new form.
Stage one of the scripting security changes, more to come.
2008-09-15 15:25:48 +00:00
Dr Scofield 4d88246a3f reverting r6302 2008-09-15 14:49:22 +00:00
Charles Krinke 5164fa2411 Mantis#2197. Thank you kindly, Tyre, for a patch that:
adds the new function osTeleportAgent().
2008-09-15 14:32:02 +00:00
Jeff Ames ab30c6dc62 Update svn properties, minor formatting cleanup, fix a compiler warning. 2008-09-15 14:21:57 +00:00
Dr Scofield 0e2edbb5d4 From: mike pitman <pitman@us.ibm.com>
fixes the terrain spikes, and is the result of mostly a tuning
operation on the smooth and flatten tools. I dug in and found that the
spikes apparently result from smooth's overly aggressive iteration
steps toward the average curvature, which leads to an instability that
blows up the heights. I introduced a scaling factor to dampen the
'duration' parameter which tames progress and seems to keep things
stable.
2008-09-15 13:44:58 +00:00
Teravus Ovares e4ca8e613a * Remove a hack I put into OGP so that I could test OGP over SSL with the SeedCap response not being SSL 2008-09-14 23:46:38 +00:00
Teravus Ovares cdced699fb * Made Seed CAP response respect the SSL setting. 2008-09-14 23:39:35 +00:00
Teravus Ovares dbbbec48df * This update makes configuring SSL a little easier on Windows XP. It also makes it possible to run a HTTPS server on the region. It also has a junk Certification authority for test purposes.
* There are still a lot of things that are hard coded to use http.   They need to be fixed.
* Also includes directions
* A standard junk PEM file to append to app_settings/CA.pem in the client so SSL will work
2008-09-14 18:39:17 +00:00
Homer Horwitz 4ba7ce5981 Added some further clipping to color- and alpha-values. 2008-09-14 15:46:54 +00:00
Melanie Thielker de44f765e3 Mantis #2186
Prevent illegal color values from being set.
2008-09-14 15:18:58 +00:00
Homer Horwitz d7d1bee4a7 MessageServer gets the agent position (positionx/y/z) as float, not as int in
the login_to_simulator message. Changed parsing accordingly (#2190).
2008-09-14 13:57:25 +00:00
Melanie Thielker 2819559499 Mantis #2124
Thank you, RuudL, for a patch that brings MSSQL up to the same
implementation level as MySQL.
2008-09-14 13:23:02 +00:00
Adam Frisby 3476dd56ea * Converted a number of methods within the login processes from private to protected.
* Made several methods virtual to allow derivative overrides.
* Minor cleanups.
2008-09-14 04:13:15 +00:00
Charles Krinke 1d5e870ee2 Thank you kindly, CMickeyb for a patch that:
Moved intialization of appearance from the SendInitialData 
event handler into CompleteMovement handler. That ensures 
that m_appearance is initialized before the inventory is 
retrieved (so there is a place to check on attachments).
2008-09-14 02:56:51 +00:00
Adam Frisby e946b40fdd * Minor fixes and cleanups around code being used for Rex Module work. 2008-09-14 01:49:47 +00:00
Charles Krinke f2d60976d0 Mantis#2183. Thank you kindly, Ewe Loon for a patch that addresses:
after using llTakeControls my sim receives about 200 messages per second, 
l of which get queued , this could be because there is no lag as the viewer 
and sim are on the same computer. The patch I have included checks to see if 
the "Changed" param is 0 then searches the EventQueue for Control messages 
being sent to the same localid, if it finds a message already in the Queue 
and Changed==0 then the new message is only notifing you the key is being held, 
since there is already a message the new one isnt needed so it isnt added 
to the queue.
2008-09-14 00:47:45 +00:00
Homer Horwitz 37e6ce24a2 Fixed several cases of inverted colors and alpha in DNE and XEngine.
Added clamping to 0.0 - 1.0 for R, G, B, and A.
2008-09-13 22:48:30 +00:00
Teravus Ovares af899e50c2 * Adds regiondata and estatedata persistence in Sqlite. This commit is actually an assist. 99% of the work was already done by Melanie. 2008-09-13 22:29:36 +00:00
Jeff Ames b4141f9e56 Formatting cleanup. 2008-09-13 22:07:07 +00:00
Homer Horwitz 54e1988d85 Fixing a bug in DNE which caused the face-colors to be inverted when set via script. 2008-09-13 21:54:07 +00:00
Jeff Ames 6e6465f6c1 Update svn properties. Minor formatting cleanup. Fix some minor typos. Remove some old dead code. 2008-09-13 21:39:26 +00:00
Homer Horwitz 1ab0c0192f Fix another missing UUID before a ToString(). 2008-09-13 21:14:24 +00:00
Teravus Ovares e8d51b76fe * Fixes SQLite load crash.
* added primary key to regionsettings table in the cached table
* initialized the data adapter.
* Still untested fully, so watch out!
2008-09-13 21:01:21 +00:00
Melanie Thielker 9b9f1bc191 Add region settings support to SQLite (untested!) 2008-09-13 20:37:36 +00:00
Melanie Thielker 8830b8b72c Mantis #2018
Read animation data from avataranimations.xml to allow default animations
to be started and stopped by name from scripts.
2008-09-13 19:51:56 +00:00
Homer Horwitz ae9e4e8144 Update avatar-position while avatar is sitting and the prim is moved (#2159).
I decided to make ParentPosition a public property in ScenePresence, because
that's exactly what happens (the parent position changes on prim move).
2008-09-13 18:42:09 +00:00
Melanie Thielker 91e3463582 Remove the cruft of accessing a private member of another module's class
from DataSnapshot and replace it with a best practices approach, making
it much less dependent on the land module's internal structure and types.
2008-09-13 17:50:02 +00:00
Melanie Thielker e45db5917b Fix a typo in the DataSnapshot module 2008-09-13 16:53:58 +00:00
Melanie Thielker 99f1e1d107 Mantis #2182
Thank you, tyre, for a patch that fixes the sender UUID in scripted IM
2008-09-13 16:34:29 +00:00
Melanie Thielker dccdeb57bb Fix some string to float casting nastiness. The "train script" now
works. Also makes llGetFreeMemory return the constant 16384.
LLGetFreeMemory is useless in SL, as it never goes up, only down.
So, the only thing it is used for, in practice, is to detect an imminent
stack/heap collision, a danger we don't have.
2008-09-13 16:16:08 +00:00
Melanie Thielker fdb24c46ac Provide a GetApi method on the IScriptEngine to get a named API reference
This allows cross-api method calls on the implementation and also allows
"Meta APIs" that only provide common functionality to other APIs
2008-09-13 14:40:42 +00:00
Melanie Thielker 9222c5154e Change all LSL functions to return LSL types instead of base types.
Remove some unused osFunctions that were left in the LSL function
file from the separation way back when. Inline the osSetParcelMediaURL
code to get rid of the osFunction. Really need to add a way for one API
to call another.
2008-09-13 13:47:23 +00:00
Melanie Thielker 7f3a98b76d Fix string parameters to functions taking lists as arguments. LSL
functions return CLI strings, which, in the case of lists, don't
get wrapped. Therefore, the list had to be able to deal with
that CLI type here. The correct fix would be to change all LSL
function returns to LSL types.
2008-09-13 12:58:44 +00:00
Dahlia Trimble 8a8b01d1b8 Circular path prim meshes are now joined where the path ends meet if they match. This may have a minor improvement in memory and speed performance, but it's mainly for viewer applications and it also syncs the c# version of PrimMesher with my python sandbox version. 2008-09-13 10:22:17 +00:00
Sean Dague 39902fef77 wrap log4net configure in try block so that it will run if you don't have a
.config (which no one does).  Dropping in the .config lets you see that debug
messages, which is handy while writing tests and figuring out why things don't
behave like you would guess.
2008-09-13 02:29:04 +00:00
Sean Dague fcc716104b 2 more InventoryItem tests, plus see if I can leave the log4net
configure in there to help me get debug messages while developing.
2008-09-13 02:06:23 +00:00
Homer Horwitz 8ae8bec4d1 Changed "show users" command to display only root agents, "show users full" to
display root and child agents (mantis #2171).
2008-09-12 22:39:17 +00:00
Justin Clarke Casey 9cdd9e215c * Patch http://opensimulator.org/mantis/view.php?id=2172
* Patch attached that adds the check for uninitialized appearance when inventory items are received and processed. Also attempts to ensure that appearance is initialized even 
when the profile cache has not been built.
* This will not fix the race condition, but should at least remove the unhandled exception that is being reported in Mantis 0002126.
* Thanks cmickeyb
2008-09-12 21:32:45 +00:00
Justin Clarke Casey 1edee634ca * minor: spelling mistake and message tidying on Migration messages 2008-09-12 21:24:11 +00:00
Justin Clarke Casey 0dc1018ca1 * minor: Remove warnings
* leaving in the ones to do with ScriptBase since these actually indicate coding bugs that I don't have the time/brainpower to fix at the moment
2008-09-12 21:20:24 +00:00
Sean Dague ecc2a0f866 add first round of folder tests 2008-09-12 21:00:40 +00:00
Sean Dague 5557f0b772 reformat spacing on some property declarations. Take away the virtual
attribute as that was a left over of an nhibernate approach that
isn't used in the current nhibernate code anyway.
2008-09-12 21:00:29 +00:00
Justin Clarke Casey bf3190538e * Patch http://opensimulator.org/mantis/view.php?id=2158
* RemoteAdmin SaveXMLMethod 
* My tiny mind isn't quite sure how this is useful, but the load xml equivalent is already there, so what the hell :)
* Thanks Olish.
2008-09-12 21:00:05 +00:00
Justin Clarke Casey f1e4001c90 * Make fix to MSSQLRegionData.cs in LoadLandObjects as recommended by Garrett Hussey in Re: [Opensim-dev] MSSQL runtime error in latest build..
* Thanks!
2008-09-12 20:53:21 +00:00
Justin Clarke Casey 62d1eba3b2 * Patch http://opensimulator.org/mantis/view.php?id=2167
* Force ClickAction persistence even if other object properties are not edited 
* Thanks nlin!
2008-09-12 20:42:04 +00:00
Justin Clarke Casey 2d7aca6d9d * Add userstore sql upgrade I carelessly forgot to check in a couple of revisions ago
* Hopefully there wasn't a problem anyway, since the look at stuff isn't enabled yet
2008-09-12 20:38:20 +00:00
Justin Clarke Casey 2fcc131ef3 * Patch http://opensimulator.org/mantis/view.php?id=2163
* Add prim ClickAction persistence to SQLite 
* This will require a prebuild
* Thanks nlin!
2008-09-12 20:37:07 +00:00
Justin Clarke Casey 52a4c4d82f * Check in first part of http://opensimulator.org/mantis/view.php?id=2073
* This patch aims to introduce look at direction persistence between logins.  It won't be active until the second part of the patch is committed in about two weeks time.  At 
this point, region servers that haven't upgraded past this revision may run into problems
* This checkin upgrades the user database.  As always, we recommend you have backups in case something goes wrong.
* Many thanks to tyre for this patch.
2008-09-12 20:12:03 +00:00
Dahlia Trimble febb781779 remove hidden faces inside prim meshes to improve memory use and startup time 2008-09-12 19:42:26 +00:00
Sean Dague 4b7e287ab2 because UUID supports equality, we can do a straight equals instead of
convert to string and match.
2008-09-12 18:46:55 +00:00
Tedd Hansen 85a0e03984 Note to self: VisualSVN not fully compatible with OpenSim prebuild :) 2008-09-12 18:46:52 +00:00
Sean Dague d312f10420 use new style asserts. They are much easier to read. 2008-09-12 18:46:44 +00:00
Tedd Hansen b41acfb4cf Cut of remote server as AppDomains and even WCF can do it better (better means less code in this case) 2008-09-12 18:42:02 +00:00
Teravus Ovares 18f490a30c * Fix a missing .UUID in llInstantMessage 2008-09-12 18:17:01 +00:00
Sean Dague 9349cf3149 move the actual [Test] methods for databases to OpenSim.Data.Tests
classes.  This did mean loosing 1 unit test that was actually testing
an sqlite function directly instead of the interface.
2008-09-12 18:13:43 +00:00
Sean Dague 1f42c89480 change order in prebuild.xml so this works in nant on a clean
checkout.
2008-09-12 17:45:02 +00:00
Sean Dague 96c720b04a be more clever and move the bulk of the db tests for inventory into
OpenSim.Data.Tests, then subclass with custom init bits for sqlite.
As I've only been testing the plugin interfaces anyway, this should
make it very easy to write only a little bit of code to use these
tests for other databases.  It will also give us the framework for
definining the datastore behavior and making sure that all the databases
do the same thing.
2008-09-12 16:05:06 +00:00
Sean Dague a408b58209 add the m_host.AddScriptLPS(1); line. I'm not actually sure what it
does, but it seems every other function here has it, so it is probably
needed.
2008-09-12 15:04:16 +00:00
Sean Dague 1b333a0f58 From: Rob Smart <SMARTROB@uk.ibm.com>
Implement an osParseJSON method useful for handling simple JSON returns
from http requests.  This will only work in C# at this point.
2008-09-12 15:04:13 +00:00
Charles Krinke 8d6096b815 Mantis#2165. Thank you kindly, CMickeyB for a patch that:
patch is attached that replaces the o(n^2) algorithm currently 
used to build the inventory cache with an o(n) algorithm using 
hash tables. the patch also adds some additional error handling.
2008-09-12 03:33:26 +00:00
Justin Clarke Casey 90ec9c46d5 * Move the ResetChildPrimPhysics() calls to after physics have been applied to the parts rather than after each individual part
* From looking at the code there shouldn't be any difference, and this appears to speed up prim loading and make a certain failure case (where prims seem to be going out of 
bounds on startup) less of a problem.
* However, if I've been bad please revert this patch
2008-09-12 00:45:24 +00:00
Justin Clarke Casey 3f1dbae8e4 * minor: various doc and tidy up, logging increase to make it clearer which prim is failing a border crossing 2008-09-12 00:37:59 +00:00
Melanie Thielker ecc24c3c63 Revert 6242 because of a possible licensing issue 2008-09-12 00:33:24 +00:00
Melanie Thielker 7a63fe7c07 Add the UUIDs of the standard animations. Thanks, Ewe Loon! 2008-09-12 00:23:41 +00:00
Sean Dague 7d61559058 more inventory folder tests 2008-09-11 20:52:35 +00:00
Sean Dague 45df1aaa64 add some folder create and list tests 2008-09-11 18:49:37 +00:00
Sean Dague 380af0b939 added simple add / exists folder check 2008-09-11 18:49:10 +00:00
Teravus Ovares 23e52993fb * This updates the OGP module to support both the revision 2 and revision 3 of the OGP protocol. (Assuming I understood it correctly)
* This also removes the host--> ip pre-resolve workaround.
2008-09-11 18:21:00 +00:00
Sean Dague 7ba9bfc8ad add a few more SQLite Asset tests. 2008-09-11 17:52:11 +00:00
Justin Clarke Casey f3497d9f57 * Start loading prims after region module configuration rather than before
* In some circumstances, loading prims can invoke region modules
2008-09-11 13:56:25 +00:00
lbsa71 e04ce96cee * Removed some legacy commenting 2008-09-11 11:41:52 +00:00
lbsa71 aa12787a17 * Added small convenience function to recursively calculate total amounts of items loaded under library inventory node 2008-09-11 11:39:43 +00:00
Sean Dague 0a9c6aecb5 added very basic stubs for User and Inventory db creates and empty
calls to make sure they worked
2008-09-10 21:36:20 +00:00
Sean Dague a90d2b491f fix typo in name of test db 2008-09-10 21:36:12 +00:00
Sean Dague 121398732a add basic sniff tests for SQLite Asset store. Initializes a db,
stores an asset, fetches that asset, make sure it has the name
we gave it.  All simple stuff, but should catch the more egregious
breaks.
2008-09-10 20:33:13 +00:00
Sean Dague 71f2176c4b add a simple update attribute test for SOG & SQLite 2008-09-10 20:33:02 +00:00
Sean Dague cc7ff3ac2e added in a few more tests 2008-09-10 19:14:12 +00:00
Sean Dague 3f73884674 the explicit log4net configure attempt was maybe breaking bamboo, get
rid of that.
2008-09-10 18:17:10 +00:00
Sean Dague f970597194 added the first couple of sqlite tests. we'll see how bamboo
handles them.
2008-09-10 17:49:41 +00:00
Sean Dague 1799913593 add shell for SQLite testing. No tests yet.
add another nant target for test-xml to get the verbose
version
2008-09-10 17:49:37 +00:00
Charles Krinke 9af5a44c91 Revert the two debug log statements from r6212 as described in Mantis 2126. 2008-09-10 14:12:56 +00:00
Melanie Thielker a68e34b558 Mantis #511
Allow parsing of hexadecimal int constants from strings.
Also fixes a DBNull value in the touch type field crashing the sim
2008-09-10 06:14:38 +00:00
Jeff Ames b9b996be38 Update svn properties, minor formatting cleanup.
Fix unreachable code due to typo in llDetectedGroup.
2008-09-10 05:17:28 +00:00
Charles Krinke 03672c35e4 Thank you kindly, CMickeyB for a patch that adds a
couple of debug statements for null items while we
diagnose our interrmittent inventory issues. I looked
at this and it seems helpful to others. We can back it 
later if desired.
2008-09-10 03:27:09 +00:00
Charles Krinke 7305dadba2 Mantis#2153. Thank you kindly, Godfrey for a patch that solves:
osSetDynamicTextureData() produces error on console if 
ExtraParams passed empty string
2008-09-10 03:19:57 +00:00
Charles Krinke 291aa9fa10 Implementation of llDetectedGroup for DotNetEngine. 2008-09-10 02:25:02 +00:00
Charles Krinke 796fedb1e9 *Almost* have a complete implementation of llDetectedGroup.
One member missing, so a portion is commented out.
2008-09-10 02:10:25 +00:00
Charles Krinke 6b10725f20 Implementation for llDetectedLinkNumber in DotNetEngine. 2008-09-10 01:54:25 +00:00
Mike Mazur e0d092ec53 Thanks, nlin, for a patch implementing persistence for "When Left Clicked"
object property. Fix issue 2149.
2008-09-10 00:19:36 +00:00
Teravus Ovares fac18f608d * Fixes Sqlite crash bug when saving a prim. 2008-09-09 23:42:44 +00:00
Sean Dague 6f15ec2d46 possible fix for EARTH SHATTERING KABOOM! when trying to save a prim 2008-09-09 20:45:21 +00:00
Sean Dague 017a6f5511 fix an automatically stripped out UUID from SQLiteManager
fix some spacing in SQLiteRegionData
2008-09-09 20:23:10 +00:00
Sean Dague 66dad4ab03 hopefully fix embedded inventory for sqlite 2008-09-09 18:44:54 +00:00
Sean Dague f141751cf9 From: alan_webb@us.ibm.com
Make CHANGED constants consistent with LSL, and consistent across the
code base
2008-09-09 14:51:41 +00:00
Sean Dague 37557da706 From: alan_webb@us.ibm.com
Fix an invalid bounds check in Builtin_Commands
2008-09-09 14:51:30 +00:00
Adam Frisby c95bdb83c0 * Adds OnGenericMessage and SendGenericMessage functionality to IClientAPI.
* Please don't break the build. *fingers crossed*
2008-09-09 05:25:29 +00:00
Melanie Thielker 4f85a9aa72 Fix llResetScript() and the reset button to actually restore global
variables to their initializer values, rather then zeroing them.
Also handles lists properly now.
2008-09-09 04:16:52 +00:00
Melanie Thielker 3ee91cb3c6 Preserve link numbers when items are taken into inventory and re-rezzed. 2008-09-09 03:48:09 +00:00
Jeff Ames fae34bb10c Update svn properties, formatting cleanup. 2008-09-09 01:26:48 +00:00
Melanie Thielker 3e1441afe1 Fix state xxx within state xxx itself triggering a state "change" to
same state
2008-09-09 01:24:58 +00:00
Melanie Thielker 084ea99be6 Fix string -> int cast to variable 2008-09-09 01:01:45 +00:00
Melanie Thielker 75380bc1aa Fix delimiter access from list for llParseStringKeepNulls 2008-09-09 00:43:14 +00:00
Melanie Thielker 19c9ea8ca0 Fix an inventory naming regression 2008-09-08 23:54:52 +00:00
Melanie Thielker 6ca7afabca Remove casting nastiness in LSL_Api 2008-09-08 23:13:59 +00:00
Melanie Thielker 1034c1cdc1 Correct state handling and state event masks. Prims will now show
touch, pay, etc script states correctly.
2008-09-08 22:19:06 +00:00
Sean Dague ce0a8d7bef changes to Test directory structure per opensim-dev conversation 2008-09-08 20:34:45 +00:00
Melanie Thielker 41a68ca5db Fix component order on a quaternion for the sit target. This caused
sit positions to be upside down until the script was reset.
2008-09-08 19:57:28 +00:00
Melanie Thielker 6447d7132f Adapt the unit tests to the new list rules, change some casts to
new method for testing
2008-09-08 19:29:16 +00:00
Melanie Thielker e7abde70a2 Mantis #2147
Thank you, ralphos, for a patch the adapts llSetColor and friends to
a change in the underlying types.
Also, thank you for a much cleaner way of casting types out of
lists, which I will adopt throughout.
2008-09-08 18:15:36 +00:00
lbsa71 8388fe0669 * some if inversions and added {}'s for readability 2008-09-08 14:30:35 +00:00
Melanie Thielker f2de15bffc Mantis #2144
Adjust XEngine llSetAlpha to a change in the underlying type
2008-09-08 12:30:48 +00:00
Melanie Thielker 1732baca0e Mantis #2145
Fix a number of casting issues in XEngine's API
2008-09-08 11:49:17 +00:00
Dr Scofield 3f9cc28103 fix: warnings from libomv 2008-09-08 10:28:59 +00:00
Mike Mazur 3cf92cb511 Use older ExpectedException attribute format. Previously tests were failing on NUnit <2.2.8. 2008-09-08 08:20:19 +00:00
Melanie Thielker 490ac0be00 Implement proper persistence of the following prim properties:
Floating text, Rotation, Texture animation, Particle System
This will make "Eye Candy" scripts work without modification in
XEngine. The use of the CHANGED_REGION_RESTART hack is no longer
needed. Implemented in MySQL only, hovertext also in SQLite.
2008-09-08 02:40:20 +00:00
Charles Krinke 4822e79759 Implement llEjectFromLand. 2008-09-08 02:24:30 +00:00
Charles Krinke 13f7d5a4b2 I inadvertently edited out llGroundSlope, llGroundNormal
and llGroundContour in the last checkin and this replaces
them again in LSL_BuiltIn_Commands.cs.
2008-09-08 02:05:56 +00:00
Charles Krinke d0920a2247 Add implementation for llSetSoundRadius(). 2008-09-08 02:01:36 +00:00
Mike Mazur 993384d348 Remove trailing whitespace. 2008-09-08 01:42:47 +00:00
Charles Krinke 9ef43d3e22 Add Adam's llGroundSlope, llGroundNormal and
llGroundContour into our Common/LS:L_BuiltIn_Commands
file.
2008-09-08 01:27:16 +00:00
Adam Frisby f3d4f62d0a * Implements llGroundSlope, llGroundNormal and llGroundContour in LSL_Api.cs - these functions are orthogonal to each other and the core implementation is in GroundSlope.
* Please note that this implementation has not been mathematically verified to be correct-as-described, it is probable that this implementation may produce differing results to Linden Lab. Testing (and test data) would be appreciated.
2008-09-07 22:56:43 +00:00
Charles Krinke 68e8f3a160 Revert the removal of the commented out
scriptsleep calls.
2008-09-07 22:08:40 +00:00
Melanie Thielker 669f553400 Xengine patch to force a persistence save on script creation. This prevents
duplicate delivery of state_entry if a region is restarted just after
saving the script. Changes script state saves to no longer abort long-
running event handlers. Queues the save instead. Adds shutdown handler
to save script state on irderly shutdown
2008-09-07 22:01:25 +00:00
Melanie Thielker e3338bac20 Mantis #2138
Thank you, HomerHorwitz, for a patch that fixes llGetKey()
2008-09-07 20:15:15 +00:00
Melanie Thielker 58d79b33ff Mantis #2142
Thank you, HomerHorwitz, for a patch that fixes landmark teleport
and about landmarks with the new OMV types.
2008-09-07 20:09:11 +00:00
Charles Krinke 0c7e87ee5e Return 0 for no wind and 0 for no clouds from
both llWind and llCloud and remove the 
"NotImplemented" status leaving us with about
74 "NotImplemented" LSL-C# wrapper functions.
2008-09-07 17:32:38 +00:00
Teravus Ovares 3f55b03bbf * Fixes linking using the new types.
quaternions are not communicative!
2008-09-07 13:24:23 +00:00
Mike Mazur ec13642e1a Convert TestStringsWithEscapedQuotesAndComments to use concatenated expected string. 2008-09-07 08:00:41 +00:00
Justin Clarke Casey 108f3b89f5 * On a failing login, don't bother trying the default region if it's the same as the original login region 2008-09-07 05:29:12 +00:00
Justin Clarke Casey 42661a8a97 * Increase expect_user XMLRPC timeout from 6 to 30 seconds
* This may possibly (est. 20% change) help the situation that we see on OSGrid meetings when a region stops accepting logins, which appears to be because it never receives the expect_user request
2008-09-07 05:21:03 +00:00
Justin Clarke Casey 815278531a * Improve login failure handling.
* Now it should properly inform the user and stop a login if a region server could not be contacted in order to expect a user (the last commit didn't actually quite work correctly)
2008-09-07 05:07:57 +00:00
Justin Clarke Casey 260b141306 * refactor: Remove duplication in UserLoginService where most of the emergency region login code is a cut and paste job of the preceding normal region login code
* also, properly tell the user if no region can be contacted, rather than letting the login proceed only to fail later when authentication fails on the region side
* copying and pasting code... it makes me cry inside... so sad...
2008-09-07 04:20:47 +00:00
Charles Krinke 94195c4927 Clean up some of the nonsensical use of ScriptSleep
inside our LSL-C# wrapper subroutines.
2008-09-07 04:00:44 +00:00
Justin Clarke Casey b9acf3ac5e * minor: for now, print out the exception if logging into the initially selected region fails, rather than swallowing it 2008-09-07 03:34:44 +00:00
Justin Clarke Casey 78f831ef52 * minor: Clean up of logging messages to make following the client login process easier
* documentation
2008-09-07 03:22:33 +00:00
Justin Clarke Casey ea8c18f63d * minor: just minor doc and tidy up 2008-09-07 00:47:08 +00:00
Charles Krinke aaf7f80dd1 Remove a few of the commented out "NotImplemented"
calls from our LSL-C# wrappers.
2008-09-07 00:42:46 +00:00
Charles Krinke b85a29d1b8 Mantis#2136. Thank you kindly, HomerHorwitz for a patch that:
libomv corrected the endianess of some Helper methods, which 
broke the fake parcelID computation for "About Landmark". 
The attached patch fixes this.
2008-09-06 23:08:08 +00:00
Teravus Ovares 3378b502c5 * This changes gridcomms types back to our home grown wholy controlled types.
* These are different types then the OMV types because changing them causes just about all grid comms to break.   If these were the libOMV types, then libOMV couldn't change them ever again after that..  or we'd have a breakage whenever they changed them.
* This might introduce a map issue.   Still checking it out.
2008-09-06 22:28:51 +00:00
Teravus Ovares a97155b106 * Addresses the same issue as last commit on SceneObjectGroup border crossings 2008-09-06 19:40:04 +00:00
Teravus Ovares 6fc23adbc2 * Fixes a few type changes that caused the XML Format to break.
* Testers, please try rezzing your inventory on this revision and sending me feedback in mantis.
* Users, it's not time to update yet.  The dust still hasn't settled.
2008-09-06 19:21:41 +00:00
Tedd Hansen e0264f67d6 Brushing rust of ye old commit 2008-09-06 18:49:36 +00:00
Melanie Thielker 9e545c9984 Mantis #2133
Thank you, Xugu Madison and ChrisDown, for a patch that
fixes linux filename extensions from .Xml back to .xml
2008-09-06 14:58:23 +00:00
Teravus Ovares f342bd1e96 * Replace a Try/catch I commented out while testing/fixing issues. 2008-09-06 08:10:40 +00:00
Teravus Ovares 7d89e12293 * This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point.  Regular people should let the dust settle.
* This has been tested to work with most basic functions. However..   make sure you back up 'everything' before using this.  It's that big!  
* Essentially we're back at square 1 in the testing phase..  so lets identify things that broke.
2008-09-06 07:52:41 +00:00
Dahlia Trimble 7d7f57a94d more unit test cross-platform compatibility tweaks 2008-09-06 04:55:05 +00:00
Melanie Thielker a7e2d14454 Rolling back #6139 because there is no consensus on it's application.
Reverted pending further discussion.
2008-09-06 04:35:33 +00:00
Melanie Thielker b6b1e9e214 Mantis #624
Thank you, openlifegrid, for a patch to move new user connections to
thread pool threads.
Reworked by me to fit current trunk.
I believe that that patch may be beneficial in reducing the cases
in which regions become unresponsive and will no longer accept
new logins.
2008-09-06 04:21:36 +00:00
Dahlia Trimble 01c34d5e04 more unit test tweaks in the name of cross-platform compatibility 2008-09-06 04:01:39 +00:00
Justin Clarke Casey bb2b1b1f61 * Add SampleMoneyModule patch from mantis #2079
* Thanks noralbion
2008-09-06 03:22:09 +00:00
Dahlia Trimble 5446bdff09 Revert changes to TestStringsWithEscapedQuotesAndComments() so it will work in Bamboo instead of windows 2008-09-06 01:22:39 +00:00
Justin Clarke Casey 03581c17e6 * refactor: Make SOG itself responsible for checking whether it's already been deleted on an update request from the regular sweep 2008-09-06 01:10:47 +00:00
Dahlia Trimble 88cdd266ef reformatted some of unit test standards to allow them to work when OpenSim is built in Visual Studio 2008-09-06 00:58:56 +00:00
Justin Clarke Casey 4d86a324f8 * minor: change hard tabs back to spaces in previous commit
* my excuse is that I hadn't used this monodevelop exe before...
2008-09-06 00:55:16 +00:00
Justin Clarke Casey 01878b886c * Fix mantis 2130 - nre occuring sometimes when the regular prim update sweep occurs
* Fold m_deleted and m_isDeleted together (ugh!)
2008-09-06 00:44:50 +00:00
Justin Clarke Casey a4078c280a * Blind fix what looks like a bug in the new land MSSQL code
* The data returned from the db was never inserted in the list to be processed and return
* This is an example where a warning has revealed a bug
2008-09-06 00:11:50 +00:00
Justin Clarke Casey de467f4903 * Remove lots of warnings from the CMS module
* Remove a few other miscellaneous warnings
2008-09-06 00:09:24 +00:00
Charles Krinke 0054bce5ae Mantis#2093. Thank you kindly, Ewe Loon for a patch that:
Solves SetPrimitiveParams, Revolutions not calculated 
properly.
2008-09-05 23:53:44 +00:00
Charles Krinke da244d1e90 Mantis#2048. Thank you kindly, HomerHorwitz for a patch that:
The attached patch (against r6075) fixes it for grid-mode. If the 
home-region isn't available, the stored regionHandle will be used 
to compute the region-coordinates of the home. This will be wrong 
if the home-region has moved, of course, but without the region 
being online we can't request the RegionInfo of it for finding out. 
Doing that (before the patch) and accessing the (null) RegionInfo 
led to a NullReferenceException, which prevented logging in to the 
last location.
2008-09-05 23:38:42 +00:00
Charles Krinke 947242f476 Mantis#2126. Thank you kindly, Ralphos for a patch that addresses:
Types extracted from a LSL_Types.list have to be down-cast initially 
to the exact type of value type object that the Object actually is.
This would make for very cumbersome, ugly code when extracting list 
parameter items in ll functions where a few implicit conversions 
should be applied such as key -> LSLString and LSLInteger -> LSLFloat 
(but not LSLFloat -> LSLInteger). This patch adds a set of GetXXXItem 
member functions to the LLS_Type.list class, where XXX is the name 
of the LSL_Type to be extracted: LSLFLoat, LSLInteger etc. All take 
a single, int parameter that is the item number to be extracted.
2008-09-05 23:26:35 +00:00
Charles Krinke 271bbb2557 Thank you kindly, KrTaylor for a patch that adds:
llParseString functions throw exception when passed a 
list of variables and this patch adds logic to solve
this to LSL_Api.cs
2008-09-05 23:21:02 +00:00
Charles Krinke 24a95507d4 Mantis#2104. Thank you kindly, Godfrey for a patch that:
If the parcel pointed to by the landmark has nothing in the 
Description field (of the General tab in About Land...), a 
NullReferenceException is thrown and the client is logged out.
I added a check to the calls to Helpers.StringToField() in OpenSim.Region.ClientStack.LindenUDP.SendParcelInfo to avoid 
this issue.
2008-09-05 23:04:20 +00:00
Teravus Ovares f5c82186c1 * Adds configurable OGP Name prefix and suffix. See OpenSim.ini.example at the bottom for details. Defaults to an empty string for prefix and '_EXTERNAL' for suffix 2008-09-05 16:54:31 +00:00
Dahlia Trimble 0fc618e7b2 Replaced a lot of trig calls with lookup tables for common prim types in an attempt to improve meshing speed.
Added a new between points interpolation method to improve accuracy of profile cuts in triangle and square profile prims.
2008-09-05 16:38:51 +00:00
Sean Dague d363661a7e complete rationalization of unit tests that we currently run 2008-09-04 22:11:13 +00:00
Sean Dague fb9bd7dec6 normalize naming for OpenSim.Tests.Framework.dll 2008-09-04 22:06:18 +00:00
Sean Dague a0f2e46836 added in find calls
added logging of exceptions, which we'll get quite a few of at this
point most likely
2008-09-04 22:06:16 +00:00
Sean Dague 6e1bcbcf48 remove calls 2008-09-04 22:06:13 +00:00
Sean Dague ff4b6fc1b5 start in on an EntityList class so we can stop doing lots of manipulating
of Entities as a dictionary directly
2008-09-04 17:52:53 +00:00
Sean Dague d8c9e3a7a3 fix some indenting 2008-09-04 15:49:24 +00:00
Sean Dague afac1953a2 minor fixes 2008-09-04 15:35:30 +00:00
Sean Dague 2d6e9139a4 added rollback bit to the help menu 2008-09-04 15:35:29 +00:00
Sean Dague d508b1f082 add some stubbing for ini.example for CMS module 2008-09-04 15:34:09 +00:00
Melanie Thielker eee9c114cb Mantis #2111
Eliminate gretuitious KillObject packets. KillObject is sent to the
viewer for the root part only.
Also prevents the full update on deselect that makes a deleted object
reappear and stay visible until the background deleter got around to it.
We still send 2 KillObject packets for the root prim, that could be 
avoided only at a cost in reliability. One packet seems an acceptable
price to pay for consistency.
2008-09-03 19:28:46 +00:00
Melanie Thielker ef27c8817f Mantis #2112
Thannk you, ralphos, for a patch to clean up list item type handling
and add a missing explicit cast in Shared/
2008-09-03 18:57:06 +00:00
Sean Dague cf7f3df4c2 add standard copyright headers for the project 2008-09-03 18:23:59 +00:00
Sean Dague 8741c58dc6 remove non code files 2008-09-03 18:23:51 +00:00
Sean Dague af5c7e52b1 narrange to do basic cleanup of the CMS module 2008-09-03 18:11:44 +00:00
Sean Dague eee0fa73e0 white space fixes 2008-09-03 18:04:44 +00:00
Sean Dague 9082316757 come up nicer on startup if the opensim.ini section isn't there 2008-09-03 18:04:42 +00:00
Sean Dague 4ddc7d66d6 type change from ChatFromViewerArgs -> OSChatMessage to line up with trunk. 2008-09-03 18:04:41 +00:00
Sean Dague 12beaccec7 Merge branch 'cms' of http://pokgsa.ibm.com/~jbongio/public/opensim 2008-09-03 18:04:37 +00:00
Jeff Ames 9053e8510c Update svn properties. 2008-09-03 14:05:49 +00:00
Melanie Thielker b0965a41d6 Mantis #2097
Thank you, ralphos, for a patch that fixes an InvalidCastException
in llSetPrimitveParams.
2008-09-03 13:22:18 +00:00
Dr Scofield 3d101de375 clean up and fixing a typo. 2008-09-03 11:58:36 +00:00
Melanie Thielker dba779862d Mantis #2107
Thank you, lulurun, for a patch to fix a possible crash when a received
packet contains a quaternion with all members zeroed.
2008-09-03 11:25:11 +00:00
Melanie Thielker 0fc55818ca Mantis #2109
Prevent a null reference exception when reset is pressed on a script
while it's being compiled.
2008-09-03 10:53:25 +00:00
Charles Krinke e044d83679 Mantis#2106. Thank you kindly, HomerHorwitz for a patch that:
The attached patch fixes connectivety checking of root- and
child-agents. If an agent's client isn't sending any packets 
for some time (not even to StartPingCheck packets), we assume 
that we lost connection and try to log them out.
2008-09-03 03:35:54 +00:00
Charles Krinke 98da84c851 Mantis#2105. Thank you kindly, HomerHorwitz for a patch that addresses:
Due to the many problems with not cleaned up child-agents, I thought it 
might make sense to be able to see them on the console. 'show users' on 
the region-server's console now outputs root- and child-agents (with 
"root" or "child" column)
2008-09-03 03:32:29 +00:00
Melanie Thielker e98780fea5 Mantis #2099
Thank you, cmickeyb, for a patch that corrects the database connection
handling in the multithreaded user server.
2008-09-03 02:51:34 +00:00
Sean Dague 36dcedce31 a piece of LSL_API changes got checked in incorectly with 6091. This
fixes that, and should get us back to compile state.
2008-09-02 20:45:46 +00:00
Sean Dague abb0ad36bd apparently I missed one of the old version routines that could be
removed.  Removing that now.
2008-09-02 20:17:57 +00:00
Melanie Thielker 9806c0b374 Committing the missing resource file for MSSQL. Sorry... 2008-09-02 20:05:20 +00:00
Melanie Thielker 52a5425628 Small fix to a cast in list parsing 2008-09-02 14:08:15 +00:00
Melanie Thielker 930b2ec602 Mantis #2102
Thank you, RuudL, for a patch that supplements the previous MSSQL
patch.
2008-09-02 13:43:49 +00:00
Melanie Thielker 2e4a5aa98a Fix and reactivate the unit tests on the XEngine 2008-09-02 13:38:14 +00:00
Dr Scofield 109aa00150 fix: PostInitialise() not being called on script engines (nasty one that)
cleanup: warnings, readability
2008-09-02 12:07:23 +00:00
Melanie Thielker f13a48fe1c Fix regex for string->int cast to accept leading spaces and a sign 2008-09-02 06:43:16 +00:00
Melanie Thielker 14a218dbc9 Temporarily disable the unit tests for Shared/ until they can be updated. 2008-09-02 06:19:55 +00:00
Melanie Thielker 2fbebbb644 First batch of the unit test changes for the new constants semantics
in XEngine. This turned out to be a lot of work to catch up.
2008-09-02 06:02:14 +00:00
Melanie Thielker b7a4613a0d Correct the representation of the automatic null string 2008-09-02 04:23:01 +00:00
Melanie Thielker e2a0a04beb Remove the ((bool)()) cast, since it can make c# barf 2008-09-02 04:15:06 +00:00
Melanie Thielker 61978649ec Change some chat output functions so that text is truncated at
1000 chars to avoid the exception thrown by libomv at 1100 chars.
Change string->int conversion so it copes with non-numeric chars
after the number and no longer uses a float to parse the value.
2008-09-02 03:43:18 +00:00
Dahlia Trimble a5e7807612 Y top shear accuracy improvements in circular path prim meshes 2008-09-02 01:54:08 +00:00
Melanie Thielker 146f469524 Add an explicit cast to bool for the if expression so that any base types
that slip in will not cause it to break
2008-09-02 00:03:16 +00:00
Melanie Thielker 0e7bac07f6 Thank you, Ewe Loon, for a patch that fixes various aspects of
llSetPrimitiveParams and llSetLinkPrimitiveParams
2008-09-01 23:35:52 +00:00
Melanie Thielker a5d2674a43 This is an attempt to fix the handling of constants in LSL.
It wraps constants in new LSLType(x), so that lists with
constant values are processed correctly. Contains changes to
the lsl.parser.cs that are not (yet) reflected in opensim-libs,
since this experimental patch affects XEngine only. Also contains
nuts.
2008-09-01 23:33:12 +00:00
Melanie Thielker bfeb3881f2 Another attempt at fixing XEngine llSetPrimitiveParams: Make it accept
LSLIntegers in lists, and attempt to address the scope issue on TRUE
and FALSE with readonly static linkage
2008-09-01 21:54:04 +00:00
Melanie Thielker b6bb5f944f Mantis #2095
Thank you, RuudL, for a complete adaptation of migration and estate
data to MSSQL, and the updating of the RegionData handling in MSSQL.
2008-09-01 17:10:01 +00:00
Melanie Thielker ddd68a0537 Mantis #2072
Griefer protection! When running without serverside permissions, let only
the owner edit attachments. Having everyone able to do it just isn't right.
2008-09-01 12:56:53 +00:00
Dahlia Trimble f4035840d2 compensates profile placement effects of Y hole size on X top shear for circular path prim meshes 2008-09-01 08:19:47 +00:00
Dahlia Trimble 9cf9c08696 Improvement in mesh accuracy in X Top Shear parameter for circular path prims 2008-09-01 06:00:07 +00:00
Melanie Thielker 805deb5a9b Attempt to fix an issue I havebeen seeing, where asset server failure
results in a memory leak which will make the region crash and burn
after a while.
2008-08-31 10:42:35 +00:00
Justin Clarke Casey cd5f8cf9ec * Pragma out deprecation warning and comment out to remove other warnings in the OGP module
* Thanks to Teravus for the heads up on this.
2008-08-30 22:02:04 +00:00
Justin Clarke Casey d3510def00 * If a general alert message is sent out, only send it to avatars in the scene (not child agents).
* This foxed me in the osgrid meeting last week
2008-08-30 21:52:09 +00:00
Justin Clarke Casey c713ec8223 * Committed patch in mantis 623
* Unpatched code certainly looks bizarre - attempts to add a new client if we encountered a failure in processing a packet.  No apparant ill effects on a sniff test.
* Thanks openlifegrid
2008-08-30 21:33:55 +00:00
Justin Clarke Casey e4ec9829cd * Apply cmickeyb's patch from mantis 2068
* llParseString functions throw exception when passed a list of variables 
* Thanks!
2008-08-30 21:12:58 +00:00
Justin Clarke Casey d2344b5626 * Oops, add landmarks to region archive loading/saving
* Hopefully this will resolve mantis 2049
2008-08-30 21:05:09 +00:00
Adam Frisby 2133fa56e7 * Added new MySQLSuperManager support for the grid servers.
* In theory, login and a large number of grid functions should now at least be multithreaded.
2008-08-30 19:35:22 +00:00
Justin Clarke Casey 3faadb3f5c * minor: Tiny doc addition to trigger another build that hopefully won't fail
* I can't see why the last compile failed - hoping it's some kind of glitch
2008-08-30 18:29:37 +00:00
Justin Clarke Casey 49ec6dd882 * squash some obvious warnings
* a couple more remain that preferably the original coders should look at in more detail (obsolete warnings in the ogp module and not overriding warnings in the script 
engine)
2008-08-30 18:09:38 +00:00
Justin Clarke Casey 645d2c49e1 * Remove unused OpenSim/Framework/RegionHandle.cs as per Homer's suggestion in mantis 2082. Thanks. 2008-08-30 17:57:48 +00:00
Justin Clarke Casey 8f31c47f2f * Apply patch in mantis 2083
* TimeStamp field of the AgentMovementCompletePacket in LLClientView.MoveAgentIntoRegion contained a fixed number. The attached patch changes this to a current 
timestamp.
* Thanks HomerHorwitz
2008-08-30 17:51:12 +00:00
Adam Frisby 72b0a53ada * Fixed #2807 Again, Whoops. 2008-08-30 16:46:51 +00:00
Adam Frisby e471a33961 * Fix for Mantis #2087, Standalone MySQL broken with threading improvements. (Didnt realise this code was being shared with the gridservers) 2008-08-30 14:27:28 +00:00
Adam Frisby b63922dcfe * Minor fix to previous threading patch, every nTH request would previously have been delayed for 1000ms. This has been fixed. 2008-08-30 13:46:04 +00:00
Adam Frisby 0a5280edb5 * Added new "SuperManager" class for MySQL connections, for allowing multiple concurrent MySQL threads.
* Implemented SuperManager inside of UserData. This means the userserver when running on MySQL will use 10 connections (+1 system connection) to handle requests, preventing the previous mire of locking resulting in singlethreadedness.
* This requires testing and grids relying on stability should not upgrade to this revision until it's been properly tested.
2008-08-30 13:38:46 +00:00
Adam Frisby 618ccd4ebc * Ditto, UserServer/Main.cs 2008-08-30 13:06:58 +00:00
Adam Frisby d0397af998 * More cleanup, including UserManager. 2008-08-30 13:03:38 +00:00
Adam Frisby 50a62145ad * Initial inspection of UserLoginService.cs, cleaned up source code slightly to make it easier to work with. 2008-08-30 12:58:54 +00:00
Adam Frisby f57f4d1ab8 * Added "File Asset Client" to OpenSim Asset Server-types.
* You can replace "grid" as the asset system with "file" to save and load all your assets from a directory on your hard disk. Files are serialised to XML and saved in the format "/<dir>/0x/0x/0x/0000-0000-000000-0000-0000.xml"
* Directory <dir> is sharing the Asset Server URL path, use a normal path here instead (ie C:\xyz or /var/assets/). 
* This probably wont work well in grid mode unless every sim has access to the same directory. This is mostly intended for standalone usage where quick and convenient access to assets is required.
2008-08-30 04:42:23 +00:00
Charles Krinke e3308c0fa5 Mantis#2084. Thank you kindly, HomerHorwitz for a patch that:
Addresses the problem of ghost avatars. The problem was child-agents 
sending data. Due to symmetry reasons, I considered that wrong. 
Whenever an avatar A1 in region R1 looks at avatar A2 in adjacent 
region R2, we have two possibilities to communicate: A2-root sends 
to A1-child (both in region R2), or A2-child sends to A1-root 
(both in region R1). Currently, the children send data in some cases, 
and I guess the viewer gets puzzled about that and switches the child 
to root as consequence (at least partly), so it becomes visible.
2008-08-30 01:21:18 +00:00
Melanie Thielker fda5457996 Maintis #2078
Thank you, ralphos, for a patch that corrects the handling of compiler
warnings in the XEngine, which were erronoeously reported as errors!
2008-08-29 19:57:01 +00:00
Charles Krinke 9fc67f1908 Mantis#2067. Thank you kindly, HomerHorwitz for a patch that:
Found that during my ghost-hunt: Add some logging and you see that the 
counting down happens twice (once at the place that is removed by the 
patch, and once caused by the actual removal of the root-/child-agent 
during LLClientView.Close). With the patch applied, I end up with correct 
numbers, i.e. with 0 roots and 0 children after everyone has logged out.
2008-08-29 14:21:31 +00:00
Melanie Thielker ee0a5caa30 Fix an issue where the client supplies an empty name and it was applied
to the inventory item, causing the item to wind up without a name.
2008-08-29 11:03:58 +00:00
Dahlia Trimble 35ad484b6b fixed some ugliness in the conversion from the new mesher format to the old that should speed up region startup a little and maybe even use less memory if the GC decides to play friendly with the other kids. 2008-08-29 08:19:47 +00:00
Melanie Thielker 10b2a4597a Mantis #1903
Thank you, cmickeyb, for a patch that fixes inventory folder retrieval.
2008-08-28 20:56:53 +00:00
Jeff Ames 3bf8858727 Update svn properties, formatting cleanup. 2008-08-28 14:41:54 +00:00
Melanie Thielker 086284da55 Thannk you, Ralphos, for a patch the corrects an improper cast in
llSetPrimitiveParams
2008-08-28 14:08:09 +00:00
Sean Dague 605ceb6176 Fix for Bug #2065: New check out crashes on sqlite migration
I apparently missed one drop tables statement that was actually needed
when I did the cleaning to make this work for old sqlite versions.
2008-08-28 12:47:55 +00:00
Melanie Thielker 5dac6242bd Thank you, salahzar, for a patch that adds some more functions
from DotNetEngine into XEngine.
2008-08-28 10:42:22 +00:00
Dr Scofield 1828091528 create-region didn't know about regionload_regionsdir... 2008-08-28 10:01:56 +00:00
Dr Scofield 0921dafddf adds XmlRcpLoadOAR support to RemoteAdminPlugin.cs 2008-08-28 09:34:47 +00:00
Teravus Ovares 47127abfb6 * Added hack so that if the default OpenSimulator ParentEstateId(100) is being sent through rez_avatar, it'll be swapped out with 1. This ensures that when the map recognizes the parent estate id parameter on the linden grid, it'll work as expected. This also has the effect of making it impossible to send a Parent Estate ID with 100 over OGP from OpenSimulator (Sorry Owner of estate 100). 2008-08-28 08:25:47 +00:00
Teravus Ovares 88b3df9d52 * OGP update, deserialize the parameter array properly in rez_avatar
* Tweak rez_avatar data so it's easier to update when OGPr3 comes out
2008-08-28 08:13:35 +00:00
Dr Scofield 4a3523bc67 this fixes the crash reported by mantis #2046: user server crashing if
no OpenSim.ini file found by GridInfoService. GridInfoService now will
just issue a warning that GridInfo will NOT be available to your users 
if no OpenSim.ini file is available. due to the static nature of 
UserConfig (configuration options hardcoded) i don't think it's currently
an option to move GridInfo into user_server.xml but if anyone wants to 
look into this i'd be delighted...
2008-08-28 07:37:16 +00:00
Dahlia Trimble 49f9bd8b68 Added some exceptions for bad profile cut parameters 2008-08-28 06:41:32 +00:00
Melanie Thielker 53f78a1087 Thank you, A_Biondi, for patch to porperly apply the new item name
when copying within agent inventory
2008-08-28 02:36:40 +00:00
Melanie Thielker bf4d1fbb8d Refactor IScriptInstance / IScriptEngine to use a generic IScriptWorkItem,
which is a thin wrapper around a IWorkItemResult from the SmartThreadPool.
However, it is very easy to reimplement on top of basic threading and therefore
makes the IScriptInstance class independent of the specific threading
implementation.
2008-08-28 00:37:22 +00:00
Dahlia Trimble 1a83384f90 re-enable new PrimMesher module for mesh creation for standard (non-flexy) prims. 2008-08-27 23:43:53 +00:00
Dahlia Trimble 2c842652c1 ODEPlugin now frees source mesh data after conversion to pinned lists to save memory 2008-08-27 23:39:50 +00:00
Dahlia Trimble e593a333c7 adds releaseSourceMeshData() method to IMesh and Mesh for freeing mesh data after conversion to pinned lists. 2008-08-27 23:37:14 +00:00
Melanie Thielker 5525a3ecb4 Thank you, salahazar, for a patch that corrects the behavior of
llDetectedLink(). Also a small refactor to remove an interface member
from IScriptEngine.
2008-08-27 22:53:58 +00:00
Melanie Thielker 6e3367d68c Refactor XScriptInstance to IScriptInstance and move into Shared/. Now
engines that want to use the XEngine's instance handling and state
persistence can do so. IScriptInstance is optional, but it does
require the SmartThreadPool if it is used.
2008-08-27 22:38:36 +00:00
Melanie Thielker a2985b5655 Refactor Executor into the script app domain and IScript. This changes
an implicit reference into a proxied one and further reduces memory
consumption of XEngine
2008-08-27 21:36:03 +00:00
Teravus Ovares f900553b58 * Updates OGP module to define a default starting point
* An attempt to solve an intermittan SSL Certificate validation error causing communications havok.
2008-08-27 20:27:18 +00:00
Sean Dague 3465a5772a cleaning out cruft from pre-Migration days 2008-08-27 19:24:48 +00:00
Sean Dague 066715415a getting rid of pre-Migration cruft 2008-08-27 19:24:46 +00:00
Sean Dague c75f1fcde8 we are now past change 6000, so getting rid of pre-Migration cruft 2008-08-27 19:24:45 +00:00
Sean Dague b625a36ae5 we are now past change 6000, so getting rid of the pre-Migration
upgrade cruft
2008-08-27 19:24:40 +00:00
Melanie Thielker 1a3f83c94b Erm - make the distanc factor really work....
(wipes egg off face)
2008-08-27 19:12:17 +00:00
Melanie Thielker bc78a6335b Mantis #2058
Remove the physics representation of link set child prims when the
link set is deleted.
2008-08-27 19:06:07 +00:00
Sean Dague fc81ddc1d1 From: Richard Alimi <ralimi@us.ibm.com>
The following patch fixes the import of assets via the REST interface to
use the proper Base64->Bytes conversion. The previous conversion did not
work correctly for binary data, in particular for textures.
2008-08-27 18:59:42 +00:00
Sean Dague 5bf5e1c320 remove legacy pre-Migration database upgrade routines 2008-08-27 18:51:43 +00:00
Sean Dague 49df787665 remove the legacy pre-Migration database upgrade paths 2008-08-27 18:51:42 +00:00
Sean Dague ba16a27ab0 remove pre-Migration upgrade paths 2008-08-27 18:51:40 +00:00
Sean Dague 53afa23608 we're past checkin 6000, so now cleaning up all the cruft of the pre
migration database upgrade paths.  This is coming in in stages.
2008-08-27 18:51:36 +00:00
Melanie Thielker a12f652347 Make the check on inventory cache clearing more robust. Addresses
Mantis #1975 in a broader way. This may or may not prop up
secure inventory a bit better, but I still recommend to disable it
2008-08-27 17:50:07 +00:00
Sean Dague f87f8b3b9f get rid of the "drop if exists" lines in this old migration, as those
tables shouldn't exist yet, and the exists keyword is relatively new in
sqlite.  This has been breaking a lot of people on Suse Enterprise Linux,
for instance.
2008-08-27 17:32:02 +00:00
Melanie Thielker 788dff7090 Implements the r6005 foes for XEngine as well 2008-08-27 17:19:56 +00:00
Melanie Thielker 1ac6bb3107 Add ScriptDistanceLimitFactor to OpenSim.ini to allow modifcation of
LSL's arbitrary 10 m limit on object movement.
Also implements the 10 m maximum rezzing distance, subhect to the same
factor.
2008-08-27 17:12:55 +00:00
Dahlia Trimble 36d1720fde reverting to prior meshing methods until some physics timing issues can be resolved 2008-08-27 09:49:13 +00:00
Dahlia Trimble 65c82c2494 Added some exception trapping to PrimMesher 2008-08-27 08:03:52 +00:00
Dahlia Trimble cf951d4d04 Added some exception handling to help catch some possibly corrupt prims 2008-08-27 07:30:14 +00:00
Dahlia Trimble 3481a977f0 Meshmerizer now uses new PrimMesher class for meshing all standard (non-sculpty) prims. This should result in more accurate meshes, lower memory consumption, and eliminate several lockup modes. 2008-08-27 06:53:09 +00:00
Dahlia Trimble 8be249bc68 Completion of new PrimMesher class 2008-08-27 06:39:39 +00:00
Dahlia Trimble fce83731ad Modified Mesh object to allow alternative mesher interfacing 2008-08-27 06:29:34 +00:00
Charles Krinke 363989195a Mantis#1518. Thank you kindly, Zaki for a patch that:
Issue is caused by the terrain height not being queried before 
teleporting within the region. Teleporting between regions is 
correct. Adding the neccessary checking to intra-region TP code.
2008-08-27 02:49:47 +00:00
Charles Krinke e2b0852c93 Mantis#2052. Thank you kindly, Avdleeuw for a patch that:
After having built revision 5992, OpenSim would start while 
issuing some errors regards updates to user profiles (Master 
Avatar, and other manually added avatars). Issue 2027 dealt 
with the MySQL part. This issue deals with the SQLite part.
2008-08-27 02:45:10 +00:00
Charles Krinke 84cdebe470 Mantis#2047. Thank you kindly, Simsim for a patch that addresses:
avatar sitting on the object can not telport to other regions.
2008-08-27 02:40:14 +00:00
Melanie Thielker 670719cb76 Mantis #1903
Thank you, cmickeyb, for a patch that prevents the loss of folders received
out of sequence, and the items within.
2008-08-27 00:40:36 +00:00
Justin Clarke Casey 8462c8c497 * Eliminate commented out code no longer needed, as discussed on the ml 2008-08-26 18:44:34 +00:00
Justin Clarke Casey f0448e299d * On loading archives, report an error if an asset does not have the expected filename format 2008-08-26 18:14:10 +00:00
Teravus Ovares d48d928858 * One more tweak to the application/xml vs application/llsd+xml routine 2008-08-26 06:05:43 +00:00
Teravus Ovares 1015ca3863 * It turns out that Mono doesn't currently support setting the Certificate validation handler, however, it throws a NotImplemented exception.
* Added Try/Catch/Message
2008-08-26 05:41:07 +00:00
Teravus Ovares b3a6f8d688 * Workaround for application/llsd+xml requests coming in as application/xml
* When OGP is active, disable SSL certificate chain validation.  I'll add more options here to come, as well as a way to test against a group of known certificate subjects.
2008-08-26 05:20:46 +00:00
Teravus Ovares 9f635e354b * Fixed a bug that occurred if your home region wasn't logged in, in standalone. It wouldn't let you in even if your destination region is online with a 'region x not found' message.
* The purpose of the check was to ensure that your home region was sent to your client properly when you connected.    However, the desired result is that if the home region is down, but the destination region is online, the user should still get in.
* Changes: if the home region isn't available, set the message to the client so that the home region is the destination region.
2008-08-26 03:07:24 +00:00
Justin Clarke Casey 4aa204c8ea * minor: zap some more compilation warnings 2008-08-25 23:32:06 +00:00
Teravus Ovares 43ab833be0 Documentation, headers and all the normal stuff 2008-08-25 23:31:50 +00:00
Justin Clarke Casey c4d6a928c9 * Append thread information on to the end of period diagnostics information
* This is working towards finding out why many more client threads are hanging about on wright plaza than there are actual agents
2008-08-25 23:27:08 +00:00
Justin Clarke Casey 4a475ca2be * minor: refactor thread report into a method that returns a string rather than displays information directly 2008-08-25 23:21:07 +00:00
Justin Clarke Casey 71e8a9a12f * minor: upgrade version info to post 0.5.9 2008-08-25 22:09:02 +00:00
Justin Clarke Casey ba2130046f * minor: Comment out the remaining unhandled packet messages in LLClientView, except for unidentified packets
* These make it more difficult to read the logs, and I don't think they help all that much
2008-08-25 22:01:51 +00:00
Justin Clarke Casey ad262444dc * minor: some logging conformance, code documenting 2008-08-25 21:55:44 +00:00
Charles Krinke a055d3c2e8 Mantis#2045. Thank you kindly, Tyre for a patch that:
This patch adds even more LSL compatibility to llSetPos() As stated in the 
wiki http://wiki.secondlife.com/wiki/LlSetPos, [^] movement should also be 
capped to 10m per call for unattached root prims.
Beside this issue the attached patch adds (hopefully) all known LSL script 
delays (as ScriptSleep(), but still commented out) to LSL_BuiltIn_Commands.cs 
and LSL_Api.cs and a lot of format cleanup.
2008-08-25 21:39:36 +00:00
Justin Clarke Casey 3d2069f3d9 * zap compilation warnings 2008-08-25 21:35:22 +00:00
Justin Clarke Casey 7402c2d288 * Deal with a WebException thrown if a grid server cannot be contacted for region information 2008-08-25 21:26:58 +00:00
Melanie Thielker 24456e846c Add the same delay factor in the XEngine section for the XEngine 2008-08-25 18:07:29 +00:00
Melanie Thielker 64e4c34c1a Add ScriptDelayFactor under LL-Functions in OpenSim.ini. Defaulted
at 1.0, it allows delays to function as coded. Smaller values will
reduce, larger values will increase the delays. A value of 0 is
permitted and results in on delay being applied.
2008-08-25 17:50:44 +00:00
Jeff Ames 41f616627f Update svn properties. 2008-08-25 14:40:10 +00:00
Melanie Thielker fc9a1f0f45 Fix osAvatarPlayAnimation to actually do what it says on the box 2008-08-25 13:53:49 +00:00
Melanie Thielker cf7020d73c Mantis #2044
Thank you, salahzar, for a patch that corrects the behavior
of PRIM_TYPE in llGetPrimitiveParams() and improves LSL
conformance in llGetNumberOfSides();
2008-08-25 11:58:55 +00:00
Teravus Ovares c67c56ca94 * Fix to OGP Region to Region teleports. Yay. 2008-08-25 09:13:52 +00:00
Teravus Ovares 2912aafe25 * This commit incorporates the heart of the OpenGridProtocol patch that is currently on Forge in a nice, friendly modular format.
* There are a lot of changes and this is quite experimental.  It's off by default, but you can turn it on by examining the bottom of the opensim.ini.example for the proper OpenSim.ini settings.    Remember, you still need an agent domain..  
* Furthermore, it isn't quite right when it comes to teleporting to remote regions (place_avatar)
2008-08-25 07:35:17 +00:00
Charles Krinke 032a4ee9b5 Mantis#2043. Thank you kindly, Ralphos for a patch that addresses:
The version of llSetLinkPrimitiveParams in LSL_BuiltIn_Commands.cs 
has not been kept in sync with the additional functionality made 
recently to the llSetLinkPrimitiveParams implementation in
LSL_Api.cs which includes support for setting glow, full bright and 
other privative parameters. A patch to LSL_BuiltIn_Commands.cs is 
provided the incorperates this functionality (duplicated).
2008-08-24 18:37:51 +00:00
Charles Krinke d2f2ec12fd Mantis#2027. Thank you kindly, HomerHorwitz for a patch that addresses:
Analysis shows that the XMLRPC-request contains an empty string (<string />) 
for the custom_type parameter, which is deserialized wrongly to a null-value, 
thus leading to the exception above. The attached patch (against r5967) fixes 
the symptom and uses "" for customType in that case.
2008-08-24 18:32:39 +00:00
Melanie Thielker a7a385937e Completing the item sale series, this one implements sell contents.
All item sale modes are now complete.
2008-08-24 16:41:23 +00:00
Charles Krinke d190f1d2dc Mantis#2041. Thank you kindly, HomerHorwitz for a patch that:
The attached patch fixes that your home-location icon is 
displayed on the region you logged in, not on your home-region.
2008-08-24 15:54:10 +00:00
Melanie Thielker ec9137c4fa Mantis #2028
Thank you, salahzar, for a patch that implements llGetNumberOfSides()
for the DotNetEngine.
2008-08-24 14:04:02 +00:00
Melanie Thielker d5b48ecbe1 Selling a copy of a prim (prim vendor) now works.
Sack of bolts to go with the nuts?
2008-08-24 07:16:47 +00:00
Melanie Thielker 07cb1d4f0e Selling an object in-place (as original) now works. Builders can
now ply their trade. Is that nuts?
2008-08-24 06:39:54 +00:00
Melanie Thielker c9b5641c49 Plumb the data path for all those eye candy values. Saves texture
animation, target omega, looped sound, script access pin, allowed
drop state and sale data. Loads it, too. Not all tested.
Code: No Nuts. Data: Cannot Guarantee Nut Free.
2008-08-24 05:25:26 +00:00
Melanie Thielker f9ec65bc21 Add the fields for the eye candy and sale featires to the prims table.
No user functionality yet.
Run prebuild. Contains a Migration. May contain nuts.
2008-08-24 03:15:02 +00:00
Dahlia Trimble 29407a43f5 more progress on new meshing routines 2008-08-24 01:23:04 +00:00
Melanie Thielker 63b6ab467a Implements 80% of object buy (prim vendor). You can't buy the object yet,
and the for sale setting doesn't survive a sim restart, but this is most
of the plumbing.
2008-08-24 00:51:21 +00:00
Charles Krinke 89f2148f56 Mantis#2036. Thank you kindly, HomerHorwitz for a patch that:
Not enough logging. Added IP endpoing of request to the log 
messages on lookup-failure
2008-08-23 21:44:57 +00:00
Charles Krinke 5725fb5984 Mantis#2036. Thank you kindly, HomerHorwitz for a patch that:
This patch adds some more informative logging if the region isn't found.
2008-08-23 20:31:32 +00:00
Charles Krinke 4c40a680fa Mantis#2032. Thank you kindly, Tyre for a patch that:
This small patch provides the required changes to populate 
the columns agentIP and agentPort in table "agents"
Tested with mysql (but should work for all supported db engines)
2008-08-23 18:40:07 +00:00
Melanie Thielker bfc911f814 Change to no longer check funds on temp texture uploads.
This fixes the "no funds" message on rebake.
2008-08-23 16:43:34 +00:00
Melanie Thielker d2d9808742 Thank you, salahzar, for a patch that adds llGetNumberOfSides and will
also enable LSLconformance on some texture functions as well.
Applied the part of the patch in Shared/.
The part for Common/ needs to be reworked to remove the reference
into Shared/
2008-08-23 16:15:17 +00:00
Dahlia Trimble 72f74acdbf more work on new meshing routines... 2008-08-23 10:28:35 +00:00
Dahlia Trimble df14889635 some initial work on new prim meshing routines (incomplete) 2008-08-23 08:33:00 +00:00
Melanie Thielker ccd74f888b Some complex re-ordering to make prebuild do what needed to be done.
It is now possible to use module interfaces without referencing Scene.
Place those interfaces in OpenSim/Region/Interfaces. They may not
use any refs from OpenSim.Region.Environment as parameters.
This resolves a circular library ref introduced in r5949
2008-08-23 02:30:07 +00:00
Melanie Thielker 5d6f92fb96 Patch #9171
Disallow bulk uploads if money module is present and upload cost
is set and the user hasn't got sufficient funds.
2008-08-23 00:44:06 +00:00
Teravus Ovares 50bf3618a3 * Homer's amazing terrain MapTileRenderer. Thanks Homer!
* By default, texture rendering is on.  This may be affected by using secure assets since your region hasn't registered with the gridserver before it asks for texture assets.  It might also be affected by a slow asset server,  so consider this release experimental.
* Defined interface IMapTileTerrainRenderer.
* Extracted "old" shaded maptile terrain rendering into ShadedMapTileRenderer;
  streamlined it a bit and added "highlight" rendering to its "shadow"
  rendering.
* Added "new" terrain-texture based maptile terrain rendering
  (TexturedMapTileRenderer); made TerrainUtil.InterpolatedNoise public
* Adapted MapImageModule to allow switching between those two by configuration
* Added configuration option to OpenSim.ini.example
2008-08-22 22:04:43 +00:00
Justin Clarke Casey f0ffbf5b38 * Allow an exception generated in ProcessOutPacket to travel up the stack
* It is dealt with correctly further up, at which point the user is also notified and the failure recorded as a statistic
2008-08-22 21:41:05 +00:00
Dr Scofield d972d22788 bug fixes:
- GridInfoServices was not paying attention to location of ini file
- typo in RemoteAdminPlugin
2008-08-22 11:09:38 +00:00
Dr Scofield cf5ee5eaa1 - fixes a bug in RemoteAdminPlugin where CreateRegion would not pay
attention to regionload_regionsdir from OpenSim.ini

- fixes a type on RegionLoaderFileSystem
2008-08-22 09:00:32 +00:00
Dahlia Trimble 0f6b899ec7 Cleaned up some warnings 2008-08-22 07:25:53 +00:00
Dahlia Trimble 261876fd47 Commented out the float array "normals" in the Mesh object and all references to save memory as it was unused 2008-08-22 07:06:33 +00:00
Charles Krinke d433567178 Mantis#904. Thank you kindly, Jonc for a patch that solves:
LocalLoginService does not send the last position coords in 
the login response. This patch fixes the issue.
2008-08-21 14:23:29 +00:00
Charles Krinke 5a85f22110 Mantis#1990. Thank you kindly, Nlin and M.Igarashi for a patch that:
This patch improves LSL conformance by inserting a 0.2 second delay 
into llSetPos/llSetRot, as the function specification states. 
Thanks to M. Igarashi for the patch.
2008-08-21 14:18:40 +00:00
Dr Scofield ff2eb24022 - corrects statement about {asset,user,inventory} source configuration
as those all work with MySQL (and are in fact required it seems);
  adds examples as well

- adds region_file_template functionality for the create_region XmlRpc
  call of RemoteAdminPlugin

- cleans up and fixes typo in UserProfileData
2008-08-21 11:04:57 +00:00
Dr Scofield 2363cd2113 fixing Rest/Inventory stuff again. changes somehow got lost locally. 2008-08-20 15:28:51 +00:00
Dr Scofield 61e6d72cbc oops. forgot. 2008-08-20 10:11:58 +00:00
Dr Scofield 5e83a75815 From: Alan Webb <alan_webb@us.ibm.com>
cleanups of the REST inventory code.
2008-08-20 10:11:11 +00:00
Mike Mazur 2b83169c4b Adding unit test for issue 2006, though it's commented out as those compiler
tests tend to tank on our continuous build server.
2008-08-20 06:09:11 +00:00
Melanie Thielker f206ffd5a8 Mantis #2003 - thank you, SachaMagne, for a patch that implements
the first part of gesture persistence.
----------------------------------------------------------
Attachments no longer vanish on walking crossing. Teleport is still
problematic, but will now be blocked with message "Inconsistent
attachment state" rather than losing the attachment. Detach to be
able to TP in that case.
2008-08-20 01:48:51 +00:00
Jeff Ames 07b04213d7 Update svn properties, minor formatting cleanup. 2008-08-19 22:41:39 +00:00
Melanie Thielker b28bac016a Fixes the previous commit of llMakeLink for Shared/ 2008-08-19 22:01:59 +00:00
Melanie Thielker f2055a3524 Mantis #2001
Thank you, nlin, for a patch that implements part of llCreateLink
- DotNetEngine implementation by nlin.
- Shared/ port by me.
2008-08-19 21:37:12 +00:00
Melanie Thielker fc83af4bf6 Add the default region texture UUIDS back in that were lost in
the shuffle. Translate LLUUID.Zero to the default textures on set.
This should fix the default button in the viewer.
2008-08-19 21:18:48 +00:00
Melanie Thielker 40fa68d3e5 Mantis #1999
Allow the sim owner to add estate managers to any estate on the sim
2008-08-19 20:55:34 +00:00
Melanie Thielker 5cb0d4fcac Packet type exclusion (Mantis #2004)
Exclude SimStats packets from ack appending.
2008-08-19 19:44:49 +00:00
Melanie Thielker 41440e184b Attachment persistence (Mantis #1711)
Change user server to handle attachment assets record properly. Ensure
that attachments are not re-rezzed on region crossing. Persistence
will NOT WORK with earliser UGAI!!
Change region server to match.
2008-08-19 18:34:46 +00:00
Melanie Thielker c71d6f05a7 Moves one file to it's proper location 2008-08-19 15:16:48 +00:00
Melanie Thielker e5cdba1cb4 Fix region crossings and access to inventory after changing regions within
the same simulator
2008-08-19 15:09:35 +00:00
Jeff Ames 5c360e7374 Update svn properties, minor formatting cleanup.
Remove old comment in SnapshotStore pointed out by ChrisDown (bug #2000)
2008-08-19 13:07:24 +00:00
Melanie Thielker 29530f3029 Attachment persistence!!! Patch #9170 (Mantis #1171)
Attachments now persist across logouts. Mostly untested.
2008-08-19 07:11:58 +00:00
Teravus Ovares b4355e4564 * This reverts a change where m_regions[RegionHandle] was replaced instead of removed in LocalBackEndServices It used to be like the change above a long long time ago but we found that it caused intermittent neighbor connectivity issues. I added comments above it so that it's looked at more closely next time. 2008-08-19 07:04:47 +00:00
Mike Mazur 225067d8b6 Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs. 2008-08-19 05:30:10 +00:00
Mike Mazur a513cba60b Apply Godfrey's patch (originally in r5872) to Shared/LSL_Types.cs as well. 2008-08-19 05:25:07 +00:00
Jeff Ames bea7d4d81a Update svn properties, formatting cleanup. 2008-08-19 02:59:27 +00:00
Melanie Thielker 6d2e1ad6ba Attachment persistence!!! Patch #9169 (Mantis #1171)
Attachments now save to MySQL. No reattach on login yet.
2008-08-19 02:12:40 +00:00
Justin Clarke Casey a179089d1c * If two regions have configuration information that conflicts (save xy location, same uuid or same internal ip port) then complain loudly and don't start up 2008-08-18 21:46:07 +00:00
Justin Clarke Casey 9e6b38078a * Properly dispose of the reader after readAttachments() has finished with it in the Mysql User data manager 2008-08-18 21:18:59 +00:00
Justin Clarke Casey 9650632cd1 * It appears that sometimes some IClientAPI reference is not being released, resulting in continual execution of the CheckConnectivity timer method
* For now, just turn off this timer when we close the connection
* Also some minor help refactoring creeps in to this revision.
2008-08-18 21:14:38 +00:00
Melanie Thielker 6614eee4d4 Change LowpriorityTask to be ThrottleType.Task | ThrottleType.LowPriority to make the flag nature of this value more clear. 2008-08-18 18:59:06 +00:00
Melanie Thielker 05506cff49 Avatar Attachment persistence!! Patch #9168 (Mantis #1171)
Plumbs in attachment persistence and adds the tables. Currently MySQL
only, no user functionality yet.
2008-08-18 17:22:36 +00:00
Teravus Ovares eaeed632e0 * maptile - just flatten it.. we'll worry about projection later.. 2008-08-18 10:58:54 +00:00
Teravus Ovares 2ef4ccf89e * Slightly better implementation of prim volume drawing on the maptile using projection of an oriented bounding box. This isn't quite right yet. Experimental. It takes about 3 times longer then the previous version, however produces better results. 2008-08-18 08:25:58 +00:00
Teravus Ovares f842ad4192 * Maptile prim volume drawing change from manually drawing the rectangles using Bitmap.setpixel to a drawing2d graphics context.
* Z-sort the prim volumes before drawing.
2008-08-18 03:25:23 +00:00
Teravus Ovares c31b0a54a4 * Text/comment cleanup in MapImageModule 2008-08-18 01:38:11 +00:00
Jeff Ames 84a0a6645e Fix another compiler warning, based on a patch submitted by Leaf. (bug #1978) 2008-08-18 01:30:42 +00:00
Jeff Ames 642f6fd979 Fix compiler warning due to incomplete refactoring in r5901. 2008-08-18 01:08:38 +00:00
Jeff Ames 6ef9d4da90 Formatting cleanup. 2008-08-18 00:39:10 +00:00
Jeff Ames 531f6c01eb Update svn properties, minor formatting cleanup. 2008-08-17 23:07:14 +00:00
Melanie Thielker 35dde94f01 Change the deselect processing to prevent gratuituous full update
when an attachment is deselected.
2008-08-17 22:38:52 +00:00
Charles Krinke c200644bd9 Mantis#1974. Thank you BlueWall for a patch that:
adds handling for PRIM_PHYSICS, PRIM_PHANTOM in 
llSetPrimitiveParams()
2008-08-17 20:38:40 +00:00
Melanie Thielker fe1d78bb78 Add some locking on m_undo in SceneObjectPart 2008-08-17 19:17:44 +00:00
Melanie Thielker 5d6a42a22e Add an invalidate method to the cache class. 2008-08-17 19:10:32 +00:00
Teravus Ovares 0683a07081 * Turned on the MapImageModule as opposed to the code in Scene for generating the map image. Copied the code in Scene into the MapImageModule, made a few tweaks to get it to work with the module's interface.
* Refactored a few things in Scene to make maptile saving easier to understand.
* Added comments to describe the 'clever code' assetcache update without the gridasset being updated so as to lessen possible confusion in patches in the future.
* If the MapImageModule isn't loaded, default to the code in Scene still.
2008-08-17 18:59:58 +00:00
Melanie Thielker 40abeed7d4 Add the IInventoryModule interface and a sample method call
to Scene.INventory.cs
2008-08-17 18:41:13 +00:00
Melanie Thielker 1db8f6fbad Patch for Adam: Add two new permissions options to Opensim.ini.example
and the permissions module
2008-08-17 05:05:06 +00:00
Teravus Ovares 910f9d10d6 * half of the attachmentpoint skull fix
* There's still a full object update coming when you release the attachment after modifying it that's killing it sometimes.
2008-08-17 03:09:47 +00:00
Jeff Ames 796ccd3d37 Update svn properties, minor formatting cleanup. 2008-08-17 02:31:45 +00:00
Charles Krinke 60a676251a Mantis#1971. Thank you kindly, BlueWall for a patch that:
The included patch enable handling for PRIM_FULLBRIGHT in 
llSetPrimitiveParams().
2008-08-16 21:31:36 +00:00
Teravus Ovares 7c8cc345cd * re-order an operation to check for NaNs in the maptile shadow routine. 2008-08-16 20:54:51 +00:00
Justin Clarke Casey d7f2c454f1 * Rename *DataStore classes to *RegionData to align with SQLite 2008-08-16 20:50:43 +00:00
Justin Clarke Casey 992b04a23e * Move GridInfoService into Framework.Communications and eliminate Common.Communications for now (since this was the only class in that project) 2008-08-16 20:42:43 +00:00
Justin Clarke Casey 79efe37a99 * minor: rip out userserver stress project which never got filled out 2008-08-16 20:31:07 +00:00
Justin Clarke Casey c602d76b79 * Insert a new 'set log level [level] command on the console'
* The primary immediate use is to provide a means of temporarily reducing log output on the console when executing console commands
* Changing the log level on the console is not permanent and does not affect the log information being put into OpenSim.log
* This could have been done by putting in a threshold level on the Console appeneder in OpenSim.exe.config and implementing config watching in the code.
* But I think that it's a little more user friendly to make this doable via the console.
2008-08-16 20:24:08 +00:00
Charles Krinke 701ee43e46 Mantis#1960. Thank you kindly, Tyre for a patch that:
This small patch enables updates to the lastLogin information in the `users` table
2008-08-16 20:02:51 +00:00
Teravus Ovares a6fdcffa3b * One more terrain shadow debug helper. 2008-08-16 19:58:25 +00:00
Charles Krinke 7a90385f1c Mantis#1970. Thank you kindly, HomerHorwitz for a patch that:
This patch improves fetching of inventory from several minutes 
to a few seconds.
2008-08-16 19:37:30 +00:00
Charles Krinke b6c6572ee1 Mantis#1969. Thank you kindly, Tyre for a patch that:
Type casting the normalized vector 'lookat' to int results to <0,0,0>.
This patch also adds an overload to RequestNeighbourInfo (currently unused) 
that will come handy for some features I'm working on.
2008-08-16 19:34:12 +00:00
Charles Krinke d9cc908471 Mantis#1965. Thank you kindly, HomerHorwitz for a patch that:
Places touched:
- Added two events for in-packets to LLCLientView: RegionHandleRequest and
  ParcelInfoRequest
- Added sending of two out-packets to LLCLientView: RegionIDAndHandleReply and
  ParcelInfoReply.
- Scene handles the RegionHandleRequest, LandManagementModule the
  ParcelInfoRequest
- Added inter-region request for LandData by RegionHandle and local position.
  This was implemented as XML-RPC request. The returned LandData isn't
  complete, it only contains the data necessary for answering the
  ParcelInfoRequest
- Added new CAPS (0009) for RemoteParcelRequest and some methods for LandData
  handling to LandManagementModule
- Added methods for fake parcelID creation and parsing to Util
- Fixed missing implementation of interface methods.
- Added new file:
    OpenSim/Framework/Communications/Capabilities/LLSDRemoteParcelResponse.cs
  NOTE: This is part of the patch, too.
Due to the many places touched, I would consider this patch as experimental.
2008-08-16 19:20:14 +00:00
Teravus Ovares f191f38a3e * Fix a rare maptile shading error, terrain difference mod 1 = 0 + abs = oops. 2008-08-16 19:03:29 +00:00
Jeff Ames 6fa26f5b41 Update svn properties, minor formatting cleanup. 2008-08-16 17:26:25 +00:00
Teravus Ovares 80186a68df * Adds Slightly better terrain shading to maptile generation. 2008-08-16 06:09:45 +00:00
Melanie Thielker 682ffef101 Reshuffle to eliminate prim owner lookups unless gridgods are enabled 2008-08-16 05:41:40 +00:00
Melanie Thielker e5a7ba5df4 Guard against the null UUID being queried from the userserver
repeatedly.
2008-08-16 03:18:21 +00:00
Melanie Thielker 9807a86398 Guard against a null ref in the permissions module when a profile
fetch fails.
2008-08-16 02:57:47 +00:00
Charles Krinke 5ed5d0788b Mantis#1890. Thank you kindly, Godfrey, for a patch that addresses:
llListSort() sorts integers and floats in ASCII order rather than numeric order
2008-08-16 02:39:46 +00:00
Charles Krinke 35f0e6f6f4 Mantis#1964. Thank you kindly, BlueWall for a patch that:
Parch adds PRIM_BUMP_SHINY handling to llSetPrimitiveParams
2008-08-16 02:33:26 +00:00
Charles Krinke 9a6bdd9701 Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:
XEngine missing string constructor for LSLInteger and LSLFloat
2008-08-16 02:28:30 +00:00
Melanie Thielker 328ab79b78 Refactor a lot of direct calls to OGS1 to use the cached version instead.
Scripts can now no longer DOS the user server and there are a lot fewer
gratuitious lookups of user profile data.
2008-08-16 02:00:36 +00:00
Melanie Thielker 437b4a8aaa Perils of copypaste. Missing references. 2008-08-15 23:35:01 +00:00
Melanie Thielker 32f90a028f Fix repeated user profile info lookups. Redirect those lookups to cache. 2008-08-15 23:29:34 +00:00
Melanie Thielker 04488d9d38 Plumb in the partner and the account title fields for profile info. 2008-08-15 22:49:26 +00:00
Melanie Thielker c1fa7592c7 Pantis #1957
Thank you, Leaf, for a patch that implements llGetAnimationList()
XEngine implementation added by myself.
2008-08-15 21:18:08 +00:00
Melanie Thielker 72b8c1af1c Plumb the user flags all the way through to the profile. userFlags in
the database is now intepreted as follows: low byte = user flags.
Next byte, low nibble: Deternines the text (Resident, Lifetime, etc)
shown. No customn text support yet.
2008-08-15 19:19:24 +00:00
Melanie Thielker 63856f6330 Mantis #1951
Trigger a persistence save when only name or description have
changed.
2008-08-15 16:51:26 +00:00
Melanie Thielker 9f8ff36348 Mantis #1961
Thank you, BlueWall, for a patch that adds PRIM_GLOW
2008-08-15 16:26:56 +00:00
Melanie Thielker 3e7e0c8ced Small fox in the database, god level was being overwritten with the user
flags value
2008-08-15 14:33:43 +00:00
Melanie Thielker dfc553d0a4 Fix up master avatar handling for estate owners. Introduces a new
hierarchical rights structure. MasterAvatar: Owner of the region server
(may be null), net gods (users with GodLevel 200), Estate owner
(from database). Look at Opensim.ini.example to enable net gods.
Estate owner will default to master avatar.
2008-08-15 13:13:39 +00:00
Jeff Ames 53b0ef82b3 Minor formatting cleanup. 2008-08-15 10:29:17 +00:00
Melanie Thielker 6717839d65 Fixes a case where neighboring region info cannot be obtained
and the region server tries to output the region information
using the unobtainable RegionInfo.
Caused a crash in GS1GridServices.cs, line 928
2008-08-15 10:26:03 +00:00
Jeff Ames dde21314e7 Update svn properties, formatting cleanup, fix a couple compiler warnings. 2008-08-15 10:24:04 +00:00
Melanie Thielker e1620c5cc3 Fixes a case where, when inventory is not currently accessible due
to other issues, detaching an attachment would cause an exception.
2008-08-15 10:07:45 +00:00
Dr Scofield d96701a0e4 From: Richard Alimi <ralimi@us.ibm.com>
The following patch allows an asset to be added via the REST interface.
2008-08-15 07:45:23 +00:00
Dr Scofield 08c5c71200 From: Richard Alimi <ralimi@us.ibm.com>
The following patch implements adding prims to a region using the Xml2
format.
2008-08-15 07:33:58 +00:00
Dr Scofield 9df18bb544 From: Richard Alimi <ralimi@us.ibm.com>
The following patch implements retrieving prims in Xml2 format via the REST
interface.  For example:
  http://localhost:9000/admin/regions/<region-uuid>/prims/

It also allows an additional parameter which specifies a bounding box.  If
this parameter is specified, only prims within the bounding box are
retrieved.  For example:

http://localhost:9000/admin/regions/8cd759b4-e077-489d-9a34-e1ff70ef65dd/prims/0,0,0,128,128,128
will retrieve only the prims whose positions are in the bounding box with
corners (0,0,0) and (128,128,128).
2008-08-15 07:28:28 +00:00
Dr Scofield 8d479fe5af From: Richard Alimi <ralimi@us.ibm.com>
The following patch makes some enhancements to loading/saving the Xml2
format.

- Add streamed version of functionality for saving prims to Xml2
  format. The streamed version (optionally) allows for saving the
  prims whose positions appear within a particular bounding box.

- Expose stream versions of LoadPrimsFromXml2 and SavePrimsToXml2 in
  the Scene class

- Extend loading from Xml2 (the streamed version) to optionally start
  scripts for the loaded scene objects)
2008-08-15 07:20:38 +00:00
Dr Scofield 8606a86d5c From: Richard Alimi <ralimi@us.ibm.com>
The following patch allows spaces in usernames and passwords in HTTP Basic
authentication for REST services.
2008-08-15 07:14:17 +00:00
Dr Scofield e6e01cee17 From: Richard Alimi <ralimi@us.ibm.com>
The following is a patch that disables the addition of the Content-Length
HTTP response header when a chunked response is being sent.
2008-08-15 07:09:48 +00:00
Mike Mazur 60acc370fc Thanks, krtaylor, for a patch that fixes llListSort() and llListRandomize() failing with stride less than 1. Fix issue 1893. 2008-08-15 00:55:16 +00:00
Melanie Thielker 4041194db9 Refactor: Make the tree creation function take a UUID for the owner
Change the tree populator module to supply a sensible value
2008-08-14 21:31:38 +00:00
Melanie Thielker 7161689a97 Adds UserFlags and GodLevel to the user data store and plumbs then in.
This will have no effect unless both the UGAI and the region are
this revision or later
2008-08-14 19:59:32 +00:00
Melanie Thielker c2f1771c63 Make the estate owner work. Changes permissions checks to allow the
estate owner user the ability to add and remove estate managers,
and have EM rights outside of that.
2008-08-14 18:08:22 +00:00
Melanie Thielker 35aeb9010a Mantis #1953
Thank you, HomerHorwitz, for a patch that changes login location handling
to use the sim UUID if it has already been stored.
2008-08-14 16:48:51 +00:00
Melanie Thielker 17715da311 Add the UserStore migrations to the TP fixes patch 2008-08-14 11:15:11 +00:00
Dahlia Trimble 230c80be54 Thanks, BlueWall, for a patch that:
Binary distributions of OpenSim are not able to get the version info because they lack the ../.svn/entries file. This file exists in the ./bin./svn directory, which would be in a binary distribution. The included patch changes the path from ../.svn/entries to .svn/entries, which allows the version information to be show in "help/about"
2008-08-14 10:23:00 +00:00
Dahlia Trimble 1bf60fa1ac updated some prim parameters to project maintained versions 2008-08-14 08:59:13 +00:00
Melanie Thielker e3157e61aa Mantis #1946
Thank you, HomerHorwitz, for a patch that corrects and improves TP
to landmark and home position handling.
2008-08-14 00:04:37 +00:00
Justin Clarke Casey fb4eb05ae1 * minor: make it clear on the console when a client is being logged out because that client has not responded to pings 2008-08-13 21:45:17 +00:00
Melanie Thielker 0a18d544c5 Mantis #1936
Thank you, gsky, for a patch that corrects the threading model
to use the multithreaded apartment in the grid servers and
region server.
2008-08-13 19:22:32 +00:00
Charles Krinke 9f9e7d98ea Mantis#1942. Thank you kindly, Tyre for a patch that:
updates llTriggerSound() so it accepts an object inventory name too
This adds the same functionality like Xantor's patch for llPlaySound()
2008-08-13 15:01:45 +00:00
Charles Krinke 4a2d5d92cc Mantis#1941. Thank you kindly, Tyre for a patch that
makes progress in extracting the line number of LSL
script execution errors.
2008-08-13 14:58:26 +00:00
Charles Krinke 3278ab8397 Mantis#1856. Thank you kindly, HomerHorwitz for a patch that:
Fixes this Mantis bug with llTakeControls() & ControllingClient() API.
2008-08-13 14:52:14 +00:00
Melanie Thielker dd1fc5e3fe Add a Find(Predicate) method to the cache to look for items by data
other than LLUUID.
2008-08-13 14:34:33 +00:00
Charles Krinke bf363c0ded Mantis#1934. Thank you Tyre for a patch that:
This patch implements the LSL script function 
llTeleportAgentHome()
2008-08-13 14:24:37 +00:00
Charles Krinke 9d93668a0a mantis#1927. Thank you kindly, Leaf for a patch that:
Makes progress on fixing scripts in child prims of
attachments not being scheduled for execution.
2008-08-13 14:19:59 +00:00
Charles Krinke 323ada012d Mantis#1931. Thank you kindly, Kinoc for a patch that:
* Yield Prolog 1.0.1 Released : it passes all but 9 of the 
421 tests in the ISO Prolog test suite (97.8%) .
* support dynamic predicates and rules.
* support 'import' to use external static functions 
improves connection to C# functions
* Matches Yield Prolog r831
2008-08-13 14:13:49 +00:00
Melanie Thielker e46248ab17 Thank you, tyre, for a patch that fixes a null reference in LSL
function llOverMyLand().
2008-08-13 14:13:46 +00:00
Charles Krinke 6ccb9948ab Mantis#1925. Thank you, homerHorwitz for a patch that:
This fixes the coordinates returned by doing a 
llRequestInventoryData on a landmark.
2008-08-13 14:06:21 +00:00
Melanie Thielker 4b6097756f Port the llParcelMediaQuery forward to the new Shared/ directory
Add a Dictionary for faster lookup of cached items.
2008-08-13 12:20:49 +00:00
Dr Scofield db2481e62a From: Omar Vera Ustariz <ustariz@de.ibm.com>
This patch implements a subset of the llParcelMediaCommandList()
function.
2008-08-13 10:29:27 +00:00
Mike Mazur ba822fe2ab Revert "Thanks, lulurun, for a patch that clears and refreshes and outdated user"
This reverts commit r5823.
2008-08-13 07:51:59 +00:00
Mike Mazur cd89864f4c Thanks, lulurun, for a patch that clears and refreshes and outdated user
profile cache (issue 1919).
2008-08-13 06:08:26 +00:00
Melanie Thielker 71cc458610 Make the estate owner UUID from the database have the same rights
as the region master avatar, unless it's LLUUID.Zero (the default).
2008-08-13 01:17:44 +00:00
Melanie Thielker fa9afd4c91 Fix data format for last commit 2008-08-12 23:15:51 +00:00
Melanie Thielker b0fbef81d0 Minor patch: fix an instance where the estate name, as displayed on the
Covenant page of the estate dialog, could be shown as the master avatar's
name, or even as Test User
2008-08-12 22:55:47 +00:00
Jeff Ames c65415d320 Thanks HomerHorwitz for a patch to enable the Stand Up button when sitting on the ground. (bug #1932) 2008-08-12 21:38:52 +00:00
Justin Clarke Casey 4e555b87f3 * Stop warnings about non existent scene presences/entities being removed on client log off
* This is being done by preventing close from being called twice on child agent closure (nres which would have been thrown are being swallowed).  
* However, it should be possible to do much better cleanup on this code in the future
2008-08-12 19:00:13 +00:00
Mike Mazur 8ea92c0669 Thanks, lulurun, for a patch that addresses inventory problems that occur
occasionally, but are fixed on restart (issue 1919).
This patch introduces the following changes:
1. when a user teleports out of Region A, remove that user's profile
from the Region A user profile cache
2. when a user crosses between regions out of Region A, remove that
user's profile from the Region A user profile cache
3. the user profile cache's session ID member can now be set (written),
and is updated each time a connection with a new avatar is established (ie: a
new avatar enters the region)
4. when a region server looks up a user profile and a cache miss
occurs, fetch the user profile from the user server first instead of
immediately returning null
2008-08-12 06:21:02 +00:00
Melanie Thielker 44adeb4ec8 Remove "static" from the AsyncCommand Manager to make it work properly
in multiple region per sim setups
2008-08-12 02:31:57 +00:00
Jeff Ames f894f5d87b Minor formatting cleanup. 2008-08-12 00:08:41 +00:00
Melanie Thielker f9945bf87f Patch #9163 - Refactor initial packet sending out of InnerScene into
ScenePresence. Pace prim delivery to about 200 updates/s max. Break
a long-held lock that caused the notorious MapBlockQuery XMLRPC timeout
on agent login. Eliminate 60 second timeout at "Waiting for region handshake".
Fix region crossing/teleport response. Fix appearance in primmy regions.
2008-08-11 23:20:14 +00:00
Justin Clarke Casey b627c9c066 * minor: replace hard tabs with soft 4 space tabs in previous patch 2008-08-11 21:33:04 +00:00
Charles Krinke 2cee5abcac Mantis#1921. Thank you kindly, Leaf for a patch that:
llRezObject changed to llRezAtRoot. llRezObject implemented 
to call llRezAtRoot until I can figure out how to calculate 
a bounding box. Partial implementation of llPushObject 
(no angular impulse applied)
2008-08-11 21:27:31 +00:00
Charles Krinke 54af3b4f4d Mantis#1903. Thank you kindly, CMickeyb for a patch that:
patch attached replaces the tree walk algorithm used to build the 
folder hierarchy with a single database query. That is, we replace 
1 database query per folder with 1 query for the root folder's 
properties and 1 query to retrieve the entire collection of folders for a user.
2008-08-10 16:44:25 +00:00
Charles Krinke a9f1561380 Mantis#1910. Thank you kindly, HomerHorwitz for a patch that:
In case you run the server with   mono --debug OpenSim.exe
line numbers are reported as <filename>:<linenumber>, so no 
"at line" is found. That led to an exception, which is caught 
since r5766. The attached patch fixes this for mono;
2008-08-10 16:39:04 +00:00
Melanie Thielker 9b7e66ceda Attempt to address Mantis #1905, #1909
Prevent re-sequencing of resent packets. Thanks, ckrinke, for
catching that, it is what was happening.
2008-08-10 16:37:45 +00:00
Melanie Thielker 5acfc79c50 Patch #9024
Bringing in an old private patch, increasing region registration timeout
to 90 seconds. That allows regions witj > 10000 prims to register
successfully. Running them.... well, YMMV
2008-08-10 12:51:31 +00:00
Jeff Ames 20e8e0ebae Update svn properties, minor formatting cleanup. 2008-08-10 00:44:33 +00:00
Justin Clarke Casey 5b5159d1ec * Resolve mantis 1911 without reintroducing warnings 2008-08-09 22:34:04 +00:00
Justin Clarke Casey 03f9a3e1d6 * if the user uuid is present, preserve ownership information when loading an archive
* if the uuid isn't present, ownership is given to the region's master avatar
2008-08-09 22:04:42 +00:00
Justin Clarke Casey d0480a87c3 * Remove warnings 2008-08-09 21:24:27 +00:00
Justin Clarke Casey 6630706dd9 * Reinstate grid receive and send keys to user server config
* Looks like these weren't so unused after all - oops!
* Remove message from grid server config
2008-08-09 21:01:33 +00:00
Justin Clarke Casey e73b9c5f0a * minor: oops, forgot the code that actually ends up eliminating the unused configuration elements from the last checkin 2008-08-09 20:43:14 +00:00
Justin Clarke Casey 0fd2bde111 * minor: remove unused grid send/receive keys from user server configuration 2008-08-09 20:41:18 +00:00
Justin Clarke Casey f1c897695b * minor: Remove unused message from the asset server configuration 2008-08-09 20:30:56 +00:00
Justin Clarke Casey 52d5369a87 * minor: get rid of send and receive keys from inventory server
* these are not used
2008-08-09 19:59:01 +00:00
Justin Clarke Casey a78e5ea142 * Change _Config.xml node selection code to allow comments 2008-08-09 19:51:49 +00:00
lbsa71 d4b8e06d55 * Added a little more log info in LLUDPServer 2008-08-09 18:37:20 +00:00
Justin Clarke Casey 3242b09344 * Make session security (secure inventory) configuration FALSE by default
* This will not affect existing configurations where the configuration question has already been answered
2008-08-09 18:33:45 +00:00
Justin Clarke Casey 00473fcfee * minor: remove redundant welcome message from inventory grid server configuration 2008-08-09 17:40:48 +00:00
Justin Clarke Casey adfccd0ee0 * Add line to log notifying of inventory -> user grid server trust failure
* add code comments
2008-08-09 17:09:37 +00:00
lbsa71 6849f45660 * Shielded against various forms of Malformed data crashes - if there is an error in packet creation, we just log and ignore it
* If there's a Socket.AlreadyInProgress, just silently ignore this one
* Tried to refactor the Reset and BeginRecieve logic into something a little more readable, little less duplicated
2008-08-09 05:26:33 +00:00
Charles Krinke 87c5b0b926 Mantis#1521. Thank you kindly, HomerHorwitz for a patch that:
Increases the functionality of the particle system on both
script engines.
2008-08-08 18:27:24 +00:00
Charles Krinke 10822a139f Mantis#1521. Thank you kindly, Lmmz for a patch that:
Improves the implementation of the particle system.
2008-08-08 15:16:30 +00:00
Melanie Thielker 2248ad2ed2 Patch #9161
Increase GetUserProfile timeout from 6 to 30 seconds. Because 
the worker thread fo the XMLRPC data pump sits on a lock
while the system starts, regions with upwards of 6000 prims
throw and exception when that thread gets blocked for more
than 6 seconds, due to this timeout, and won't start.
2008-08-08 13:46:24 +00:00
Melanie Thielker b5a9b904dc Sorry, thoughtI had added that :/
Missing file from pervious commit
2008-08-08 12:19:11 +00:00
lbsa71 96fa85cd9f * Removed unused m_bAvailable 2008-08-08 11:38:21 +00:00
Melanie Thielker eaff580abe Patch #9160
Refactor proxy encode/decode methods out of the PacketPool into
their own class.
2008-08-08 11:04:24 +00:00
lbsa71 22f09fbd21 * All CheckRegion within an instance would use the same, global, bool for 'Available', which would lead to intermittent failures on parallell teleport requests.
* Solidified CheckRegion somewhat, adding a second try if the first failed.
2008-08-08 10:59:32 +00:00
Mike Mazur 97d5b5a1eb De-coupling the IClientAPI interface and ClientManager class from the
libsl/libomv Packet, as other client stacks could use other data types to pass
packets around. Starting with InPacket() here, more to come.
2008-08-08 09:19:23 +00:00
Jeff Ames 657af5e611 Update svn properties, minor formatting cleanup. 2008-08-08 06:39:35 +00:00
Mike Mazur 1040f3f454 Remove FunSL client stack as it's under development and often won't compile.
This effectively undoes commits 5771 and 5769 as well as parts of the
formatting cleanup commits 5774 and 5775.
2008-08-08 05:57:14 +00:00
Melanie Thielker c4eac71e54 Committing first draft of the universal cache. This is by no means
finished, but it does work for memory caching items in aggressive
mode. Supports several paramters, including TTL.
2008-08-07 16:40:50 +00:00
Melanie Thielker 39e68833b2 Patch #9159
Complete the support for dupe tracking. Eliminate one of the "Eternal
caches".
2008-08-07 15:32:39 +00:00
Charles Krinke 6b7fb1712c Mantis#1894. Thank you kindly, HomerHorwitz for a patch that:
When a region is re-registered (e.g. because of region restart), 
it is removed from m_regions. If I understood that correctly, 
the old entry should be replaced, instead.
2008-08-07 15:21:50 +00:00
Charles Krinke e8293801c5 Mantis#1901. Thank you kindly, Nlin for a patch that:
More sitting fixes: Inconsistent sitting position on 
rezzed prims that have no sit target set.
2008-08-07 15:15:57 +00:00
Charles Krinke 9a8569160f Mantis#1899. Thank you kindly, Cmickeyb for a patch that:
attached are some patches to either comment out direct 
console writes or to convert them to log writes
2008-08-07 15:12:33 +00:00
Charles Krinke b72cc7df01 Mantis#1888. Thank you kindly, Tyre for a patch that:
This patch adds the missing parcel and region flag constants 
for LSL scripts. Tested with .Net and XEngine
2008-08-07 15:02:29 +00:00
Melanie Thielker 51f90af4b7 Patch #9158
Refactor packet sending into LLPacketHandler. Change packet sequencing
and ack lists to ensure packet sequences conform to wire order.
2008-08-07 14:48:45 +00:00
Jeff Ames 0718aa0b7f Minor formatting cleanup. 2008-08-07 12:55:46 +00:00
Dr Scofield ae13fec655 From: alan webb <alan_webb@us.ibm.com>
this adds image conversion features to the REST inventory/asset code.
2008-08-06 15:20:45 +00:00
Dr Scofield 5248c18b7d From: alan webb <alan_webb@us.ibm.com>
This fixes a sitting problem which popped up on loading regions from
archive and turned out to be caused by the fact that the archiving
mechanisms all preserve the sit-target information that is set in the
object at the time the image is captured. This caused the new region
to pick a sit-target prim that did not correspond to the prim on which
the script was running, so the script's changed event is driven with
an invalid avatar UUID.

I have modified the ArchiveReadRequest class so that any sit information
that survives the archiving process is deleted before the object is
instantiated. This change has just been checked in.
2008-08-06 14:46:38 +00:00
Mike Mazur 548bcc265f Rename namespace to FunSL. 2008-08-06 01:38:25 +00:00
Mike Mazur f180fa57e7 Create FunSLUDP client stack. At the moment it's only a copy of the LindenUDP
client stack.
2008-08-06 01:34:50 +00:00
Mike Mazur d367f0bf0c Thanks, zaki, for a patch that embeds plugin manifest files into plugin dlls. Fix issue 1876. 2008-08-06 01:20:31 +00:00
Justin Clarke Casey b018d6e84f * oops, fix build break from last checkin 2008-08-05 20:50:53 +00:00
Justin Clarke Casey 200c77ad15 * possible fix for event queue problems (exceptions and event count max exceeded issues) seen in osgrid meeting today
* From the logs, I'm guessing probable cause is that an exception generated by a bad index given to substring error line number conversion stopped the script being killed, leading to continuous events that filled up the log (maybe)
* Someone will need to go back and fix this properly
2008-08-05 20:47:36 +00:00
Justin Clarke Casey 6b1a5c33af * Fix probable cause of one of the bugs seen in the osgrid office hours today
* If a text string is too long we actually need to truncate to 254 chars rather than 255, since the Helpers.StringToField conversion will stick a \0 on the end
2008-08-05 20:34:34 +00:00
Justin Clarke Casey 9e6fadddcc * Add / as a shortcut to select the root region 2008-08-05 18:16:09 +00:00
Justin Clarke Casey de0a6e7f2b * Try and make the contents of the region prompt more obvious by returning to printing the selected region after a change attempt has been made. 2008-08-05 17:52:06 +00:00
Justin Clarke Casey f2c456c23d * Make currently selected region appear in the region console prompt
* This region is used for single region commands (such as save-xml2)
2008-08-05 17:28:23 +00:00
Justin Clarke Casey 32486dcaf5 * refactor: change console base 'component name' to 'default prompt' since that's the only thing it's being used for 2008-08-05 17:06:35 +00:00
Justin Clarke Casey b46e6e2130 * refactor: change method name 2008-08-05 17:03:06 +00:00
Justin Clarke Casey 1da9902294 * refactor: clean up code for selecting regions on the region console 2008-08-05 17:00:35 +00:00
Justin Clarke Casey 07019c6a84 * minor: slightly pointlessly increase the verbosity of the message given when a queued deletion from scene to inventory fails because the root part of the group has been zapped 2008-08-05 16:37:06 +00:00
Melanie Thielker 5469c0d6f8 Fix one more instance of a bad bit value for the collision event 2008-08-04 21:30:12 +00:00
Melanie Thielker c1e7b45e18 Fix wrong bitmask value in script engine that would make a mess of
the ObjectFlags. Good catch, gsky, thank you!
2008-08-04 17:52:00 +00:00
Melanie Thielker 244a9282d0 Addresses Mantis #1886
Forces the landmark and menu flags to be always set, like in previous
releases. This will cause the parcel based restriction on setting
landmarks to have no effect, until it is implemented properly
2008-08-04 15:19:10 +00:00
Charles Krinke dba4d357c8 Mantis#1877. Thank you kindly, Sache Magne for a patch that:
This patch allows the operator to see the region currently served.
A message "Serving region : xxxxx" appears under help or any show commands.
2008-08-02 02:53:11 +00:00
Justin Clarke Casey ec8f2d836c * minor: correct spelling, remove warning 2008-08-01 21:15:38 +00:00
Melanie Thielker 12c5bfa3e0 Estate series, patch 9 (#9157)
Adds the new access semantics and the new flag (allow only age verified)
Plumbs in the abuse email address from sim to viewer. The other way around,
libomv appears to be lacking support for the data field in the packet.
Includes a migration, run prebuild!
2008-08-01 21:08:00 +00:00
Justin Clarke Casey c952dd465c * minor: add to the thread tracker the thread with which the thread tracker tracks threads 2008-08-01 20:52:32 +00:00
Justin Clarke Casey e32c0930c2 * Register main thread as console thread with thread tracker 2008-08-01 20:29:05 +00:00
Justin Clarke Casey 89898a2a6a * minor: get rid of count number from 'show threads' display since they all have IDs 2008-08-01 20:21:49 +00:00
Justin Clarke Casey 3fc942558e * start tracking viewer session threads 2008-08-01 20:16:28 +00:00
Justin Clarke Casey 5350cec0b3 * minor: log message twiddling 2008-08-01 20:05:26 +00:00
Justin Clarke Casey 10e0df0a2d * correct bug from last commit - for now don't drop cached user profile when an agent is downgraded to a child agent
* since upgrading to a root agent doesn't currently re-retrieve the user profile
2008-08-01 19:24:48 +00:00
Justin Clarke Casey 43b2ff1d11 * Drop cached inventory from the local region when a user crosses out into a remote region
* May resolves inventory problems that occur when the user moves between two regions`
* e.g. if the user moves to a second region, adds an inventory item, moves back to the original region then tries to manipulate that item
* Not yet implemented for teleport
2008-08-01 18:49:48 +00:00
Justin Clarke Casey de4e3bfede * minor: eliminate some unused variables in InventoryFolderImpl 2008-08-01 16:22:26 +00:00
Dahlia Trimble 88fba448a1 reinstates torus profile zflip which was mistakenly removed in patch 1870 2008-08-01 05:48:24 +00:00
Dahlia Trimble 1d3677eb9b Thank you jhurliman for a meshmerizer patch that replaces the quaternion->matrix->vertex*matrix->vertex code with a direct transformation. 2008-08-01 05:45:58 +00:00
Melanie Thielker c9b39972ca Add the missing migration files :/ 2008-08-01 02:54:28 +00:00
Charles Krinke ab778c4114 Mantis#1859. Thank you kindly, Lmmz for a patch that:
Implements llForceMouselook().
2008-08-01 02:33:28 +00:00
Melanie Thielker 43f3b9ad7b Patch #8 in the estate series. Introduces the concept of an estate
owner (alongside the master avatar) and provides storage fo the
abuse email address. No user functionality yet.
This patch includes a migration.
2008-08-01 02:14:34 +00:00
Mike Mazur 6f975f6eeb Thanks, Zaki, for a patch that addresses unhandled exceptions in the
PluginLoader when servers are started in parallel.
2008-08-01 01:14:40 +00:00
Mike Mazur 15669281fa Apply updated patch from issue 1871. Thanks sempuki. 2008-07-31 23:53:24 +00:00
Justin Clarke Casey 6d15f25026 * Allow an individual item to be specified as well as a folder in save-inv
* No user functionality yet (and not for some time)
2008-07-31 18:32:57 +00:00
Justin Clarke Casey 900a656420 * refactor: rearrange path inventory manipulation so that input tidying can be used for item paths as well 2008-07-31 18:23:17 +00:00
Justin Clarke Casey 465e77b618 * refactor: eliminate unused SubFoldersCount 2008-07-31 17:35:47 +00:00
Justin Clarke Casey a62b906a7b * allow inventory folders to be located by path
* first pass method impl
2008-07-31 17:32:13 +00:00
Justin Clarke Casey 078643a017 * refactor: Change CachedUserInfo.HasInventory to HasReceivedInventory to make actual function clearer 2008-07-31 16:05:50 +00:00
Justin Clarke Casey 58af0fabeb * minor: reduce coupling by passing in only session id to CachedUserInfo 2008-07-31 15:53:07 +00:00
Charles Krinke 1f7fde9436 Mantis#1868. Thank you kindly, HomerHorwitz for a patch that:
0001868: llXorBase64StringsCorrect leads to error if second string 
shorter than first which was an off by one error.
2008-07-31 15:11:44 +00:00
Melanie Thielker c441a03ea3 Thank you, HomerHorwitz, for a patch that implements llSetCameraParams/llClearCameraParams.
Fixes Mantis #1867
2008-07-31 12:31:31 +00:00
Melanie Thielker 244ad2e614 Thank you, HomerHorwitz, for a patch that add PERMISSION_CONTROL_CAMERA
Fixes Mantis #1861
2008-07-31 12:25:18 +00:00
Melanie Thielker b3e19359d9 Thank you, sacha magne, for a patch that prevents sim chat from
being heard across whole grids.
Fixes Mantis #1855
2008-07-31 10:58:15 +00:00
Melanie Thielker af3e2c6e1c Thank you, sacha magne, for a patch that implements
llRequestSimulatorData("simname", DATA_SIM_RELEASE)
Fixes Mantis #1866
2008-07-31 10:51:30 +00:00
Mike Mazur ddf126321c Thanks, M. Igarashi & nlin, for a patch that implements unary minus operator
for Vector3 type. Fix issue 1872.
2008-07-31 09:34:13 +00:00
Mike Mazur 2270b25265 Thanks, sempuki, for a patch that moves all Grid Server's plugins to
PluginLoader. Fix issue 1871.
2008-07-31 09:24:28 +00:00
Mike Mazur 16cf5aa2b8 Allow the list hack from issue 1863 to compile, however its behavior is
different than in SL. See http://opensimulator.org/mantis/view.php?id=1863 for
details.
2008-07-31 07:11:49 +00:00
Mike Mazur 57ec7a26cd -make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can be
used in scripts
-cast from bool to LSL{Integer,Float,String} so functions such as `integer
isZero(integer x) { return (x == 0); }` work
-progress on issue 1863
2008-07-31 07:11:41 +00:00
Mike Mazur 56c4cc39ff Allow assignments in if/while/do-while control statements. Fix issue 1862. 2008-07-31 04:13:46 +00:00
Mike Mazur eef3864278 Fix issue 1860; exception thrown in the parser on if/if-else/for/while/do-while
statements with no body.
2008-07-31 01:27:33 +00:00
Mike Mazur 1c8f490573 More LSL_Types implicit/explicit cast changes. Fix issue 1854. 2008-07-31 00:29:19 +00:00
Melanie Thielker 3a2caa1f9a Thank you, HomerHorwitz, for a patch that
implements llSetLinkTexture. Heavily influenced by llSetLinkPrimitiveParams.
2008-07-30 22:37:42 +00:00
Dr Scofield 5095b4c212 From: Richard Alimi <ralimi@us.ibm.com>
The following is a patch that causes the ensuing http_response event (after
an llHTTPRequest) to include the HTTP status code returned from the server
(if available). The patch also sets the body parameter for the
http_response event to be set as the status description returned by the
server.
2008-07-30 16:47:25 +00:00
Dr Scofield 96d1891c71 From: Richard Alimi <ralimi@us.ibm.com>
The following is a patch that causes HTTP connections made by llHTTPRequest
to be closed once the response is read.
2008-07-30 16:21:01 +00:00
Adam Frisby 2f8acdbe50 * Applying Mantis #1852 - Plugin Provider refactoring. Courtesy of Ryan/Sempuki. 2008-07-30 08:17:19 +00:00
Melanie Thielker c80493ed4d Prevent acks from being appended to viewer effect packets, since
that has been known to cause an exception in libomv ^^
2008-07-29 22:40:23 +00:00
lbsa71 8edab95bad * Refactored some heavily duplicated RequestSimProfileData functions
* Changed InventoryUrl and GridServerURL type to Uri instead of string - to address '/' issues.
2008-07-29 19:52:58 +00:00
Justin Clarke Casey d84a6bca55 * minor: temporarily command out variables to prevent compile warnings 2008-07-29 18:16:17 +00:00
Justin Clarke Casey 19a5e56d55 * add file path parameter to save-inv (in development) 2008-07-29 18:14:58 +00:00
Justin Clarke Casey d13c9161c9 * find user on save-inv 2008-07-29 18:11:58 +00:00
Justin Clarke Casey aa59dfb1d2 * minor: route create user through underlying super class method rather than calling communications manager directly 2008-07-29 18:01:12 +00:00
Justin Clarke Casey e595959d97 * refactor: move create user console command parsing down to OpenSim.cs from CommunicationsManager 2008-07-29 17:39:15 +00:00
Justin Clarke Casey e7b3e7b749 * Put in stub code for inventory backup.
* No user functionality yet (and not for quite some time)
2008-07-29 14:28:08 +00:00
Charles Krinke bfa1fd768b Mantis#1849. Thank you kindly, Kinoc for a patch that:
- LLSDLoginMethod should error out in similar way to XMLRPC login for already logged in condition
- Have LLSDLoginMethod mirror the sequence of the XMLRPC for easier side by side compare
- Log messages report which process XML or LLSD generated them for easier debugging
2008-07-29 03:43:31 +00:00
Dr Scofield 0512895eea Trying to guestimate sensible default values for GridInfoService if no
[GridInfo] section is supplied by OpenSim.ini; also adding log warning
if that is the case.
2008-07-28 14:28:26 +00:00
Dr Scofield f25af1f9e6 dropping GridInfo prototype, now properly implemented as
GridInfoService.
2008-07-28 12:31:46 +00:00
Dr Scofield 03efaff60e moving GridInfo application plugin into a common standalone/grid
service, adding a plain REST GET handler returning XML (no LLSD),
adding appropriate add handler calls to OpenSimBase and UserServer.
2008-07-28 12:18:48 +00:00
Mike Mazur f6fa4ada4e When casting strings to int, use double.Parse() as strings may be floats. With
this commit, issue 1822 should be fixed.
2008-07-28 07:46:53 +00:00
Mike Mazur d959c65b91 -implement LSLString -> Quaternion explicit cast
-sync Shared/LSL_Types.cs with Common/LSL_Types.cs
-get the test script in issue 1822 to compile
2008-07-28 02:36:26 +00:00
Mike Mazur a61e1ea7dc Adding explicit cast from LSLFloat to LSLInteger. Work on issue 1822. 2008-07-28 02:36:22 +00:00
Mike Mazur 82fa53a486 -copy LSL_Types tests from Common/ to Shared/
-fix some whitespace/formatting
2008-07-28 02:36:18 +00:00
Melanie Thielker 40bb4edf8c Refresh LSLTypes.cs in Shared/ from the one in Common/, which was
more complete.
2008-07-28 01:33:21 +00:00
Adam Frisby e2ce142669 * Added a check for Infinite or NaN values before updating a heightfield. This may slow down terraforming when it debug mode - feedback appreciated. 2008-07-28 00:43:01 +00:00
Melanie Thielker 9fca0aca64 Reinstate the configuration option on XEngine's use of the lexical
compiler. Changes the default in OpenSim.ini.example to "true" to
allow for a broader user base for testing.
2008-07-28 00:40:35 +00:00
Mike Mazur 9e58ce60c0 Use new LSL compiler by default in DotNetEngine and XEngine. Fix issues 1651, 1339. 2008-07-27 23:53:18 +00:00
Melanie Thielker 50f2e88c99 Re-fix r5681. Sorry for the inconvenience. We will now return you
to your scheduled scripting.
2008-07-27 20:32:22 +00:00
Melanie Thielker 8cd0c90dab Addresses Mantis #1611
Set thread culture for event processing threads in DotNetEngine.
XEngine already had this. Maybe someone with a French OS can verify
the fix.
2008-07-27 19:54:43 +00:00
Melanie Thielker 6c3db99a27 Addresses Mantis #1688
Changes erroneous return value of llGetLinkname() to "" for nonexistent
prims. Corrects an issue where the root prim of a linked set, upon
delink, retains the part number 1.
2008-07-27 19:32:43 +00:00
Melanie Thielker 839e9c94e8 Prevents Mantis #1829
Add array size check to packet from viewer to prevent OOB exception
2008-07-27 19:12:40 +00:00
Jeff Ames 2ec23f934a Update svn properties. 2008-07-27 17:15:41 +00:00
Charles Krinke e4ef774875 Mantis#1831.Thank you kindly, Francis for a patch that addresses:
Not all combinations of list order equally likely with llListRandomize()
2008-07-27 16:21:51 +00:00
lbsa71 f417a03414 Mantis#1817. Thank you kindly, sacha magne, for a patch that:
* Fixes a simulator crash when an asset file is missing on loading asset library.
2008-07-27 13:59:07 +00:00
lbsa71 1784918034 * Added safeguard to ensure valid inventoryserver uri. 2008-07-27 13:34:34 +00:00
Mike Mazur e17520621c Log to console if C# line/column lookup fails. 2008-07-27 10:41:44 +00:00
Mike Mazur 11a3fbf4aa Conversion from double to LSLInteger needs to be explicit. Fix issue 1826. 2008-07-27 07:09:33 +00:00
Mike Mazur 6267db0c4c Implement LSLFloat {+,-,*,/} LSLFloat operations. Fix issues 1532, 1701, 1824 &
1832.
2008-07-27 05:42:47 +00:00
lbsa71 8e869b2fff * Changed a number of field names to ccc (public members shouldn't be called m_) 2008-07-26 21:22:15 +00:00
Dahlia Trimble c12d4d21e3 Modified ResetChildPrimPhysicsPositions() to allow archiving and physics to coexist peacefully (as per justincc's recommendations) 2008-07-26 19:51:17 +00:00
Melanie Thielker 2a1bc318b0 The hazards if unclean sourc trees. Yours truly got bitten this time.
Re-fix the re-fix from a clean build. This makes the region based
settings work as advertised
2008-07-26 18:54:59 +00:00
Melanie Thielker 3b1efa4348 Re-Fix the fix 2008-07-26 18:46:04 +00:00
Melanie Thielker 1321bd25b8 Fix Mantis #1830
Makes region settings save on second and subsequent sim restarts
after upgrading.
2008-07-26 18:03:50 +00:00
Dahlia Trimble 287674296e reinstated ResetChildPrimPhysicsPositions() as some prims had bad/missing proxies without it 2008-07-26 01:58:13 +00:00
Dahlia Trimble c512120389 Attempt to update viewer for some physics status changes in SOP 2008-07-25 20:45:06 +00:00
Dahlia Trimble 3035f5cb64 Re-enables testing for config option mesh_sculpted_prim which was inadvertently disabled in a prior modification (oops) :) 2008-07-25 20:29:37 +00:00
Justin Clarke Casey 0d488ad489 * minor: just realized I managed to get the save xml/xml2 messages the wrong way around 2008-07-25 18:08:45 +00:00
MW a7db55717b enabled a config option to inventory server to be able to stop it doing the SessionId lookup to the user server. As this ties a inventory server to one userserver/grid.
doing the look up is still enabled by default.
2008-07-25 17:59:34 +00:00
Justin Clarke Casey d954f46a0a * Stop the HasGroupChanged flag being reverted for newly restored prims which need to be persisted to the db
* This should stop the problem where linked prims loaded via an archive did not survive server restart
* It may address mantis 1819 though the symptoms don't look consistent
2008-07-25 17:48:58 +00:00
Dr Scofield c724e38433 oops. forgot to add addin.xml for GridInfoPlugin. also, slight
reordering of plugin initialisation to ensure that it will return base
information about grid, even if [GridInfo] config section is not
there.
2008-07-25 17:06:26 +00:00
Dr Scofield b5f23b4c9c first cut at a GridInfo plugin (mantis #1825). Currently just spits
out everything in the [GridInfo] section :-D Also, not yet LLSD but
XmlRpc, LLSD via GET will follow. OpenSim.ini.example contains sample
values and explanation. Oh, and default values provided are 

       platform: OpenSim
       mode: standalone | grid

have fun.
2008-07-25 16:56:46 +00:00
Justin Clarke Casey fd4e703f25 * Remove dumb bug I put in which meant that an archive save would never complete if there were any missing assets 2008-07-25 15:18:24 +00:00
Dr Scofield f2bc404e70 squasing warning. 2008-07-25 12:59:41 +00:00
Dr Scofield 81cb72b5ad squashing warning. 2008-07-25 12:59:18 +00:00
Dr Scofield f7e636570f adding copyright statement. 2008-07-25 11:31:33 +00:00
Dr Scofield 031e140761 From: Christopher Yeoh <yeohc@au1.ibm.com>
The LL Server sets the CreateSelected flag for a prim when sending a
property update when objects are linked. The following patch 
gets OpenSim to do the same.
2008-07-25 10:13:26 +00:00
Dr Scofield 2d727ebc63 completing rename of ChatFromViewerArgs to OSChatMessage 2008-07-25 10:09:02 +00:00
Dr Scofield 24e15088ea renaming the increasingly ill-named ChatFromViewerArgs to OSChatMessage 2008-07-25 10:05:50 +00:00
Dr Scofield 50bc51b642 From: awebb
test code for REST handlers.
2008-07-25 10:02:21 +00:00
Dr Scofield 7025a8040e From: awebb
Further improvements to the REST handlers.
2008-07-25 09:56:35 +00:00
Mike Mazur 19ad7db5e1 Add casts from integer to float. Fix issue 1822. 2008-07-25 07:50:31 +00:00
Mike Mazur 84cc69573b Thanks, lulurun, for a patch that adds an authenticated session cache to reduce
"check_auth_session" requests from inventory server to user server.
2008-07-25 07:16:27 +00:00
Melanie Thielker 5998fb712a Patch #9155 (Mantis #1793)
Fix a regression that caused the region settings not to save.
Still no SQLite support for region settings. MySQL now functional.
2008-07-25 06:17:43 +00:00
Teravus Ovares 1e7c9e4810 * Fix the ODEPlugin unit test 2008-07-25 05:23:10 +00:00
Mike Mazur e60cf0e67d -add test for newly introduced cast operators (issue 1818)
-fix formatting
-remove CompilerTest test since it seems to fail randomly
2008-07-25 04:47:11 +00:00
Melanie Thielker ac9a221993 Add mingchen's fix for string->float cast to Shared/ 2008-07-25 03:47:55 +00:00
Melanie Thielker 06e0e513cf Add GetGroupPowers() and a dictionary to hold them to ClientView and
IClientAPI. No user functionality
2008-07-25 03:45:17 +00:00
mingchen 6554c7bac5 *Fixes #0001818: typecast string to float 2008-07-25 03:39:38 +00:00
mingchen f2742fb604 *Added CommandIntentions that is used to describe a console commands hazard. HAZARDOUS if it modifies the simulator, NON_HAZARDOUS if it does a command that doesn't modify the simulator but does a background command such as a forced backup, and STATISTICAL if it returns debug or more information.
*This is useful for implementing a protection system from unwanted script execution or for application modules needing to know what a command does.
2008-07-25 02:30:07 +00:00
Dahlia Trimble c1e239dedc llApplyImpulse now accepts any non-zero integer as not FALSE 2008-07-25 02:06:40 +00:00
Dahlia Trimble c67198299e Changed application of constant forces to after PID force is applied. llSetForce() should behave identical to the Linden implementation now. 2008-07-24 21:05:30 +00:00
Justin Clarke Casey cdd3537706 * refactor: Remove now redundant inventory server url being passed to GetInventorySkeleton 2008-07-24 17:19:33 +00:00
Justin Clarke Casey 918c0a4826 * refactor: move remaining user service -> inventory service OGS1 calls into the specific inter service class 2008-07-24 17:10:07 +00:00
Justin Clarke Casey 11385c53e6 * minor: eliminate warnings from LindenUDP 2008-07-24 16:03:17 +00:00
Justin Clarke Casey 77297ed6cc * Separate out OGS1 calls used between services (rather than from region to services) into a separate assembly to parallel OpenSim.Region.Communications.OGS1 2008-07-24 15:56:50 +00:00
Melanie Thielker 740a9a7374 Thank you, Neopallium, for a patch that addresses ack issues in the
client stack. Committed with changes, see Mantis #1810 for details.
2008-07-24 15:52:36 +00:00
Justin Clarke Casey e5e1666c84 * Fix spelling mistake in OGS1SecureInvenotryService 2008-07-24 15:27:21 +00:00
Justin Clarke Casey 29e8fcd13c * minor: Rename IInterGridInventoryServices since it's inter service rather than inter grid 2008-07-24 15:20:57 +00:00
Jeff Ames a4ad6a67b7 Update svn properties. Minor formatting cleanup. 2008-07-24 15:20:47 +00:00
Dr Scofield 1d7e29cc2c oops...forgot to svn add OSHttpHttpHandler.cs last week.
NOTE: this code is work-in-progress, it's not live. it's so far
harmless and just wants to play. it should not bite anyone (yeah,
that's what they all say, i know...)
2008-07-24 14:35:04 +00:00
Dr Scofield e9144b1a3a From: Christopher Yeoh <cyeoh@au1.ibm.com>
The problem I noticed is that when child prims are selected unlike
the Linden server, OpenSim does not return property information - it
only searches the root prims for matches.

What I'm not sure about is whether the parcel prim count taint should
be set or if the root prim should be set as selected (doesn't
seem possible to set the child prim as selected). It does
however fix the problem of the property information
not being sent, so its an improvement (I think!).
2008-07-24 14:18:07 +00:00
Dahlia Trimble f74a9bcdc7 Implements llSetForce() and llGetForce(). These are experimental and the units may not match the Linden implementation. 2008-07-24 07:45:58 +00:00
Mike Mazur d58346e798 Refactor some tests. 2008-07-24 07:23:36 +00:00
Mike Mazur bb777a9c3c Replace the try/catch with a null check. 2008-07-24 05:23:42 +00:00