temportalflux / TemportalEngine

GNU General Public License v3.0
4 stars 1 forks source link

Pak file asset distribution #36

Closed temportalflux closed 2 years ago

temportalflux commented 3 years ago

When building a module (CrystalSphinx or addon module), assets should be compressed into a zip file and that zip file is a .pak file binary. That pak/zip is what is read by active game runs to browse assets.

C++ Zip file creation & reading libraries:

temportalflux commented 3 years ago

https://github.com/libarchive/libarchive/wiki/Examples

temportalflux commented 3 years ago

Replace the assets and Modules folders in the output game directory with packages. Each directory in packages is the name of a package/module (Default for the core assets). Each package directory contains optional items: