[Opensim-users] XML2 and OAR

Justin Clark-Casey jjustincc at googlemail.com
Mon Apr 20 15:35:31 UTC 2009


Tom Willans wrote:
> Thanks,
> 
> What has puzzle me is that I thought I could take the uuid in a  
> script name, look it up in the object xml file and locate it's real  
> name. However only a small number of the uuids match? Once the oar  
> file is loaded it works wonderfully.  Could you point me in the right  
> direction for the file that manipulates them - I can check out the  
> details there.

Sure.  Most of the archive module lives in the OpenSim.Region.CoreModules assembly at World/Archiver. 
ArchiveWriteRequestPreparation.cs kicks off retrieval of all necessary assets when saving an oar, and 
ArchiveReadRequest.cs handles restoring assets and objects when loading an OAR.

> 
> Tom
> 
> On 20 Apr 2009, at 16:04, Justin Clark-Casey wrote:
> 
>> Tom Willans wrote:
>>> Hi Can you clarify the XML2 format for me as I cannot find any
>>> documentation. I am prepared for a "doh" moment!
>>>
>>> My understanding was that the assets in the OAR file have their  
>>> UUID as
>>> part of the filename. The XML2 file in the objects folder should  
>>> contain
>>> GUID that match these UUIDS, should the object contain that asset.
>>> However a casual look seems to be that these asset uuids are not  
>>> in the
>>> xml file I would expect.
>> Each item in an 'XML2' file will have XML within  
>> <TaskInventoryItem>.  The asset uuid for that item will be in the
>> <AssetID> field.
>>
>> The XML2 isn't well documented (or even documented at all, I  
>> suspect).  It's quite an ancient format and I didn't make
>> any effort to document it for OARs since it pre-existed OARs and  
>> I'm hoping that a more suitable format would come
>> along.  However, as for so many things that hasn't happened yet.
>>
>> -- 
>> 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
> 
> _______________________________________________
> 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



More information about the Opensim-users mailing list