Teravus Ovares
dd4deebbcb
* Re-Fixed caps
...
* This fixes chi11ken's/OpenViewer's libsl cap issue.
2008-04-17 19:42:54 +00:00
Teravus Ovares
e777f88028
* A tweak of the caps system so that new caps have random paths instead of a fixed path
...
* This allows caps requests to be routed to regions where the agent is currently a root agent instead of the region that they logged into as it did previously.
* This fixes a wide variety of bugs related to 'can't do X once i've crossed a border'.
* The first seed cap request fails, the second one works. (this generates an error message on the console)
* Experimental.
2008-04-15 23:10:12 +00:00
Justin Clarke Casey
b7ae8701ce
* Working towards notifying the client if the inventory service has failed, rather than simply returning 0 items.
...
* This is very early support which would only be triggered in a rather unlikely case (if the user server correctly received an inventory skeleton, but later on failed to return the whole inventory in a timely manner. Also, this only applies to the 1.19.1.4 client onwards
* Code cleanup and support for other failure cases (failure of inventory caching on region crossing, failure to actually add a folder/item, etc, should follow.
2008-04-14 18:43:23 +00:00
Justin Clarke Casey
451a5bbf30
* Put in crude poll waiting for 60 seconds for delayed user inventory delivery from the inventory service
...
* This will reduce failures where the inventory server is simply slow
* Still need to properly inform the user if the inventory service has failed altogether
2008-04-13 22:09:07 +00:00
Justin Clarke Casey
7bfd7e6f08
* Remove the worst excesses of my inventory debugging code
2008-04-11 18:58:09 +00:00
Justin Clarke Casey
7ac7f79f88
* Eliminate a class of errors where an inventory request could be made before the region had completely received the inventory for the user.
...
* A much larger race condition where the inventory request could be made before the region gets any data at all will also be fixed in the near future.
* This change also fixes a regression from two patches ago where items stopped appearing in standalone inventory
2008-04-11 18:46:54 +00:00
Justin Clarke Casey
649f304e76
* Minor inventory code cleanup following on from last patch
2008-04-11 18:19:21 +00:00
Justin Clarke Casey
a5176c2e2c
* Change inventory async response deliver to deliver all items and folders at once, rather than each individual
...
* This is required in order to work towards eliminating some inventory race conditions and to better deal with situations where a grid inventory server is slow or not responding.
2008-04-11 18:13:10 +00:00
Justin Clarke Casey
e26d4fc085
* minor: replace test of CachedUserInfo.RootFolder != null with something more readable, and make RootFolder get only
2008-04-11 17:02:20 +00:00
Justin Clarke Casey
205b95f2e8
* minor documenting, cleanup, renaming in user profile cache service
2008-04-11 16:49:20 +00:00
Justin Clarke Casey
576db5b72a
* documenting and minor refactoring in UserProfileCacheService
2008-04-11 16:30:58 +00:00
Justin Clarke Casey
9a7717743b
refactor: eliminate method in UserProfileCacheService
2008-04-11 16:13:33 +00:00
Justin Clarke Casey
b41abbd50e
* Minor: really just comment and subsequent indentation adjustment. Preparation for handling inventory problems where the inventory server receives a request and never responds, or is late in responding
2008-04-10 17:44:19 +00:00
Sean Dague
25fea01b92
further renaming of properties for clarity
2008-04-10 14:09:30 +00:00
Sean Dague
c176caeb05
moved fields to properties for UserDataProfile, which was
...
actually a little more work than I expected given the copious
use of out params.
2008-04-10 13:53:06 +00:00
Sean Dague
a6d27e0929
further refactor and rename of InventoryFolderBase properties
...
to reflect what they really are.
2008-04-08 23:26:31 +00:00
Justin Clarke Casey
8eab365e21
* Adjust some inventory lookup failure messages to reduce confusion as to what just went wrong
2008-04-08 20:31:36 +00:00
Sean Dague
5ee75998ce
more refactoring, this time on InventoryFolderBase
...
* wrap attributes in properties
* clean up names a little bit
* clean up name styles
2008-04-07 23:27:05 +00:00
Sean Dague
f436815107
Refactor InventoryItemBase to do the following:
...
* wrap fields as Properties
* rename some fields/properties to more sensible names
* set style to PropName to match more standard C# approach
2008-04-07 23:15:35 +00:00
Justin Clarke Casey
57afbdbdbd
From: Kurt Taylor <krtaylor@us.ibm.com>
...
Patch to remove commented NotImpemented calls from within implemented script functions
2008-04-04 19:09:56 +00:00
Justin Clarke Casey
d53dd8a7cc
* Minor change on region grid asset client to change two store log messages to one
2008-03-31 14:19:40 +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
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
18f9f1410d
* Just inserting some exploratory comments into inventory code
2008-03-18 18:19:44 +00:00
Jeff Ames
47180080f0
Formatting cleanup.
2008-03-18 05:16:43 +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
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
Justin Clarke Casey
956f7cb4f9
* Very minor error message change in GridAssetClient
2008-03-11 17:55:49 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
5a6fd21a2c
Whitespace cleanup.
2008-01-10 06:49:29 +00:00
lbsa71
c0252073d0
* removed another superfluous debug message
2008-01-09 09:31:07 +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
lbsa71
4b4ee98070
* Trying to address TextureSender issues
...
* The BlockingQueue exposes Contains so we can make sure we don't add a TextureSender to the queue if there's already one present
* introduced some TryGetValue and various code convention stuff
2008-01-02 09:07:11 +00:00
lbsa71
20653830fb
* Refactored out function to load specified AssetSet Xml
...
This commit dedicated to 'Mohawk - Bad Girls (Need Love Too)'
2008-01-02 07:13:34 +00:00
Justin Clarke Casey
b8975ecbd9
Make it possible for new inventory 'libraries' to be added without changing the default OpenSimLibrary files. Additional library folders and items can be added in a separate
...
directory
and linked in by an entry to inventory/Libraries.xml
2007-12-31 23:20:49 +00:00
Justin Clarke Casey
60fa75ac04
Standard library folders can now be configued in the xml in inventory/OpenSimLibrary - no hardcoded changes are required. For some reason, all the folders are currently
...
showing up as texture folders, even though they are configured with the same types as the agent inventory folders. This should be resolved soon.
2007-12-31 03:33:21 +00:00
Justin Clarke Casey
7d04cf8d4e
Shift default OpenSim library into its own directory
2007-12-30 19:05:11 +00:00
Justin Clarke Casey
40e89678b7
Make inventory items nominate explicit inventory folders rather than hardcoding
2007-12-29 19:41:50 +00:00
Justin Clarke Casey
4ae10034bd
Factor out common asset loading from AssetServerBase and Grid/AssetServer/Main
2007-12-28 22:13:43 +00:00
Justin Clarke Casey
7cf9a8d4f9
Move inventory contents configuration files to bin/inventory folder
2007-12-28 18:01:20 +00:00
lbsa71
efd90b56b7
* Optimized usings
...
* shortened references
* Removed redundant 'this'
* Normalized EOF
2007-12-27 21:41:48 +00:00
Justin Clarke Casey
997a2907e2
Move hardcoded texture library inventory items out into OpenSimLibrary/xml. However, even before these change the five textures moved
...
are not displaying (which is why default cubes are coming up as grey plywood unless you happen to have that texture cached). These
were working before so they must have broken in the last month. Might be something to do with the fact that these identify (using file
under linux) as jpeg2000 files, while all the other working textures identify simply as data.
2007-12-27 15:17:22 +00:00
lbsa71
87e2a694e2
* AssetServerBase: _ProcessRequest is now called GetAsset
...
* PrimitiveBaseShape: The textures are now exposed as a 'TextureEntry Textures'; all serialization still using the 'byte[] TextureEntry' for backwards compatibility.
* Scene: Re-added AddTree, since the Tree type isn't gone from libsl, merely relocated.
2007-12-27 14:00:30 +00:00
Justin Clarke Casey
77a2755e14
Yet more inventory debugging messages
2007-12-23 11:43:46 +00:00
Justin Clarke Casey
c545cc8cd9
Miscellaneous small tweaks and more logging messages to move towards resolving inventory problems
2007-12-23 02:14:29 +00:00
Justin Clarke Casey
c470efea57
Make copying of scripts into prim inventories more reliable on the first attempt when the asset server is lagging by formalising the de facto polling.
...
This may not be the best solution in the long run, but should improve things for now.
This may also improve reliability when updating inventory item metadata (e.g. renaming an item) and in retrieving textures
for the main map view.
2007-12-22 19:48:01 +00:00
Justin Clarke Casey
ed0f8bd572
minor refactor
2007-12-22 16:45:44 +00:00
Justin Clarke Casey
42bc256e4f
Refix bug where inventory textures don't appear in prim edit texture selection box
...
unless previously expanded in inventory.
2007-12-21 19:47:45 +00:00
Jeff Ames
be2ad79e52
Added patch from Johan. First attempt to solve the LibSL.Packet GC problem. Works with LibSL rev>1532
2007-12-20 05:43:02 +00:00
Justin Clarke Casey
45567b71b8
Refactor asset request processing for consistent status information on whether an asset was actually found or not
2007-12-19 18:05:45 +00:00
Jeff Ames
6702b03733
Misc. cleanup:
...
* added Util.Clip(value, min, max)
* modified asset cache's numPackets calculation to use max packet size (600) instead of 1000
* removed a few magic numbers
2007-12-19 08:44:25 +00:00
Brian McBee
8a8c89a0f3
Grid Inventory feature upgrade: renaming folders should now be correct, subfolders work, moving folders works.
...
Tested only in MYSQL, but may work in MSSQL and sqlite.
Probably not working in standalone mode.
2007-12-15 04:57:14 +00:00
Charles Krinke
4e7763f8de
Thank you Justin for:
...
0000188: Clean up of some AssetCache.ProcessAssetQueue() code
2007-12-14 20:09:44 +00:00
lbsa71
9ed2b26232
* Just making Create public
2007-12-14 15:29:51 +00:00
lbsa71
0a4a5bbcef
* ARequest changed name to AssetRequest and moved to own file.
...
* The AssetServerBase is now responsible for dequeueing, the server implementations merely recieves ProcessRequest( AssetRequest req )
* Catchall added around queue processing thread so thread won't abort on exceptions.
2007-12-14 08:47:15 +00:00
Teravus Ovares
fef8c77a8a
patch from justincc for Mantis #163 - Opening a script in inventory longer than 1500characters can cause looping crash.
2007-12-14 00:54:12 +00:00
Brian McBee
16903ec488
Implementing updateinventoryfolder: Should now be able to rename folders in inventory
2007-12-11 03:51:32 +00:00
Jeff Ames
712efda9b9
added copyright notices
2007-12-11 01:26:06 +00:00
MW
611327e104
more work on texture downloading.
...
Refractored the TextureDownloadModule (but currently to make debugging easier, it is running as a non shared module, so this results in a instance of this module being created for each region (and a extra thread per region), this will be changed back soon.
Removed the old texture handling/sending code from AssetCache.
A few other small changes/fixes.
2007-12-10 13:27:23 +00:00
Jeff Ames
af6eb67999
saved OpenSim source code from the giant rampaging unterminated copyright notice of doom
2007-12-10 05:25:16 +00:00
Brian McBee
383eccc543
hackish code to allow emptying of trash. This really should be done on the inventory server, and not from the region.
...
Also: it appeared to work the first try, so I have probably done something horribly wrong.
2007-12-08 20:41:37 +00:00
Sean Dague
1ad83bcf1b
reversing the r2599 patch, as this started causing CreateThread errors for
...
me on Mono 1.2.4, which led to client crashes. I think the Timer.Stop()
wasn't doing what was desired on Mono. The Queue refactoring should address
the readability issues lbsa71 was working on as soon as I get the merge together.
2007-12-06 20:13:02 +00:00
lbsa71
395637acdd
* now the throttle timer is stopped whilst processing Queue so that it won't fire twice
...
* started to refactored throttling method
* some code convention refactorings
2007-12-06 14:08:22 +00:00
Sean Dague
c29105aa3e
This is a simple patch which just renames an IClientAPI method to
...
SendInventoryItemCreateUpdate() in order to reflect the actual packet it
sends (UpdateCreateInventoryItem).
From Justin Casey (IBM)
2007-12-03 17:24:27 +00:00
MW
ac77c32453
Attempt to fix mantis issue #82 , taking prims into inventory and then rezzing them in another region.
2007-12-02 20:43:21 +00:00
MW
cac98171e5
Very partial Avatar Appearance (ie, clothes/body parts) "storage". In standalone mode it will mean that when you log off and log back on ,as long as the region server hasn't been restarted , your avatar will start with wearing the clothes that it wore on log off. In grid mode its even more limited in that wearing/removing clothes/body parts are only stored in the region server instance you are one. so if you are in a different region to your login region (which are on different region server instances), and then change clothes, those changes won't be remembered. So as said, its very limited but is a small step towards having proper appearance persist.
...
Just need to store this data out to a database.
2007-12-02 14:56:23 +00:00
MW
86ae8e97cd
Fixes a bug that my last commit introduced.
2007-12-02 14:12:56 +00:00
MW
80609c2b15
Some refactoring , mainly on Inventory code.
2007-12-02 13:59:15 +00:00
MW
b92df4aaaf
New Inventory folder should now be stored to the inventory server/database. This also seems to fix the problem of Body parts not being persisted properly.
2007-12-02 10:21:17 +00:00
MW
4dee53c7fb
Attempt to fix mantis issue # 73
2007-12-01 20:57:14 +00:00
MW
fff468dcfe
Attempt to fix mantis issue # 65, seems like it is a race condition between two regions trying to add a user to the AssetTransactionManager at the same time. So have placed a lock around the Dictionary add.
2007-12-01 16:40:26 +00:00
Sean Dague
b167507e32
Patch for mantis 0000015: Textures don't display in the object
...
properties window
From Justin Casey (IBM)
2007-11-30 20:16:40 +00:00
lbsa71
fb2588b409
* Refactored NumPackets calculation
2007-11-23 13:21:39 +00:00
Teravus Ovares
615b40b68b
* Refactored IClientAPI.OutPacket to require a second mandatory parameter. This parameter has an enum:int ThrottleOutPacketType and contains types; Resend, Land, Wind, Cloud, Task, Texture, and Asset.
2007-11-18 15:54:05 +00:00
Jeff Ames
d10c79d421
first stab at implementation of CopyInventoryItem
2007-11-18 13:50:46 +00:00
Jeff Ames
946db5461c
catch exceptions when loading malformed xml files
2007-11-17 05:53:12 +00:00
Brian McBee
46fbcad2aa
Fixed bug in assetcache where certain textures were not being packetized correctly
2007-11-11 00:11:34 +00:00
lbsa71
ee1fcc729c
* Added better logging to AssetCache
...
* AssetCache now ignores duplicate uploads
* some m_ refactoring
* ignored some bins
2007-11-06 11:10:45 +00:00
MW
19fe9a0208
Do I really have to write a log entry, can't I just hide this commit somewhere so its added but doesn't show up anywhere. As I can't believe I would make such a stupid mistake and not notice.
2007-11-04 10:40:28 +00:00
MW
91c2c3c096
testing different rest post method/class for Grid asset client. (possible that I haven't set the post url correctly)
2007-11-03 14:04:59 +00:00
Sean Dague
21e47f8ef0
debug tracing for asset server hangs
2007-11-01 22:01:26 +00:00
lbsa71
4fad66f855
* Diuerse beavtificatems
2007-11-01 19:19:05 +00:00
MW
7a66eff8af
renamed FetchAsset to RequestAsset on IAssetServer, as think its a more fitting name. As the call shouldn't actually return the data, but just add a request for the data to be sent back via the callback.
2007-11-01 17:28:38 +00:00
MW
88f04731ca
Test on the grid asset problem, don't update to this version unless you just want to test to see if this fixes anything (but it could just as well break grid assets even more).
2007-11-01 15:54:59 +00:00
lbsa71
b3aa6e616b
* Took a stab at #500 by making sure there is only one place stuff gets added, and that that place is thread-aware.
...
* Refactored it to TryGetValue instead of Contains
2007-10-31 20:39:52 +00:00
Tleiades Hax
5fb956f75a
Improved logging, to identify which asset fetch caused an execption during retrieval of assets from the asset server
2007-10-31 18:49:40 +00:00
Jeff Ames
f42afe81af
added .dat extension to dumped asset files
2007-10-31 08:07:20 +00:00
Jeff Ames
7f0d836d35
made illogical bitwise operations logical
2007-10-31 05:29:51 +00:00
lbsa71
67e12b95ea
* Optimized usings
...
* Shortened type references
* Removed redundant 'this' qualifier
2007-10-30 09:05:31 +00:00
MW
3d8219f6c7
as per the "Filesystem cleanup for OpenSim repository" mailing list thread. Have flattened the OpenSim.Framework project/namespace. The problem is that the namespace is still wrong as its "OpenSim.Framework" while the directory is "OpenSim\Framework\General" , so we need to decide if we change the directory or correct the namespace.
...
Note this has lead to a big flat project, but I think a lot of the files we most likely don't even use any longer. And others belong in other projects/namespaces anyway.
2007-10-29 21:46:25 +00:00
MW
f6e8cbbd06
Fixed a bug in SQLAssetServer that only seemed to be a problem when running under the MS .net Runtime, but was fine with mono.
2007-10-29 15:58:52 +00:00
MW
0837f6b78d
fixed one bug (where the assets we read and created from the OpenSimAssetSet.xml file, weren't actually getting added to the database). This should make textures/assets work again with db4o, but still seems a problem with sqlite
2007-10-29 14:37:08 +00:00
lbsa71
27b5fad56d
* Removed AssetNotFound as it crashes client
...
* Fixed introduced bugs in ScenePresence
2007-10-29 12:59:04 +00:00
MW
27f003b683
Started the process of cleaning up AssetCache and moving most of the code into modules. Have moved TextureRequest handling (from the client) to a module. But even though to start with I just did a little bit of cleaning up of the existing code, it doesn't seem to work as good as the old code so I need to spend more time on it. So for now am committing my changes but with them not in use. So for now all Texture and asset requests are still handled by the old code in AssetCache.
2007-10-29 09:51:23 +00:00
Jeff Ames
7c6ef95f2f
normalized line endings
2007-10-29 07:57:38 +00:00
lbsa71
fb6aa6eafc
* Added 'Jim' and 'Goblin' shapes; not available in inventory yet though
2007-10-27 11:45:52 +00:00
lbsa71
070047ce1b
* Added prototypical AvatarFactory module interface to load avatar parameters
...
* Added dump_assets_to_file option to enable asset dumping for debug
* normalized some namespaces
* InventoryFolder renamed to InventoryFolderImpl to
2007-10-26 14:08:36 +00:00
Tleiades Hax
75be841839
Region ground texture was not marked as temporary, when being created, and assetcache did not check if an asset was temporary prior to uploading the cache to the asset server. Consequently the asset server was constantly being swamped by temporary ground textures.
2007-10-26 13:12:49 +00:00
Tleiades Hax
5e7dba7268
Very early first implementation of grid based assets.
...
Run this on a major grid, and weep
2007-10-26 11:46:27 +00:00
Tleiades Hax
44ee28d963
Part of supporting gridwide assetss. A little premature release, but I'm tired of conflicts.
2007-10-24 04:07:41 +00:00
Adam Frisby
5dad0ed729
* Return of R2162. /Take that SVN!/
2007-10-22 21:57:32 +00:00
Sean Dague
6acaabefc3
revert r2162 as it completely clobbered all the work on
...
the ChatModule by MW and myself. Couldn't find Adam online
after that rev went in.
2007-10-22 15:37:54 +00:00
Adam Frisby
c4707a284f
* Major ass commit.
...
* Sqlite Storage Engine now supports terrain -- however be aware that every terrain revision stored will at 512KB to your database file. At the moment it is storing every revision from the first.
* Fixed an issue where by noverbose mode would display lots of useless junk. Noverbose mode is now quite usable.
* Fixed a whole bunch of console message issues such as naming and categorisation
2007-10-22 15:23:48 +00:00
Adam Frisby
4dc8e7e0f8
* Added a lock to the user profile cache to prevent simultaneous duplicate additions to the database. (Attempting to fix bug reported by nebadon)
2007-10-21 22:53:54 +00:00
Sean Dague
d4bb430f78
get rid of all the ^M line endings
2007-10-19 20:28:18 +00:00
lbsa71
656c72befc
* some more refactoring + bugfix
2007-10-19 08:57:30 +00:00
lbsa71
46700d3b7d
* Total refactoring of Asset Server for massive win
...
* There is now a AssetServerBase
* lolcat in ur assets
2007-10-19 07:46:03 +00:00
lbsa71
26b8018bcc
* Some asset loading refactoring
2007-10-17 10:58:19 +00:00
lbsa71
849eaffbe5
* Applied patch #418 : copyright-r2012.patch - some errors, but got most thru
2007-10-15 07:10:21 +00:00
lbsa71
8b01821dba
* normalized line endings
2007-10-15 04:27:52 +00:00
Tleiades Hax
1232eb1c58
Asset server implementation. Again one of these "plumbing" releases, where no real functionality has been introduced, but ground work has been made, enabling the asset server, and preparing the sim server to query the asset server.
...
Introduced an "IPlugin" interface, which plugins can inherit from.
2007-10-13 07:26:21 +00:00
lbsa71
5a65521203
== The "right name and place" commit ==
...
* Moved InventoryData to Framework.Types/InventoryItemBase.cs
* Moved UserData to Framework.Interfaces/IUserData.cs
* Moved UserProfileData to Framework/Types/UserProfileData.cs
* Deleted ass-backwards Framework dependency on Framework.Data (now it's the other way round)
* Changed some namespaces to reflect file structure
2007-10-05 10:14:42 +00:00
lbsa71
863195612b
Reverting back to 2017 since 2018 were causing Linux breakage; reopening Tleiades patch 444 and 445.
2007-09-27 14:57:43 +00:00
lbsa71
8143c597fc
* Tleiades grid mode inventory ( #444 ) - thanx Tleiades!
...
* updated to rev 1413 on libsecondlife.dll and libsecondlife.dll.config (#423 )
2007-09-27 13:25:45 +00:00
lbsa71
1302ef44e3
* Started major restructusing of comms to prepare for better grid and region functionality
...
* Working towards one shared set of services
* Killed off two projects with very little functionality
2007-09-24 07:30:30 +00:00
lbsa71
40468f18a4
* Encapsulated all CommunicationsManager services
2007-09-24 05:15:13 +00:00
Sean Dague
b8d9737a47
fixing me some line endings
2007-09-17 12:52:03 +00:00
MW
12378312d5
Hopefully fixed the build error that I introduced with my last commit.
2007-09-15 10:53:46 +00:00
MW
4a07800f14
Testing to see if this fixes the editing appearance crash, or makes it (or anything else) worse.
2007-09-15 10:39:17 +00:00
Sean Dague
a1e2fea7c1
move the locks closer to the data, sqlite for assets now works like a champ
2007-09-11 08:25:32 +00:00
MW
0770a5de0a
Trying some locks on asset database access.
2007-09-11 04:54:55 +00:00
Sean Dague
a1be7f4be5
added some debugging for tracing where asset code isn't working with sqlite
2007-09-10 13:34:20 +00:00
Sean Dague
ffe9c9374a
mass update of urls in source code to new website
2007-09-10 08:14:38 +00:00
MW
22dbe82b26
A couple of fixes to make sure db4o gets set as the default asset database. Also added a couple of console output lines to try to make it easier to tell which asset storage system is in use.
2007-09-10 07:48:22 +00:00
MW
15423539f9
hooked up sdague new sqlite asset database provider to the old asset system. So we can still use sqlite for assets while we wait for the rest of the new asset system to be wrote.
...
Needs more testing, so if it causes problems will have to swap back to db4o.
2007-09-10 06:45:54 +00:00
MW
bfd36e2e83
Some work on Module loading/management.
...
Some more modules templates classes (hoping that someone will pick some of these and work on implementing them).
Early version of the "Dynamic Texture Module", although currently there are no render modules included (so not really functional without them).
Added osSetDynamicTextureURL script function, for attaching a dynamic texture to a prim.
Some work on the console command handling. Added "change-region <regionname>" and "exit-region" so that after the use of change-region, the commands entered will apply to that region only. Then use exit-region to return to the top level (so commands then function as they did before and either apply to all regions or to the first region) (Note: this hasn't been tested very much)
2007-09-04 13:43:56 +00:00
MW
e1505be97f
Added some place holder classes for various modules.
...
Some work on the asset cache, can people please test this. including on one of the public systems so we can see if it causes problems with multiple users.
2007-08-30 13:47:04 +00:00
MW
653a4ff22d
Deleted a few old files that are no longer used.
...
Deleted the GridInterfaces projects, and for now moved the old local asset server into Framework.Communications, as we prepare to rewrite the asset cache and asset server.
Deleted Framework.manager as I am sure this is no longer in use.
2007-08-27 15:34:21 +00:00
MW
6181191a03
Stopped EntityBase from implementing IScriptHost, as don't think it should, multiple objects are based on entitybase and they all don't want the baggage from IScriptHost. SceneObjectPart already implements it anyway.
...
Added llGetOwner function, and tested the ll functions that I added in last commit.
2007-08-27 11:18:50 +00:00
MW
4c3be4e91f
Another small tweak to image sending.
...
Implemented a few ll Functions, llSetObjectName llGetObjectName, llLoadURL (all currently untested).
2007-08-27 10:34:28 +00:00
Brian McBee
6e35ff2822
Tweaks to assetcache to make texture downloading better (I hope)
2007-08-27 04:20:14 +00:00
MW
b9346844c1
See if this fixes the 0x0 texture size problems, and speeds up texture downloads in general a little bit.
2007-08-26 20:34:14 +00:00
MW
291eb48fb0
Another attempt to fix the image sending bug (next week, I intend to rewrite the assetcache and asset server).
...
Attempt to fix bug # 326. (crashing when using save-xml and hollow prims)
Attempt to fix bug # 328 (limit of 50 items in a folder)
2007-08-26 17:57:25 +00:00
MW
fafe70bba4
Second attempt to commit : Test to see if this change improves or makes worse the texture sending bug
2007-08-25 20:35:51 +00:00
MW
5ea6d8d739
A little bit of cleaning up.
2007-08-22 16:59:13 +00:00
MW
252b48fb3e
Can now turn on/off server side permission checking (on prim editing etc) from the opensim.ini file. Just add a line to the Startup section like : serverside_object_permissions = true
...
Changes /editing that are made to clothing/ body parts in your inventory should now be saved between logins/ restarts.
2007-08-21 13:21:03 +00:00
MW
c89db49f3c
Sqlite datastore should now save the textures and extraparams data (used by sculpties) correctly. [Really need to add a ExtraParams field to the sqlite database though, but for now I have combined their data so that we don't lose backward compatibility, know a couple of people have been using the datastore already].
...
Now have a rough day/night cycle (the movement of the sun needs to be made smoother but for now it is better than we had I think).
Added dalien's patch (issue 294) for saving and loading prims to a xml file (think he will be modifying these to be import/export functions and maybe writing a xml datastore for backups).
Some preliminary work on task inventory (ie object's/prim's inventory).
Added place holder data for AvatarProperties (ie a avatar's profile). Should we store this sort of data on the user server or have another server for it (a normal webserver should work).
Added a few more method to IClientAPI.
Sure there is something I'm forgeting.
2007-08-19 13:35:20 +00:00
MW
531f64a53b
Taking Prims (SceneObjectGroups) in and out of inventory should now work and if left in inventory will still be there after restarts. (as with the rest of inventory it will only fully work in standalone mode with account authentication turned on).
2007-08-16 16:31:32 +00:00
MW
b6c48c53b2
Can now set the plugins for standalone mode's Inventory database (default sqlite) and for its user database (default DB4o). Currently changing the user plugin to MySql should work (if you have MySql setup (should be same as for grid mode). There is also a MySql provider for the inventory but not 100% certain if that is finished and functional (will need to check with Adam on that).
2007-08-16 11:24:40 +00:00
MW
94dded470d
More work on inventory, can now create other inventory types, like Clothes and body parts. [Note while you can edit these, at the moment your changes won't be saved between restarts. This will be fixed very soon.]
2007-08-15 18:34:36 +00:00
MW
a979808493
preliminary support for editing notecards and scripts.
...
Although there seems to sometimes be a problem of when you login again, old notecards and scripts will have their permissions messed up and you won't be able to even view their text. This seems to be related to the client's cache, and if you clear your client's cache, on the next login they should be fine again. [I have a couple of ideas about what might be causing this so hopefully will have it fixed soon.]
2007-08-14 19:19:09 +00:00
MW
20b50489c0
Can now create some new empty inventory items (like notecards and scripts) from the create menu in the inventory window. Although currently you can't update/edit them (and have those changes saved).
2007-08-14 17:48:25 +00:00
MW
181a90967e
Start of inventory items, when you upload a texture the data will now be stored in the inventory database and you will still have that texture in inventory on later logins (Again only in standalone mode with authentication.)
...
Also there might be some problems if you upload textures in other regions to the start one (due to us not updating the CAPS url properly).
2007-08-14 17:29:15 +00:00
MW
ff08d4d016
More inventory work, should be able to now create new inventory folders and them be stored in database (so are there on next login). Again only works in standalone mode with Account/password authentication turned on. [Creating new inventory items should be working very soon.]
...
The test is to make sure that it hasn't broke grid mode at all.
2007-08-14 14:57:52 +00:00
MW
a228b5984e
Start of Inventory service, currently only (partially) functional in standalone mode and using sqlite).
...
In standalone mode, if you have account authenticate turned on (setting in opensim.ini) then when you create a new account, a set of inventory is created for that account and stored in database (currently only a set of empty folders). Then during login the database is search for that set and sent to the client in the login response.
More functions will be added soon, like creating new folders (and a bit later items) from the client inventory window.
2007-08-14 13:54:46 +00:00
MW
e34f5edb70
Deleted some unused code.
2007-08-13 13:37:50 +00:00
MW
a56a17fab2
Making sure my local working copy is in sync with svn before I start the job of enabling the new SceneObject classes.
2007-08-09 12:59:42 +00:00
MW
a137703611
Fixed the asset download problem I think, solution might not be ideal but works for now.
2007-08-08 19:51:51 +00:00
MW
be483bc697
Hopefully improved texture downloading (including the speed at which they download), but still a few problems, it seems that the client has a quite short timeout for receiving a texture and if the whole texture isn't sent within this time, the client will request the texture again, With quite small textures this is fine, but it seems that with larger textures we can't send them fast enough and a infinite loop develops where the client keeps requesting a texture and we keep trying to send it, but are never fast enough. So I've for now put code in that so that the server will try to send a texture only once and then after that will ignore future requests from that client for that texture.
2007-08-08 18:55:58 +00:00
MW
369fb2e623
Added checks to the last commit to make sure the xml files exist before it tries to load them.
2007-08-08 17:29:37 +00:00
MW
cf203cf5ee
The startup set of assets in the local asset server can now be set from a xml file (OpenSimAssetSet.xml). (remember to make changes to the set, you will also need to delete the old asset .yap file, so that it is recreated).
...
Also the set of items in the OpenSim inventory Library can also now be set from a xml file (OpenSimLibrary.xml).
2007-08-08 17:11:02 +00:00
MW
5ac5785cf2
a couple of changes in the new Sceneobject classes, just committing so things are kept in sync.
2007-08-07 17:22:15 +00:00
MW
5ee2e38c11
Deleting objects should now work. But beware they aren't send to your trash folder or anything so there is at the moment no way to recover deleted objects.
2007-07-29 13:05:57 +00:00
Adam Frisby
038774de30
Commit 1/2
...
* DB4o no longer crashes the sim on Startup
* DB4o now crashes the sim on shutdown.
* Variety of console verbosity fixes.
2007-07-29 09:37:29 +00:00
MW
1b850b4483
Should now have version 0.1 of our new ruth default avatar. At the moment, you only see your own avatar correctly, all other user's avatars show up as the old ruth. This will be fixed soon.
...
We also need better clothing for the new ruth and to edit the body shape.
To get this working you will need to delete your asset yap file and also in grid mode the user server needs to be updated.
2007-07-27 16:23:04 +00:00