Pictures not displaying

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
User avatar
CutlassBoardgame
Regular
Posts: 27
Joined: Sun Jan 03, 2021 6:23 am
Projects: Winning Love by Daylight
Organization: Cutlass Boardgames
itch: cutlassboardgame
Contact:

Pictures not displaying

#1 Post by CutlassBoardgame » Mon Mar 08, 2021 8:42 pm

I continue to have an issue where when I update a version, and I'm only adding stuff onto it at the end, pictures for the characters in the middle stop loading. Even though the code hasn't changed and the picture hasn't changed, and that picture works just fine in other sections, it'll cease to load in a random area, in every load.

So sure, I just replace every image with [imagename2] and continue (which is not great), but now my transform for an image location isn't loading, and just dumps and image onto the screen. Again, works fine for every other instance, but I try and use it in this new version, and it won't even recognise it.


Why does the engine work fine sometimes, but completely ignore lines other times?
How do I fix this infuriating problem?
Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Pictures not displaying

#2 Post by Imperf3kt » Mon Mar 08, 2021 10:07 pm

Without code examples, we cannot offer help as we don't know what could be going on, but I suspect, based on what you have provided, that you have declared these images inside a label?

Be sure to use default to declare variables that will change, outside of any label.

See this post by Trooper6 for a better explanation.
viewtopic.php?t=50964#p491435
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
CutlassBoardgame
Regular
Posts: 27
Joined: Sun Jan 03, 2021 6:23 am
Projects: Winning Love by Daylight
Organization: Cutlass Boardgames
itch: cutlassboardgame
Contact:

Re: Pictures not displaying

#3 Post by CutlassBoardgame » Tue Mar 09, 2021 7:48 pm

I am literally only using Show and Hide.
Image

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Pictures not displaying

#4 Post by zmook » Thu Mar 11, 2021 9:19 am

To help, we need to see a chunk of the code that is not working. Please copy and paste a section where you've had trouble.

Also:
* Are you distributing this code?
* How are you distributing it? Are you building a full distribution each time, or trying to do incremental updates?
* Does everyone who plays it have the same issue?
* Does everyone have the issue with the same image?
* What OS are you using? Do people using a different OS have the same problem?
* What version of Renpy are you building with?
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

Post Reply

Who is online

Users browsing this forum: Bing [Bot], miro4D2, Ocelot, _ticlock_