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

paintutils.loadImage don't work

Started by Dereki2000, 15 July 2018 - 01:15 AM
Dereki2000 #1
Posted 15 July 2018 - 03:15 AM
Hey guys,

I want to display an image. My folder is :

+rom
-image.nfp
-program.lua

My program is:

image = paintutils.loadImage("image")
paintutils.drawImage(image,1,1)


The problem is, that image is 'nil'. I know this, because I printed image after loading it. Why doesn't work it?
Edited on 15 July 2018 - 01:22 AM
LDDestroier #2
Posted 15 July 2018 - 04:03 AM
The filename for the image is "image.nfp", so should you not be using paintutils.loadImage() on "image.nfp"?
Dereki2000 #3
Posted 15 July 2018 - 04:17 AM
What?
I want to draw this image, I made with paint. So I need this 2 functions or not?
Bomb Bloke #4
Posted 15 July 2018 - 06:49 AM
image = paintutils.loadImage("image.nfp")
Dereki2000 #5
Posted 15 July 2018 - 06:21 PM
image = paintutils.loadImage("image.nfp")

I did that, it didn't work too. But I heard about something like a bug in the Beta build of CC. There was a Topic in this forum about, but it hasn't worked by me(http://www.computercraft.info/forums2/index.php?/topic/29601-problem-with-paintutilsdrawing-an-image/page__view__get new post) . How can I fix this?
Edited on 15 July 2018 - 04:28 PM
Bomb Bloke #6
Posted 16 July 2018 - 02:59 AM
If you're getting that specific error, then you'll simply need to update your ComputerCraft installation. Some sources are available through the links in my signature - I recommend SquidDev's CC:Tweaked.