renpy reload got transparent background and no character(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
User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

renpy reload got transparent background and no character(Solved)

#1 Post by Li yuanlin »

also appeared in some save loading
20220407182359.png
(6.88 KiB) Not downloaded yet
Attachments
Angels Survivors Minimal.rar
(9.91 MiB) Downloaded 12 times
Last edited by Li yuanlin on Wed May 11, 2022 8:06 am, edited 2 times in total.
stay hungry,stay foolish.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2411
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: renpy reload got transparent background and no character

#2 Post by Ocelot »

Generally this happens with dynami images and implroper variable storage.

I am afraid it is impossible to tell more without minimal reproducible example.
< < insert Rick Cook quote here > >

User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: renpy reload got transparent background and no character

#3 Post by Li yuanlin »

Ocelot wrote: Thu Apr 07, 2022 8:59 am Generally this happens with dynami images and implroper variable storage.

I am afraid it is impossible to tell more without minimal reproducible example.
I found all the images cannot load or reload are PNG files,while all the jpg files load and relaod correctly.
These situations below cause a checkerboard or black image in packed pc game:
1.shift+r to reload
2.save and load this save
3.quicksave and quickload this quicksave

rollback can get scene and characters shown

Is there anyway to get this fixed?
stay hungry,stay foolish.

User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: renpy reload got transparent background and no character

#4 Post by Li yuanlin »

every dialogue right after the scene statement gets right scene png reload,but next dialogue canot reload scene after load or press shift+r
stay hungry,stay foolish.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2411
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: renpy reload got transparent background and no character

#5 Post by Ocelot »

Li yuanlin wrote: Wed May 11, 2022 12:51 am
Ocelot wrote: Thu Apr 07, 2022 8:59 am Generally this happens with dynami images and implroper variable storage.

I am afraid it is impossible to tell more without minimal reproducible example.
I found all the images cannot load or reload are PNG files,while all the jpg files load and relaod correctly.
These situations below cause a checkerboard or black image in packed pc game:
1.shift+r to reload
2.save and load this save
3.quicksave and quickload this quicksave

rollback can get scene and characters shown

Is there anyway to get this fixed?
Still need minimal reprodicible example, aka a small project exhibiting symptoms.

And problems arising from using autoreload should not be considered: it is not perfect and only exist to aid in development. Actual players will not have access to it anyway.
< < insert Rick Cook quote here > >

User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: renpy reload got transparent background and no character

#6 Post by Li yuanlin »

Ocelot wrote: Wed May 11, 2022 5:34 am
Li yuanlin wrote: Wed May 11, 2022 12:51 am
Ocelot wrote: Thu Apr 07, 2022 8:59 am Generally this happens with dynami images and implroper variable storage.

I am afraid it is impossible to tell more without minimal reproducible example.
I found all the images cannot load or reload are PNG files,while all the jpg files load and relaod correctly.
These situations below cause a checkerboard or black image in packed pc game:
1.shift+r to reload
2.save and load this save
3.quicksave and quickload this quicksave

rollback can get scene and characters shown

Is there anyway to get this fixed?
Still need minimal reprodicible example, aka a small project exhibiting symptoms.

And problems arising from using autoreload should not be considered: it is not perfect and only exist to aid in development. Actual players will not have access to it anyway.
I have already uploaded my project,would you mind finding the problem?
stay hungry,stay foolish.

User avatar
m_from_space
Miko-Class Veteran
Posts: 984
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: renpy reload got transparent background and no character

#7 Post by m_from_space »

This happens for me too for the first transition or so that occurs after using autoreload in game development. As Ocelot said, it's not important since it doesn't happen in normal games (where autoreload is not available).

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2411
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: renpy reload got transparent background and no character

#8 Post by Ocelot »

The problem is at line 128 of options.rpy

Code: Select all

label after_load:
    $ preferences.set_volume('ambient', 0.2)

    # $ renpy.quit_action = Quit(confirm=True)

    scene

    return
scene statement removes all displayables from master layer, so any image will be removed when you load your game.
< < insert Rick Cook quote here > >

User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: renpy reload got transparent background and no character

#9 Post by Li yuanlin »

m_from_space wrote: Wed May 11, 2022 7:56 am This happens for me too for the first transition or so that occurs after using autoreload in game development. As Ocelot said, it's not important since it doesn't happen in normal games (where autoreload is not available).
I mean it happened on loading saves,which needs fixed.Tried on pack game,loading some saves gets transparent scene and cannot show scnene.
stay hungry,stay foolish.

User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: renpy reload got transparent background and no character

#10 Post by Li yuanlin »

Ocelot wrote: Wed May 11, 2022 7:58 am The problem is at line 128 of options.rpy

Code: Select all

label after_load:
    $ preferences.set_volume('ambient', 0.2)

    # $ renpy.quit_action = Quit(confirm=True)

    scene

    return
scene statement removes all displayables from master layer, so any image will be removed when you load your game.
Thank you so much! didn't mind that silly typing mistake,my fault.
stay hungry,stay foolish.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]