Jump to content

[SOLVED] Using archive to pack data folder content


photo

Recommended Posts

Hello,
I'm trying to pack everything that I have in my build\data folder into one archive. I've been using ZIP and UNG but none of them seems to work for me, I'm getting always this error:
image.png.7adb5117ea5a7b8bbd0308b1a67ece80.png

In given directory I have one archive which contains all files from data folder.

Is this possible or am I missing something? Documentation states that archives are transparent to Unigine file system.
Can I somehow pack this into one archive?

Link to comment
4 hours ago, morbid said:

You need to store ung file inside the data folder. How exactly you're trying to load ung/zip file?

Thanks.

I had copied ung_x64.exe into my build folder and then in PowerShell I used it this way:

.\ung_x64.exe -o data.ung -c none data

This produced me data.ung file. Is this okay or should I do it some other way?

2 hours ago, silent said:

Please also make sure that you don't have ung inside ung (nested archives).

Okay, this might be the problem, since inside data folder there are already existing ung files (core.ung, scripts.ung).
I will try to pack everything except already existing ung files. -x parameter should help me with this.

Edited by arzezniczak
Link to comment

Problem solved!

From inside data folder I called this:

.\ung_x64.exe -o data.ung -c none -x core.ung -x scripts.ung -x ung_x64.exe .\

And it works! So now I have 3 ung files inside data folder: core.ung, scripts.ung and data.ung.

Thank you for support, it was very helpful!

Edited by arzezniczak
  • Like 1
Link to comment
  • silent changed the title to [SOLVED] Using archive to pack data folder content
×
×
  • Create New...