Author Topic: Zip/unzip .zip files?  (Read 1126 times)

Yeah, subject is all there is to this.
Everyone I've asked said they don't know of one, so I thought I'd do a blanket ask and ask everyone in coding help.

Can you create .zip files from ingame in any way?

Only from downloading.

Only from downloading.
I've tried the blockOS autoupdater script, and a script by Greek2me, and neither downloads .zip files without corrupting them. Any ideas?

Zip files: no.
Unzip files: yes. Put the zip file in a temp. directory and reload the resource manager, and then the files should be able to be accessed as a folder.

If you really need zip file functionality, you're going to need a proxy to an application.

I've tried the blockOS autoupdater script, and a script by Greek2me, and neither downloads .zip files without corrupting them. Any ideas?
Post one.

reload the resource manager
What is this?
setModPaths(getModPaths());?

I attached both combined into one file.
It should be pretty obvious where they break apart.

The setModPaths... is a way of loading all zips so the files inside can be accessed.

the createDownloaderConnection function in BlockOS is used as follows:
createDownloaderConnection(%pathOnServer, %serverAddress, %savePath, %requiresRestart*)
*Purely used to prompt a restart after BlockOS updates

an example would be:
if you want to download the file: http://download.me/file.zip to /config/asdf.zip, you would use:
createDownloaderConnection("file.zip", "download.me:80", "/config/asdf.zip", false)

CreateDownloaderConnection is a old function I made.

CreateDownloaderConnection is a old function I made.

and frankly needs rewriting.

The setModPaths... is a way of loading all zips so the files inside can be accessed.

the createDownloaderConnection function in BlockOS is used as follows:
createDownloaderConnection(%pathOnServer, %serverAddress, %savePath, %requiresRestart*)
*Purely used to prompt a restart after BlockOS updates

an example would be:
if you want to download the file: http://download.me/file.zip to /config/asdf.zip, you would use:
createDownloaderConnection("file.zip", "download.me:80", "/config/asdf.zip", false)
setmodpath... - Yes, I knew it did this, what is he referring to with reloading resource manager?

and yes, I knew how to use the downloader, it just corrupted .zip files when used.
Could it be that I was trying to download from dropbox instead of a simpler website?

setmodpath... - Yes, I knew it did this, what is he referring to with reloading resource manager?

and yes, I knew how to use the downloader, it just corrupted .zip files when used.
Could it be that I was trying to download from dropbox instead of a simpler website?
PM Me your code,you probably have faulty code.

That doesn't look like my AU code at all. Anyway, it should work from dropbox as long as it's a direct link to the file.

PM Me your code,you probably have faulty code.
I attached it to a post like 5 posts ago.
That doesn't look like my AU code at all. Anyway, it should work from dropbox as long as it's a direct link to the file.
You posted it in Ipquarx's.. uhh.. topic on a similar subject. Not entirely sure what he was asking, something about logging into certain places.