Jump to content




AmazeFile — CC Cloud File Storage(WIKI Released!)

utility networking lua

11 replies to this topic

#1 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

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:

(Download) | (API Documentation)


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 by iLikePHP, 08 March 2014 - 12:10 PM.


#2 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

Posted 06 March 2014 - 03:33 AM

Update released!
I fixed the following issue(s):
• File write names were not working properly.

#3 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

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!

#4 apemanzilla

  • Members
  • 1,421 posts

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?

#5 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

Posted 07 March 2014 - 10:42 PM

I'm making a wiki.

#6 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

Posted 07 March 2014 - 11:20 PM

WIKI released, adding articles!

#7 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

Posted 08 March 2014 - 01:57 PM

Server patch released.

#8 LDShadowLord

  • Members
  • 115 posts

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.

#9 iLikePHP

  • Members
  • 30 posts
  • LocationUnited Kingdom

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.

#10 bjornir90

  • Members
  • 378 posts
  • LocationFrance

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.

#11 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 09 March 2014 - 09:18 AM

View PostApemanzilla, on 07 March 2014 - 10:41 PM, said:

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 by ZudoHackz, 09 March 2014 - 09:18 AM.


#12 apemanzilla

  • Members
  • 1,421 posts

Posted 09 March 2014 - 03:31 PM

View PostZudoHackz, on 09 March 2014 - 09:18 AM, said:

View PostApemanzilla, on 07 March 2014 - 10:41 PM, said:

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





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users