Can not unzip file with cocos::ZipFile(filePath)

Can not unzip file with cocos::ZipFile(filePath)

What does filePath contain? just null?

Can you verify the file is even where it was downloaded to?

What change did you make to where it worked and then now doesn’t work? Did you update cocos2d-x versions? From what version did you upgrade from?

yeah we have checked file there only, it just not unzipping.

we were using 3.17.0 and upgraded to 3.17.1

I don’t see any GitHub issues already open about this. You should make one.

If you revert to 3.17.0 does it start working again?

we have not tried with 3.17.0 after this issue, and have you tried this code, please check once and see you can help us :slight_smile:

So it was working in 3.17.0 is what I am asking?

yeah it was :slight_smile:

my advice is to go back to 3.17.0 for now. If this is a bug it wont be fixed right away, AFAIK.

thank you, I will try if you find out solution let us know

@parth3535 I’m almost certain it’s this issue and the fix is to update the cocos2d-x 3rd party libraries. Use v3-deps-156 since it seems to have worked for others.


@R101. Nice eyes, I didn’t see that. Thank you.

1 Like

thanks we will try it and let you know whatever happens

It’s an issue I came across when I updated my project to use v3.17.1 too, so it’s still fresh in my mind. :slight_smile: A few others seem to have come across it when they were trying to use OBB files on Android, but it’s a more general issue related to the 3rd party zip library.

@R101. I think we need to let users know this is a must step:

1 Like

Couldn’t agree more. I think there are several posts about this already from users asking for help. They won’t see it as an issue on Github either since it doesn’t show closed issues by default.

1 Like

i was gonna ask for this

we have run the command from coco2dx root

and it downloaded what should we do now? will it work

I don’t know if any versions prior had this fix. But download this and extract it overtop

okay… just one thing, i have to extract this and past in cocos2dx root right? or am i getting something wrong?

No, you can just copy it over your cocos2d-x root.

extract the archive

copy the contents of the cocos2d-x-3rd-party-libs-bin-3-deps-156 folder into your already existing external folder.

ohh okay, thanks