OAR Format 0.8

From OpenSimulator
Jump to navigationJump to search

What is the OAR 0.8 format?


This format is currently in the development version of OpenSimulator only. Please do not rely on it as the details are subject to change without notice.

OAR format 0.8 is identical to 0.7 except for two changes. First, the region's Telehub (if it exists) is now saved. Second, some OARs with format 0.8 include a <region_info> element in archive.xml.


At the present time, a region archive is a gzipped tar file (tar.gz) in the the original unix tar format (not USTAR). This can be extracted and created with standard tools (7-zip on Windows). The structure of the archive is as follows


The file archive.xml must come first. The other directories can come in any order.


This is the archive control file. It contains a major and minor version number, to allow compatibility with future format changes. It also contains an <assets_included> element which can have the contents True or False. If the string is True, then the OAR was saved with assets included. If the switch is False, then the OAR was saved with the --noassets option.

Here's an example of an existing archive.xml file

<?xml version="1.0" encoding="utf-16"?>
<archive major_version="0" minor_version="8">


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.

In the future, the format of these files will be described in Asset Formats.


This directory contains all the parcels in the region. Information for each parcel is stored in a separate file in XML format. Each filename has the form:


where uuid is the uuid of the parcel.


Each individual file in here is an object in the region (where an object [linkset] can be composed of many prims). The file format used is OpenSim's XML2 format. Each filename has the following structure by default

<Object name>_<x>-<y>-<z>__<uuid>.xml

Unlike asset filenames, any component of this name can be changed without affecting any attributes of the object itself - this information is taken from the xml instead. Indeed, this file can have any name - there is no need for any of the sections to be present. An example object file name is


The actual format is described (currently very sketchily) in Asset Formats.


This contains the region settings information for the region in XML format. The filename will be the same as the region name. For example,

OpenSimulator Test.xml

See an example of an XML region settings file below.


This contains the terrain file for the region, stored in RAW format. The filename must end with .r32. For example,

OpenSimulator Test.r32

Region Settings Example

<?xml version="1.0" encoding="utf-16"?>

See Also