kyouryuukunn / renpy-ActionEditor3

125 stars 13 forks source link

An always visible screen in a custom layer causes Image '...' not found #33

Closed brunoais closed 2 months ago

brunoais commented 2 months ago

Problem:

If:

  1. A custom layer is created
  2. A screen is placed in that layer
  3. That screen is set to be shown always

=

Image not found (but that's a screen): image

No more images are listed: image

Repro:

Make a renpy project from scratch. Make an rpy file with this:

screen _brunoais_getDataAtPos_shortcuts():
    layer 'manipulate'
    text "I'm the cause of your demise"

init python:
    renpy.exports.add_layer("manipulate", above='master', menu_clear=False)
    renpy.config.always_shown_screens.append(("_brunoais_getDataAtPos_shortcuts"))

Code originally from:

https://gitlab.com/brunoais/renpy-guiManipulate/-/blob/master/exports/rpy/getDataAtPos_ren.py?ref_type=heads#L33 And https://gitlab.com/brunoais/renpy-guiManipulate/-/blob/master/exports/rpy/manipulate_screens.rpy?ref_type=heads#L5

I'm not original reporter

Initial reporter contacted me by PM on Discord and I was able to reproduce the issue without my tool.

brunoais commented 2 months ago

See also: https://github.com/renpy/renpy/issues/5804