This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Aptik's profile picture

[QUESTION] unzip archive

Started by Aptik, 11 April 2013 - 10:51 PM
Aptik #1
Posted 12 April 2013 - 12:51 AM
Is there a method to unzip/untar archive using CraftOS ?
Kingdaro #2
Posted 12 April 2013 - 12:58 AM
It's possible to make an archiving/packaging system, but compression is another issue.
theoriginalbit #3
Posted 12 April 2013 - 01:05 AM
To unzip/untar a REAL compressed file… no, and have fun coding it, you will need to read through a lot of standards to do it. will most likely be a lot of bitwise operations and lots of binary manipulation.
PixelToast #4
Posted 12 April 2013 - 08:06 AM
why code it in cc? that would take FOREVER even with minimial yeilding
just set up a php server with a zip archive .-.
zekesonxx #5
Posted 12 April 2013 - 08:17 AM
It would take less time to mine the bitcoins needed to run a server to unzip it for you for a year than it would be to write [un]ziping in ComputerCraft Lua.

Just offload the process to a server.
PixelToast #6
Posted 12 April 2013 - 08:34 AM
i just said that ._______.
someone set up this, might help
http://www.computerc...dpost__p__86712
Aptik #7
Posted 12 April 2013 - 07:15 PM
why code it in cc? that would take FOREVER even with minimial yeilding
just set up a php server with a zip archive .-.
For those minecrafters who not owns a server and HTTP API turned off will be a bit hard to download third-party program. But they can still copy/paste binary code line by line into some file. But now need to unzip(decode) this file without connect to php server.
theoriginalbit #8
Posted 12 April 2013 - 07:21 PM
But they can still copy/paste binary code line by line into some file.
Wow! They might be there for a while if they are copying a program's binary line by line (depending on the size of the program) :P/>
If you really are insistent on making the program I suggest you read through this and this and make sure to read all the external links, 'see also's and the 'references'
Aptik #9
Posted 12 April 2013 - 07:41 PM
But they can still copy/paste binary code line by line into some file.
Wow! They might be there for a while if they are copying a program's binary line by line (depending on the size of the program) :P/>
If you really are insistent on making the program I suggest you read through this and this and make sure to read all the external links, 'see also's and the 'references'
Yes I know it is hard to do (will take a long time). But there are ready to use libs like LArc. It will be awesome when some of that libs will be included to CraftOS by default.
theoriginalbit #10
Posted 12 April 2013 - 07:52 PM
It will be awesome when some of that libs will be included to CraftOS by default.
I never see that happening.
Aptik #11
Posted 13 April 2013 - 12:17 AM
Anyway I open an suggestion for this.