Side images not displaying?[CLOSED]

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.
Message
Author
User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Side images not displaying?[CLOSED]

#1 Post by cirnoe »

Hi everyone!
I'm having a little issue with the side images in my game.. I have actually made a game last time so I just copied the format (which previously worked fine) but for some reason, the side images never actually display in the game itself. It's a little frustrating. Below are some code related to side images.

Code: Select all

define z = Character('redacted' , color="#9370db" , image ="redacted")

Code: Select all

image side redacted n = "zy1.png"
image side redacted what = "zy2.png"
image side redacted amuse = "zy3.png"
image side redacted shock = "zy4.png"
i also added padding in options:

Code: Select all

    style.window.left_padding = 150
    # style.window.right_padding = 6
    # style.window.top_padding = 6
    # style.window.bottom_padding = 6
I checked over and over to see if I missed anything out but I don't think I did? But as soon as I boot up the game the images never appear... It didn't even cite an error, it just ran as per normal but the images did not appear at all. Please help me identify the problem :( Thank you all so much in advance!
Last edited by cirnoe on Thu Jun 02, 2016 12:40 pm, edited 1 time in total.

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Side images not displaying?

#2 Post by PetPeeve »

How are you calling the images in script?
Avatar by shiohh
ImageImageImageImage

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#3 Post by cirnoe »

Hi! This is how I'm calling my statements: (I included the define in case)

Code: Select all

define z = Character('ZY' , color="#9370db" , image ="ZY")

Code: Select all

  with vpunch
    z shock "redacted."
    show phone 
    with moveintop
    z amuse "redacted"
    z what "redacted"
if this helps at all, here's the lint report...

Code: Select all

Ren'Py 6.99.10.1227 lint report, generated at: Thu Jun  2 10:13:34 2016

game/script.rpy:34 Could not find image (ZY n) corresponding to attributes on say statement.

game/script.rpy:35 Could not find image (ZY n) corresponding to attributes on say statement.

game/script.rpy:36 Could not find image (ZY n) corresponding to attributes on say statement.

game/script.rpy:40 Could not find image (ZY shock) corresponding to attributes on say statement.

game/script.rpy:43 Could not find image (ZY amuse) corresponding to attributes on say statement.
..and the list goes on for every single line containing a side image...
I hope this helps.
Thanks! :D

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Side images not displaying?

#4 Post by korova »

have you defined a "ZY n" image somewhere in your script (with a "image ZY n = "path_to_your_image.png" statement), or do you have a "ZY n.jpg" or "ZY n.png" in your images directory ?

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#5 Post by cirnoe »

Yep, I do use ZY n.
korova wrote:(with a "image ZY n = "path_to_your_image.png"
Here's the line of code:

Code: Select all

image side ZY n = "zy1.png"
I have already double-checked the names of the pngs in the game folder but it all corresponds with the code...

Hope this helps..!
:o

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Side images not displaying?

#6 Post by PetPeeve »

OK... I just put this:

Code: Select all

define z = Character('ZY' , color="#9370db" , image ="ZY")

image side ZY n = "zy1.png"

label start:
    with vpunch
    z n "redacted."
    show phone 
    with moveintop
    z n "redacted"
    z n "redacted"
    return
Into a blank project and it worked fine. You don't have the images inside a folder or anything in your project?
Avatar by shiohh
ImageImageImageImage

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#7 Post by cirnoe »

yeah... They are most definitely in the game folder :( I really don't know what's wrong, I checked and checked again...

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Side images not displaying?

#8 Post by PetPeeve »

I saw someone else had a similar problem recently and no-one could figure out what was wrong then too... Are you using the most recent version of Ren'py?

It might be something elsewhere that we aren't seeing, because there is nothing wrong with the code you're using that you've shown us.
Avatar by shiohh
ImageImageImageImage

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#9 Post by cirnoe »

Yikes... I have updated the version of renpy ;-; sigh is there really nothing I can do :(

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Side images not displaying?

#10 Post by PetPeeve »

Can you make a copy minus all the story etc. of your project and upload it? It might be something super simple that you just aren't seeing because you've looked at it so many times.
Avatar by shiohh
ImageImageImageImage

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#11 Post by cirnoe »

Hey, thanks for the reply. Attached is my options and script. I cut out some of the stuff from the back of my script but hopefully it doesn't affect anything. Thank you so much!
Attachments
options.rpy
(9.28 KiB) Downloaded 62 times
script.rpy
(1.77 KiB) Downloaded 63 times

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Side images not displaying?

#12 Post by PetPeeve »

Which editor are you using?
Avatar by shiohh
ImageImageImageImage

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#13 Post by cirnoe »

Editra!

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Side images not displaying?

#14 Post by PetPeeve »

Try this and tell me if it works. I use Editra too, and there were some weird quotation marks that messed it up for me.
Attachments
Test.zip
(810.71 KiB) Downloaded 14 times
Avatar by shiohh
ImageImageImageImage

User avatar
cirnoe
Newbie
Posts: 23
Joined: Fri Sep 04, 2015 1:28 pm
Contact:

Re: Side images not displaying?

#15 Post by cirnoe »

Yeah, it worked! I saw some pictures of some anime characters? And the box on the side changed color a couple of times. I think that's it?

Post Reply

Who is online

Users browsing this forum: No registered users