kyouryuukunn / renpy-ActionEditor3

125 stars 11 forks source link

AttributeError: 'LayeredImage' object has no attribute 'render' #10

Open thedozo opened 1 year ago

thedozo commented 1 year ago

[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "game/script.rpy", line 520, in script call call Chapter01 File "game/tavern.rpy", line 119, in script call call day_increased File "game/dayend.rpy", line 20, in script call call day_increased File "game/blacksmith.rpy", line 255, in script call call combat_militia_day File "game/dayend.rpy", line 38, in script call call day_increased from _call_day_increased_1 File "game/dayend.rpy", line 55, in script call call day_increased from _call_day_increased_3 File "game/dayend.rpy", line 100, in script call call day_increased File "game/blacksmith.rpy", line 765, in script t surprise "¡Allí está! ¡Debemos detenerle antes de que haga algo insensato!" File "game/ActionEditor.rpy", line 2438, in open_action_editor renpy.call_screen("_new_action_editor") File "game/ActionEditor.rpy", line 1165, in transform w, h = renpy.render(new_widget, 0, 0, 0, 0).get_size() File "game/ActionEditor.rpy", line 116, in render return self.d.render(width, height, self.st, self.at) AttributeError: 'LayeredImage' object has no attribute 'render'

-- Full Traceback ------------------------------------------------------------

Full traceback: File "game/script.rpy", line 520, in script call call Chapter01 File "game/tavern.rpy", line 119, in script call call day_increased File "game/dayend.rpy", line 20, in script call call day_increased File "game/blacksmith.rpy", line 255, in script call call combat_militia_day File "game/dayend.rpy", line 38, in script call call day_increased from _call_day_increased_1 File "game/dayend.rpy", line 55, in script call call day_increased from _call_day_increased_3 File "game/dayend.rpy", line 100, in script call call day_increased File "game/blacksmith.rpy", line 765, in script t surprise "¡Allí está! ¡Debemos detenerle antes de que haga algo insensato!" File "D:\renpy-8.0.3-sdk\renpy\ast.py", line 921, in execute renpy.exports.say(who, what, *args, kwargs) File "D:\renpy-8.0.3-sdk\renpy\exports.py", line 1373, in say who(what, args, kwargs) File "D:\renpy-8.0.3-sdk\renpy\character.py", line 1266, in call self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, display_args) File "D:\renpy-8.0.3-sdk\renpy\character.py", line 927, in do_display display_say(who, File "D:\renpy-8.0.3-sdk\renpy\character.py", line 666, in display_say rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward) File "D:\renpy-8.0.3-sdk\renpy\ui.py", line 299, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, kwargs) File "D:\renpy-8.0.3-sdk\renpy\display\core.py", line 3377, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, kwargs) # type: ignore File "D:\renpy-8.0.3-sdk\renpy\display\core.py", line 4258, in interact_core rv = root_widget.event(ev, x, y, 0) File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 1175, in event rv = i.event(ev, x - xo, y - yo, cst) File "D:\renpy-8.0.3-sdk\renpy\display\behavior.py", line 478, in event rv = run(action) File "D:\renpy-8.0.3-sdk\renpy\display\behavior.py", line 329, in run return action(args, kwargs) File "D:\renpy-8.0.3-sdk\renpy\game.py", line 286, in invoke_in_new_context return callable(*args, kwargs) File "game/ActionEditor.rpy", line 2438, in open_action_editor renpy.call_screen("_new_action_editor") File "D:\renpy-8.0.3-sdk\renpy\exports.py", line 3181, in call_screen rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward) File "D:\renpy-8.0.3-sdk\renpy\ui.py", line 299, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, kwargs) File "D:\renpy-8.0.3-sdk\renpy\display\core.py", line 3377, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore File "D:\renpy-8.0.3-sdk\renpy\display\core.py", line 3912, in interact_core self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn) File "D:\renpy-8.0.3-sdk\renpy\display\core.py", line 2602, in draw_screen surftree = renpy.display.render.render_screen( File "render.pyx", line 495, in renpy.display.render.render_screen File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 884, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 884, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 884, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\image.py", line 506, in render return wrap_render(self.target, width, height, st, at) File "D:\renpy-8.0.3-sdk\renpy\display\image.py", line 309, in wrap_render rend = render(child, w, h, st, at) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\transform.py", line 747, in render return transform_render(self, width, height, st, at) File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 884, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\transform.py", line 747, in render return transform_render(self, width, height, st, at) File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\transform.py", line 747, in render return transform_render(self, width, height, st, at) File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 884, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\transform.py", line 747, in render return transform_render(self, width, height, st, at) File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\layout.py", line 884, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "D:\renpy-8.0.3-sdk\renpy\display\transform.py", line 747, in render return transform_render(self, width, height, st, at) File "accelerator.pyx", line 148, in renpy.display.accelerator.transform_render File "D:\renpy-8.0.3-sdk\renpy\display\transform.py", line 732, in update_state fr = self.function(self, self.st, self.at) File "game/ActionEditor.rpy", line 1165, in transform w, h = renpy.render(new_widget, 0, 0, 0, 0).get_size() File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 266, in renpy.display.render.render File "game/ActionEditor.rpy", line 116, in render return self.d.render(width, height, self.st, self.at) AttributeError: 'LayeredImage' object has no attribute 'render'

Windows-10-10.0.15063 AMD64 Ren'Py 8.0.3.22090809 BETA 0.45 Tue Jan 3 10:33:17 2023 [/code]

kyouryuukunn commented 1 year ago

Does that error happen with latest? https://github.com/kyouryuukunn/renpy-ActionEditor3/archive/refs/heads/master.zip

thedozo commented 1 year ago

Does that error happen with latest? https://github.com/kyouryuukunn/renpy-ActionEditor3/archive/refs/heads/master.zip

Yes, I'm using Action Editor 3 and Ren'py 8

kyouryuukunn commented 1 year ago

I can't reproduce this issue. Could you send me the minimum sample project?