ComputerCraft

ComputerCraft

21M Downloads

setPaletteColor does not have a "Invalid color" error

IliasHDZ1 opened this issue ยท 5 comments

commented

If you type for example:
term.setPaletteColor(56, 16, 0, 0)

56 is an invalid color.

and as an error. it returns: "window.lua:301: index expected, got nil"

commented

The version is: ComputerCraft 1.80pr0

commented

Yes, this is likely a problem with the window API. On normal computers, which do not have multishell, it should print "Colour out of range" like all the other term functions

commented

Looks like this is already fixed:

commented

What build of the mod are you running? term.setPaletteColour wasn't in 1.80pr0, so it'll be a later version than that.

Anyway, as the fix was merged before 1.80pr1 was released. I'd recommend updating to that (or even better, a development build).

commented

Oh. It doesn't matter anyway.
I was using an older version...