Lint "Could not find image" error [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
doodlemancy
Newbie
Posts: 21
Joined: Sun Apr 12, 2015 2:04 am
Contact:

Lint "Could not find image" error [SOLVED]

#1 Post 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)
Last edited by doodlemancy on Tue May 31, 2016 10:52 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16094
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Lint "Could not find image" error

#2 Post by PyTom »

Offhand - side is special to Ren'Py. It's used for side image handling.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

doodlemancy
Newbie
Posts: 21
Joined: Sun Apr 12, 2015 2:04 am
Contact:

Re: Lint "Could not find image" error

#3 Post 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?

User avatar
PyTom
Ren'Py Creator
Posts: 16094
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Lint "Could not find image" error

#4 Post 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

doodlemancy
Newbie
Posts: 21
Joined: Sun Apr 12, 2015 2:04 am
Contact:

Re: Lint "Could not find image" error

#5 Post by doodlemancy »

Hey, that did it! Now I can see the actual errors in my script again. XD Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users