aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-10-05Fix bug in implementation of "show part pos" that would not filter probably.Justin Clark-Casey (justincc)1-40/+25
Also refactors more of ObjectCommandsModule to remove duplicate code
2012-10-05Add "show part pos" console command to match "show object pos"Justin Clark-Casey (justincc)1-0/+72
2012-10-05refactor: eliminate some now duplicate code in ObjectCommandsModuleJustin Clark-Casey (justincc)1-34/+25
2012-10-05Add "show object pos <start-coord> to <end-coord>" command to simulator console.Justin Clark-Casey (justincc)1-0/+67
This allows you to display details of all objects in a given bounding box. Values parts of the co-ord can be left out as appropriate (e.g. to get all objects between the ground and z=30. See "help show object pos" for more details.
2012-10-05Print number of objects found with "show object name" and "show part name" ↵Justin Clark-Casey (justincc)1-12/+4
simulator console commands
2012-09-30Revert "Added request.Proxy=null everywhere, as discussed in ↵Diva Canto3-3/+0
http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow." But the patch is here, in case anyone wants to try it. This reverts commit 531edd51d82ecd6a842a2611c99e9919634491ef.
2012-09-30Added request.Proxy=null everywhere, as discussed in ↵Diva Canto3-0/+3
http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow. Thanks R.Gunther (rigun@rigutech.nl) https://lists.berlios.de/pipermail/opensim-users/2012-September/010986.html
2012-09-19Correctly override and call base OpenSimTestCase.SetUp() method in ↵Justin Clark-Casey (justincc)1-1/+4
GridConnectorsTests and ArchiverTests. Remove unrelated compile warning from AttachmentsModuleTests.
2012-09-14Added unit tests for multi-region OARsOren Hurvitz1-58/+326
2012-09-14Rename ArchiveWriteRequestPreparatio nto ArchiveWriteRequest since after the ↵Justin Clark-Casey (justincc)3-9/+9
multi-OAR patch there is now only one class that handles this operation. Adapation of 0004-Renamed-ArchiveWriteRequestPreparation-to-ArchiveWri.patch in http://opensimulator.org/mantis/view.php?id=6105 since that did not directly apply
2012-09-14Support multi-region OAR filesOren Hurvitz8-395/+1057
Merged ArchiveWriteRequestPreparation.cs and ArchiveWriteRequestExecution.cs. This simplifies the code, and it's faster to write each scene to the archive as it's found rather than all at once at the end.
2012-09-13correcting a typo that causes c# express to complain about xml comment ↵SignpostMarv1-1/+1
containing invalid xml Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-09-07Add warning chevrons around the GC.Collect added to Warp3DImageModule in ↵Justin Clark-Casey (justincc)1-0/+4
commit 5eb2526 Manually calling GC.Collect() really shouldnt' be necessary and is generally regarded as a bad idea. A GC should occur anyway pretty shortly afterwards. However, can leave this in development code for now to see if it does actually make a significant difference rather than simply doing a GC a little earlier.
2012-09-06If reusing dynamic textures, do not reuse small data length textures that ↵Justin Clark-Casey (justincc)1-1/+1
fall below current viewer discard level 2 thresholds. Viewer LL 3.3.4 and before sometimes fail to properly redisplay dynamic textures that have a small data length compared to pixel size when pulled from cache. This appears to happen when the data length is smaller than the estimate discard level 2 size the viewer uses when making this GetTexture request. This commit works around this by always regenerating dynamic textures that fall below this threshold rather than reusing them if ReuseDynamicTextures = true This can be controlled by the [Textures] ReuseDynamicLowDataTextures config setting which defaults to false.
2012-09-060006270: Warp3D leaks memory on mono based systemsBlueWall1-1/+4
Thanks Hiro Lecker for a patch to reduce memory useage with Warp3D map module
2012-08-27formattingSignpostMarv1-22/+22
2012-08-27refactoring to load from self (fixes ChanneDigger being absent)SignpostMarv1-5/+11
2012-08-27refactoring to assign the first argument to a variableSignpostMarv1-4/+5
2012-08-21Fix bug in SoundModule.PlayAttachedSound() where every sound update to an ↵Justin Clark-Casey (justincc)1-3/+5
avatar would base its gain calculation on the previous avatar's gain, instead of the original input gain This is similar to commit d89faa which fixed the same kind of bug in TriggerSound()
2012-08-20When loading an OAR, validate any group UUIDs and properly reconstruct ↵Justin Clark-Casey (justincc)1-1/+62
parcel access lists. If a group UUID is present that is not on this simulator then the object or parcel is no longer group owned. This is a change from previous behaviour where such invalid UUIDs were kept. This is an adaptation of patch 0002 from http://opensimulator.org/mantis/view.php?id=6105 by Oren Hurvitz of Kitely. My adaptations are formatting only, apart from the notices about parcel owner IDs not being saved since this has now been fixed. Thanks Oren.
2012-08-03Fix old regression that stopped saving parcel owner data in OARs.Justin Clark-Casey (justincc)1-1/+1
This was working in 0.7.2 but was accidentally removed from 0.7.3. The --publish option for "save oar" will now save oars stripped of parcel owner information as well as scene object info. Please use the --publish option if you want to publish oars that may be later loaded by others to the same grid from which they were saved.
2012-08-03Fixed a rare bug that caused Save OAR to fail because it thought it had ↵Oren Hurvitz1-5/+11
timed-out The bug manifested as follows: a large world was saved. All the assets were found. But for some unknown reason, the timeout timer was restarted. So after 1 minute it closed the Archive Writer, because it didn't receive any more assets during that minute. That caused the OAR to become corrupted because ArchiveWriteRequestExecution.Save() was still running.
2012-08-03Delete old blank SOGSpamTestJustin Clark-Casey (justincc)1-37/+0
2012-07-31Fix bug in SoundModule.TriggerSound() where every sound update to an avatar ↵Justin Clark-Casey (justincc)1-3/+6
would base its gain calculation on the previous avatar's gain, instead of the original input gain. This was making sound attenuate oddly when there were NPCs in the region, though it could also happen with ordinary avatars.
2012-07-25Move Watchdog and MemoryWatchdog classes into OpenSim.Framework.Monitoring ↵Justin Clark-Casey (justincc)1-0/+1
with other monitoring code from OpenSim.Framework
2012-07-25Rename OpenSim.Framework.Statistics to OpenSim.Framework.Monitoring.Justin Clark-Casey (justincc)2-2/+2
This better reflects the long-term purpose of that project and matches Monitoring modules.
2012-07-19Add EventManager.OnRegionLoginsStatusChange fired whenever logins are ↵Justin Clark-Casey (justincc)1-5/+5
enabled or disabled at any point, not just during initial startup. This replaces EventManager.OnLoginsEnabled which only fired when logins were first enabled and was affected by a bug where it would never fire if the region started with logins disabled.
2012-07-14When generating a Warp3D texture, set the detailTexture[i] variable on ↵Justin Clark-Casey (justincc)1-7/+14
resize from the JPEG2000 original rather than only saving it to disk. This appears to be the cause of the warp 3d exception seen when starting a new region for the first time. Subsequent starts were okay because resized saved bitmap was correctly retrieved from disk. Should fix http://opensimulator.org/mantis/view.php?id=5204 and http://opensimulator.org/mantis/view.php?id=5272
2012-07-11Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than ↵Justin Clark-Casey (justincc)2-3/+1
constructing fresh copies. The encodings are thread-safe and already used in such a manner in other places. This isn't done where Byte Order Mark output is suppressed, since Encoding.UTF8 is constructed to output the BOM.
2012-07-07minor: Make WORLD MAP category log lines consistentJustin Clark-Casey (justincc)1-4/+4
2012-07-05porting console commands from raw2sculpt 3.2SignpostMarv1-0/+34
2012-07-05Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)1-2/+2
This works like osForceAttachToAvatar() but allows an object to be directly specified from the script object's inventory rather than forcing it to be rezzed in the scene first. Still only attaches objects to the owner of the script. This allows one to bypass the complicated co-ordination of first rezzing objects in the scene before attaching them. Threat level high.
2012-06-26Fix output for help on some object region console commandsJustin Clark-Casey (justincc)1-3/+6
2012-06-20Lower warn logging on not having friends/group module on permissions to debug.Justin Clark-Casey (justincc)1-2/+2
It's a valid configuration not to have these modules, but I think it's still worth logging the fact that certain permissions won't work (always return true)
2012-06-15Put all debug console commands into a single Debug section rather than ↵Justin Clark-Casey (justincc)1-1/+1
scattering them over other categories
2012-06-14Add SOG.HasPrivateAttachmentPoint to tell if a SOG has a private attachment ↵Justin Clark-Casey (justincc)1-5/+2
point. HUDs attachment points are private. Change SOP.SendFullUpdateToClient() and SoundModule.PlayAttachedSound() to use this rather than different magic number formulations. This also corrects a bug in PlayAttachedSound() where the code assumed that all attachment points over 30 were HUDs. It appears this is no longer true with Neck and Root (Avatar Center)
2012-06-06minor: Change log messages on Warp3DImageModule to show they are from this ↵Justin Clark-Casey (justincc)1-7/+9
module
2012-06-06Rename MapImageModule for Warp3D to Warp3DImageModule to match its class ↵Justin Clark-Casey (justincc)1-0/+0
name and make it easier to distinguish between map image modules.
2012-06-06Actively dispose of Bitmaps in Warp3D image module and world map module once ↵Justin Clark-Casey (justincc)3-215/+248
we've finished with them. This might help with memory leakage issues though I suspect it won't.
2012-06-06enabling all corners of a sim to be set in one callSignpostMarv1-1/+11
2012-06-05Stop accidentally reading 4 Int16s instead of 2 in SIZE section of Terragen ↵Justin Clark-Casey (justincc)1-2/+0
file when loaded from a stream. Fixes a bug introduced 2 weeks ago in 67ebe80 Thanks to Plugh for pointing this out.
2012-05-25Resolve some mono compiler warnings.Justin Clark-Casey (justincc)2-13/+17
2012-05-24Comment out accidentally left in log line that was printing out the control ↵Justin Clark-Casey (justincc)1-3/+3
file on OAR save
2012-05-23minor: Change [OBJECT COMMANDS MODULE] log strings to [REGION COMMANDS ↵Justin Clark-Casey (justincc)1-6/+6
MODULE] strings, though all these are currently commented out anyway
2012-05-23Add "show scene" command which lists stats for the currently selected ↵Justin Clark-Casey (justincc)1-0/+155
console scene(s) This includes prim count, script count, avatar count, etc. Information is currently the same as "show stats", though show stats can only show one scene at a time because it listens for the latest outgoing stats packet (a bad approach that needs to change). Might be better to tie this module into the other stats module to display arbitrary stats rather than fetching directly from scene.SimStatsReporter. Console command is "show scene" because "show region" already exists for the grid service, which is unfortunate. Might need to make a distinction between "scene" relating to a live scene and "region" relating to more static region data (url, coords, etc.)
2012-05-19Add size of region to OAR control file. Megaregions (sw root OARs when ↵Justin Clark-Casey (justincc)1-14/+24
saved) will have a size larger than 256x256 Not yet read. Do not rely on this information yet, it may change.
2012-05-19Remove recent IRegionCombinerModule.IsMegaregion(). In theory, there can be ↵Justin Clark-Casey (justincc)1-1/+1
more than one megaregion in a simulator, separated by water. Rename IsRootRegion() to IsRootForMegaregion()
2012-05-19Add is_megaregion flag into oar control file. Not currently read - for ↵Justin Clark-Casey (justincc)2-41/+74
future use. Please do not rely on this remaining here. An adaptation of part of Garmin's patch from http://opensimulator.org/mantis/view.php?id=5975, thanks! Flag only written if the SW corner OAR is saved - this is the only one that captures object data presently (though not land or terrain data). This adds an IRegionCombinerModule interface and the necessary methods on RegionCombinerModule
2012-05-17minor: Remove redundant EstateOwner != UUID.Zero check in IsAdministrator ↵Justin Clark-Casey (justincc)1-8/+6
because checking EstateOwner == user Due to an earlier check we already know that user != UUID.Zero so if EstateOwner == UUID.Zero, EstateOwner == user can never be true
2012-05-16Route OAR SOG loading through the common ↵Justin Clark-Casey (justincc)1-2/+1
SceneObjectSerializer.FromXml2Format() rather than the functionally identical but buggy Xml2ToSOG(). Remove buggy Xml2ToSOG().