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

(paintutils.drawImage) , Expected image, x, y

Started by Itz_Assassino, 02 December 2017 - 06:43 PM
Itz_Assassino #1
Posted 02 December 2017 - 07:43 PM
Hello,
I need help, I learn an old post for this question but my problem persists :

http://image.noelshack.com/fichiers/2017/48/6/1512244377-probleme-1.png
http://image.noelshack.com/fichiers/2017/48/6/1512244377-probleme-2.png
http://image.noelshack.com/fichiers/2017/48/6/1512244377-probleme-3.png

Can you help me plz ?
Bomb Bloke #2
Posted 02 December 2017 - 11:43 PM
If you ask paintutils.loadImage() to open an image that doesn't exist, instead of erroring it'll just return nil. This later leads to paintutils.drawImage() erroring instead.
Edited on 04 December 2017 - 12:03 AM
Itz_Assassino #3
Posted 03 December 2017 - 12:00 PM
http://image.noelsha...-probleme-4.png
http://image.noelsha...-probleme-5.png

After changes I solved the problem here are the pictures.
http://image.noelsha...me-resolu-1.png
http://image.noelsha...me-resolu-2.png
http://image.noelsha...me-resolu-3.png
It was the name of the first image, it should not have a number.