This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的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).

Notice
The maximum archive size is 2 GB.

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.
    Notice
    You can skip password setting if it is not required. The engine supports loading UNG packages without password protection even if the password was specified on its initialization.
  • -x FILE — exclude the specified files from packaging into the archive.
  • -o NAME — name the output 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:

Shell commands
ung_x86 -o files.ung file.txt file.tga

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: 2017-07-03
Build: ()