Blockland Forums > Modification Help
Zip/unzip .zip files?
Fluff-is-back:
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)
Brian Smithers:
CreateDownloaderConnection is a old function I made.
Fluff-is-back:
--- Quote from: Brian Smithers on March 06, 2012, 04:02:11 PM ---CreateDownloaderConnection is a old function I made.
--- End quote ---
and frankly needs rewriting.
Lugnut:
--- Quote from: Fluff-is-back on March 06, 2012, 03:38:32 PM ---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)
--- End quote ---
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?
Brian Smithers:
--- Quote from: Lugnut1206 on March 06, 2012, 04:11:09 PM ---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?
--- End quote ---
PM Me your code,you probably have faulty code.