C
C#4mo ago
trainstick

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
trainstick
trainstickOP4mo ago
the code:
jcotton42
jcotton424mo ago
please use $paste instead of attaching
MODiX
MODiX4mo ago
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!
trainstick
trainstickOP4mo ago
alr
trainstick
trainstickOP4mo ago
BlazeBin - jbdswfzrrfae
A tool for sharing your source code with the world!
jcotton42
jcotton424mo ago
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
trainstick
trainstickOP4mo ago
i used google drive but it has a popup
jcotton42
jcotton424mo ago
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?
trainstick
trainstickOP4mo ago
not really
jcotton42
jcotton424mo ago
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
trainstick
trainstickOP4mo ago
itch.io has a launcher?
jcotton42
jcotton424mo ago
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.
trainstick
trainstickOP4mo ago
thanks :D
Want results from more Discord servers?
Add your server