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

Cant Use paintutils

Started by Scorpyon, 04 January 2018 - 12:34 PM
Scorpyon #1
Posted 04 January 2018 - 01:34 PM
this is my code:

local image = paintutils.loadImage("Ja.nfp")
paintutils.drawImage(image, 3, 5)

i get the error:
paintutils.lua:38: attempt to call nill
Bomb Bloke #2
Posted 05 January 2018 - 06:03 AM
Assuming your installed version of ComputerCraft has this as line 38, that would indicate that your "Ja.nfp" file wasn't found. I suspect you've got it sitting in a subdirectory of your main drive, in which case, if that's where you're also running the script from, all you need to do is shell.resolve() it.
Edited on 05 January 2018 - 05:04 AM