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

Problem with paintutils/drawing an image

Started by Sigma, 26 May 2018 - 12:05 PM
Sigma #1
Posted 26 May 2018 - 02:05 PM
So, I'm currently trying to draw an image on my computer, but it won't work, basically no matter what I've tried to do.

This is what my code looks like:

local image = paintutils.loadImage("lol.nfp")
paintutils.drawImage(image, 1, 1)

But, this is my error:
"paintutils.lua:38: attempt to call nil"

Anyone here able to help?
Bomb Bloke #2
Posted 26 May 2018 - 02:07 PM
That's a bug in the beta build of ComputerCraft you're using. More recent versions are available around the place:

http://www.computercraft.info/forums2/index.php?/topic/29161-mc112fork-cc-tweaked/
https://cc.crzd.me/
Sigma #3
Posted 26 May 2018 - 02:55 PM
That's a bug in the beta build of ComputerCraft you're using. More recent versions are available around the place:

http://www.computerc...ork-cc-tweaked/
https://cc.crzd.me/

Thanks alot, it works perfectly now!