UNAVI Docs unavi.xyz
Build · Formats

.hsdz: compiled package

An .hsdz file is a compiled .hsda document, packed into one binary file. It is what gets loaded into a space.

The format may change between releases.

Build

The hsd commands on this page run from the unavi workspace.

hsd build --input <file.hsda> --out-dir <dir>

The output is named after the source's folder, so unavi-spawner/asset.hsda builds unavi_spawner.hsdz.

Building does the following:

A package carries everything it needs, including meshes, images, and scripts. Once loaded, that content is stored by hash, so the same mesh is only stored once.

Limits

A package is refused if it breaks any of these limits.

LimitValue
One entry32 MiB
Whole package256 MiB
Documents in one package256

Inspect

hsd dump prints a package as .hsda-style RON. Large content like scripts and meshes shows as a byte count.

hsd dump <file.hsdz>

A dump is for reading only. It can't be built again, since compiling replaced every path with its content.