This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Archiver

Archiver is a tool for data archiving, which handles UNG files. It implements encrypting to avoid unauthorized data access.
UNG files are transparent to the engine, and their content is handled as not packed. (For more details about file packing, see File System).

To invoke archiver, run ung_x86.exe (in Windows) or ung_x86 (in Linux) from a command-line console (the 64-bit version has x64 postfix).

Command Line Options

Archiver recognizes the following command-line options:

  • -p PASSWORD — set a password. It should be the same password as passed on engine initialization on the C++ side.
  • -x FILE — exclude the specified files from packaging into the archive.
  • -o NAME — name the output archive.
  • -d DIRECTORY — append a directory to the archive.
  • -e NAME — extract files from the archive.
  • -i NAME — print archive statistics.

Usage Examples

The following creates an archive named files.ung that contains files file.txt and file.tga as well as directories textures and meshes:

Shell commands
ung_x86 -o files.ung file.txt file.tga -d textures -d meshes

The following extracts all files from the archive created above:

Shell commands
ung_x86 -e files.ung

The following prints statistics related to the archive:

Shell commands
ung_x86 -i files.ung
Last update: 03.07.2017
Build: ()