aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-08-24Fix llAttachToAvatar()Justin Clark-Casey (justincc)6-24/+80
Apart from one obvious bug, this was failing because attempting to serialize the script from inside the script (as part of saving the attachment as an inventory asset) was triggering an extremely long delay. So we now don't do this. The state will be serialized anyway when the avatar normally logs out. The worst that can happen is that if the client/server crashes, the attachment scripts start without previous state.
2011-08-23rename AttachmentsModule.ShowDetachInUserInventory() to ↵Justin Clark-Casey (justincc)4-23/+14
DetachSingleAttachmentToInv() for consistency and to reflect it's actual behaviour
2011-08-23remove mono compiler warningsJustin Clark-Casey (justincc)9-16/+4
2011-08-23replace TestRemoveAttachments() with a more thorough TestRemoveAttachment()Justin Clark-Casey (justincc)1-51/+27
2011-08-23replace old TestAddAttachments() with a more thorough TestAddAttachment()Justin Clark-Casey (justincc)1-7/+28
2011-08-23Protect a check for default texture entry when setting alpha values. ApparentlyMic Bowman1-3/+10
if all faces have their own textures then the default texture is null
2011-08-23Remove pointless contains check in ScenePresence.RemoveAttachment()Justin Clark-Casey (justincc)1-6/+1
2011-08-23If an object failed to attach due to an exception, then try and detach it ↵Justin Clark-Casey (justincc)1-1/+2
from the avatar's list of attachments as well as delete it from the scene. This may help with the "Inconsistent attachment state" errors seen on teleport. See http://opensimulator.org/mantis/view.php?id=5644 and linked reports
2011-08-22If an attachment fails, then start logging the exception for now, in order ↵Justin Clark-Casey (justincc)3-61/+84
to help with the inconsistent state bug. This also refactors AttachmentsModules to stop pointlessly refetching the ScenePresence in various methods. However, more of this is required.
2011-08-22Add warning log message to say which attachment fails validation in order to ↵Justin Clark-Casey (justincc)1-0/+10
pin down problems with "Inconsistent Attachment State"
2011-08-22minor: comment out simulator features log lineJustin Clark-Casey (justincc)1-1/+1
2011-08-22Add ISimulatorFeaturesModule so that other modules can register features in ↵Justin Clark-Casey (justincc)2-36/+129
addition to the hardcoded ones.
2011-08-22Thanks Neil Canham for fixing bulk inventory updates, no sending ↵Snoopy Pfeffer2-2/+13
BulkInventoryUpdate after accepting inventory items.
2011-08-20Add avatar and attachments to llRegionSayBlueWall3-11/+71
llRegionSay will now message avatars on chan 0 and will message attachments on the avatar that listen on channels other than 0. This behavior is consistant with the LL implementation as tested on regions in Agni with one exception: this implementation does not include issue: https://jira.secondlife.com/browse/SCR-66?
2011-08-19Add llRegionSayToBlueWall5-6/+68
llRegionSayTo(key target, integer channel, string messasge) Allows messages to be sent region-wide to a particular prim.
2011-08-19Fix exception when using BasicPhysicsRobert Adams1-2/+2
2011-08-19Stop NPC's getting hypergrid like names in some circumstances.Justin Clark-Casey (justincc)4-29/+101
This meant punching in another AddUser() method in IUserManagement to do a direct name to UUID associated without the account check (since NPCs don't have accounts). May address http://opensimulator.org/mantis/view.php?id=5645
2011-08-18refactor: fold CreateSceneViewer() back into ScenePresence constructorJustin Clark-Casey (justincc)1-6/+1
2011-08-18refactor: Fold 3 ScenePresence() constructors into one since only one is called.Justin Clark-Casey (justincc)1-9/+2
2011-08-18Don't try to save changed attachment states when an NPC with attachments is ↵Justin Clark-Casey (justincc)10-18/+26
removed from the scene. This is done by introducing a PresenceType enum into ScenePresence which currently has two values, User and Npc. This seems better than a SaveAttachments flag in terms of code comprehension, though I'm still slightly uneasy about introducing these semantics to core objects
2011-08-17comment out noisy attachments loggingJustin Clark-Casey (justincc)1-5/+5
2011-08-17For now, supress 'OH NOES' warnings given by ↵Justin Clark-Casey (justincc)1-5/+5
HGInventoryBroker.CacheInventoryServiceURL when it tries to cache it for an NPC This concept is meaningless for NPCs. However, it might be better to make NPCism an actual property on ScenePresence and check. Addresses http://opensimulator.org/mantis/view.php?id=5643
2011-08-17Fix issue where loading a new appearance onto an NPC would not remove the ↵Justin Clark-Casey (justincc)3-3/+14
previous attachments from the scene. Addresses http://opensimulator.org/mantis/view.php?id=5636
2011-08-17extend test to check that there is one attachment and that it has the right nameJustin Clark-Casey (justincc)1-1/+6
2011-08-17Add new regression TestRezAttachmentsOnAvatarEntrance() to do simple ↵Justin Clark-Casey (justincc)4-11/+33
attachments check
2011-08-16get rid of logged warnings about lack of some modules - afaik these never ↵Justin Clark-Casey (justincc)1-10/+0
occur in real life and just clutter up tests
2011-08-16Add new FireAndForgetMethod.None.Justin Clark-Casey (justincc)1-13/+33
This executes the callback on the same thread that made the request. Designed for use only by regression tests that rely on a predicable event ordering.
2011-08-16Move some previously common code back into separate tests. Remove unused ↵Justin Clark-Casey (justincc)1-10/+9
region handle from test.
2011-08-16Isolate existing incomplete attachments tests rather than have them rely on ↵Justin Clark-Casey (justincc)1-5/+5
each other. Much easier to debug this way.
2011-08-16drop number of attachments in test from 3 to 2 to reduce text complexityJustin Clark-Casey (justincc)1-4/+1
2011-08-16remove setting up of second scene in attachments since it's not currently usedJustin Clark-Casey (justincc)1-24/+21
2011-08-16relocate AttachmentTests.cs to AttachmentsModuleTests.csJustin Clark-Casey (justincc)1-2/+2
2011-08-16minor: remove some mono compiler warningsJustin Clark-Casey (justincc)2-5/+6
2011-08-16minor: change some comment text in flotsam asset cacheJustin Clark-Casey (justincc)1-4/+3
2011-08-16On Flotsam asset cache, go back to moving the file from the temporary ↵Justin Clark-Casey (justincc)1-26/+47
location rather than copying. Copying doesn't prevent IOExceptions on Windows due to file locking. (e.g. Mantis 5642, 5630). So instead go back to moving the file, swallowing IOExceptions that occur just for the move due to competing caching threads or even different opensimulator instances.
2011-08-15Add "shutdown" message to RegionReadyBlueWall1-0/+5
Add "shutdown" message when removing region. From a patch submitted by Michelle Argus. Thanks Michelle
2011-08-15Added console command "delete object outside" to delete all objects outside ↵Snoopy Pfeffer1-2/+37
region boundaries. This is especiyll useful in cases where physical objects outside regions boundaries cause much physics engine lag.
2011-08-14WorldMap: Added map item for Land-for-Sale. Implemented backlist item ↵Snoopy Pfeffer1-19/+187
timeouts (default 10 minutes; see also new config file setting BlacklistTimeout) and removing backlisted neigboring regions that have been restarted from the blacklist.
2011-08-13llGetPrimitiveParams fix prim hollow/hole shape valueMicheil Merlin2-3/+178
2011-08-13Fix a problem in the Flotsam asset cache where assets were being put into ↵Justin Clark-Casey (justincc)1-2/+6
the memory cache even when it wasn't enabled. This hopefully addresses http://opensimulator.org/mantis/view.php?id=5634 This is the most probable cause of the memory problems that people have been seeing in the past month. This bug has been around since commit 5dc785b (4th July 2011). Doh! This is why regressions tests are such a good idea... :) Many thanks to Nebadon for using git bisect to track down this bug, which made it a 5 minute fix.
2011-08-13Fix a bug preventing region modules from creating trees at anything but the ↵Aaron Duffy1-3/+3
default scale.
2011-08-12If a map request to a server fails, always close the outbound connection.Justin Clark-Casey (justincc)1-1/+5
This probably doesn't help with the current memory leak.
2011-08-12minor: change login enable/disable messages in last commit so that they ↵Justin Clark-Casey (justincc)1-2/+2
occur after the setting has been made
2011-08-12minor: On "login disable/enable" always tell the user the final login ↵Justin Clark-Casey (justincc)2-7/+5
status, rather than remaining silent if it was already on/off
2011-08-12tidy up some OSSL NPC parameter namesJustin Clark-Casey (justincc)3-34/+34
2011-08-12rename position parameter in osNpcMoveToTarget to targetJustin Clark-Casey (justincc)3-5/+5
2011-08-12rename osNpcStopMoveTo() to osNpcStopMoveToTarget()Justin Clark-Casey (justincc)3-4/+4
2011-08-12When saving appearance, only save the baked textures, not the other face ↵Justin Clark-Casey (justincc)2-6/+44
textures (which are already stored permanently)
2011-08-12Fix kicking of NPCs via "kick user" console command.Justin Clark-Casey (justincc)1-0/+2
Needed to hook up the Close() function in the NPCAvatar IClientAPI implementation, which [unfortunately] is still needed
2011-08-12Allow the osNpcCreate() function to accept a notecard name or asset for ↵Justin Clark-Casey (justincc)2-6/+26
initial appearance