Jump to content




Here's a quick error problem.


4 replies to this topic

#1 IndustrialLemon

  • Members
  • 61 posts

Posted 09 November 2018 - 01:54 AM

Not sure what's going on here.

local loadScreen = paintutils.loadImage("testImage.nfp")
paintutils.drawImage(loadScreen, 1, 1)

The error this code produces is
paintutils.lua:38: attempt to call nil

I understand what attempt to call nil on its own usually means. What's the problem here? I'm trying to apply the same logic but I'm pretty sure my syntax is fine. (Comparing this code directly to the wiki)



Keep in mind.
testImage.nfp DOES exist. It's very real.

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 09 November 2018 - 02:30 AM

Probably not related to the actual error, but paintutils doesn't handle the nfp format.

#3 IndustrialLemon

  • Members
  • 61 posts

Posted 09 November 2018 - 03:09 AM

Hmm. I thought the whole purpose of painutils.loadImage() was to load a previously drawn image using the 'paint' program. Paint produces .nfp files.

#4 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 09 November 2018 - 04:21 AM

Huh, I did not know that. NFP was originally used by NPaintPro which supports more than the default paint program. I retract my earlier statement.

http://www.computerc...-145-npaintpro/

#5 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 09 November 2018 - 05:44 AM

It's a bug in one of the earlier CC1.80 pre-release builds. Update to a later version.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users