[Opensim-users] Create a user with a specific UUID?
Chris
mewtwo0641 at cox.net
Fri May 6 04:05:45 UTC 2011
On 5/5/2011 7:34 PM, Justin Clark-Casey wrote:
> On 05/05/11 01:37, Chris wrote:
>> Hi all. I was wondering if there is anyway to create a new user with
>> a specific UUID; aside from manually editing the
>> tables in MySQL after creating said users?
>>
>> I am preparing to upgrade to 0.7.1 shortly and I am starting over
>> with a new database (will be restoring my data from
>> OARs and IARs) but I would like to keep the old UUIDs from my
>> previous server (for scripting reasons that rely on
>> hardcoded avatar keys... Yes I know that this isn't the best way to
>> script =) )
>>
>> If there is a way to do this please let me know. I would greatly
>> appreciate it!
>
> Unfortunately, this isn't currently possible.
>
> In principle, it wouldn't be too hard to implement. The "create user"
> command could get an option --id switch or similar and pass that uuid
> down to the UserAccountService.CreateUser() functions. At the moment,
> the UserAccount object creates a random uuid within itself, but this
> could easily be replaced before account creation.
>
> There's already an "NDesk.Options" package that can parse command line
> options that I'm using in the archiver core modules.
>
Ah okay. I was just wondering. It's not really a big deal since i've
only got a very small handful of scripts that I wrote with hardcoded
avatar keys; but I was just curious =) Would be a useful function
though I believe.
More information about the Opensim-users
mailing list