IAR Format 0.2

From OpenSimulator

Jump to: navigation, search

*** IMPORTANT!!! The information on this page was superseded by IAR Format 0.3 ***



The only change from 0.1 is that a 0.2 IAR must start with the control file (archive.xml).


An inventory archive is a gzipped tar file (tar.gz) with the extension .iar. This can be extracted and created with standard tools (7-zip on Windows). The structure of the archive is as follows



This is the archive control file. At the moment it contains only a major and minor version number, to allow compatibility with future format changes.


This directory contains all the assets in the archive. Each filename has the following format

<uuid>_<asset type>.<asset extension>

The uuid section must always be present and form a valid uuid - it is used directly as the uuid for that asset. The asset type and asset extension are used to identify the type of asset and the asset extension allows the asset to be associated with different editors on platforms such as Windows. For instance, a script will always have the asset type and extension script.lsl. A full list of asset types and extensions can be found in the file


in the OpenSimulator distribution.


This folder contains the inventory structure for the archive.

Each folder has the format

<folder name>__<folder id>

For example

folder A__52bfa79f-d7fd-4140-9a54-e33c0e235b87

This is to allow the archiving of folders with identical names. The actual IDs are not important, they exist here only to distinguish identically named folders contained in the same parent folder. The IDs are not used when the archive is loaded.

Items in inventory folders have the format

<item name>__<item id>.xml

For example

OpenSimulator ball__b9608a97-6766-43fc-ad69-d9fecbc7d560.xml

Again, the IDs serve only to distinguish identically named items. They are not used when the archive is loaded.

Item XML format

Here's an example of the format used to save items.

<?xml version="1.0" encoding="utf-16"?>
  <CreatorUUID>ospa:n=Justin Clark-Casey</CreatorUUID>
  <Description />

The CreatorUUID is in OpenSimulator Profile Anchor (OSPA) format. At the moment, this is simply


When the archive is loaded, if an existing user name matches that contained in the CreatorUUID OSPA, then the item creator will be assigned to that user. If no name matches then the registered creator will revert to the user that loaded the item.

TODO: explain other elements, ideally accompanied by an XML Schema

Personal tools
About This Wiki