Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Hello! I'm using the layered image visualizer and I'm having this problem where I can use the addon but if I try to get to certain menus my game crashes and show this:

TypeError: new_renpy_loadable() got an unexpected keyword argument 'directory'

the menus that crash my game are the save menu, load menu and also menus inside the game where the story is not running and you can click characters to talk to them.

removing the files of the addon solves it but I wouldn't want to be constantly putting the addon on and off the folders.

(edit) I also noticed that I have a custom button in the save and load menus , if I remove this, it also stop crashing, what I don't get is why does the addon make any difference on this button not working.

imagebutton:

                            auto "gui/button/delete_%s_button.png"

                            action [FileDelete(slot), Hide("delete_overlay_screen")]

                            xpos -25

                            ypos -315

(edit2) It seems the problem goes around using an imagebutton with "auto" and %s

Hey there! Looks like this was an oversight on my end, with a fix intended to fix something Ren'Py bungled in v8.4. You can make the following change in the common file, to new_renpy_loadable:

if renpy.version_tuple >= (8, 4, 0) and renpy.version_tuple < (8, 4, 2):
     ## There's a problem with how renpy.loadable works with empty strings
     old_renpy_loadable = renpy.loadable
     def new_renpy_loadable(s, **kwargs):
         if s == "":
             return False
         return old_renpy_loadable(s, **kwargs)
     renpy.loadable = new_renpy_loadable

Hope that helps!