This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
[QUESTION] unzip archive
Started by Aptik, 11 April 2013 - 10:51 PMPosted 12 April 2013 - 12:51 AM
Is there a method to unzip/untar archive using CraftOS ?
Posted 12 April 2013 - 12:58 AM
It's possible to make an archiving/packaging system, but compression is another issue.
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.
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 .-.
just set up a php server with a zip archive .-.
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.
Just offload the process to a server.
Posted 12 April 2013 - 08:34 AM
Posted 12 April 2013 - 07:15 PM
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.why code it in cc? that would take FOREVER even with minimial yeilding
just set up a php server with a zip archive .-.
Posted 12 April 2013 - 07:21 PM
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/>But they can still copy/paste binary code line by line into some file.
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'
Posted 12 April 2013 - 07:41 PM
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.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/>But they can still copy/paste binary code line by line into some file.
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'
Posted 12 April 2013 - 07:52 PM
I never see that happening.It will be awesome when some of that libs will be included to CraftOS by default.
Posted 13 April 2013 - 12:17 AM
Anyway I open an suggestion for this.