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

AmazeFile — CC Cloud File Storage(WIKI Released!)

Started by iLikePHP, 06 March 2014 - 01:27 AM
iLikePHP #1
Posted 06 March 2014 - 02:27 AM
Hello everyone.
As I've been learning ComputerCraft, I've learnt a few things and decided to make you guys the best way of storing your files in a game, all on one computer; both public and private.
So, here we go… let me introduce it.
My program is called AmazeFile, it's a free, and simple storage server for your world. It supports private files, and global files.
Here's what it currently supports:
  • Writing Files [ Private ] [ Global ]
  • Reading Files [ Private ] [ Global ]
  • Deleting Files [ Private ] [ Global ]
  • Making Directories [ Private ]
  • Listing Directories [ Private ] [ Global ]
  • Specifying Initial Save Directory [ Server ]
  • Easy to Use API [ Lua ]
Getting Started


Getting started with AmazeFile is easy! But there's a little setup that needs to be done first. Follow the following steps:


- Place a computer and type "edit startup"

- Enter "shell.run('/path/to/your/server {REDNET MODEM} {INITIAL PATH}');" /!\ Initial path is where your files will be saved. /!\

- Press CTRL, S and CTRL, E

Once you have done that, you're ready to download. You can download from the following link:



Once downloaded, make a floppy disk, move all the files from the zip archive to your floppy disk's folder on your real computer. When you have done this, and you're sure it's correct, insert the floppy into a floppy drive and navigate to it on your computer. Once in the directory, type "ls" to see if the files are there.

If you have done it correctly, you'll end up with the following folder structure:


- Program

- server

- API

- af


Move the file called "server" to the path you specified in your shell.run(); command(this is not the initial path).

When this is done, you must reboot. Upon startup, you should see something similar to:

AmazeFile - CC Cloud Storage by iLikePHP

If so, you've done the setup correctly.


Using the API

Using the API is simple, as it's supposed to be.

CD to the directory in which you have "af" saved. Then type "edit af".

All functions without "local" in front of them are the ones you can use. The following code shows you how to initialise the API:


os.loadAPI("/path/to/fa");
af.config({server id}, {rednet modem});


If you need any help at all, or would like to report a bug, please reply to this post and I'll get back to you ASAP.
Edited on 08 March 2014 - 11:10 AM
iLikePHP #2
Posted 06 March 2014 - 03:33 AM
Update released!
I fixed the following issue(s):
• File write names were not working properly.
iLikePHP #3
Posted 07 March 2014 - 04:03 PM
If you have ideas, share them with me!
I'm going to be working like a beast over the weekend!
apemanzilla #4
Posted 07 March 2014 - 10:41 PM
Not bad! A bit tricky to use for clients, though. Maybe a command-line/GUI based client to browse the files?
iLikePHP #5
Posted 07 March 2014 - 10:42 PM
I'm making a wiki.
iLikePHP #6
Posted 07 March 2014 - 11:20 PM
WIKI released, adding articles!
iLikePHP #7
Posted 08 March 2014 - 01:57 PM
Server patch released.
LDShadowLord #8
Posted 09 March 2014 - 01:05 AM
I think this needs a file browser to work properly, an API and a server itself (while still good) is irritating for most people to use.
iLikePHP #9
Posted 09 March 2014 - 02:02 AM
I am still learning Lua, how does a group of applications sound?
I could make a bunch of apps for upload/download/delete quite easily.
bjornir90 #10
Posted 09 March 2014 - 07:59 AM
I think that what it needs is a graphical file browser as said before, to make it looks nicer and easier to use.
Zudo #11
Posted 09 March 2014 - 09:18 AM
Not bad! A bit tricky to use for clients, though. Maybe a command-line/GUI based client to browse the files?

:o/> just seen your avatar.

// on topic

I agree, a graphical browser would be nice to see.
Edited on 09 March 2014 - 08:18 AM
apemanzilla #12
Posted 09 March 2014 - 03:31 PM
Not bad! A bit tricky to use for clients, though. Maybe a command-line/GUI based client to browse the files?

:o/> just seen your avatar.
Was getting tired of the default avatar :P/>