Jump to content




[1.3] CraftFTP 0.2- Ingame File transfer (NEW! 0.4 Betas up!)



  • You cannot reply to this topic
27 replies to this topic

#1 ags131

  • New Members
  • 19 posts

Posted 07 March 2012 - 06:00 PM

Ok, this is my first project with ComputerCraft so I decided to make an ingame FTP system. This is my version of FTP inside MC using RedNet. Its simple to use and even works on turtles. To configure just set the side variables in the client/server and set the name on the server. Ive setup a system where servers can be accessed by name without knowing the ID.

Commands: (client, server has no commands)
get <filename> -- downloads a file
send <filename> -- sends a file
ls [dir] -- lists files, dir is optional
exit -- self explanatory

cftp 0.2: (Client)
Spoiler

cftd 0.2 (server)
Spoiler

Beta 0.4 versions
Spoiler


Changelog:
Spoiler


#2 Zitrone77

  • New Members
  • 17 posts
  • LocationSwiss..

Posted 07 March 2012 - 07:25 PM

Nice Job!

But:
Why do you use
'
Instead of:
"
??

#3 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 07 March 2012 - 07:51 PM

I work on a Login System at the moment. As soon as it gets finished am I allowed to post it here?

#4 ags131

  • New Members
  • 19 posts

Posted 07 March 2012 - 09:58 PM

Sure, multi-user support was planned in future version but this was mainly a working prototype
Any difference in using ' instead of "?
Also, i'm wanting to add better directory support for the client, like a cd command that would set the cdir variable. Just haven't implemented it yet.

As a side thought, I may make the base ftp access an API then write the client around that, then stuff like backups and command-line access like wget and wput could be created. Also, im thinking of making a mail system using it :mellow:/>

#5 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 07 March 2012 - 10:48 PM

View Postags131, on 07 March 2012 - 09:58 PM, said:

Sure, multi-user support was planned in future version but this was mainly a working prototype
Any difference in using ' instead of "?
Also, i'm wanting to add better directory support for the client, like a cd command that would set the cdir variable. Just haven't implemented it yet.

As a side thought, I may make the base ftp access an API then write the client around that, then stuff like backups and command-line access like wget and wput could be created. Also, im thinking of making a mail system using it :mellow:/>
I really want to help you but no I mainly create a password set thingy. And no there is no difference between " and '
Just ask me if I can help programming with you

#6 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 08 March 2012 - 12:27 PM

View PostZitrone77, on 07 March 2012 - 07:25 PM, said:

Nice Job!

But:
Why do you use
'
Instead of:
"
??
Some people(like me) likes it better, and it makes no difference at all :mellow:/>

#7 solvillan

  • New Members
  • 3 posts

Posted 08 March 2012 - 01:43 PM

A tip, add an external configfile for both server and client, instead of asking people to mess with the code.

#8 Zitrone77

  • New Members
  • 17 posts
  • LocationSwiss..

Posted 08 March 2012 - 03:08 PM

View Postmad, on 08 March 2012 - 12:27 PM, said:

View PostZitrone77, on 07 March 2012 - 07:25 PM, said:

Nice Job!

But:
Why do you use
'
Instead of:
"
??
Some people(like me) likes it better, and it makes no difference at all :mellow:/>
Ok.. now i know that
'
works too!

#9 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 08 March 2012 - 03:12 PM

LUA's syntax is really loose one,
print"abc"
seems to work as well as
print("abc")

anyway, good job. How about making directory-management function as well?

#10 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 08 March 2012 - 05:34 PM

View PostLiraal, on 08 March 2012 - 03:12 PM, said:

How about making directory-management function as well?
He is working on that already

#11 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 08 March 2012 - 05:44 PM

ah sorry didn't notice

#12 ags131

  • New Members
  • 19 posts

Posted 08 March 2012 - 09:56 PM

Directory management will be made soon, also need to make delete commands. Im planing an API for clients then going to rebuild the client using the API. The API will also allow programs to autoupdate by checking for newer version via ftp :mellow:/>

#13 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 09 March 2012 - 02:31 PM

View Postags131, on 08 March 2012 - 09:56 PM, said:

Directory management will be made soon, also need to make delete commands. Im planing an API for clients then going to rebuild the client using the API. The API will also allow programs to autoupdate by checking for newer version via ftp ;)/>
Awesome :mellow:/> Can I help?

#14 ags131

  • New Members
  • 19 posts

Posted 09 March 2012 - 02:35 PM

Sure.
After starting on it, I noticed the server may need rewritten some. A few things such as deleting and moving files needs commands.
Ive wrote the basic API for it including authentication. I just set the server to always return no authentication required for now.
Updating OP with the (non-working!) WIP API version

#15 ags131

  • New Members
  • 19 posts

Posted 10 March 2012 - 03:20 PM

Updated OP lastnight with full API, untested though As im rewriting server

#16 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 10 March 2012 - 05:44 PM

View Postags131, on 10 March 2012 - 03:20 PM, said:

Updated OP lastnight with full API, untested though As im rewriting server
Can I help?

#17 ags131

  • New Members
  • 19 posts

Posted 10 March 2012 - 08:39 PM

Sure :mellow:/>
I'm open to help and suggestions ;)/>

#18 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 10 March 2012 - 09:32 PM

View Postags131, on 10 March 2012 - 08:39 PM, said:

Sure :mellow:/>
I'm open to help and suggestions ;)/>
Do you have a special server where your programming on/Steam/Skype or something like that?

#19 ags131

  • New Members
  • 19 posts

Posted 10 March 2012 - 10:36 PM

Been programming mostly in NP++ and testing on SSP and another whitelist server Im on
I am on skype as ags131,

#20 ags131

  • New Members
  • 19 posts

Posted 12 March 2012 - 03:44 PM

Update! Added 0.4 betas and full API





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users