Jump to content




FTP Client


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

#1 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

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

#2 crazyguymgd

  • Members
  • 139 posts
  • LocationUSA

Posted 14 January 2013 - 03:07 PM

What's the problem you're having so I have an idea of where to start looking?

#3 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

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.

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 January 2013 - 03:12 PM

View PostDlcruz129, on 14 January 2013 - 03:04 PM, said:

: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?

#5 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 14 January 2013 - 03:15 PM

View PostTheOriginalBIT, on 14 January 2013 - 03:12 PM, said:

View PostDlcruz129, on 14 January 2013 - 03:04 PM, said:

: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.

#6 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 January 2013 - 03:16 PM

View PostDlcruz129, on 14 January 2013 - 03:15 PM, said:

- 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 by TheOriginalBIT, 14 January 2013 - 03:17 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users