Hi, I would need to create some packages containing ogg files and a json file in a single package file to expand an app "on demand" and easily share those packages between users. Uncompressed tar-like I think should be enough: do you think it's possible with gideros? How?
Thank you
P.S. Here is the updated working project for anyone who may need it
Comments
http://lua-users.org/wiki/CompressionAndArchiving
probably you are better off with zipping.
http://docs.giderosmobile.com/reference/lua/zlib#zlib
the native gideros zip cannot handle multiple files? worst case scenario you can append them after each other and zip that with zlib and put the append-info in front of this file.
Likes: pie, antix, Apollo14
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I actually don't need to do it on the run, it may also take a while since it's something that a user does once per package.
The files I need to merge are ogg and json, if that makes a difference.
I don't think there is much room for compression in ogg files, that's why I thought about uncompressed tar, the goal would be to share those packages easily between users / upload and download them as single files.
Thank you
you need to require json and do something like:
Likes: Apollo14, pie
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: Apollo14, pie
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I think I have some issues with character encoding because in my unpack function I get this error:
Expected value but found invalid token at character 1
I remember this one from 2015 http://giderosmobile.com/forum/discussion/comment/39973/#Comment_39973 but in this case even converting the file as UTF-8 without BOM with notepad++ returns that error.
Do you or anyone else have some ideas about it?
Attached you can find my pack and unpack functions to make your tests if you have some time.
Thank you
I put together a project that should pack a bunch of pngs, please let me know if you spot something strange here.
Thank you
Fragmenter - animated loop machine and IKONOMIKON - the memory game
working project attached on the first post.
Likes: keszegh, Apollo14, antix