Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

24KaratCarrot

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by 24KaratCarrot

  1. I think the inFile:read() thing was the problem, as when I changed that, the error changed. I honestly don't know exactly what fixed the problem, but I got it working and cleaned things up a bit! I think it was the read("*a") and requiring io, but I'm not entirely sure.Thanks a bunch for your help, here's the final product: local manager = {} local component = require("component") local event = require("event") local io = require("io") if not component.isAvailable("modem") then error("No compatable network card found.") end local modem = component.modem local SENDPORT = 1 function m
  2. Man, I wish this were the mistake! I don't know how that s got there, but it happened between my source and posting it here, the original code has address spelled correctly. But I'm surprised you caught that, I read over everything after I posted and didn't catch it! I've edited the question so that it's spelled correctly, but the problem still persists.
  3. I'm trying to port over a library I made for Computer Craft, but I can't tell for the life of me where this error is coming from. I know that the library works properly, as I've gotten another of it's functions working just fine. Sorry if this is a noob question, I am a java developer, and am just getting into lua. Full error message: bad argument #1 (number expected, got string): stack traceback: [C]: in function 'error' machine:986: in function <machine:983> (...tail calls...) /lib/fileMngr.lua:10: in function 'sendFile' /home/send:3: in main ch
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.