Commit Graph

1156 Commits (29fb93d2432249709de3c99940373e8acd692206)

Author SHA1 Message Date
Justin Clarke Casey 2fddd775f4 * Stop the grid inventory service sending all folder and item details twice
* This change will have no functional impact - we were already filtering out the dupes on the other end.
2008-03-30 00:45:04 +00:00
Justin Clarke Casey a6999f8a5d * Refactor: Remove unused inventory methods, some of which weren't properly implemented anyway. 2008-03-29 23:07:48 +00:00
Justin Clarke Casey 875211b262 * Various 1.19.0.5 grid inventory request fixes. These will only take affect once the region and the grid servers have upgraded to this revision
* You may also need to clear your cache before seeing any effect.
* These fixes may or may not affect inventory on the RC client.
* These fixes should make non-root folders work better, stop inventory failure on first login, allow trash to be emptied and make texture picker in object edit view work properly
* Fixes are 1) make initial root folder request wait for async inventory delivery, 2) deliver all folders in the initial login skeleton, not just the root child ones and 3) deal 
with situations where we receive child folders from the inventory service before their parent is received.
2008-03-29 22:18:44 +00:00
MW 7fcffa3a3a Re-enabled terrain texture generation for the world map. Adam can clean up/ sort it out when he gets time.
Most likely doesn't really work in grid mode as the generated textures are marked as temporary and I don't think they are updated to the asset server. We have to either live with these textures being sent to the asset server, and manually clean them out from time to time or wait until there is some asset management system in place. 
Also currently the texture is only generated at region startup, it is not updated after terraforming.
2008-03-29 17:18:47 +00:00
Jeff Ames bf7ef8c41a Set svn:eol-style. 2008-03-29 04:25:52 +00:00
lbsa71 7f11079f57 * Refactored out common http handler operations 2008-03-28 21:43:46 +00:00
lbsa71 ca718b6f8d * Introduced common abstract UserDataBase provider
* Weeded out multiple AvatarPickerAvatar classes
2008-03-28 19:58:45 +00:00
Justin Clarke Casey 0a47a75b88 * Send full inventory folder skeleton to standalone client logins rather than just the root child folders
* This may resolve some current problems with non root child folders on standalone installations.
* A fix for the same problem in grid mode will come soon.
2008-03-28 19:35:01 +00:00
Justin Clarke Casey 35dec2e53a * Refactor: Eliminate RequestUsersRoot() redundant method 2008-03-28 17:37:55 +00:00
Justin Clarke Casey c8f79eb9b4 * Refactor: Rename CreateInventoryData() to GetInventorySkeleton()
* Replace the unused default GetInventorySkeleton() impleemntation with an abstract declaration - less confusing this way imho
* Add some comments
2008-03-28 16:39:38 +00:00
Justin Clarke Casey 512e52be4c * Remove pointless boolean on AgentInventory.CreateRootFolder() 2008-03-28 16:27:29 +00:00
lbsa71 0e16488ca8 * Introduced base abstract provider class for GridData 2008-03-28 15:05:06 +00:00
lbsa71 8c901e9347 * Introduced common abstract AssetDataBase implementing IAssetProvider
* changed the semantics of SQLiteBase to SQLiteUtils
* Added abstract placeholder files for the other db providers
2008-03-28 14:54:20 +00:00
MW 830626999c Applied patch from mantis# 825, thanks A_Biondi 2008-03-28 14:47:51 +00:00
lbsa71 ed74b8af5f * removed redundant constructor 2008-03-28 14:26:28 +00:00
lbsa71 88a14c9a76 * fixed pk_violation on rename for MSSQLInventoryData
("le fix le plus ugly for le problem trés dumb")
2008-03-28 14:19:17 +00:00
Justin Clarke Casey 0609970f2e * Correct asset type of Lost and Found folder - this might stop it appearing twice
* Other minor corrections to initial inventory contents
* These will only take affect for new users
2008-03-27 18:26:01 +00:00
Johan Berntsson 7fe243e3d4 Committed patch from Lulurun to fix Mantis 817. Thanks Lulurun 2008-03-26 02:49:35 +00:00
MW c2ea7b99e1 Moved Avatar appearance Factory to its own project so that the reference to MySQLDatabaseMapper could be removed from Region.Environment.
Added a using OpenSim.Framework.Data statement to MySQLDatabaseMapper , to try to fix the build problem that has been reported on the mailing list.
2008-03-25 18:48:07 +00:00
Justin Clarke Casey 2517fe7acd * Remove old CAPS http listeners when a client logs out from a scene
* Not yet removing listeners when a client leaves a region without logging out
2008-03-25 17:08:20 +00:00
Teravus Ovares 3d1b4f8578 * On Ray casting. Now returning the face normal of the collision face. 2008-03-25 16:09:43 +00:00
lbsa71 ba2de258f4 * Refactored out circular reference in Region.Environment <-> Framework.Data.Base
We REALLY need to get the db layer sorted soon...
2008-03-25 14:27:39 +00:00
Teravus Ovares 301c25950d * Committing some voice related caps with hard coded responses so more debugging can occur. 2008-03-25 05:56:27 +00:00
Jeff Ames 9d1b42c39a Comment out unused private methods. 2008-03-25 03:49:08 +00:00
Jeff Ames a8d9a58dd2 Fix a couple more warnings. 2008-03-25 03:43:24 +00:00
Justin Clarke Casey ca7c954a61 * Fix build break in last revision. Thanks to paulieFemto for pointing it out. 2008-03-24 18:45:21 +00:00
Justin Clarke Casey 185dbb06af * Picky comment change 2008-03-24 18:26:43 +00:00
Justin Clarke Casey 1a970d8f2d * Create null limit strategy 2008-03-24 18:25:50 +00:00
Justin Clarke Casey 8c0955321a * Refactor: Genericise request limit strategies and move to OpenSim.Framework.Communications.Limit 2008-03-24 18:21:06 +00:00
Johan Berntsson 39f340e687 XmlRpcCommand refactoring 2008-03-24 01:37:00 +00:00
Justin Clarke Casey ca6e557075 * minor: check in the rest of a comment I forgot to finish off in the last revision 2008-03-23 21:32:30 +00:00
Justin Clarke Casey da531fa9e1 * Start passing around a region server's http port in RegionInfo.
* This means that caps methods (editing scripts, poss map functions, etc) on non-home regions should now work with servers which are listening for http ports on a non default 
(9000) port.  
* If you are running a region server, this may only work properly once your grid server upgrades to this revision
* PLEASE NOTE: This shouldn't cause inter-region problems if one end of the connection hasn't upgraded to this revision.  However if it does, the instability will persist until 
the grid and region (and possibly all the region's neighbours) have upgraded to this revision.
* This revision also adds extra login related messages, both for success and failure conditions
2008-03-23 21:21:39 +00:00
mingchen 71ca162821 *Moved LandManagement into its own region module (spiffy!) 2008-03-22 23:10:22 +00:00
alondria 5ebef6410e Implements llLoopSound(), llStopSound(), and llAdjustSoundVolume(). 2008-03-22 23:02:41 +00:00
Justin Clarke Casey 61ae75f364 * Catch the occasional resolution exception that comes out of SceneCommunicationService.EnableChildAgents so we can see what hostname is failing 2008-03-22 20:44:15 +00:00
Justin Clarke Casey 45ea156804 * If a client session requests the same texture more than n times (currently n=5), we now drop the subsequent requests
* This may improve region memory usage
* This is a short-term response to a problem whereby some clients keep requesting the same texture even after we've sent it
* This treats the symptom rather than the cause.
* n can be adjusted by changing the constant at the top of UserTextureDownloadService if necessary
2008-03-21 19:16:29 +00:00
Adam Frisby 7286bd60b0 * Converted a large number of ASCII encodings to UTF8.
* We should not be using ASCII anywhere except for legacy compatibility reasons.
* A large number of UTF8 Encoders are being used in places where we should be using Util.StringToField instead. These have been tagged with // ENCODING FAULT
* This should fix Mantis#799 - Japanese Profile Text does not work.
2008-03-21 02:26:00 +00:00
Justin Clarke Casey c1beb85315 * First draft resolution of mantis 777, 734, 389 - scripts do not save in non-home regions
* Should work in multi-region standalone and grid modes
* This should also solve other non-home region caps issues (map requests, RC client inventory requests, etc)
* We now pass CAPS information on to the destination region on region crossing, and set up a CAPS object when an agent becomes a master
* Current limitation is that this will only work if your http_listener_port is 9000
* This is a very early code cut (lots of bad practice, hard coding and inefficiency).  However, I wanted to get this out there for feedback and my own sanity.  Next few patches will clean up the mess.
2008-03-20 20:04:45 +00:00
MW f61ea1998e Added back a fix that lbsa71 did aqes ago to fix a buffer overflow in the packetpool, which somewhere through time got lost/reverted 2008-03-20 15:33:08 +00:00
Justin Clarke Casey 20473af892 Another poxy patch which consists mainly of logging changes (some already commented out) to find out what CAPS is doing 2008-03-20 13:03:26 +00:00
Jeff Ames a0e1be3280 Fixed some comparisons of LLUUIDs to null.
Thanks to DrSchofld for pointing this out.
2008-03-19 09:36:13 +00:00
Justin Clarke Casey 78e24380c8 * Stop grid inventory network failures crashing the client session
* Now the operation will just fail and post a message to the log instead, which may be mysterious to the client but isn't so brutal
2008-03-18 19:52:07 +00:00
Justin Clarke Casey 18f9f1410d * Just inserting some exploratory comments into inventory code 2008-03-18 18:19:44 +00:00
Jeff Ames e5b9144282 Formatting cleanup. 2008-03-18 15:30:38 +00:00
Adam Frisby aad69b9018 * Applying Mantis Patch #518.2 - State not persisted in MySQL DataStore 2008-03-18 14:54:44 +00:00
Jeff Ames bf8b5844f2 Formatting cleanup. Minor refactoring. 2008-03-18 14:51:42 +00:00
Teravus Ovares 443c66b432 Since we don't yet have a reliable way to release the lock that prevents a user from logging in a second time if they're already registered as logged in;
* If a user logs in and they are noted as agentOnline.  Set agentOnline = false and send a 'you're already logged in' message to the user asking them to wait 5 minutes.  These 5 minutes are not enforced (because there's no foolproof interlock release yet without the grid operator getting a support call for every little sim crash).  When the user gets the message, they can log-in immediately after it, but the user can expect weird results if they don't wait 5 minutes and log-in to the region they were in previously.
2008-03-18 06:03:50 +00:00
Teravus Ovares 42857fe4e9 * Added the ability to type the partial name of a region in the start location box and go to that region if it's there. If no close match was found, it sends you home. This is tested on mySQL. There's untested code on grids that are based on sqlite and MSSQL. The SQL statements *should* be right, but your results may very.
* Ex, if you want to go to Wright Plaza, you simply need to type Wright Plaza in the start location in the client when you log-in.
2008-03-18 05:44:25 +00:00
Jeff Ames 47180080f0 Formatting cleanup. 2008-03-18 05:16:43 +00:00
Jeff Ames 175dc285ff Added copyright messages. Set svn:eol-style. Minor cleanup. 2008-03-18 03:51:59 +00:00
Jeff Ames 9f7639fd6d Formatting cleanup. 2008-03-18 03:41:05 +00:00
Teravus Ovares 4e30f862af Building on Joha's update...
* Server now listens to the client's start location request for 'home' or 'last' and sends the user to the home location or the last location.
2008-03-18 03:09:38 +00:00
Johan Berntsson 040a887b9c Last position will be stored in the DB on logout, and the avatar can continue from the same position in the next login (only with MySQL at the moment) 2008-03-18 01:38:07 +00:00
Jeff Ames 7d1dcf3e68 Replaced some magic PCode numbers with enum values. 2008-03-17 17:23:49 +00:00
Jeff Ames 825c89e7ac Replaced some Console.WriteLine calls with writes to log. 2008-03-17 17:10:53 +00:00
Jeff Ames 8a9d20facd Update svn properties. 2008-03-16 06:59:31 +00:00
Charles Krinke f7c5867723 Thank you kindly, Grumly57 for:
Added MSSQLDataStore.cs to OpenSim.Framework.Data.MSSQL and changed it 
to reflect the actual capabilites of MySQLDataStore.cs
2008-03-15 20:53:39 +00:00
MW c04899b60a Part 2 of fixing inventory for client 1.19.1 (RC), inventory items should now show up.
Most likely still some problems and most like needs some more work (and still a couple of things to finish off).
2008-03-15 12:53:03 +00:00
MW 70e55205a1 Part 1 of making inventory work again in the 1.19.1 (RC) client. Implemented the FetchInventoryDescendents CAPS handler. But currently returning empty folder details.
So this commit doesn't actually fix inventory in that client, it just stops the "loading" message being displayed forever next to a folder, and instead shows empty folders.
Next part will be to fill in the details of the items in the folders.
2008-03-15 11:48:27 +00:00
Sean Dague 01faa86c1a Fix Mantis 636 2008-03-14 18:09:20 +00:00
Teravus Ovares ce9c2ecac8 * You can leave godmode if you want now.
* Fixed a compile error.
2008-03-14 15:52:32 +00:00
Justin Clarke Casey 429ecb8508 Just a few comments 2008-03-13 18:31:05 +00:00
Sean Dague 1ad041707a this is a believed fix for some of the MySQL races. Testing would
be appreciated.
2008-03-13 17:42:07 +00:00
Justin Clarke Casey 42123770de * Add comments and slight corrections to ClientView.AgentTextureCached
* Reduce 'asset not found' console debug spam
2008-03-12 17:02:08 +00:00
MW fc551ef127 Applied patch from mantis #749, Grass now stays to set type when moved. thanks Grumly57. 2008-03-12 15:53:04 +00:00
MW 2fea38a5f2 Applied patch from mantis #610, fixed invalid filenames with dump_assets_to_file set to true. thanks tyre. 2008-03-12 15:45:56 +00:00
Adam Frisby 1277f68f43 * Fix for SQLiteAssetData - We now ignore duplicate assets. We shouldn't support replacing a asset with a fixed UUID as this leads to potential collisions and revisioning issues when proxying down the road. 2008-03-12 12:59:09 +00:00
Sean Dague 163a7cb6c8 better fix for 551, not sure why I missed this earlier 2008-03-12 02:48:08 +00:00
Sean Dague 6340fa0aab Ensure resolution of mantis 113 2008-03-11 21:37:35 +00:00
Sean Dague 0159aa7048 get rid of artificial InventoryLock object in favor of
locking on the DataSet.  This doesn't change any functionality
and leaves us with one less object.
2008-03-11 21:23:06 +00:00
Sean Dague 2827339345 Attempted fix for http://opensimulator.org/mantis/view.php?id=551 2008-03-11 20:38:55 +00:00
Justin Clarke Casey 956f7cb4f9 * Very minor error message change in GridAssetClient 2008-03-11 17:55:49 +00:00
Sean Dague e128819b20 this fixes up the exponentially growing startup times caused
by not deleting the landaccesslist.  If this triggers an
sqlite error on .NET, we'll need to track that down seperatly.
2008-03-11 00:22:56 +00:00
Teravus Ovares 13a4d13d67 * Added a hack-ish routine to add the State column to the primshapes table if it wasn't already there.
* Started OpenSim on SQLite to a mass of red 'unable to load prim' messages.
* If you are getting this message, after this update, when you start OpenSimulator, you'll get it one more time and then it'll work again.
2008-03-09 14:27:44 +00:00
Charles Krinke 8d2d69dc88 Thank you kindly Grumly57 for a patch to solve:
Grass type is not persisted. Try to rez some grass several time to have different random grass types around, then immediately move a couple of them. Or restart the sim and logon again. You'll see all grass types reverted to a dull default one :-)
2008-03-08 22:52:17 +00:00
Justin Clarke Casey d48e992aa8 * Increase inventory description columns from 64 characters to 128
As per the suggestions in Mantis 687 (thanks Sakai) to resolve an exception
* This won't apply to any existing inventory tables you have, but shouldn't 
cause any issues with old tables either
2008-03-07 14:40:18 +00:00
Johan Berntsson b99455d23d Fix to solve mantis 717 problem. Makes sure the region DB schema is up to date and consistent 2008-03-07 08:10:52 +00:00
Adam Frisby a360116502 * Disabled ancient TerrainEngine.
* Enabled new TerrainModule.  (The king is dead, long live the king!)
* Use the console command: "script terrain save file.r32" / "script terrain load file.r32" to load/save terrain. Now uses the extension to determine file format.
* MANY of the old terrain features do not have a replacement function in the new module yet, this needs to be corrected, but has not been done so far. This being said, the new module is faster and more efficient and should be a good replacement.
2008-03-06 15:49:53 +00:00
Adam Frisby 14b37533aa * Removed more compiler warnings, dead code, etc. 2008-03-05 21:47:19 +00:00
Teravus Ovares 18324773d2 * One line fix to get everything working again. Essentially set the originRegionID = RegionID in RegionInfo.cs on line 375 2008-03-04 14:39:51 +00:00
Jeff Ames d2806090ae Cleaned up a couple compiler warnings. 2008-03-04 10:12:39 +00:00
Johan Berntsson c78eebfdfc Fixed a region split synchronization bug 2008-03-04 09:39:58 +00:00
Johan Berntsson fe56c18795 Fixed SQL update error 2008-03-04 07:54:35 +00:00
Johan Berntsson 279e0061c5 Merged 3Di code that provides scene and avatar serialization, and plugin support for region move/split/merge. See ThirdParty/3Di/README.txt. Unless the new modules are used there should be no noticeable changes when running OpenSim. 2008-03-04 05:31:54 +00:00
Jeff Ames cd6f4a57e7 Added copyright heaaders. Minor cleanup. 2008-03-04 04:11:37 +00:00
Adam Frisby 358a4963d3 * More compiler warning nukage. 2008-03-03 09:56:30 +00:00
Teravus Ovares fe49c96ee0 * Applying Ahzz's profile patch. Thanks Ahzz!
* Fixed a few bugs in the patch that are sim crashers.
* There's still a bug in mySQL mode/ grid mode where the main userprofile text doesn't save.
2008-03-03 08:30:36 +00:00
lbsa71 c953e51c11 * Doh, forgot one license header 2008-03-03 08:19:54 +00:00
lbsa71 7d40a0afb8 * Changed the license headers. The Data Framework is now all OpenSim. Yay! *toots* 2008-03-03 08:15:14 +00:00
lbsa71 84959bf530 * Renamed the Data Framework namespaces 2008-03-03 07:59:31 +00:00
lbsa71 d97e4d97e9 * renamed the key file (baby steps here)
* ignored the generated files
2008-03-03 07:53:26 +00:00
lbsa71 b3b1f74485 * Started the ardous task to rename the TribalMedia.Framework.Data to OpenSim.Framework.Data.Base
It's you !!
How are you gentlemen !!
2008-03-03 07:48:35 +00:00
Charles Krinke cff3c20ee5 Thank you very much, Ahzzmandius for:
converts Parse calls to TryParse
Replaces string.empty and lluuid.zero calls on user load to use real 
values from DB (related to user profile save/load work. Finer grained patching)
2008-03-02 22:36:47 +00:00
Charles Krinke 7794fc3766 Change handler001 through handler009 to more
appropriate names consisten with their use.
All done with all 94 handlers from handler001
through handler094. Hopefully we can move 
forward without numbered handlers.
2008-03-02 22:28:48 +00:00
Charles Krinke dd8e728abd Thank you kindly, Ahzzmandius for adding
owner_uuid support to the MSSQL data driver.
2008-03-02 20:33:46 +00:00
Charles Krinke 30ebd15926 Update names of handler010 through handler019
to more appropriate names consistent with use.
2008-03-02 20:29:59 +00:00
Teravus Ovares e808bf04a5 * Temporarily commented out the parcel banlist clearing query that was being called in an ad-hoc fashion and causing an access violation error. This means that in SQLite when subdividing parcels you'll have to go to the parcel and clear out the banlist with the client instead of having it done for you immediately when you split the parcel.
* A database guy really needs to look at the land stuff. :D
2008-03-02 18:56:23 +00:00
Jeff Ames 6d774339d9 More compiler warning cleanup.
Removed verbose flag, since it doesn't do anything any more.
2008-02-29 10:51:40 +00:00
MW 70ad5604cd disabled AssetDownloadModule and re-enabled the asset download code in the asset cache, until it can be seen if the module was the cause of some new problems that seem like they might be related to assets. I'll look into this more tomorrow. 2008-02-27 22:47:33 +00:00
MW 2c65c2da90 small fix in the showstate data in AssetCache to reflect that now some functions are no longer in AssetCache 2008-02-27 21:32:01 +00:00
MW e978d00914 After seeing sdague do his happy dance over trunk working "the best he has ever seen". I'm not sure I should be doing this commit, but oh well.
So anyway, it moves the Asset downloading (packet sending) to a module (AssetDownloadModule). 
So now at last, AssetCache should be just dealing with fetching assets from the asset server and caching them.
2008-02-27 21:11:01 +00:00
MW aac7c1dda5 another attempt at fixing asset lockups 2008-02-27 16:20:45 +00:00
MW a9ae5ab840 Hopefully fixed the bug that was causing a lot of the freezing. Which was happening due to locks in the AssetCache and Texturedownload module. Where the thread from the Asset thread would be take a lock on a list in the asset cache and then try to call the Callback into the texturedownload module and hit a lock in there which was held by a ClientView thread- which at the same time would be trying to request another texture from the cache and be hitting the lock in there held by the IClientAPI. The result each thread waiting for the other one to release a lock. And as one of those was the ClientView process packet thread. No more packets from that client could be processed. For now I've made a copy of the list in AssetCache so that it can release the lock. I'm doing more work on assets (moving the client asset downloading to a module ), so will hopefully change this into a better method once I've cleaned over things up a bit. 2008-02-27 14:40:30 +00:00
Justin Clarke Casey 65862aacea * Start sending "ImageNotFound" packet back to the client if we can't find an image
* This might stop some client's constant requests for unfound textures, which is a candidate for the memory leak
* If a texture is not found then the "Image not found" texture will now be displayed clientside
* If it works, this should resolve mantis 676
* Non texture image requests do not receive this packet yet
* This will require a prebuild
2008-02-25 23:26:35 +00:00
lbsa71 5b3897a4af * Caught HttpListenerException and swallowed if with output
* Moved Flush into Close since it's always done in that order.
* Minor renamings
* Reversed if for clarity
2008-02-25 15:36:24 +00:00
Teravus Ovares b831a91852 * Message Server Linkages (still not ready for use so don't start it yet) 2008-02-25 06:33:14 +00:00
Jeff Ames 8d57f2e30a Update svn properties. 2008-02-23 13:50:31 +00:00
Justin Clarke Casey f95ad65189 * Improve alignment of packet queue stats headigns
* Correct asset cache stats table heading
* Correct spelling mistake in AssetCache (thanks ChrisD!)
2008-02-22 23:15:00 +00:00
Justin Clarke Casey fed46ba6a7 * Winnow the debug and info messages associated with stat fetching
* As such, only a request for a non cached asset, the response and failures show up now.
* I know lbsa71 only put these in not long ago, so if they are really still required, I think we should think whether we can move the default log4net level off 'Debug'
2008-02-22 22:54:50 +00:00
Teravus Ovares 9b675a6888 * Converted the last of the events to the private delegate instance method to avoid race conditions. 2008-02-22 21:18:08 +00:00
Justin Clarke Casey 3994a96783 * Oops! Add missing interface 2008-02-22 20:56:28 +00:00
Justin Clarke Casey 30eea2618d * Implement packet queue statistics
* This will show the packets waiting in each queue for each client logged into a region server
* These are displayed using 'show stats' on the region command line
* This is in pursuit of a memory leak.
* This will require a prebuild
2008-02-22 20:50:30 +00:00
Teravus Ovares 582964800c * Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions 2008-02-22 19:44:46 +00:00
Jeff Ames 0103c43697 Update svn properties. 2008-02-21 15:14:39 +00:00
Tedd Hansen 7102ac7769 "threads" command now works. I've added manual tracking of threads (only if compiled in DEBUG mode)... Its ugly and even requires a separate thread to track the treads, but it will be very valuable in debugging. 2008-02-21 10:43:24 +00:00
Justin Clarke Casey b0c5ef0b68 * Eliminate AssetCache.CopyAsset()
* Resolve a bad logic bug in AssetCache.GetAsset()
* This may make some asset related things work better (possibly getting main map images will now be improved).
2008-02-20 23:21:51 +00:00
Justin Clarke Casey 7d7ad4dff2 * Only count download requests for assets which are not already waiting for data from the asset server
* This should stop the constant increase in the download requests statistics
* If you see stat numbers for download requests which are far from what you'd expect, please report
2008-02-20 20:23:03 +00:00
Justin Clarke Casey f3190810d3 * Properly guard removal of asset request lists on AssetCache.AssetNotFound (my own bug) 2008-02-20 19:13:59 +00:00
Justin Clarke Casey 53d5aeec24 * Remove unused texture dictionaries from AssetCache
* Add documentation to AssetCache
2008-02-20 19:02:04 +00:00
Jeff Ames a8cfbbe963 Minor cleanup. 2008-02-20 18:38:20 +00:00
Justin Clarke Casey c66b5a9e71 Report command string on ConsoleBase.RunCommand exception 2008-02-20 17:54:14 +00:00
Justin Clarke Casey 877713999c * Report 'asset not found' situations back to UserTextureDownloadService
* This fixes some of the 'runaway downloads' problem but not all of it
* Also fix up logging messages so texture requests are reported as such rather than as assets
2008-02-20 17:34:10 +00:00
lbsa71 4c6e5a5090 * re-enabled AssetNotFound code
* turned script asset fetching asynchronous
2008-02-20 13:11:19 +00:00
lbsa71 fec87ad3d7 * just added a readonly and a comment 2008-02-20 10:10:19 +00:00
Teravus Ovares ac60382599 * Added a few more packets to ClientView. Added tendons to the Skeletal Groups Module, made it shared to save on threads. 2008-02-20 09:45:26 +00:00
lbsa71 9be5f9d6cc * Fixed xml loading bug (the xml was scheduled for update before added to a scene)
* Fixed ClickAction situation on the same note (properties shouldn't cause big changes)
* Added some more debug output to AssetCache
2008-02-20 09:38:45 +00:00
lbsa71 bf42637ee8 * Caught 'OPTIONS' verb in BaseHttpServer that would otherwise explode.
(There are actually other non-content requests too, but I didn't know what we wanted to do with them)
2008-02-20 08:04:12 +00:00
Justin Clarke Casey b331e96e25 Remove "Loading inventory" messages from item inventory loads 2008-02-19 20:21:25 +00:00
Tedd Hansen 47c909ca0a Playing "Name that thread". Adding names and isbackground=true to all threads so it will be easier to debug. 2008-02-19 12:02:53 +00:00
Teravus Ovares 01cf9d8b7e * Committing Ahzz's patch number 620.
* Description SQLITE Inventory Table locks. *Provided by Openlfiegrid.com 
* Provides missing inventory table locks in SQLite.
2008-02-19 00:08:28 +00:00
Teravus Ovares d0b218f667 Committing ahzz's patch #619 - Description:
Patch provided by Openlifegrid.com 
Adds locks around clientCircuits and clientCircuits_reverse Adds existance check on adding to clientCircuits for clients resending UseCircuit packet.
Adds locks around Clientmanager.m_clients for add/remove/tryGet calls
2008-02-18 21:24:34 +00:00
Justin Clarke Casey 359f84ee43 * Output XmlRpc error message if user server gets a fault response from the region server on login
* This will make it more obvious if one accidentally starts one's region server in standalone rather than grid mode but then tries to login to a grid (as I am wont to do)
* We are now sending back a fault code (-32601) if no xmlrpc method is found rather than an ordinary message
2008-02-18 18:48:55 +00:00
Justin Clarke Casey b37b71b273 * Make RegionProfileData.RequestSimProfileData static
* Minor documentation bits
2008-02-18 17:31:05 +00:00
Justin Clarke Casey 500d259c25 * Do not allow a user to be created if one with the same name already exists 2008-02-18 15:50:18 +00:00
Tedd Hansen c62328950a More exception checks and crash hints
If no scriptengine is specified then don't try to load any.
2008-02-18 14:21:51 +00:00
Charles Krinke 2c81e18fc3 Thank you very much Ahzzmandius for adding the support
to purge the avatars inventory "Trash" folder using the
bizarre tortoiseSVN method of diff/patch.
2008-02-18 03:25:14 +00:00
Jeff Ames 3b9d332f84 Added copyright notices. 2008-02-17 01:16:40 +00:00
MW b618802e53 Moved the AgentAssetTransactionsManager (and AgentAssetTransactions) out of CommsManager and into a module (AgentAgentTransactionModule), still needs cleaning up though.
But its one more thing out of the CommsManager. One day we will kill the CommsManager!
2008-02-16 13:01:42 +00:00
Jeff Ames b13836db57 Update svn properties. 2008-02-15 00:43:20 +00:00
Sean Dague 741f753c56 attempt to make our logging at least fail gracefully, we'll see if this helps 2008-02-14 19:29:07 +00:00
Sean Dague 3a208a3a4f Fix a casting subtlety in moving to constants. Logins should work
again.
2008-02-14 13:28:35 +00:00
lbsa71 f4c0e45bac * Fixed #564, errors in friend sql
[Provided by openlifegrid.com]
2008-02-14 12:26:42 +00:00
Adam Frisby f3afa68a2a * Made new Framework.Constants class, added RegionSize member.
* Converted all instances of "256" spotted to use RegionSize instead. Some approximations used for border crossings (ie 255.9f) are still using that value, but should be updated to use something based on RegionSize.
* Moving Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule - nonfunctional, but will be soon.
2008-02-14 12:16:33 +00:00
Jeff Ames 0bb085261b Update svn properties from a bar ftw. Kanpai! 2008-02-14 09:30:49 +00:00
lbsa71 12e0d8b316 * Fixed another bug in avatarpicker ('surname'/'lastname' mixup)
[Provided by openlifegrid.com]
2008-02-13 21:35:54 +00:00
lbsa71 2c48ceedd8 * Fixed bug in avatarpicker so now you can search on single word
[Provided by openlifegrid.com]
2008-02-13 21:15:05 +00:00
lbsa71 b705ba21f3 * Moved insertUserRow into MSSQLUserData so 'create user' works again
[Provided by openlifegrid.com]
2008-02-13 20:20:52 +00:00
lbsa71 15c6788dc7 * Moved insertRegionRow into MSSQLGridData
* Split table test and creation into table by table
* Debugged table creation Sql
* Added missing CreateUserFriendsTable.sql
2008-02-13 20:08:46 +00:00
Teravus Ovares d9e01bf453 *fixed varchar size typo in createuserfriendstable.sql 2008-02-13 19:10:03 +00:00
MW 49a5a00b80 Added a method to access a named folder in a users inventory, to the inventory Database interfaces. This could be useful for adding a item to a users inventory from say a web front end application or some other third party application. [note the method is only currently implemented in the sqlite provider] 2008-02-13 14:45:13 +00:00
lbsa71 c202a7d0aa * Copied 'Friends' functionality from the MySQLUserData to MSSQLUserData
[Provided by openlifegrid.com]
2008-02-13 13:55:03 +00:00
lbsa71 4880bd121e * Split out MSSQLManager Test/Init into each provider.
* Made regions table name configurable (MSSQL only)
* Added a note in ini.example pointing out that the sql resources have to change if you change table names
* Removed duplicate picker method from GridData interface
[Provided by openlifegrid.com]
2008-02-13 13:39:51 +00:00
lbsa71 bcd3a5b28b * Introduced customizable table names on MySQL and MSSQL UserData plug-ins.
[Provided by openlifegrid.com]
2008-02-13 12:06:09 +00:00
Jeff Ames 001ce95e4c Clean up more unnecessary String.Format calls 2008-02-13 03:38:18 +00:00
Justin Clarke Casey a1a206cb05 * Clean up LIBRARY INVENTORY messages 2008-02-13 02:43:41 +00:00
Justin Clarke Casey 45638cc141 Commenting and a spelling correction 2008-02-13 01:04:27 +00:00
Justin Clarke Casey 1677bde480 * Clean up the agent's asset transactions when it is removed from the scene
* This may or may not help with the memory leak, need to assess
2008-02-13 00:52:49 +00:00
Justin Clarke Casey 365cf8e455 * Refactor: Move last commit's refactor back to AgentAssetTransactionsManager
* Push asset update (invoked when clothing is altered) down into AgentAssetTransactions from Scene.Inventory.cs to join others
* I've tested that clothing creation and update still works, but please let me know if it suddently breaks for you.
* Add/correct comments
2008-02-13 00:30:51 +00:00
Justin Clarke Casey 2018cf312b Refactor: factor a method out of AgentAssetTransactionsManager 2008-02-12 22:41:57 +00:00
Justin Clarke Casey c0211c1ca2 * Add missing locking to mysql inventory plugin
* Should resolve mantis 542
2008-02-12 22:24:12 +00:00
Justin Clarke Casey 6a3455a98c * Refactoring: Rename AssetTransactions.cs and AssetTransactionsManager and align classes with file names
* Small amount of ndoc
* This will probably require a prebuild and nant clean
2008-02-12 18:15:54 +00:00
MW 7bbb9a08cb Re-enabled Inventory creation of body parts 2008-02-11 20:54:46 +00:00
Justin Clarke Casey c80c6e9774 Documenting and minor tweaks 2008-02-11 20:10:44 +00:00
Tedd Hansen 7156d7ae51 Moved share/sql/mysql-AvatarAppearance.sql to OpenSim/Framework/Data.MySQL/Resources/AvatarAppearance.sql as described in share/sql/mysql_README.txt
Thanks dmiles_afk
2008-02-11 18:24:00 +00:00
lbsa71 e399141dfb * Added some connection debugging 2008-02-11 14:09:35 +00:00
Sean Dague c654df5dfd From: dirk husemann <hud@zurich.ibm.com>
these two patches fixe the terrain load exception that occurs when
restarting OpenSim on PPC32 by making terrain loading endian clean.

it does NOT fix the client crash exception. need to hunt that one down.
2008-02-11 12:38:51 +00:00
Teravus Ovares a56664cf59 * um, Prim crossings? Experimental.
* Backup your database just in case.
2008-02-11 01:43:54 +00:00
Dalien Talbot c935b308e6 The very beginnings of attachments (no detachments! :) 2008-02-10 22:23:11 +00:00
lbsa71 e0424254bd * Refactored permissions handling to extract info out of permisisons block in ClientView
* Changed some uint constants to Enum values
2008-02-10 14:27:21 +00:00
Jeff Ames e207284fef Clean up logging calls using String.Format explicitly 2008-02-10 01:57:59 +00:00
lbsa71 e9eaf8e949 * fixed typo. thanks, nebadon! 2008-02-09 22:26:28 +00:00
lbsa71 7486762aa0 * Refactored some asset code and in the process uncovered a bug; now, I think first transfer of asset should start faster. 2008-02-09 22:23:36 +00:00
lbsa71 0b0bb28fd5 * added count of texture data bytes and asset bytes 2008-02-09 21:50:45 +00:00
lbsa71 e2ed5bf6b9 * Added count of temporary assets 2008-02-09 21:25:34 +00:00
lbsa71 176a1fe382 * added two new commands (for debug/disaster recovery)
'show assets' shows the current state of the asset cache (number of cached assets, requests, et c)
  'clear-assets' forcibly re-initializes the asset cache thereby freeing all cached items.

'clear-assets' is not to be used lightly, as it probably introduces mem inconsistencies and doubling up of textures.
2008-02-09 21:17:47 +00:00
Teravus Ovares 07d0f558c4 * Fixed nebadon's UserServer crash bug from yesterday.
* Made Estate tools work for estate managers without needing to request admin status First
* Added code to make the Simulator version to be reported in the About box of the client
2008-02-09 07:53:01 +00:00
Justin Clarke Casey d546859bc1 * Change logger to handle [<entry>] where <entry> contains non alphabetic characters
* Change logger to not print extra line if [<entry>] <text> like string is not logged
* Remove more of my previous chatty debugging statements
2008-02-09 01:53:57 +00:00
Justin Clarke Casey 2dc94870aa Mostly debugging verbosity which I shall very shortly comment out.
Just want to try this out on windows quickly.
2008-02-09 00:14:34 +00:00
Justin Clarke Casey 16f8f19a54 * Stop asset transactions hanging around after they've completed
* Still not enough to solve the memory leak, though hopefully this is another step on the path
* All these changes are pretty temporary - this will be addressed with a more fundamental refactor in the future
2008-02-08 23:42:19 +00:00
Justin Clarke Casey f05f583613 Still chasing logout memory leak. Putting in small changes and temporary light verbosity to this end 2008-02-08 22:39:08 +00:00
Adam Frisby a1625a5410 * Applying mantis 339 patches round 2 -- Thanks daedius 2008-02-08 17:54:30 +00:00
Sean Dague 598c5a95d9 fix the issue found on IRC this morning. The logging call was mistructured
so threw and exception when attempting to log that we missed an asset and
were waiting for it.
2008-02-08 15:29:53 +00:00
Teravus Ovares 3674257095 * This update contains a bucket-full of network optimizations.
* ParcelProperties are sent only when needed instead of on any movement
* Terse Updates and other temporary data packets are marked unreliable
* After a certain amount of users, the sim actually sends updates on things less
* Experimental
* Tested to 68 avatar with pCampBot  (And it's surprising what actually causes the most lag..  the text chat!)
2008-02-07 08:15:38 +00:00
Jeff Ames 49622dfbc5 Update version numbers to 0.5 2008-02-07 04:41:08 +00:00
Charles Krinke c076eab633 Additional debugging print on LOGOUT if/else in userServer. 2008-02-07 03:13:30 +00:00
Sean Dague caa255bcdf make a couple more changes to get us back very close to old color scheme 2008-02-06 20:59:31 +00:00
Sean Dague 2d7fbf6137 ummm... removed 1 too many newlines, formating a bit better now 2008-02-06 20:34:50 +00:00
Justin Clarke Casey 548bbc97e5 * Chasing down memory leak where memory used by a client is not returned on client logout
* This code may or may not be on the right track, but I want to save my work so far.
2008-02-06 20:34:18 +00:00
Sean Dague b3e85daf02 pass 1 on getting colors back to the console 2008-02-06 20:32:37 +00:00
Jeff Ames 3a1947f658 Removed super-stealth mode from PasswdPrompt. (Now you can see the prompt) 2008-02-06 10:11:10 +00:00
Jeff Ames 355d0fdb95 Revert color console changes until a cross-platform method is found. 2008-02-06 07:36:14 +00:00
Jeff Ames d76d604ce9 Added colors back to console output.
Fixed line duplication in console output.
2008-02-06 03:52:36 +00:00
Jeff Ames 6ed5283bc0 Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O.
This is mostly an in-place conversion, so lots of refactoring can still be done.
2008-02-05 19:44:27 +00:00
MW 33c4631c6d some small changes, like adding a couple of extra methods to IInventoryServices so that a check can be done to see if a inventory set exists for a certain user. 2008-02-05 13:02:03 +00:00
Tedd Hansen 1d95f0521d Reverted MySQLDataStore.cs to not use static mutexes any more, patch didn't work anyway.
Added js to OpenSim.ini.example.
2008-02-05 12:18:50 +00:00
Teravus Ovares ca5aadfbff * Refactored the sound calls to SceneObjectPart
* Fixed a few bugs
* Wrote an example module to make certain event systems more mature.
2008-02-05 05:26:18 +00:00
Jeff Ames 99844ee4c0 Added copyright statements. 2008-02-05 03:20:51 +00:00
Teravus Ovares ba142c0410 * Fixing the console write on shutdown where the object is already disposed. 2008-02-05 02:10:01 +00:00
Justin Clarke Casey baefa05b57 * Rebase all current servers on common abstract BaseOpenSimServer class
* The immediate upshot is that "show uptime" from the console will now show uptime on all server types (user, asset, grid, etc)
* DEV: This refactoring is far from complete - only just enough to makes the "show uptime" command common accross the servers.  More is needed, but in this case it's somewhat like eating cabbage, which I prefer not to do all at once
2008-02-04 18:52:24 +00:00
Justin Clarke Casey bde363b572 * Synchronize asset storage operations to mysql as well as reads
* This may help with asset server mysql problems, since both the previous osgrid failures occurred when both a read and write were attempted in the same second
2008-02-04 17:30:53 +00:00
Justin Clarke Casey cd658ea845 A smidgen more error info for the asset server 2008-02-04 17:07:37 +00:00
Justin Clarke Casey a1c9349d47 Refactor only: serve stats objects directly through StatsManager singleton 2008-02-04 16:22:58 +00:00
Teravus Ovares 3ff5ad1ed3 Patch from mikkopa/_someone Thanks! adds support for llPreloadSound, llTriggerSound, llPlaySound, llPreloadSound.
* Time to make music boxes?
2008-02-04 14:40:46 +00:00
MW 755ad9e3e0 First part of avatar persistence, currently only really works in standalone mode (with accounts_authenticate set to true), it also only currently has a mysql database connector. (sqlite one will follow soon). It also uses the tribalmedia database system, so this needs checking to see if the old problems with mono have been fixed.
To use, see the appearance section in opensim.ini.example, set "persist = true", then add the correct connection string for your database.(see mysql-AvatarAppearance.sql in share folder for a example of the table mysql table structure).
This could possible be used in a very small grid, but would mean each region server would need to connect to the same mysql database. 
But the work to move the code to one of the grid servers shouldn't be too much.
2008-02-04 12:04:02 +00:00
Adam Frisby 6fbc64af5e * Whole buncha stuff. 2008-02-04 10:39:30 +00:00
Adam Frisby 35a8c95e1d * Lowered maxchunk from 1500 bytes to 1250 bytes to make sure packets fit below the average maximum MTU of 1500 bytes inc. header. Thanks Alex for reporting this. 2008-02-04 10:28:39 +00:00
Adam Frisby d12f253cca * Default inventory permissions patch (#444), courtesy of alex_carnell -- thanks! 2008-02-04 10:24:37 +00:00
Charles Krinke c61d0075c1 Thanks to Brianw for pointing out the definition of OwnerUUID
needed to be consistent with the definition of owner_uuid.
They are both varchar(36) now.
2008-02-03 18:05:59 +00:00
alondria 742ed9537d Implements LSL function llDialog().
The ScriptDialogReply packet handler is a bit of a hack job. It is currently handled similar to ChatFromViewer, which will trigger the listen() event, however this is not exactly how LL's implementation works and will/can be fixed up later.
2008-02-02 22:53:01 +00:00
Brian McBee bd32563c4c fix for error on null owner_uuid field 2008-02-02 18:20:25 +00:00
Charles Krinke 281245f433 Change casting slightly for reading owner_uuid from mysql. 2008-02-02 17:33:12 +00:00
Charles Krinke 6a1d9e8da1 Thank you very much daTwitch for your first contribution to the C# simulator.
This is the beginnings of support for storage of region owner in the MySQLManager
table and the use of "owner_uuid".
2008-02-02 16:43:57 +00:00
Tedd Hansen 3a6405d2f7 In an attempt to solve multihomed UDP problem I seem to have bound UDP socket to external IP instead of internal :) 2008-02-02 16:03:10 +00:00
Teravus Ovares 2d6c21e8fc * Added Full support for llSetTextureAnim. To ckrinke: Let the fountains of Wright Plaza flow!
* Fixed another bug in LibSL.  This is the same version, as before just with a bug fix.
2008-02-02 08:11:14 +00:00
Tedd Hansen 2db5de3e72 Added commands to change config file from console:
CONFIG SET section key value value value
CONFIG GET section key
CONFIG SAVE (it saves, but does it save correctly?:)

ScriptEngine will react correctly to any config change made while it is running.
2008-02-02 07:35:51 +00:00
Tedd Hansen b089ccfa3d Hopefully fixed MySQL DB crash on startup issue (so we can remove 3 sec wait).
Added option to try alternate UDP ports if the one configured is in use.
UDP packets are now bound to the actual outside IP address and hopefully won't "randomly" select IP on multihomed systems.
2008-02-02 06:34:07 +00:00
Tedd Hansen 41516fa2c3 Last patch was a disaster... reset terrain whenever bug occurred. Trying again with some modifications on Mutex. 2008-02-02 05:28:39 +00:00
Tedd Hansen 1fa510d26d And one more patch before sleep
This annoying sleep during startup-problem still sometimes causes exceptions, so added some retry...
2008-02-02 05:14:50 +00:00
Charles Krinke 599f8b884b Add last entry "owner_uuid" back into regions table definition. 2008-02-02 04:17:38 +00:00
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 f4ddf5cf28 Removed "Loading inventory for Primitive" message.
Fixed small bug in thread counter.
2008-02-01 20:19:29 +00:00
lbsa71 f72b834b25 * setting some readonlies 2008-01-31 10:56:40 +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 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
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
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
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
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
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
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
Teravus Ovares 3fe6b2280d * Shutting down child agents properly in neighbor regions. 2008-01-21 23:04:42 +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
Charles Krinke a025f527cf Add additional mainlog data to LogOffUser
to aid in debugging.
2008-01-21 03:45:50 +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
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
Brian McBee 17c25796b8 checking return code may make failed teleports fail more gracefully. 2008-01-19 20:34:54 +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
Sean Dague 333826903c parametrize like clauses for avatar picker 2008-01-17 20:42:22 +00:00
Justin Clarke Casey e13feaa375 * More prim inventory synchronization
* Remove some mysql verbosity
2008-01-16 21:43:22 +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
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
lbsa71 2c69b006a7 * added missing using clause 2008-01-16 14:52:47 +00:00
lbsa71 5e757d2ad1 * More work on getting the database framework to actually work 2008-01-16 12:25:13 +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
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
lbsa71 47c6529523 * Some morw work on specializing the database framework for OpenSim 2008-01-15 10:15:39 +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
MW 62157b6dde Applied patch from melanie (thank you) for mantis issue# 338 2008-01-13 22:47:10 +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 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
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
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 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
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