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

FTP Client

Started by Dlcruz129, 14 January 2013 - 02:04 PM
Dlcruz129 #1
Posted 14 January 2013 - 03:04 PM
:o/> A Lua Maniac posting in Ask a Pro? Yeah, well no one's perfect.

Anyways, I decided to write an FTP client for my Tekkit server. (:o/> Playing Tekkit? I know, I know, my reputation sinks lower with every word :P/>)

I'm using tables to send the file name and the data between computers. I've tried debugging and I can't seem to find the problem.

Here's the code: http://pastebin.com/Sj07KyN5
crazyguymgd #2
Posted 14 January 2013 - 03:07 PM
What's the problem you're having so I have an idea of where to start looking?
Dlcruz129 #3
Posted 14 January 2013 - 03:09 PM
Well, it simply doesn't do anything. It sends the message fine, and when it receives the table it just exits the program without writing to the file.
theoriginalbit #4
Posted 14 January 2013 - 03:12 PM
:o/> A Lua Maniac posting in Ask a Pro? Yeah, well no one's perfect.
Haha I always feel the same, title = 'Lua God' and asking for help cause I can't see the issue and need some fresh eyes…

line 13 I think it should be tonumber( tArgs[2] ) … yes?
Dlcruz129 #5
Posted 14 January 2013 - 03:15 PM
:o/> A Lua Maniac posting in Ask a Pro? Yeah, well no one's perfect.
Haha I always feel the same, title = 'Lua God' and asking for help cause I can't see the issue and need some fresh eyes…

line 13 I think it should be tonumber( tArgs[2] ) … yes?

+1. That fixed it. Thanks Bit.
theoriginalbit #6
Posted 14 January 2013 - 03:16 PM
- snip -

+1. That fixed it. Thanks Bit.
haha sweet, wasn't sure if that was it, so long since I've used rednet couldn't remember if it was returned as a number or not :P/> and too lazy to check the wiki … after all you are a Lua Maniac … :P/>
Edited on 14 January 2013 - 02:17 PM