Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bug:

It's possible for state.tag to be None.

`if isinstance(renpy.get_registered_image(state.tag), LayeredImage):`

When that happens, it causes an exception inside renpy when calling renpy.get_registered_image()

  File "renpy/python.py", line 1375, in py_eval_bytecode

    return eval(bytecode, globals, locals)

           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "game/layeredimage-visual-editor-v3/01cute_layeredimage_editor.rpy", line 86, in <module>

    if isinstance(renpy.get_registered_image(state.tag), LayeredImage):

                  ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^                

  File "renpy/display/image.py", line 310, in get_registered_image

    name = tuple(name.split())

                 ^^^^^^^^^^   

AttributeError: 'NoneType' object has no attribute 'split'


Reproduction steps:

  1. Open director mode
  2. Click + to add in between a line
  3. click "show"
  4. Without selecting a tag, click "(properties)" (at top)
  5. exception happens.