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

Paintutils error.

Started by caza1112, 11 January 2018 - 06:30 PM
caza1112 #1
Posted 11 January 2018 - 07:30 PM
The following code throws out the error:

paintutils.lua:38: attempt to call nil


Code:


term.setBackgroundColor(colors.white)
term.clear()
local bgs = paintutils.loadImage("bleachih")
paintutils.drawImage(bgs,1,1)
term.setTextColor(colors.black)
term.setBackgroundColor(colors.white)
term.setCursorPos(5,9)
print("CazOS")
term.setCursorPos(6,10)
print("2.0")
sleep(2)
term.setTextColor(colors.white)
shell.run("desktop")


This is a startup file and i am a tad stuck. Thanks in advance :)/>
Also here is a pic of the files.
KingofGamesYami #2
Posted 11 January 2018 - 08:19 PM
This was a bug. It has since been fixed and merged, but no official version has been released. Consider using an unofficial build which includes the fix.
caza1112 #3
Posted 11 January 2018 - 09:33 PM
Thank you KingofGamesYami :)/>