Naali Scene Tool (Backup Remote)

0 views
Skip to first unread message

CecilBergwin

unread,
Jan 25, 2011, 8:55:58 PM1/25/11
to realXtend
Hey folks, after using the Naali Scene Tool, all worked fine, backing
up the *.xml and also the contents and directory structure for the
selected items I chose in my scene.

However, when trying this from a "Remote PC" with full privileges set
for the user, all what seems to backup is the *.xml, with no contents
or directory structure.

Any ideas ?

Cheers
Cecil

CecilBergwin

unread,
Jan 31, 2011, 7:48:35 PM1/31/11
to realXtend
Hey folks, sry to top this but at the moment really need a "Backup"
and when I do this from my remote (client login with admin rights) all
I get is an xml file with no contents, is there a "Console command ? I
can use" sry if I have totally missed the obvious.

Toni Alatalo

unread,
Feb 1, 2011, 4:59:59 AM2/1/11
to real...@googlegroups.com

Did you select the entities you wan't to save?

Apparently the GUI works so that you must first click that one button to start selecting what you wanna save.

I tested this now on world.realxtend.org:9000 and it worked with 0.4.0 release.

I don't know if there's a button for selecting all entities, I didn't find that .. seems like it'd need it, dunno if Jonne had some reason to not add it if it's not there.

BTW: if you want to do full backups of your own servers, with Opensim, I'd just take copies of the databases. This client side 'backup tool' is more needed when you want to copy (a part of) a scene from one server to another. Or migrate content from an ancient server where the databases are not compatible anymore (or from sqlite to mysql, or vice versa, perhaps).

~Toni

CecilBergwin

unread,
Feb 1, 2011, 10:01:54 AM2/1/11
to realXtend
When I export, all I get is the *.xml file, no other data is there at
all, also "selecting all" ? that would be nice as my scenes are rammed
packed.

:(

Jonne Nauha

unread,
Feb 1, 2011, 12:21:29 PM2/1/11
to real...@googlegroups.com
Selecting individual objects and exporting them will not copy the assets along side with it. This will only generate the xml. For the xml file to work on other server instances all the mesh etc references need to URLs and the assets in place there (of course they are if you see the content in front of you when doing this). If they are UUID the xml will only work on the same server that you did the export, as the UUID based assets will not be in the opensim assets database on another instance (assuming it does not use the same databases, if the new instance uses same db it should work too)

There is another tool "Backup scene" or something at the bottom of the main tool ui. This will ask you the base url for you export, and  will replace all asset references in the scene.xml to use your base url. I tried to write some instruction messages to the widget itself, it should be quite easy to use. Then you need to push the assets to your given base url etc.

Exporting a set of objects by selection WITH assets is possible also. At the time there was no need for that. If you know any c++ and read the code a bit you will be able to do it. Just see how the search and replace is done in the whole scene export. The function actually might already take a list of Scene::Entity* and do it automatically, at least this can be done with minor changes or a a override to the func with the list being a parameter.

Hope that helps. I wrote the code but cannot remember all the details as its a long time ago :)

PS. You can get the assets from the naali asset cache by hand. Textures are not preserved in the original form, there is extra data. But anything in assets as in mesh/skeleton/material files should be intact. You could in theory just copy the files from there and replace the refs in the xml by hand. Cache items are hashed from the filename, so you need to do some detective work to figure our what ref maps to waht id. The code is there so you can have a look. Simple python script will rename the cache to the original names (just replace :, / etc chars with eg _ so windows dont lose its shit when you do it :)

Best regards,
Jonne Nauha
realXtend developer

http://www.realxtend.org/
http://www.evocativi.com/


CecilBergwin

unread,
Feb 1, 2011, 1:00:31 PM2/1/11
to realXtend
Thx very much for the information, will surely help :).
Reply all
Reply to author
Forward
0 new messages