Crash when supply args to screen and screen have action to show another screen with transition

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Eliont
Regular
Posts: 110
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

Crash when supply args to screen and screen have action to show another screen with transition

#1 Post by Eliont » Mon Aug 31, 2020 2:33 am

Hello and good time of day.

Have a strange behaviour on 7.4.5.606

Code: Select all

screen inv_button:
    tag inv
    
    mousearea:
        area (800, 0, 600, 70)
        hovered Show("hero_power", transition=dissolve)
        unhovered Hide("hero_power", transition=dissolve)
This code works.

Code: Select all

screen inv_button():
    tag inv
    
    mousearea:
        area (800, 0, 600, 70)
        hovered Show("hero_power", transition=dissolve)
        unhovered Hide("hero_power", transition=dissolve)
This code crashes with:

Code: Select all

Full traceback:
  File "game/script.rpy", line 213, in script call
    call testing_and_debugging
  File "game/ascript/subsystem/house/dhl_screens.rpy", line 209, in script
    call screen dhl_visit
  File "E:\Soft\renpy-6.99.11-sdk\renpy\ast.py", line 1949, in execute
    self.call("execute")
  File "E:\Soft\renpy-6.99.11-sdk\renpy\ast.py", line 1937, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\statements.py", line 277, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 531, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\exports.py", line 2905, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\ui.py", line 297, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 2702, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 3094, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\screen.py", line 430, in visit_all
    callback(self)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\core.py", line 3094, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\screen.py", line 440, in per_interact
    self.update()
  File "E:\Soft\renpy-6.99.11-sdk\renpy\display\screen.py", line 625, in update
    self.screen.function(**self.scope)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\ast.py", line 158, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "E:\Soft\renpy-6.99.11-sdk\renpy\ast.py", line 145, in apply
    raise Exception("Unknown keyword arguments: %s" % ( ", ".join(values.keys())))
Exception: Unknown keyword arguments: transition

Windows-7-6.1.7601-SP1
Ren'Py 7.3.5.606
Mon Aug 31 13:24:27 2020

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: Crash when supply args to screen and screen have action to show another screen with transition

#2 Post by hell_oh_world » Mon Aug 31, 2020 3:28 am

The traceback starts here...

Code: Select all

File "game/script.rpy", line 213, in script call
    call testing_and_debugging
perhaps you should take a look at that line, and trace the error from there.
Show / Hide with parameter transition works for me okay.

User avatar
Eliont
Regular
Posts: 110
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

Re: Crash when supply args to screen and screen have action to show another screen with transition

#3 Post by Eliont » Mon Aug 31, 2020 4:15 am

I t just call to label with debug setup, to not mess up with general code.
Same situation without it.

Post Reply

Who is online

Users browsing this forum: No registered users