aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-12-19Fix race condition where the appearance update timer could be stopped just ↵Justin Clark-Casey (justincc)1-3/+6
after another thread had started it on QueueAppearanceSave() or *Send() However, the window for this race is very small, and the next queued appearance save or send would restart the timer anyway.
2011-12-19Migrate detailed "appearance show" report generation up to ↵Justin Clark-Casey (justincc)1-8/+49
AvatarFactoryModule from AppearanceInfoModule so that it can be used in debug (inactive). Further filters "debug packet <level>" to exclused [Request]ObjectPropertiesFamily if level is below 25. Adjust some method doc Minor changes to some logging messages.
2011-12-17Fix bug where objects could not be set to a new group if the group had been ↵Justin Clark-Casey (justincc)1-3/+9
created in that client session, or if no other action has been performed on the object. There were two problems here: 1) On object group update, we looked for the group is the IClientAPI group cache rather than in the groups service. This fails to groups created newly in that session 2) On object group update, we weren't setting the HasGroupChanged flag. This meant that the change was not persisted unless some other action set this flag. This commit fixes these issues and hopefully addresses http://opensimulator.org/mantis/view.php?id=5588 This commit also moves HandleObjectGroupUpdate() to the GroupsModule from the Scene.PacketHandlers.cs file
2011-12-16Sends the consistent child agent position upon creation of the child agent ↵Diva Canto1-1/+12
in other regions, as opposed to <128, 128, 70>
2011-12-16HG minor bug fix and marked one method obsolete in UAS.Diva Canto1-1/+4
2011-12-13In AvatarFactoryModule.SetApperance(), perform ValidateBakedTextureCache() ↵Justin Clark-Casey (justincc)1-2/+2
in the same thread rather than on another one. The caller is already an async thread from LLClientView so this doesn't hold up the client. However, launching on a separate thread does remove the effect of m_setAppearanceLock This was potentially allowing two different SetAppearance threads to interfere with each other, though this probably rarely happens, if at all.
2011-12-09Print out one log message for every missing baked texture, rather than two.Justin Clark-Casey (justincc)1-22/+4
2011-12-09Add commented log lines to FetchInventoryDescendents2 path for future use.Justin Clark-Casey (justincc)1-0/+2
Haven't been able to resolve issue where attachments are removed by the viewer on relog on a localhost
2011-12-07Stop also adding an ordinary http handler when we set up a poll http handler.Justin Clark-Casey (justincc)1-11/+6
It appears that this is entirely unnecessary since the poll http handlers are dealt with on a separate code path.
2011-12-05Implement IOSHttpRequest and IOSHttpResponse http interfaces and use instead ↵Justin Clark-Casey (justincc)4-7/+7
of OSHttpRequest/OSHttpResponse. This is required for the substitution of different HTTP servers or the newer HttpServer.dll without having to commit to a particular implementation. This is also required to write regression tests that involve the HTTP layer. If you need to recompile, all you need to do is replace OSHttpRequest/OSHttpResponse references with IOSHttpRequest/IOSHttpResponse.
2011-12-05Fix CHANGED_TEXTURE and CHANGED_COLOR.Melanie1-2/+2
2011-12-03Add beginning of ScenePresenceAgentTests.TestCreateChildScenePresence()Justin Clark-Casey (justincc)2-5/+5
This required an option to be added to NullRegionData via ConnectionString for it to act as a non-static instance, so that regression tests (which only load this class once) don't get hopeless confused and complex to compensate. Normal standalone operation unaffected.
2011-12-02Stop some places where we're trying to reset animations in child agents ↵Justin Clark-Casey (justincc)1-100/+110
where such requests are ignored.
2011-11-29On "show caps", stop excluding the seed cap but do exclude it elsewhereJustin Clark-Casey (justincc)1-1/+1
2011-11-29Improve some of the debug help messagesJustin Clark-Casey (justincc)1-3/+2
2011-11-29tabulate "show caps" output for easier readabilityJustin Clark-Casey (justincc)1-5/+10
2011-11-24Add disabled CrossBehaviour to pCampBot, which is designed to cross test ↵Justin Clark-Casey (justincc)1-1/+1
bots between neighbouring regions. Not yet enabled since there is a bug where the initial cross will work but all subsequent movements on the receiving simulator appear to fail.
2011-11-19Remove the "[LOCAL SIMULATION CONNECTOR]: Did not find region {0} for ↵Justin Clark-Casey (justincc)1-1/+0
SendCreateChildAgent" message This is misleading since a simulator will call this method before successfully trying remote regions. Also comments out spammy "[SIMULATION]: Stream handler called" AgentHandlers messages for now.
2011-11-19minor: Make HelloNeighbour messages more informativeJustin Clark-Casey (justincc)1-5/+10
2011-11-17For TerrainModule.SaveToFile(), don't bother throwing the exception onwards ↵Justin Clark-Casey (justincc)1-1/+0
after printing out the error, since this method is invoked by users. Still throwing the exception on the stream method since this invoked programatically
2011-11-17Make "terrain save" more friendly by telling the user if we have saved and ↵Justin Clark-Casey (justincc)1-18/+32
putting out a useful complaint message if we haven't for some reason
2011-11-16Comment out the vebose logging on HGFriendsModule.Justin Clark-Casey (justincc)1-12/+11
Recent issues in http://opensimulator.org/mantis/view.php?id=5794 were not related to HG friends
2011-11-16Fix the build breakJustin Clark-Casey (justincc)1-1/+1
2011-11-16Look up a homeURL only when it's not null, in addition to not being string.EmptyJustin Clark-Casey (justincc)1-1/+1
2011-11-15Enable log message to tell us what type of url is being requested from a ↵Justin Clark-Casey (justincc)1-3/+3
user's homeurl
2011-11-15Make tracked per scene thread names conform to the majorirty format.Justin Clark-Casey (justincc)1-3/+6
This is <thread-name> (<region-name>)
2011-11-15fix build break on UserManagementModule.Justin Clark-Casey (justincc)1-7/+8
This also adds time since started to "show threads". Unfortunately these two changes got mixed in.
2011-11-15Do proper locking of UserManagementModule.m_UserCache when getting.Justin Clark-Casey (justincc)1-29/+57
This might help with [USER AGENT CONNECTOR]: new connector to () [USER AGENT CONNECTOR]: Unable to contact remote server for GetServerURLs [USER AGENT CONNECTOR]: Malformed Uri : Argument cannot be null. Parameter name: uriString
2011-11-15temporarily increasing logging in HGFriendsModule for debuggingJustin Clark-Casey (justincc)1-1/+24
2011-11-15Add comments about trying to avoid synchronous work off the ↵Justin Clark-Casey (justincc)1-1/+4
EventManager.OnMakeRootAgent event since this is on the critical path for transfer of avatars from one region to another.
2011-11-15remove SceneCommunicationService.OnAvatarCrossingIntoRegion. This stuff is ↵Justin Clark-Casey (justincc)1-1/+0
not being used any more - it's now IEntityTransferModule and SimulationService instead
2011-11-15Rename FetchFriendslist() -> CacheFriends() and RefetchFriends() -> ↵Justin Clark-Casey (justincc)2-15/+13
RecacheFriends() to reflect their intended function
2011-11-15refactor: rename m_NeedsListOfFriends => m_NeedsListOfOnlineFriends to ↵Justin Clark-Casey (justincc)1-5/+5
better reflect its actual function
2011-11-15For clients that are entering a simulator from initial login, stop executing ↵Justin Clark-Casey (justincc)2-7/+28
FriendsModule.FetchFriendslist() asychronously. Executing this asynchronously allows a race condition where subsequent friends fetches hit a cache that FetchFriendsList() had not yet populated. Changing this to synchronous may improve issues where a user does not see friends as online even though they are. I don't believe synchronous is a problem here, but if it is, then a more complicated signalling mechanism is required. Locking the cache isn't sufficient.
2011-11-15refactor: Don't create a new UUID for passing uuids to client - UUIDs are ↵Justin Clark-Casey (justincc)1-4/+6
structs are so not passed by reference (and they're immutable!)
2011-11-14Add test for removing a friendship.Justin Clark-Casey (justincc)2-11/+31
2011-11-14Improved method doc for AddFriend() - it actually does set up a two-way ↵Justin Clark-Casey (justincc)2-4/+5
relationship. Rename IFriendsModule.AddFriend() to AddFriendship()
2011-11-14minor: remove some mono compiler warningsJustin Clark-Casey (justincc)4-11/+2
2011-11-14Add test for adding a friend whilst onlineJustin Clark-Casey (justincc)2-6/+30
2011-11-14Add very simple FriendsModuleTests.TestNoFriends()Justin Clark-Casey (justincc)2-1/+81
2011-11-14If a friends identifier which is too short is given to ↵Justin Clark-Casey (justincc)1-1/+8
HGFriendsModule.GetOnlineFriends() then spit out a warning rather than failing on the String.Substring(). This is to progress http://opensimulator.org/mantis/view.php?id=5789
2011-11-14Do a ScenePresence null check in HGMessageTransferModule.SendIMToScene() to ↵Justin Clark-Casey (justincc)1-1/+2
stop a NullReferenceException being thrown if an HG IM is sent to a simulator running multiple regions This is an attempt to address http://opensimulator.org/mantis/view.php?id=5791
2011-11-06Convert SendKillObject to take a list of uint rather than sending oneMelanie2-2/+2
packet per prim. More to come as we change to make use of this.
2011-11-03Rename ForEachAvatar back to ForEachScenePresence. The other changesDan Lake4-6/+6
from previous commit which sort out which iterator is used are left intact. A discussion is needed as to what constitutes an avatar vs a ScenePresence.
2011-11-03Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls toDan Lake10-65/+44
the 3 iteration functions so more of them are using the correct iteration for the action they are performing. The 3 iterators that seem to fit all actions within OpenSim at this time are: ForEachAvatar: Perform an action on all avatars (root presences) ForEachClient: Perform an action on all clients (root or child clients) ForEachRootClient: Perform an action on all clients that have an avatar There are still a dozen places or so calling the old ForEachScenePresence that will take a little more refactoring to eliminate.
2011-11-02Port the Avination offline messaging system to CoreMelanie2-21/+35
2011-11-02Changes UpdateFlag in SOP to an enumeration of NONE, TERSE and FULL.Dan Lake1-1/+1
UpdateFlag is now referenced/used only within SOP and SOG. Outsiders are using ScheduleFullUpdate, ScheduleTerseUpdate or ClearUpdateSchedule on SOP consistently now. Also started working toward eliminating those calls to ScheduleFullUpdate, ScheduleTerseUpdate or ClearUpdateSchedule from outside SOP in favor of just setting properties on SOP and let SOP decide if an update should be scheduled. This consolidates the update policy within SOP and the client rather than everywhere that makes changes to SOP. Some places forget to call update while others call it multiple times, "just to be sure". UpdateFlag and Schedule*Update will both be made private shortly. UpdateFlag is intended to be transient and internal to SOP so it has been removed from XML serializer for SOPs.
2011-11-02Change default say distance to 20m from 30m, the same as on the big grid. ↵Justin Clark-Casey (justincc)2-2/+2
This is to improve the migration of scripts that expect a 20m say distance. If you want to keep a 30m say distance then please set this as the say_distance parameter in the [Chat] section of OpenSim.ini.
2011-11-02Get some hopefully more useful exception information when ↵Justin Clark-Casey (justincc)2-5/+8
OpenJPEG.EncodeFromImage() fails in VectorRender and DynamicTexture modules
2011-11-02Fix race condition that would sometimes send or save appearance for the ↵Justin Clark-Casey (justincc)1-7/+21
wrong avatar. In AvatarFactoryModule.HandleAppearanceUpdateTimer(), we loop through appearance save and send requests and dispatch via a FireAndForget thread. If there was more than one request in the save or send queue, then this led to a subtle race condition where the foreach loop would load in the next KeyValuePair before the thread was dispatched. This gave the thread the wrong avatar ID, leaving some avatar appearance cloudy since appearance data was never sent. This change loads the fields into local references so that this doesn't happen.