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

Bios:367 Error

Started by CrazyWolfTimo, 19 July 2015 - 09:14 AM
CrazyWolfTimo #1
Posted 19 July 2015 - 11:14 AM
Hello! I am a complete noob at CC… I got someone's script and modified it to meet my needs. When I run the program, I get the error 'bios:367: [string "rfmon":16: '}' expected (to close '{' at line 15)
Here is the pastebin code: yScGqCTH
I don't know what the problem is so any help is appreciated…
Lyqyd #2
Posted 19 July 2015 - 08:16 PM
Line 16 should have a comma at the end instead of a period.
CrazyWolfTimo #3
Posted 20 July 2015 - 08:05 PM
Line 16 should have a comma at the end instead of a period.
Thanks for your help, I'm such a noob!

New problem, after fixing it it says:
rfmon:32: attempt to index ? (a nil value)

Fixed…
Edited on 20 July 2015 - 07:18 PM
flaghacker #4
Posted 20 July 2015 - 09:38 PM
That error means that your trying to use nil (or a variable equal to nil) as a table. On line 32 there are 2 variables used as a table: 'net' and 'storageUnit'. 'storageUnit' can't be nil, as it cimes from a hardcoded table, so net is nil, witch means the peripheral.wrap at line 4 failed. Are you sure there is a valid peripheral at the back of the computer? Try typing this in the interactive lua command line:

peripheral.getType ("back")