[Opensim-users] default avatar appearance

Chris Hart Chris at codetorque.co.uk
Wed Mar 11 21:50:15 UTC 2009


In a nutshell...

Basically, we currently have six template users that I've dressed up in some non-Ruth clothing, though each avatar has all six outfits available, plus some other stuff we make available to the Gridizens. We can change their appearance every now and then to give a little variety to our grid, and it doesn't take a bundle of effort to do that (aside from making the clothing, which is a long arduous process, but I digress). The principle is to essentially clone the inventory of the selected avatar and pre-populate the new user's inventory, and set the wearables so they arrive wearing the clothing they chose.

I knew what pieces of data in the database would need replicating, creating, etc. but when I came to writing the code I ended up thinking "I just need an object to represent an appearance" or "I just need an object to represent an inventory item" so after about 2 minutes of thinking how best to proceed, I came to the conclusion that I was reinventing the wheel. But that this was not necessarily bad for a proof of concept that had a usable outcome.

While the current code I have on our grid is MSSQL-specific, I achieved the goal by copying and pasting some data methods straight from the MSSQL opensim code, and referencing OpenSim.Framework and OpenMetaverse to get the types I needed. I don't think it would be hard to take that and make a similar system work for others. The goal being that you can clone the inventory of any user you specify. It's not something everyone would want, and the mechanism for choosing a template avatar - well, that would be up for discussion. I have written an ASP.NET application for the purpose and tie the avatar on screen to a uuid that I have obtained from OpenSim. I imagine the PHP-lovers out there could have some fun with a similar system for WI. The end result is here: http://reactiongrid.com/register.aspx 

What I'm not sure about is how best to tackle making this available to others, but given that the methods for getting items from inventory, creating items, storing items are all available in one form or another in core code, it's a case of plugging in somehow and calling the appropriate methods in the right order to do the cloning process. 

Open to ideas, comments, etc. :)


-----Original Message-----
From: opensim-users-bounces at lists.berlios.de [mailto:opensim-users-bounces at lists.berlios.de] On Behalf Of Justin Clark-Casey
Sent: 11 March 2009 20:39
To: opensim-users at lists.berlios.de
Subject: Re: [Opensim-users] default avatar appearance

This would be tres tres cool to see, and definitely worth of being a core module imo.

Dirk Krause wrote:
> Chris Hart over at ReactionGrid achieved that, and she'll hopefully blog how to do that.
> 
>>From twitter (read from bottom up):
> 
> dirkk at dstrawberrygirl
>   wow! that would be mucho appreciato!
> 
> dstrawberrygirl at dirkk
>   since a lot of the code was copy/paste and used base OS types, hope eventually
>   to make generic module for all OS folks if I have time
> 
> dirkk at dstrawberrygirl
>   *gulp* I see. I thought it was more like 'do_everything_ as_I_wish = true;'
> 
> dstrawberrygirl at dirkk
>   make base avatars, write code to replicate inventory for new avatars,
>   creating items and folders as necessary. Lots of code! :)
> 
> dirkk at dstrawberrygirl
>   very cool! care to explain how you achieved that?
> 
> dstrawberrygirl
>   Farewell to Ruth'd avatars on
>   ReactionGrid http://reactiongrid.com/default/BlogZone/ninjablog.aspx
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: opensim-users-bounces at lists.berlios.de im Auftrag von Mic Bowman
> Gesendet: Mi 11.03.2009 21:04
> An: opensim-users at lists.berlios.de
> Betreff: [Opensim-users] default avatar appearance
>  
> Currently (well... the last time I checked forge for a new version was
> about a month ago), a new user created through opensimwi is the
> default ruth and the appearance & wearables are not modifiable. Is
> there an easy way to create a default, modifiable appearance? Or,
> better yet, be able to select an appearance when a new account is
> created? Do any of the other control services provide this capability?
> 
> --mic
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users


-- 
justincc
Justin Clark-Casey
http://justincc.wordpress.com
_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-users

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.10/1995 - Release Date: 03/11/09 08:28:00



More information about the Opensim-users mailing list