[Opensim-users] Create a user with a specific UUID?

Justin Clark-Casey jjustincc at googlemail.com
Fri May 6 00:34:47 UTC 2011


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.

-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc



More information about the Opensim-users mailing list