System.IO.InvalidDataException: 'End of Central Directory record could not be found.'
im trying to make a game launcher for my unity game but when downloading the game from dropbox and trying to extract it, the error in the title pops up
13 Replies
the code:
please use $paste instead of attaching
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
alr
BlazeBin - jbdswfzrrfae
A tool for sharing your source code with the world!
in any case, it sounds like either the zip is corrupted, or dropbox is maybe asking for a login or something
really, using dropbox as a cdn for your game is a bad idea
i used google drive but it has a popup
also, you really should not be using webclient, instead you should be use httpclient and async/await
might be the same thing on dropbox
in either case, it's probably a TOS violation to use dropbox as a cdn
is your game open source?
not really
well, then i would suggest uploading to somewhere like itch.io
i believe their launcher can even handle updating your game
otherwise, you'll want to look into a blob storage solution like amazon s3 or backblaze b2, #devops-and-tools can give more pointers
itch.io has a launcher?
itch.io
Download App
itch, the best way to download and play indie games. Download free games and manage your library from your desktop. Now available for Windows, macOS and Linux.
thanks :D