Can not able to add more then one file in Zip.

Hi ,

I can not able to add more then one file in Zip.

Anyone have solution for this?

Thanks,

Can you post some code and give us a little more context about what you’re trying to do?

Can you post some code and give us a little more context about what you’re trying to do?

This is still a problem over a year later.

(Using exact code from docs.)

Hey guys.  I had no problem adding multiple files to a zip file, but I did run into a problem which was initially caused by my misunderstanding of the feature.

The zip lib/utility takes some time to finish zipping, so if you try to zip, then send the zip file right away you’ll get a corrupted or partially filled zip file.  You need to wait for the callback to fire (and maybe a few frames after that) before you do something with the zip file.

Let me dig through my game that uses this (when I get back) to the office and I’ll see if I can give you an alternate example.

Having said that, Rob is completely right.  Show us what you’re doing so we help.  With no code we will have trouble giving focused feedback/assistance.

We need a bug report on this.  Bug reports **MUST** contain a sample app that demonstrates the problem.  This has to include the config.lua and build.settings needed to make it work as well as all assets (images, etc.) being referenced.  It needs to be the minimal project that shows the issue.  Too complex code, 3rd party libraries, etc. will get rejected as we can’t debug your whole app for you.

When you get the email back from the bug tracker, please post the case # to this thread as a reference.

Rob

This is still a problem over a year later.

(Using exact code from docs.)

Hey guys.  I had no problem adding multiple files to a zip file, but I did run into a problem which was initially caused by my misunderstanding of the feature.

The zip lib/utility takes some time to finish zipping, so if you try to zip, then send the zip file right away you’ll get a corrupted or partially filled zip file.  You need to wait for the callback to fire (and maybe a few frames after that) before you do something with the zip file.

Let me dig through my game that uses this (when I get back) to the office and I’ll see if I can give you an alternate example.

Having said that, Rob is completely right.  Show us what you’re doing so we help.  With no code we will have trouble giving focused feedback/assistance.

We need a bug report on this.  Bug reports **MUST** contain a sample app that demonstrates the problem.  This has to include the config.lua and build.settings needed to make it work as well as all assets (images, etc.) being referenced.  It needs to be the minimal project that shows the issue.  Too complex code, 3rd party libraries, etc. will get rejected as we can’t debug your whole app for you.

When you get the email back from the bug tracker, please post the case # to this thread as a reference.

Rob