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

[solved] attempt to index ? a nil value...i dont see it all the vars are there...

Started by CreeperGoBoom, 28 May 2014 - 06:11 AM
CreeperGoBoom #1
Posted 28 May 2014 - 08:11 AM
can you guys please take a look at:
http://pastebin.com/qufnLXtb

i must be missing something but i dont see it all the vars are defined….

it errors on line 18

thanks for the help in advance
Edited on 29 May 2014 - 01:15 AM
Seeker14491 #2
Posted 28 May 2014 - 09:00 AM
Does the file "clientinfo" exist? If it doesn't, that might explain the error.
SquidDev #3
Posted 28 May 2014 - 01:21 PM
Does the file "clientinfo" exist? If it doesn't, that might explain the error.
That is the most likely. Have you tried adding a print(f) or print(f==nil) on line 17? What is the value of f?
CreeperGoBoom #4
Posted 29 May 2014 - 03:11 AM
Oops that file is created by config function. All I need to do now is move that function from the top to below config such a simple mistake can cause such a headache. Thanks guys [solved]