[Opensim-dev] IAR tar format

ssm2017 ssm2017 at gmail.com
Mon Jan 2 10:53:52 UTC 2023


hello and happy new year !!!

question :
what is the tar command line options/parameters to tar an iar ?
i am not a C# dev so is there a way to create an iar archive outside of a
simulator console ? (cli ? php ? python ?)

Explanation :
i run a standalone simulator from scratch with Test User.
i create an iar archive for this user with "save iar Test User / test
test_user.iar".
using my wsl2 command line, i extract the file with : tar -zxf test_user.iar
i can access the files and folders.
without touching nothing, i compress again to get the iar again with : tar
-zcf test_user.iar *
then, when using the simulator command "load iar -m Test User / test
test_user.iar", it is answering : "Archive load for Test User failed - The
IAR you are trying to load does not list all inventory/ before assets/".

when reading the opensimulator source code, i can see that the tar is using
tar format v7 with a hack to use long filenames.

when i am trying "tar --format=v7 -zcf ....." it complains about too long
file name.

i could see that the issue is not coming from gzip but from the tar itself.

here is the 7zip information between the 2 tar files after gzip
uncompression :
------------ORIGINAL FROM SAVE IAR------------:
Size: 348 406
Packed Size: 354 816
Folders: 21
Files: 25
------------------------:
Path: F:\iars\temp\original\test_user.tar
Type: tar
Warnings: Headers Error
Physical Size: 392 704
Headers Size: 37 888
Code Page: UTF-8
Characteristics: LongName ASCII
------------------------:
------------UNTAR then TAR------------:
Size: 348 406
Packed Size: 354 816
Folders: 21
Files: 25
------------------------:
Path: F:\iars\temp\modified\test_user.tar
Type: tar
Physical Size: 399 360
Headers Size: 44 544
Code Page: UTF-8
Characteristics: GNU LongName ASCII
------------------------:
------------------------:


More information about the Opensim-dev mailing list