aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang1-214/+402
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-24/+520
2012-11-12Cleanup on region modules: gave short node id's to all of them.Diva Canto1-1/+1
2012-11-12Remove any mention of IRegionModule from region names and comments to aidMelanie1-1/+1
grepping for remaining uses
2012-11-10One more module converted: AvatarFactoryModule.Diva Canto1-6/+31
2012-10-03Fix the use of the wrong index when locating the assets associatedMic Bowman1-1/+2
with wearables. The fact that this hasn't caused problems earlier suggests either that no one is using multiple layers of wearables or that this code is useless because the assets are coming in with the wearables request.
2012-08-03Fix build break.Justin Clark-Casey (justincc)1-1/+1
2012-08-03Update settings loading in AvatarFactoryModule which should have been in ↵Justin Clark-Casey (justincc)1-4/+4
last commit 205f2326
2012-06-25minor: update currently commented out log message at top of ↵Justin Clark-Casey (justincc)1-1/+3
AvatarFactoryModule.SetAppearance() for future use
2012-05-14minor: add explanative comment to 'missing baked texture' logging commonly ↵Justin Clark-Casey (justincc)1-0/+10
seen on inter-simulator teleports where avatar baked textures are not available from the asset service.
2012-04-25Comment out the noisier AVFACTORY log messages for now.Justin Clark-Casey (justincc)1-4/+6
Permanently comment out warnings about ScenePresence not being found - this is entirely expected if the avatar has alraedy logged out or left the scene.
2012-04-24Minor improvements to loggingOren Hurvitz1-5/+6
Eliminated an extra newline in the console if the log line doesn't contain a category (example of a category: "[ASSETS]").
2012-02-17Added the TriggerAvatarAppearanceChanged to EventManager. It's triggered by ↵Dan Lake1-0/+4
AvatarFactoryModule after an avatar's appearance has been succesfully changed and persisted (if the persist option is set).
2012-02-14Refactor appearance saving for NPC to use AvatarFactoryModule interface.Dan Lake1-9/+31
2012-01-10Add avatar names to appearance log messagesJustin Clark-Casey (justincc)1-3/+3
2012-01-05Improve "app rebake" command to return a better message if no uploaded ↵Justin Clark-Casey (justincc)1-1/+6
texture ids were available for the rebake request
2012-01-04Add "appearance rebake" command to ask a specific viewer to rebake textures ↵Justin Clark-Casey (justincc)1-3/+12
from the server end. This is not as useful as it sounds, since you can only request rebakes for texture IDs already received. In other words, if the viewer has never sent the server this information (which happens quite often) then it will have no effect. Nonetheless, this is useful for diagnostic/debugging purposes.
2012-01-04Separate out rebake request code from cache validation code AvatarFactoryModule.Justin Clark-Casey (justincc)1-31/+41
This allows some logic simplification and allows an external caller to manually request rebakes even if textures are uploaded (future command).
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-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-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.
2011-10-19Moved HaveNeighbor utility function from ScenePresence to Scene. Fixed line ↵Dan Lake1-267/+267
endings from previous commit.
2011-10-19Renamed and rearranged AvatarFactoryModule to eliminate redundant lookups of ↵Dan Lake1-321/+295
scene presence by client ID.
2011-10-01minor: remove clutter null check from pass in config to ↵Justin Clark-Casey (justincc)1-8/+5
AvatarFactoryModule.Initialize() This is never null
2011-09-23Fix avatar parameter updating for viewer 3 and maybe 2.Justin Clark-Casey (justincc)1-4/+15
When a slider parameter is changed, the viewer uploads a new shape (or other asset) and the item is updated to point to it. Viewer 1 uploaded the data in the initial request itself, so the asset references was almost always correctly updated. However, viewer 3/2 always uploads data in a subsequent xfer, which exposed a race condition where the viewer would make the item update before the asset had uploaded. This commit shuffles the order of operations to avoid this race, the item is updated with the new asset id instead of the old one while the upload was still taking place. A second race had to be fixed where avatar appearance would also be updated with the old asset id rather than the new one. This was fixed by updating the avatar appearance ids when the appearance was actually saved, rather than when the wearables update was made.
2011-09-17On setting a new avatar appearance, if height hasn't changed then don't set ↵Justin Clark-Casey (justincc)1-1/+3
that same height in ScenePresence. This prevents unnecessary work in the ODE module, though possibly that should be checking against same size sets itself
2011-09-15Write code to create minimum necessary body parts/clothing and avatar ↵Justin Clark-Casey (justincc)1-1/+1
entries to make a newly created user appear as a non-cloud on viewer 2 Viewer 2 no longer contains the default avatar assets (i.e. "Ruth") that would appear if the user had insufficient body part/clothing entries. Instead, avatars always appear as a cloud, which is a very bad experience for out-of-the-box OpenSim. Default is currently off. My intention is to switch it on for standalone shortly. This is not particularly flexible as "Ruth" is hardcoded, but this can change in the future, in co-ordination with the existing RemoteAdmin capabilities. Need to fix creation of suitable entries for users created as estate owners on standalone. Avatars still appear with spooky empty eyes, need to see if we can address this. This commit adds a "Default Iris" to the library (thanks to Eirynne Sieyes from http://opensimulator.org/mantis/view.php?id=1461) which can be used.
2011-08-31refactor: move multiple class to set avatar height into associated ↵Justin Clark-Casey (justincc)1-1/+1
SP.AddToPhysicalScene()
2011-08-30Fix bug in persisting saved appearances for npcsJustin Clark-Casey (justincc)1-8/+40
Assets have to be marked non-local as well as non-temporary to persist. This is now done. Hopefully addresses http://opensimulator.org/mantis/view.php?id=5660
2011-08-12When saving appearance, only save the baked textures, not the other face ↵Justin Clark-Casey (justincc)1-5/+43
textures (which are already stored permanently)
2011-08-09Implement first draft functions for saving and loading NPC appearance from ↵Justin Clark-Casey (justincc)1-23/+64
storage. This works by serializing and deserializing NPC AvatarAppearance to a notecard in the prim inventory and making the required baked textures permanent. By using notecards, we avoid lots of awkward, technical and user-unfriendly issues concerning retaining asset references and creating a new asset type. Notecards also allow different appearances to be swapped and manipulated easily. This also allows stored NPC appearances to work transparently with OARs/IARs since the UUID scan will pick up and store the necessary references from the notecard text. This works in my basic test but is not at all ready for user use or bug reporting yet.
2011-08-01Get osNpcCreate appearance working with avatars that are currently in the scene.Justin Clark-Casey (justincc)1-0/+4
Had to stop using AvatarService for now since it doesn't store baked texture IDs (which is why this was failing). Also failing because cloning appearance was also cloning the AvatarApperance.Owner field, which we weren't then changing. Extended TestCreate() to check this.
2011-07-29When we start the appearance saving thread, make sure we set the culture to ↵Justin Clark-Casey (justincc)1-0/+5
En_US so that a different culture doesn't save values with commas as decimal points, etc. This will hopefully stop giants stalking the grid. See http://opensimulator.org/mantis/view.php?id=5614
2011-07-21When handling SetAppearance packet, always save the appearance; not only if ↵Oren Hurvitz1-5/+5
the texture was changed
2011-07-21Fixed updating avatar appearanceOren Hurvitz1-10/+17
Signed-off-by: root <root@grid00001.t-data.com>
2011-07-15minor: method doc for baked texture uploadingJustin Clark-Casey (justincc)1-1/+2
2011-07-09Add scratch AvatarFactoryModuleTests with one test to do a partial check on ↵Justin Clark-Casey (justincc)1-9/+15
AvatarFactoryModule.SetAppearance() Baked texture set not yet checked, nor persistence of data in avatar service This is a foundation for later npc related tests.
2011-06-29Hack around with the NPC module to get osNpcCreate() partially working again.Justin Clark-Casey (justincc)1-2/+2
This now creates an avatar but appearance is always cloudy. Move doesn't work. Really, creating an NPC should only involve a ScenePresence rather than doing anything with IClientAPI, since an NPC has no viewer to communicate with!
2011-05-07Add module with "appearance show" command.Justin Clark-Casey (justincc)1-3/+3
At the moment, this command just asks the AvatarFactory to perform the existing baked texture check for each avatar in the simulator and returns "OK" or "corrupt". This is for debugging purposes
2011-02-25change some log messages from info to debugJustin Clark-Casey (justincc)1-1/+1
2011-01-25Removed a few more spurious appearance saves. When an avatarMic Bowman1-1/+3
enters a region the attachments module tries to update the appearance with attachments that are already part of the appearance. Just added a check to only save if the attachments weren't there before.
2011-01-19with mic's permission, reduce appearance, baked texture logging verbosity ↵Justin Clark-Casey (justincc)1-3/+3
for now
2010-12-03Various bug fixes for appearance handling: more aggressive reset of textures ↵Mic Bowman1-36/+63
and vparams when appearance is not cached and when wearables change. Send appearance to the viewer with initial data. Cleaned up (and added) debugging.
2010-11-27Refactor appearance and avatar data sending code. Paritioning the routines ↵Mic Bowman1-24/+6
into "one-to-many" and "many-to-one" makes it possible to call the right function on presence creation (both child and root) and when a child agent is promoted to root. This brings the total number of appearance sends down to one or two on login. Cleaned up the avatar update calls in the groups code. Cleaned up some commented and debugging code, and a few formating fixes.
2010-11-18Fixed appearance send for avatars with only default textures. This should ↵Master ScienceSim1-53/+74
fix some of the appearance problems on osgrid. Also added a transaction lock on SetAppearance. This won't prevent concurrent access to Appearance but it will at least make sure each update completes. Signed-off-by: Melanie <melanie@t-data.com>
2010-11-08Formatting cleanup.Jeff Ames1-32/+31
2010-10-30Fix logins and avatar appearance. Contains a Migration. May contain nuts.Melanie1-5/+10
This will cause visual params to be persisted along with worn items. With this, alpha and tattoo laters will be saved. Multiple layers MAY work, but not tested because I don't use Viewer 2.
2010-10-30READ CAREFULLY!!! This is a BROKEN commit. It is UNTESTED and INCOMPLETE.Melanie1-10/+5
It contains a major interface version bump and will NOT work with earlier grid services. This is preliminary work that will lead to layers support. Rest appearance services are commented out completely, they will have to be adapted by someone who actually uses them. Remote admin is working, but has no layers support. There is no layers support in the database. Login likely won't work. You have been warned.