Skip to content

T160. (1.6.0 and later) TAR archives suport

Dmitry Mamontov edited this page Aug 21, 2016 · 8 revisions

Since 1.6.0 engine supports loading assets from TAR archives.

Now, you can load textures, texture atlases and animations from TAR archives. Storing fonts and sounds into archives is not supported. Note, that to work with archives, engine requires them to NOT contain any other stuff, other than files (directories are not allowed).

To load asset from archive, you should specify path to it as:

template

Examples of files, that use loading files from archives:

[ { "type" : "sad::animations::File", "filename": "tar7z:24://tests/resources/data.tar/test.json" } ]

And an example for texture atlas file:

[ { "type" : "sad::resource::TextureAtlasFile", "filename": "tar7z:24://tests/resources/data.tar/srgba-atlas.json" } ]