Page 1 of 1

Lint "Could not find image" error [SOLVED]

Posted: Fri May 20, 2016 1:04 am
by doodlemancy
So when I check my script with Lint, I get this error:

"game/scriptch1.rpy:30 Could not find image (image_filename.png imagename) corresponding to attributes on say statement."

This goes on for hundreds and hundreds of lines, random ones, out of every chapter. My game works perfectly fine, and the images it claims not to be able to find show up ingame. I found another thread from early 2015 describing the same error: viewtopic.php?f=8&t=30269

I do have a slightly nonstandard setup, and I'm not a super great coder, so I may have created some kind of error myself that I'm not understanding. I'm only using side images, along with illustrations. Right now I'm only using one placeholder image (I've referred to them as "paper dolls" lol) per character, since I'm not quite ready to draw all the different sprites yet. Here's my code for the character sprites:

Code: Select all

image side sdoll = "paper_sykes.png"
image side pdoll = "paper_petra.png"
image side kdoll = "paper_kell.png"
image side cdoll = "paper_carson.png"
image side ldoll = "paper_linus.png"
image side adoll = "paper_aleit.png"
image side rdoll = "paper_ryfka.png"
image side ndoll = "paper_naomi.png"
image side mdoll = "paper_maddie.png"
image side ckdoll = "paper_cade.png"
Here's what it looks like where I've declared the characters:

Code: Select all

define pe = Character('RASKOPH', image="paper_petra.png", window_left_padding = 310)
define sy = Character('SYKES', image="paper_sykes.png", window_left_padding = 310)
define ke = Character('KELL', image="paper_kell.png", window_left_padding = 310)
define ca = Character('CARSON', image="paper_carson.png", window_left_padding = 310)
define li = Character('MANN', image="paper_linus.png", window_left_padding = 310)
define al = Character('REUTER', image="paper_aleit.png", window_left_padding = 310)
define ma = Character('BERINGER', image="paper_maddie.png", window_left_padding = 310)
define na = Character('NAOMI', image="paper_naomi.png" ,window_left_padding = 310)
define cr = Character('CROCE', window_left_padding = 310)
define ck = Character('INQUISITOR KOVAC', image="paper_cade.png", window_left_padding = 310)
define ry = Character('RYFKA', image="paper_ryfka.png", window_left_padding = 310)

Re: Lint "Could not find image" error

Posted: Fri May 20, 2016 1:57 am
by PyTom
Offhand - side is special to Ren'Py. It's used for side image handling.

Re: Lint "Could not find image" error

Posted: Fri May 20, 2016 2:49 am
by doodlemancy
PyTom wrote:Offhand - side is special to Ren'Py. It's used for side image handling.
Yes, and I only want to use side images. Is that what's causing the problem?

Re: Lint "Could not find image" error

Posted: Fri May 20, 2016 7:20 pm
by PyTom
Actually, I don't think so. But you may need to do something like:

Code: Select all

image side rdoll = "paper_ryfka.png"
define pe = Character('RASKOPH', image="rdoll", window_left_padding = 310)
To get things to work.

Re: Lint "Could not find image" error

Posted: Tue May 31, 2016 10:52 pm
by doodlemancy
Hey, that did it! Now I can see the actual errors in my script again. XD Thank you!