Commit Graph

2069 Commits (91d9248fcebfae4890e502c7140403f881b2a4d0)

Author SHA1 Message Date
Teravus Ovares d4f32649cd * Committing some untested stuff regarding texture animations. This won't break anything, but the llSetTextureAnim function is completely untested.. (though it may be functional once the script engine works again) 2008-02-02 03:57:57 +00:00
Tedd Hansen 8dc5153ad7 Added header/footer of scripts to make C# and VB scripts much easier to write.
Added some logging on what is happening during compile.
2008-02-02 03:42:35 +00:00
Tedd Hansen 5c8abed450 Bugfix: LSL was mapped to VB.Net compiler ... that didn't work out so well :) 2008-02-02 03:17:38 +00:00
Tedd Hansen e06ee9fd4b Added load/unload queue size limit
Added option to share script load/unload thread between regions
Added event execution queue size limit
+ some bugfixes from all the changes
2008-02-02 03:11:06 +00:00
Tedd Hansen 8ccc12d642 Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run OpenSim in 32-bit mode.
Added VISUAL BASIC.NET-support
//cs, //lsl and //vb as first characters of script will determine what compiler is used.
Compile warnings are no longer treated as errors. Script will still run.
Added a few useless and useful config options:
Write script source to harddisk for debug, Default compile language, Allowed compilers (languages), compile in release or debug mode, clean up old scripts on startup
Loads of warnings for incorrect config
2008-02-02 02:35:56 +00:00
Tedd Hansen 667197f24d Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run OpenSim in 32-bit mode.
Fixed ScriptEngine.Common startup problems.
2008-02-02 00:59:22 +00:00
Charles Krinke a9b69f3880 Thank you very much, Kinoc for : Moved the Listener loop try/catch to a better position.
Uses the IRC nick as the default when user location cannot be determined.
2008-02-02 00:47:28 +00:00
Tedd Hansen ea74f97e9b Forgot to create an object before use. Now why can't .Net just do that itself? :) 2008-02-02 00:20:31 +00:00
Tedd Hansen 34d21ac94b Added some error checking to MaintenanceThread, no-crash (just log) loading of script engines, and support to load multiple script engines 2008-02-02 00:09:55 +00:00
Tedd Hansen 694642a482 Moved iniFilePath to a static and put it in OpenSim.Application.iniFilePath.
Refreshing config based on this.
Temporarily disabled feature to refresh config file while running.
2008-02-01 23:56:09 +00:00
Tedd Hansen 4715453159 Bugfix, maybe it won't crash during startup and crash somewhere else instead? :) 2008-02-01 23:44:02 +00:00
Tedd Hansen d02a90823f SCRIPTING STILL BROKEN
Added comments and regions, restructured code
Changed a lot of AppDomain junk from console from using Console.Write to Log.Verbose and set it to #if DEBUG
All modules should now refresh their configuration runtime
Made all logging in ScriptEngine.Common get script name from actual engine
Renamed LSLLongCmdHandler to AsyncLSLCommandManager
Added auto-recover with 5 sec throttle for new MaintenanceThread
2008-02-01 23:36:36 +00:00
Tedd Hansen a6726b0c9d SCRIPT SUPPORT IS STILL BROKEN.
Bugfix: Scripts exceeding max and set to be killed were not killed, only removed.
Added ability to re-read configuration while OpenSim is running
All regions now sharing one MaintenanceThread
New MaintenanceThread:
- checks for script execution timeout
- re-reads config
- starts/stops threads if thread active count becomes too high/low compared to config
Speed increase on event execution:
- Reuse of try{}catch{} blocks
- Time calculation on event execution
2008-02-01 22:18:55 +00:00
Charles Krinke 8a4e8a8e31 Thank you, Kinoc for the ChatModule.cs updates. 2008-02-01 22:15:40 +00:00
Tedd Hansen 0c0286911d Config option to set number of scripts per AppDomain 2008-02-01 20:52:00 +00:00
Tedd Hansen e14c8f59f7 Added config options:
ScriptThreadPriority to set script thread priority
DeactivateScriptOnTimeout to remove script if it is executing too long
2008-02-01 20:45:15 +00:00
Tedd Hansen f4ddf5cf28 Removed "Loading inventory for Primitive" message.
Fixed small bug in thread counter.
2008-02-01 20:19:29 +00:00
Tedd Hansen a9c1f3fdb4 Experimental
Moved DotNetScriptEngine configuration to config file.
Added option to share script execution threads between regions.
2008-02-01 20:12:25 +00:00
Tedd Hansen 5d6e89eaf9 Highly experimental
A separate thread is used to enforce max function (event) execution time for scripts.
2008-02-01 19:07:05 +00:00
alondria 43ecb1b4d2 Fixed errors being thrown by invalid PSYS_SRC_TARGET_KEY's in llParticleSystem - defaults to source prim (consistent with LL grid).
Should fix mantis 427.
2008-02-01 15:22:11 +00:00
alondria 0eb4e85988 Thanks to Hashbox for a patch to:
Implementing llStringTrim and hooking in osRegionNotice
2008-02-01 14:18:00 +00:00
Teravus Ovares 96f6add4ad * ODE:Fix copy and paste bug in space calculation limits 2008-02-01 14:05:22 +00:00
MW 5099be8072 Temporary try catch around calculateSpaceForGeom() , to see if it gets past mantis issue #435 (for now) 2008-02-01 13:10:40 +00:00
Teravus Ovares 64a1a1f059 * Committing random physics stuff to the SVN for use later 2008-02-01 07:39:19 +00:00
Teravus Ovares bec71977ab * Added more supported feature to particlesystems. While this appears to have a libsl update... it's really a fix to the libsl version we're already using because of a bug in the particlesystem implementation
* Added two new simstat counters in the simstat enum for the RCCS.  (I'll find something cool to put in them)
* fixed a time waster in ODEPlugin.cs
2008-02-01 04:22:20 +00:00
Teravus Ovares e2f783789c * Adding limited support for LLParticleSystem.
* We still need to set the 'default particle' texture as, a particle system with no texture set doesn't work.
* The particle System Flags don't seem to be quite right yet as some flags don't seem to have an effect.   So no alpha in/out, color change, affected by the wind, etc.. yet
* Thanks to Alondria for some massive work here.  This update just tweaks a few things that she did.
2008-01-31 18:27:11 +00:00
Sean Dague 61ed12c4d8 revert last IRC bridge changes as this broke chat on my test environment.
Going to sift through the diff later to sort out what the root cause is here.
2008-01-31 17:15:41 +00:00
lbsa71 f72b834b25 * setting some readonlies 2008-01-31 10:56:40 +00:00
alondria 62ae3c9bf5 Hit a dead end with llParticleSystem (libsecondlife issues) so no functionality added yet, but did not want to loose work. 2008-01-31 06:59:48 +00:00
Justin Clarke Casey a4bf98f4ba * Add asset/texture cache statistics to region server console
* You can type 'stats' at the REGION# prompt to get this information in grid or standalone mode
* Don't take these numbers as gospel yet, since for some reason textures displayed from inventory which require downloading from the server are being recorded as assets 
rather than textures
* But I don't have any reason to believe they aren't broadly accurate.
* I've put these in so I can tell whether the high memory usage on regions is down to the asset/texture cache
* This will require a prebuild
* DEV: Only adds needed to be implemented since, as far as I can tell, assets cached are currently never released.  For my part, seeing large cache memory numbers will 
provoke me to think about doing something about this.
* DEV: Now switched to using a singleton to get the stats reporters rather than threading the object through various layers
* DEV: Will refactor the other server stats reporters to do this in one of the next commits
2008-01-31 00:42:31 +00:00
Justin Clarke Casey 881f295e70 * Add 'asset not found' statistics to grid asset server stats 2008-01-30 22:13:47 +00:00
Justin Clarke Casey a70e9c8c2c * Minor asset server message tweak 2008-01-30 18:36:59 +00:00
Justin Clarke Casey a5b719e161 * Deal with asset requests with malformed guids to the asset server in more user-friendly way than throwing an Exception
* Compact status messages to reduce verbosity and be more informative
2008-01-30 18:33:44 +00:00
Justin Clarke Casey dee0d1e55d * Print out exception information when a mysql asset fetch fails
* Attempt reconnection on fetch and create exceptions.
2008-01-30 17:39:40 +00:00
Justin Clarke Casey ce07854a45 * Insert 'assets served per hour' speed to asset server stats 2008-01-30 17:19:32 +00:00
Teravus Ovares 9722b6ad53 Updating ODE.NET as the version I used possibly caused the slowness. 2008-01-30 08:58:44 +00:00
Teravus Ovares 02d672de36 * See if this helps Nebadon. 2008-01-30 08:30:22 +00:00
Teravus Ovares cb05b76b83 * This update restores *nix support
* This stability optimization is disabled on Apple Computers until the .dylib library is updated.
2008-01-30 07:46:48 +00:00
Teravus Ovares fc9b3ec5a8 * Experimental ODE Update to make ODE more stable
* WARNING: This update will break *nix support. Will be restored in the next revision
2008-01-30 07:09:58 +00:00
Teravus Ovares 8aa796595c * Fixed a crash if the server is unable to connect to the UserServer when a user logs off 2008-01-29 17:16:38 +00:00
Teravus Ovares c4687116ad * Implemented grab and throw in ODE. It's a little strong still so toss gently at first to test the waters or you'll lose prim to the pit at the edge of the sim. Make sure the object is physical before trying to toss it or it'll just move to the new location. 2008-01-29 15:10:18 +00:00
Justin Clarke Casey 55dc0dc267 * Patch from Ansi (IBM)
* Allows the creation of a user via the RemoteAdminPlugin.
* Many thanks!
2008-01-29 14:43:45 +00:00
Teravus Ovares 832243c6e8 * No more massive spires and massive pits when editing land using Select + tool + amount + apply; 2008-01-29 06:16:06 +00:00
Teravus Ovares da0fa4253b Thanks kinoc for your improved IRC Gateway patch as referenced in mantis issue 390. 2008-01-29 04:35:01 +00:00
Teravus Ovares 47761a4a5e * Commenting out the 'collision notifications' on BulletX, as there hasn't been an update on bullet in a while and the console notifications consume the entire CPU to make bullet completely unusable. 2008-01-29 02:08:30 +00:00
Teravus Ovares 4742a172e2 * This fixes the stair issue that Sdague reported on *nix. Be aware that if you cross a border into a region, the new region doesn't know your height and therefore you're about a meter off the ground. If the region doesn't know your height, you won't be able to climb steps. If you're in that state, edit your appearance and the region will learn your height and you will again be able to climb steps. 2008-01-29 01:20:43 +00:00
Justin Clarke Casey beefbb46d2 * Add total logouts (and total logins) to server side user stats
* Passing the stats collector through object chains is not ideal - this will change when more stats come in
* This change will need a prebuild
2008-01-28 22:00:38 +00:00
Justin Clarke Casey fa5fe6b7f6 * Move AssetStatsReporter to Framework.Statistics
* The hooks are still plugged in too high at the asset server, but then next layer down is the database and this may be refactored soon.
* This change will requires a prebuild
2008-01-28 19:49:07 +00:00
Teravus Ovares 035d807847 * ODE Going to Time Step 0.020 = (1000\20) - ((1000\20) * .09) = ~45 pfps 2008-01-28 04:31:40 +00:00
Teravus Ovares 5e36feada2 * Mostly ODE update. Things are a bit more behaved then the last experimental update. 2008-01-28 03:25:02 +00:00
Teravus Ovares 205001ab8d * Highly experimental ODE_STEPSIZE = 0.025f - 1000 / 25 = 40fps - 10 substeps with fallback to 5 substeps when things get slow
* Just to give you an idea of the difference ..    previous ODE_STEPSIZE was 0.005f - 1000/5 = 200fps - 10 substeps with fallback to 5 substeps when things get slow
* *nix avatar may fall over again, *sorry*
2008-01-27 03:18:10 +00:00
Teravus Ovares 254e047dad * Shifted strategy of detecting specific *nix distributions to detecting *nix.
* Let me know if all your avatar are standup.
2008-01-26 17:38:30 +00:00
Teravus Ovares 58106926bb * Added a try/catch handler around childdataupdates because the enumeration is prone to modification when logging on. These can be safely ignored because the data gets old fast and new ones get generated somewhat quickly. 2008-01-26 17:00:35 +00:00
Jeff Ames 20215c3d30 Rewrote svn properties handling script in python. Added more file types. 2008-01-26 10:34:49 +00:00
Jeff Ames 429d14f3e5 Removed ScriptServer.csproj from svn. 2008-01-26 09:36:19 +00:00
Jeff Ames 582d0a29d5 Set svn properties. 2008-01-26 04:26:12 +00:00
Justin Clarke Casey 7c20ad021e * Add missed out evn:eol-style native
* I intended to think about refactoring the servers to use this common base class, but temporary laziness won out.
* I'm leaving this here as a reminder/mind poke and for reasons of laziness (again)
* If people object to me leaving this kind of thing lying around, please say
2008-01-25 19:40:48 +00:00
Justin Clarke Casey 90c853685c * Add very basic initial login stats to the user server
* Typing 'stats' on the command line will given total number of successful logins today and yesterday
* A little bit more to come, probably
* Refactoring will follow next
2008-01-25 19:24:25 +00:00
Teravus Ovares f96d6ea2cd Implemented a suggestion from Mic Bowman regarding border crossing and SignificantClientMovement. 2008-01-25 18:12:08 +00:00
Justin Clarke Casey f5340b6470 * Stubbed out beginnings of a user server stress test
* Does absolutely nothing at the moment
2008-01-25 17:37:18 +00:00
Justin Clarke Casey 75d91c387a * Changing && to || as suggested by dirk and ChrisD, also looks sensible to me
* Please revert if this is wrong, Teravus
2008-01-25 16:36:00 +00:00
Teravus Ovares a2f11a000a * Added Ubuntu to the OS detection routine. This seems to have helped on Debian. 2008-01-24 22:49:35 +00:00
Justin Clarke Casey ff59280e9e * Reinsert 3 second land loading delay of r3132 accidentally removed in r3141.
* Sorry Tedd!
2008-01-24 10:08:11 +00:00
Brian McBee 90b35beee7 Another try at fixing the Animations problem on region crossing. 2008-01-24 02:36:01 +00:00
Teravus Ovares f0811e4800 * This update updates ODE to again use the AMotor to keep the avatar upright instead of the 'avatar wobble' This also uses a hack to detect debian and change the force applied by the AMotor to a different value for Debian. The intent of this all is to get the avatar to stand up in Debian with the AMotor. 2008-01-23 23:57:54 +00:00
Teravus Ovares 09a616e1ea * Added ReadEtcIssue to Util
* If you have Debian running, you should get a platform line that says, 'Found Debian!' when starting up your sim.
* If someone running Debian will confirm this does occur, that would be most helpful.
2008-01-23 23:32:19 +00:00
Teravus Ovares adf05e682e * One more try at specifically identifying Debian from the code.
* There's 3 platform lines now.   Would someone running debian and/or Fedora core please try this revision out and send me the three [PLATFORM] lines?
2008-01-23 22:30:12 +00:00
Teravus Ovares 6874beff52 * When Scene loads, added a platform string print out for testing purposes. Anyone on Debian want to run this revision and send me back the two platform lines? It would be helpful. 2008-01-23 22:07:48 +00:00
Sean Dague 781187e16f put the number in front of the migrations to make them easier to deal with 2008-01-23 20:42:50 +00:00
Justin Clarke Casey 51146fc80d * Changing log messages to use 24 hour clock rather than 12 hour - hope nobody objects 2008-01-23 19:38:12 +00:00
Justin Clarke Casey dfbfa856bb * Timer wants, ms, not secs!
* May also be another bug lurking
2008-01-23 19:12:15 +00:00
Justin Clarke Casey 257f2b5583 * Add very very very basic initial statistical information collection to asset server
* stats can be seen by typing stats on the asset server command line
* Currently collecting only raw requests for today and yesterday
* And I haven't yet tested the 24 hour rollover
2008-01-23 19:09:50 +00:00
Justin Clarke Casey 0325e6ee6a * Library scripts can now be dragged into prims
* Unfortunately, they show us as non modify, though they will run
* We're probably hitting unimplement permissions stuff
2008-01-23 17:52:13 +00:00
Justin Clarke Casey 2df8918aed * Persistent prim inventory script storage is now turned on by default
* Persistence of things apart from scripts will be implemented later on - I at least want to do some work with asset server stats so loading can be monitored first.
* No MSSQL implementation as of yet
* Progress can be followed at http://opensimulator.org/wiki/OpenSim:Prim_Inventory_Persistence
* Please let me know if you see issues resulting from this change.
2008-01-23 16:44:03 +00:00
lbsa71 bc88f90a6e * I just love doing these substantial contributions. 2008-01-22 15:30:47 +00:00
lbsa71 8d0364e228 * changed nonsensical PermissionMask and ObjectFlags mixup; if this causes perms weirdness, let's all work together to find the real cause. 2008-01-22 15:07:30 +00:00
Teravus Ovares af43349294 Giving Mantis 393 a shot (not enough info to really know for sure though). 2008-01-22 09:06:44 +00:00
Tedd Hansen 50dcd33bab Giving Mantis #388 a shot 2008-01-22 09:00:49 +00:00
Teravus Ovares 5cf96daaf2 * Enabled dead region tracking for ChildAgentDataUpdates
** If the region fails 3 times, then ChildAgentDataUpdates no longer get sent to that region
* Enabled Child_Get_Tasks in grid mode.   
* When Child_Get_Tasks is enabled on neighbor regions, the neighbor region uses the client's draw distance to send out prim.   This is a lot less likely to flood the client now since the ChildAgentDataUpdate contains both the throttle settings and the draw distance.   This means that with this enabled, you can see prim in other regions in grid mode.   Very experimental.
2008-01-22 08:52:51 +00:00
Adam Frisby 7d61705c3c * Renamed a number of TerrainEngine functions to conform naming standards better. 2008-01-22 00:33:05 +00:00
Teravus Ovares f22b8b6f04 * Added an army of exception handlers to the InterRegion logoff message 2008-01-21 23:28:38 +00:00
Teravus Ovares 3fe6b2280d * Shutting down child agents properly in neighbor regions. 2008-01-21 23:04:42 +00:00
Brian McBee 274d958893 Another attempt to squash the animation bug. Wish I could get this to fail at will. 2008-01-21 22:44:55 +00:00
Justin Clarke Casey dfb84d0d37 Change misleading placeholder error messages for attempts to persist non-script items to prim inventory 2008-01-21 22:34:14 +00:00
Brian McBee 288c4f4a44 Attempt to catch animation fubar on region crossing that causes client hang. Mantis 319. 2008-01-21 22:13:08 +00:00
Justin Clarke Casey c3594ba7d1 * Following on from sdague's r3144, commenting out other parts of TribalMedia
* This should resolve the current build problem
2008-01-21 18:39:54 +00:00
Justin Clarke Casey 46fe6e2f97 * Scripts edited within a prim will now be persisted correctly
* On restart the latest save will be restored rather than the very first dragged in scripts
* Also add previously missed out database commits to separate prim inventory commit path (sigh)
2008-01-21 16:42:53 +00:00
Sean Dague 38991ba0e6 comment out use of the TribalMedia data mapper layer
for now.  It doesn't build on new mono at the moment, and
isn't currently used.  Please make sure this functions on
mono 1.2.6 prior to adding it back in for the main tree.
2008-01-21 16:40:23 +00:00
Justin Clarke Casey 331aef2bae Method rename 2008-01-21 15:17:09 +00:00
Justin Clarke Casey 7ca8e28a9a Properly lock new separate database accesses 2008-01-21 15:12:00 +00:00
Justin Clarke Casey 504ae63669 * Make object persistence more granular by separating prim and prim inventory persistence 2008-01-21 15:06:49 +00:00
Tedd Hansen da8923450a Small bug in ResetScript 2008-01-21 12:00:27 +00:00
Charles Krinke a025f527cf Add additional mainlog data to LogOffUser
to aid in debugging.
2008-01-21 03:45:50 +00:00
Teravus Ovares e04356387d * And, so did the UDPServer Verboseness 2008-01-21 03:19:08 +00:00
Charles Krinke a759ff5ea3 Surround the "non implemented" in an else clause if face is inappropriate for:
llSetColor, llSetAlpha, llGetColor, llSetTexture, llOffsetTexture, 
llRotateTexture & llGetTexture
2008-01-21 03:14:38 +00:00
Teravus Ovares da99c2ab10 * Stopped Physical Object saving on SQLite got commented out in my last commit.. un commenting it out now. 2008-01-21 03:13:44 +00:00
Teravus Ovares a3851b3812 * Added hooks for logout to all IUserService and all that implement it.
* Added a Logout message with a name on the console
* Added a *fixme* message to figure out why the current agent session is null
* After updating you may notice that there's a login <user> and also a logout<user>
2008-01-20 23:08:50 +00:00
Brian McBee 59d7165f40 Graceful failure of teleport to unavailable regions might actually work now.
I blame all bugs on the age of my brain cells.
2008-01-20 21:11:55 +00:00
Brian McBee 730e2d6d7c Check if remote simulator is up before attempting teleport. Teleport to a remote region should now fail gracefully if remote simulator is down. 2008-01-20 19:12:00 +00:00
Tedd Hansen 8ffefd2bd6 Tedds temp fix for startup crash: Waiting 3 seconds for stuff to catch up. (Someone please fix! :)) Lets see if it works every time or just some ;) 2008-01-20 12:05:16 +00:00
Teravus Ovares 64392b4fac * Found and fixed a situation where a neighbor region would come up send a notice and would be tagged as 'too far away' when it was right next door. 2008-01-20 05:51:38 +00:00
Teravus Ovares 4f9c7288cd * Announcing the alternative prim early adoption program.. Adding regular spheres to the physical prim mix.
* Be advised..   these are not ellipsoids..  these are spheres.
2008-01-19 22:51:16 +00:00
Tedd Hansen cc635a651a Most is back in its original state :) Hope I didn't break anything... *looks innocent* 2008-01-19 22:23:22 +00:00
Tedd Hansen 459b614b86 That didn't work -- added more debugging 2008-01-19 21:55:43 +00:00
Tedd Hansen 056b2940b4 That didn't work, trying with TableAdapter.FillSchema(DataSet, SchemaType.Source) 2008-01-19 21:51:16 +00:00
Tedd Hansen 462fc84eb2 Removed mega-debugging.
Possibly solved startup crash.
Moved MySQL Commit() to inside each functions respective dataset access mutex because if not other threads would be waiting until function released mutex and modify the dataset before the function could commit
2008-01-19 21:42:03 +00:00
Tedd Hansen 4b56e0e324 removed additional debugging, added temp mega-debugging to StoreLandObject 2008-01-19 21:33:39 +00:00
Tedd Hansen 9e9ba262f7 More debugging 2008-01-19 21:16:22 +00:00
Tedd Hansen 65ea917d34 Added exception handler to LandManager IncomingLandObjectFromStorage 2008-01-19 20:59:47 +00:00
Tedd Hansen 57ae2ce300 Getting closer to that crash .. :) 2008-01-19 20:50:54 +00:00
Tedd Hansen 4ab19afc0a More debugging 2008-01-19 20:45:09 +00:00
Brian McBee 17c25796b8 checking return code may make failed teleports fail more gracefully. 2008-01-19 20:34:54 +00:00
Tedd Hansen 6353df5569 More debugging in hunt for that random startup crash 2008-01-19 19:49:08 +00:00
Tedd Hansen 8351894170 one more try before I leave 2008-01-19 11:25:08 +00:00
Tedd Hansen 8c5d93eff6 "compile before commit, AND check compile result" - forgot a ; 2008-01-19 11:19:02 +00:00
Tedd Hansen ca772be0d4 Still hunting, added debug output 2008-01-19 11:17:12 +00:00
Tedd Hansen ef50e6875c Still looking for that startup crash bug. Added some exception handling in prim object load. 2008-01-19 11:08:07 +00:00
Teravus Ovares 8fdeab57b1 * Potential fix to the 'can't run a script anymore bug' 2008-01-19 02:58:19 +00:00
Tedd Hansen d23222cbc6 Added block for scenario: global exception handler called in loop when exception happens inside global exception handler
Added InnerException to output
2008-01-18 23:45:16 +00:00
Teravus Ovares 741d136f8c * Return of the avatar wobble. 2008-01-18 21:38:47 +00:00
Tedd Hansen ab5527dd53 Why don't you try compiling before you commit?
No, I don't need to. I'm good, my code never fails!
2008-01-18 20:55:14 +00:00
Tedd Hansen 0d8b8d340c Nope, that didn't do it - trying lock on performParcelPrimCountUpdate instead 2008-01-18 20:52:53 +00:00
Tedd Hansen 8fbac08fb5 Added a mutex lock on loadAllLandObjectsFromStorage so maybe just MAYBE we can get rid of that annoying startup crash... 2008-01-18 20:46:53 +00:00
Teravus Ovares b7ab6d705a * Physics update to perhaps help people who have capsules that have capsized 2008-01-18 19:01:35 +00:00
Justin Clarke Casey 8df4774830 On reflection, HasGroupChanged is more appropriate 2008-01-18 18:57:28 +00:00
Justin Clarke Casey be50fa76ee Change SOP.HasChanged to HasPrimChanged in preparation for further changes 2008-01-18 18:43:16 +00:00
lbsa71 dfda3dd4d7 * Fixed bug where 'taskOwnerId' would always be null in PermissionManager, hence always retuning false on GenericObjectPermission. 2008-01-18 14:01:41 +00:00
Teravus Ovares dc5ab8b6c3 * Friction reduction update.
* It's a known fact that the greater the friction the more computationally intensive a physics simulation with it is....
2008-01-18 02:32:34 +00:00
Teravus Ovares ecd6c1110a * ODE Physics update. fixed weird rotation of the avatar surrogate.
* Set the avatar's radius to 0.37m, I think this gives the *best* balance between spaces the avatar can fit, and the ability to climb steps
* Fixed a few things
* Tweaked some more
* Played with gravity (-9.8m/s)
2008-01-18 02:26:43 +00:00
Sean Dague 333826903c parametrize like clauses for avatar picker 2008-01-17 20:42:22 +00:00
Tedd Hansen 82d43db1cc Added data structure to be passed through event execution queue so that events can use llDetect*-commands to find information about event. 2008-01-17 15:22:35 +00:00
Teravus Ovares 18c959df12 * Added llApplyImpulse in the global frame. The object must be physical before this'll do anything. Be careful with this function as it's easy to loose prim. 2008-01-17 14:59:05 +00:00
lbsa71 344b4d92f5 * added ForEachPart helper
* added SetOwnerId that... sets.. OwnerId... on all parts.
2008-01-17 09:32:02 +00:00
Teravus Ovares c2863df49d * Added and implemented the LSL changed event.
* An example changed event syntax is at: http://opensimulator.org/wiki/Changed_Event_Example
* You can use this to trigger actions in your script if someone sits on your object_rez
* You can use this to figure out all of the CHANGED_ constants except for CHANGED_REGION, CHANGED_TELEPORT, and CHANGED_ALLOW_DROP
2008-01-17 02:23:48 +00:00
Teravus Ovares feba36aaf3 * Fixed standing up so that you're at the new position of the prim if you move the prim and then stand up!
* Enter llSetPos elevators and conveyors n' stuff.!
2008-01-16 22:53:49 +00:00
Justin Clarke Casey e13feaa375 * More prim inventory synchronization
* Remove some mysql verbosity
2008-01-16 21:43:22 +00:00
Tedd Hansen 7fa6646d6f Added (experimental) terrain elevate command to allow whole terrain to be elevated with positive or negative values 2008-01-16 21:21:31 +00:00
Justin Clarke Casey b33da2538e * Fix mantis 345 - it is now possible to duplicate prims directly in the region again without breakage
* This includes their inventories
* Also, this revision properly synchronizes prim inventory crud.
2008-01-16 20:27:12 +00:00
Teravus Ovares c3061717d0 * Fixed a packet counting issue that I introduced
* Fixed a bunch of goofy math for calculating the sim stats counters
* Made most of the sim stats counters additive so it's easy to change the sim stats interval
* Changed the sim stats send interval to 3 seconds
2008-01-16 19:34:48 +00:00
Justin Clarke Casey 57519b6dba * Store task inventory when an object is taken into agent inventory
* This means that you can take an object from a region and rez it somewhere else, with its inventory intact.
* As for earlier, at this stage only scripts can be placed in inventory
* This isn't an efficient implementation, a better one will probably need to come along soonish
2008-01-16 18:35:34 +00:00
MW 795a339af5 First part of changing prim's permission flags to use the correct enum (libsl PermissionMask) 2008-01-16 17:31:07 +00:00
Teravus Ovares 771ed747e5 * Slowed down the sim stats update to once every 5 seconds because the network accounting required it... with it being the lowest updated stat.
* Time dilation is off now..  because it's the additive of the 0.91 * 10 (adds a second) / 5( the number of seconds since the last update) which results in 0.41td as common
* Slowing down the network accounting update will probably fix the red issue.
2008-01-16 17:07:46 +00:00
lbsa71 2c69b006a7 * added missing using clause 2008-01-16 14:52:47 +00:00
lbsa71 b12f56d1d0 * fixed a race condition where several UDP-generated threads would collide on accessing AckList
* introduced __TryGetValue__ (learn to love it!) instead of ugly ifs and catch
2008-01-16 12:38:08 +00:00
lbsa71 f2ca9c1d05 * Reverted bugfx that really should go into separate commit 2008-01-16 12:33:02 +00:00
lbsa71 5e757d2ad1 * More work on getting the database framework to actually work 2008-01-16 12:25:13 +00:00
Teravus Ovares 29c869fd33 * Fix for: http://opensimulator.org/mantis/view.php?id=358 2008-01-16 06:04:33 +00:00
Teravus Ovares 5dd741267e * Added Agent Time, Pending Downloads, and made Agent Updates/Sec actually accurate.
* We're only missing, the script related sim stats counters and the Images time counter and the Pending Uploads counter.  The rest of them are actually implemented now.
2008-01-16 05:48:40 +00:00
Teravus Ovares 5958192398 * Added Packets In/s, Packets Out/s and Current un_acked Packets to the SimStatsReporter
* This doesn't take into account the throttler, it just assumes the throttle limit isn't reached.
2008-01-16 03:33:46 +00:00
Teravus Ovares 314c554ed4 * Refactored the SimStatsReporter to reuse the same packet and packet blocks over and over again instead of creating 1 a second.
* Added frame Milliseconds, Physics Milliseconds and Other Milliseconds to the Sim Stats Reporter so we can start to figure out what the slowdowns are. (these were the most convenient to get and had just about no overhead.
2008-01-16 02:48:39 +00:00
Justin Clarke Casey c15eec2cb0 * Restore non dash asset UUID persistence which was made dashed in r3069
* Apologies, any sqlite databases created between r3069 and this change will now contain unfindable assets.
* But sqlite asset databases used previous to r3069 will now work again.
* This change may have been done on purpose, so it's not impossible it will be re-reverted
2008-01-15 22:16:43 +00:00
Jeff Ames 258a4dc282 Set svn:eol-style. 2008-01-15 20:24:35 +00:00
lbsa71 f5103b98be * Renamed a bunch of Data baseclasses for clarity and readability
(Slowly getting there)
2008-01-15 20:07:02 +00:00
Teravus Ovares 0a783e4442 * Added some comments to the linkset positioning code 2008-01-15 14:39:35 +00:00
lbsa71 47c6529523 * Some morw work on specializing the database framework for OpenSim 2008-01-15 10:15:39 +00:00
Teravus Ovares 492e72b21a * Delinking doesn't leave invisible physical objects behind anymore 2008-01-15 04:27:02 +00:00
Teravus Ovares 45e945616b * Pass 2 of collidable (non physical) linksets
* Linkset status is now persistent
* Tweaked a physics child prim positioning hack to generate less database saves
* Re-factored physics object creation calls into ApplyPhysics.  To create a new physics representation of an object or linkset, it's only necessary to call *group*.ApplyPhysics(bool m_physicalPrim).  *lbsa has been waiting for this refactoring*
* We have collidable linksets now. (they don't become phantom anymore)
2008-01-15 04:14:27 +00:00
Adam Frisby b25f9f322c * Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's
* Added Copyright headers to a bunch of files missing them
* Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
2008-01-15 02:09:55 +00:00
Jeff Ames 84c3a317c1 Set svn:eol-style. 2008-01-14 22:37:45 +00:00
lbsa71 6d751411b7 * Added specialization of DatabaseMapper, DataReader and ObjectFieldMapper to support LLVector3, LLQuaternion and LLUUID
* Added PrimitiveBaseShapeTableMapper to show how it's done

NOTE: Nothing actually works yet - this code should be considered more of educational value until it's all wired together
2008-01-14 22:34:19 +00:00
Sean Dague b49ae37e89 my Exists check was slow and wrong. This fixes issues people
were just having on IRC.  Thanks to Grumly57 for helping to sort
this out.
2008-01-14 21:35:49 +00:00
Sean Dague 20cf62b417 good bye ADO.NET to assets, notice faster startup time 2008-01-14 20:42:27 +00:00
Sean Dague db40ffb43f move db open to initialization, which is where it should have been
all allong
2008-01-14 19:47:59 +00:00
Teravus Ovares a522d7844b * First pass at collidable linksets
* There will be bugs, you can count on that. To avoid them, set the linksets phantom
* After region restart, the linksets restore in a non collidable state.
* Linksets can but shouldn't be made physical with the physical checkbox or when you unlink them, they tend to explode.
* After creating a linkset, you have to move the linkset or set it phantom and not phantom for it to become collidable.   
* There's a few ParentGroup references that need to be refactored.
2008-01-14 18:29:04 +00:00
Justin Clarke Casey 785826231e Print out the exception as well as APPLICATION EXCEPTION DETECTED when the server hits something terminal.
This was the original intention, but the line order was slightly wrong.
2008-01-14 18:02:37 +00:00
Justin Clarke Casey c9ad862aab Remove unused SOG constructor 2008-01-14 15:46:42 +00:00
Tedd Hansen 370e79cd9e ZERO_ROTATION set to 0,0,0,1 -- not 0,0,0,0 ;) 2008-01-14 15:37:00 +00:00
MW 62157b6dde Applied patch from melanie (thank you) for mantis issue# 338 2008-01-13 22:47:10 +00:00
Teravus Ovares 30714c044e * HeightField handling update in ODE. Should improve the terrain pits. So far, only windows lib updated. Need to do the Linux version.
* Update also checked into opensim-libs
2008-01-13 22:11:49 +00:00
Tedd Hansen 6eaa9b4766 Anti-crash fix: Allow int (numbers without dot) when changing Estate terrain settings.
Also added exception handling if string->float conversion still should fail for some reason.
2008-01-13 16:40:33 +00:00
Teravus Ovares 4f39df42ae * Removed a debug message that I left in there.... 2008-01-13 08:07:45 +00:00
Teravus Ovares d9e4533202 * Fixed an overflow in the land manager
* Did some goofy math undoing in the Sim Stats Reporter
* More reduction to the amount of calls per second to UnManaged ODE code
* Added a significant amount of comments to ODE
2008-01-13 07:14:54 +00:00
Charles Krinke fa83249db8 Thank you very much, Kinoc for implementing llGetSubString and llDeleteSubString:
from the c# implementations of string.SubString(start,len) and string.Remove(start,len).
Especially since negative indexing and exclusion are included in the LSL versions. 
This patch is closer to the LSL version. Maybe an osSubString and osRemoveString 
would be appropriate?
2008-01-12 22:25:10 +00:00
Charles Krinke 7d609ae56d Thank you, Kinoc for adding: When accessing slower web sites or proxy services
300 msecs can be too slow and cause a timeout to occur. This is reported when 
llHTTPRequest times out but may not be reported for other functions like 
osSetDynamicTextureURL. This sets the time out to 30 seconds. It appears 
that the value affects not just llHTTPRequest's.
2008-01-12 22:18:23 +00:00
Adam Frisby f59f4e476d * Made it so that if you don't specify a key, the defaults will not be assumed.
* If you wish to turn off key authentication, set the values to "" (null) in the grid config, and do the same in clients.
2008-01-12 19:28:50 +00:00
Adam Frisby 0b0df333dc * In the interests of making life difficult for everyone, the Grid Server now actually checks your authentication keys rather than ignoring them. 2008-01-12 19:23:56 +00:00
alondria d3fa814458 Added notice on console to change storage_plugin if set to OpenSim.DataStore.MonoSqlite.dll before replacing with OpenSim.Framework.Data.SQLite.dll 2008-01-12 17:18:42 +00:00
alondria 4e643eba5f If OpenSim.ini uses OpenSim.DataStore.MonoSqlite.dll, have it use OpenSim.Framework.Data.SQLite.dll during runtime. 2008-01-12 17:10:06 +00:00
Tedd Hansen f9c981007d Set eol 2008-01-12 15:52:34 +00:00
Tedd Hansen 27859faf7a Welcome back LSO.
Added old LSO code, will use it as base to create new LSO VM.
2008-01-12 15:49:41 +00:00
Tedd Hansen 0081c060d0 Set eol 2008-01-12 14:45:59 +00:00
Tedd Hansen 33d82aa532 Added license to new files 2008-01-12 14:40:28 +00:00
Tedd Hansen bacbade369 Major reorganizing of DotNetEngine. Moved common script engine parts to ScriptEngine.Common, only .Net-specific code in DotNetEngine. AppDomains, event handling, event execution queue and multithreading, script load/unload queue, etc has been moved to ScriptEngine.Common.
Loads of things has been put into interfaces instead of the specific class.
We are now one step closer to ScriptServer, and its very easy to implement new script languages. Just a few lines required to make them a OpenSim script module with all its glory.
2008-01-12 14:30:22 +00:00
Teravus Ovares e2c679637e * Trying something to see if it helps teleports and border crossings 2008-01-12 11:16:44 +00:00
Jeff Ames 730f0d9311 Set svn:eol-style. 2008-01-12 11:10:53 +00:00
Tedd Hansen 39880f2b45 Added references for last commit 2008-01-12 11:07:49 +00:00
Tedd Hansen a993d0d335 ScriptServer communication is ok. Script is creatd on onrez. But since it can not access Scene it sort of crashes right away ;)
Added some sample placeholders for implementing rest of LSL events.
2008-01-12 10:25:08 +00:00
Tedd Hansen 011abad053 ScriptServer protocol now correctly casts datatypes -- ready for implementing 2008-01-12 09:44:01 +00:00
Teravus Ovares 0518369e3a *removed a goofy debug line left in 2008-01-12 04:32:27 +00:00
alondria 90ccc248e8 Implements llModifyLand() - Still needs some tweaking to match LL's effect on how much to effect the land. 2008-01-12 04:30:47 +00:00
Teravus Ovares a3972257c8 * Added some of the finer control points to POS such as
** jumping
** crouching
** landing on prim
2008-01-12 04:29:36 +00:00
Teravus Ovares 7e81841f0e *ech one thing didn't save from the last commit 2008-01-12 04:14:06 +00:00
Teravus Ovares cbcba1f026 * Unmoderated the ODE FPS in the sim stats. Decided to do that after Andrew Linden insisted that Havok was running at 45fps internally.
* Set the SimStats packet as unreliable (so we don't require an ack and do resends on it)
2008-01-12 04:12:38 +00:00
alondria c2ca98519b Linking osTerrainGetHeight, osTerrainSetHeight, and osRegionRestart to LSL_BaseClass to allow them to be called in LSL scripts. 2008-01-12 03:23:11 +00:00
Adam Frisby bf8ffc7a0c * For your enjoyment, some RAdmin improvements, namely a new LoadHeightmap method. 2008-01-12 03:17:28 +00:00
Jeff Ames 5d7e120d56 Set svn:eol-style. 2008-01-12 01:35:25 +00:00
Tedd Hansen c4684b2d14 And one last time - removed duplicate exception dump :) 2008-01-12 01:30:57 +00:00
Tedd Hansen d0d3812cdf Minor fix to global exception handler - now only displays unhandled (full crash) exceptions. 2008-01-12 01:27:25 +00:00
Tedd Hansen adbdbc675b Added global exception handler with possibility of reporting crash details directly to developers (disabled for now) 2008-01-12 01:25:35 +00:00
Tedd Hansen e7dbaad04f New ScriptServer protocol successfully implemented.
Still needs hooking up for all commands in both ends, separation of local and remote LSL-commands, etc.
2008-01-12 01:14:31 +00:00
Tedd Hansen 1e9a66cbaa ScriptServer communication protocol (v1), primitive RPC-like TCP client/server 2008-01-12 00:48:58 +00:00
Jeff Ames ef674acc24 Fix some warnings under mono. 2008-01-11 21:08:37 +00:00
Justin Clarke Casey 82d7fb7522 * Exprimental prim inventory persistence can now be enabled by users.
* This can be turned on by setting storage_prim_inventories_experimental = True in OpenSim.ini
* Implemented for sqlite and MySQL, no MSSQL implementation yet
* As an experimental feature, there is no guarantee that this won't take down your region or that the db representation won't need to change.
* More (and continuing) details at http://opensimulator.org/wiki/OpenSim:Prim_Inventory_Persistence
2008-01-11 18:44:53 +00:00
Justin Clarke Casey 48be04df1d * Do database implementation for prim inventory items in mysql
* Properly clean up items when a region object is deleted
* Update persisted prim when an inventory script is changed
* No user functionality yet
2008-01-11 17:00:21 +00:00
Sean Dague 50ece51dbc manually open the db connection. Mono does this automatically, .NET doesn't 2008-01-11 15:55:00 +00:00
Tedd Hansen 7f071dd193 Log instead of crash (User login, getting friends list) 2008-01-11 15:46:43 +00:00
lbsa71 cdd378a2c2 * returnin LLUUID.Zero rather than LLUUID.Random on webkey null 2008-01-11 15:19:43 +00:00
Justin Clarke Casey c7b25967e7 Turn off accidental hardcoding 2008-01-11 14:56:45 +00:00
Justin Clarke Casey 1e981a7c1c Switch prim items type representation to use int rather than strings. 2008-01-11 14:55:27 +00:00
lbsa71 8ccc470e2a * quick fix to fix if webLoginKey is null in DB, return random key (I guess LLUUID.Zero would be a security hazard) 2008-01-11 07:41:14 +00:00
Teravus Ovares 901f403823 * Just an update to the default login form 2008-01-10 23:31:37 +00:00
Sean Dague 8ebaf7aa41 move Friends list to not use ADO.NET layer, it now hits the sqlite
db directly when needed
2008-01-10 21:32:22 +00:00
Sean Dague 13736995d2 add sqlite database definitions as Resources for SQLite.dll 2008-01-10 19:38:37 +00:00
Tedd Hansen 6bcf44e141 Added const definintions for sculpted prims. 2008-01-10 19:21:37 +00:00
lbsa71 2f023f6362 * removed unused PrimScale on PrimitiveBaseShape (use Scale instead)
* ignored bin
2008-01-10 13:37:59 +00:00
lbsa71 690a7a347b * Undid XmlIgnore thingy as it did cause breakage 2008-01-10 12:07:49 +00:00
lbsa71 ed314e19ff * Sorted members for great justice 2008-01-10 11:17:26 +00:00
lbsa71 f1c2dca7c1 * ProfileCurve is now XmlIgnored, and instead constructed from ProfileShape and ProfileHollow 2008-01-10 08:56:03 +00:00
Jeff Ames 5a6fd21a2c Whitespace cleanup. 2008-01-10 06:49:29 +00:00
Teravus Ovares a962653e04 * After fighting with it a bit more, Opensim is now compatible with the most recent release client(RC) on the linden labs download page.
* Don't forget, you need -loginuri *and* -loginpage
* Ex: -loginpage http://10.1.1.2:8002/?method=login -loginuri http://10.1.1.2:8002/
* The ?method=login is important, don't forget to add it
* If you customize your http_loginform.html file, be sure to keep the form post address as is.
2008-01-10 04:37:03 +00:00
Justin Clarke Casey b0904f471d Fix r2959 - last letter was being sliced off region prim renames 2008-01-10 01:39:49 +00:00
Jeff Ames 82af9b7a78 Set svn:eol-style. 2008-01-09 23:28:50 +00:00
Teravus Ovares 85fe8ed085 * This update enables the web_login method.
* Remember, the client doesn't support web_login to other grids in the current RC, however the next RC will.
2008-01-09 22:05:28 +00:00
Teravus Ovares 49fe4eb3cd * This may be broken.. it hasn't been tested, however I wanted to get the last database changes in before sdauge changes them significantly. 2008-01-09 18:57:03 +00:00
Sean Dague 7ba9c13fa8 default to OpenSim.Framework.Data.SQLite which is the new storage
dll location
2008-01-09 18:50:12 +00:00
Sean Dague 411d06c94e moving Region store for SQLite into the OpenSim.Framework.Data.SQLite
namespace to mirror what is done with MySQL.  This will require a 
configuration change for people using SQLite for prims which is given
as an example in OpenSim.ini.example
2008-01-09 18:41:20 +00:00
lbsa71 b469990972 * Added helpers to convert from LSL PrimitiveParams values to PrimitiveBaseShape values 2008-01-09 18:26:40 +00:00
Tedd Hansen 40dc26e28a Did someone say missing files? Thanks Sakai 2008-01-09 17:30:40 +00:00
Tedd Hansen 260145a7e6 Dynamic loading of ScriptEngine in ScriptServer
ScriptServer event pipe (OpenSim->ScriptServer->ScriptEngine) should in theory be done
2008-01-09 17:13:02 +00:00
Justin Clarke Casey 796ae57bea Prim inventory script saving phase 2.
* It is now possible to edit and save scripts directly from prim inventories
* On saving, the script will be restarted in the region
* Doesn't appear that it's yet possible to drag inventory contents back to agent inventory.  Not quite sure why this is yet - the perms all look very permissive.
2008-01-09 15:46:45 +00:00
lbsa71 c0252073d0 * removed another superfluous debug message 2008-01-09 09:31:07 +00:00
Teravus Ovares fd2603bcf4 * ok, last mySQL webloginkey related update tonight. 2008-01-09 04:24:33 +00:00
Teravus Ovares dfe01df2fc * almost an oops 2008-01-09 04:17:35 +00:00
Teravus Ovares e1aa83e965 * Added a hashtable based HTTP processor in preparation of the web_login_key
* Added the web_login_key to the users table
* Added happy configurable http error message pages
* This update is large enough to have 'awe' value..    so backup your users or weep.
* Not tested on MSSQL, even though I added code to update the tables!
2008-01-09 04:13:04 +00:00
Brian McBee bafdac7874 dump_assets_to_file=true will now cause the asset to go into a UserAssets subdirectory of bin instead of cluttering up your bin directory (Thanks CharlieO!) 2008-01-09 03:57:53 +00:00
Brian McBee 19ed64b114 Third part of CharlieO's library rework. We now have library organization! Thanks CharlieO! 2008-01-09 03:52:07 +00:00
Sean Dague ebba112379 make Stopped a property of the SceneObjectPart instead of in the
database code, so this is a shared concept.
2008-01-08 21:56:52 +00:00
lbsa71 b9dcb24175 * Removed unneeded and uneeded debug message 2008-01-08 20:28:31 +00:00
lbsa71 c01dfe4953 * Removed superfluous and erroneous perms check on parts. 2008-01-08 15:01:15 +00:00
lbsa71 3ebd0430d9 * Heavy refactoring of MultipleObjUpdate flow for readability 2008-01-08 14:54:20 +00:00
Teravus Ovares f7437b7b5e * Added the files for work units for the purpose of sending out updates to regions. 2008-01-08 06:55:57 +00:00
Teravus Ovares ad411d52a8 * Added more methods to MessageService 2008-01-08 06:02:56 +00:00
Teravus Ovares 05fbed403c * Switched over to RegionProfileData from using RegionInfo because RegionInfo was missing the httpURI on the MessageService.
* Fixed some code, added a method.
2008-01-08 04:53:12 +00:00
Justin Clarke Casey 0428701da7 Minor prim inventory method refactoring 2008-01-07 22:32:10 +00:00
Justin Clarke Casey 348b79d801 Trigger persistence of the scripts in a prim's inventory when that inventory is changed/updated/deleted (before the trigger only happened if the prim was moved).
This is still development code - experimental prim inventory persistence cannot yet be enabled by users.
2008-01-07 22:11:26 +00:00
Teravus Ovares 6e8c3ac782 * Enabling the LLSD Login method by jhurliman so libSecondLife clients work on OpenSim again. 2008-01-07 20:00:37 +00:00
Teravus Ovares 0678a4d52d * Message Server stuff. 2008-01-07 19:30:10 +00:00
mingchen 1718c39e10 *Added ability to update only necessary data on insertRegion for the grid server. 2008-01-07 15:23:00 +00:00
Teravus Ovares bbac579849 * More message server methods 2008-01-07 07:48:35 +00:00
Justin Clarke Casey eadfbf3ba2 Very minor refactoring. Remove unused prim inventory bool returns for now 2008-01-07 03:09:00 +00:00