I am using collection proxies to switch between menus from the main menu of Chemaria. I am also using Gooey for UI stuff.
Running from the editor causes no issues, but bundling the app causes problems (I have tried both Windows and HTML5). The first time going to my load game screen populates the list and everything works fine. If I leave and come back, this error shows up in the debug console
ERROR:SCRIPT: gooey/internal/core.lua:81: Node used in the wrong scene stack traceback: [C]: in function 'get_parent' gooey/internal/core.lua:81: in function 'is_enabled' gooey/internal/list.lua:99: in function 'get_instance' gooey/internal/list.lua:273: in function 'dynamic' gooey/gooey.lua:126: in function 'dynamic_list' main/menus/load_game_menu/load_game_menu.gui_script:34: in function 'fill_save_list' main/menus/load_game_menu/load_game_menu.gui_script:115: in function <main/menus/load_game_menu/load_game_menu.gui_script:101>
Looking at the Gooey code, it essentially is just using the base gui
functions to check if the node exists and if it’s parents are valid.
My code mentioned in the trace is this
gooey.dynamic_list("save_list", "save_list/stencil", "save_list/listitem_bg", self.saveFiles, actionId, action, on_item_selected, update_save_list).scroll_to(0, self.scrollbar.scroll.y)
Does anyone have an idea why this would only be happening on a bundled build? The only other special thing happening is that I am using the Defold LFS native extension to query the directory for files.