找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 14509|回复: 2

[求助] Unknown keyword arguments?

[复制链接]
发表于 2020-2-18 14:52:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
label loadbackpack:
    init python:
        list_item.append("白帆布鞋")
label loadbackpack2:

    call screen openbackpack
    with dissolve

    "这是开始界面"

#页面布局:
screen openbackpack():
    zorder 1
    frame:
        align(1.0, 1.0)
        xysize (60, 60)
        textbutton "{size=18}開{/size}" xalign 0.5 yalign 0.5 xysize(25, 25) action Show("backpack")

求问大佬,为什么call screen会出错

———————————————————————————————————————————————

While running game code:
  File "game/Idea_Of_Backpack.rpy", line 62, in script
    call screen openbackpack
  File "renpy/common/000statements.rpy", line 531, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
Exception: Unknown keyword arguments: transition

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

Full traceback:
  File "game/Idea_Of_Backpack.rpy", line 62, in script
    call screen openbackpack
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\ast.py", line 1947, in execute
    self.call("execute")
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\ast.py", line 1935, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Air\Downloads\renpy-7.3.2-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 "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\exports.py", line 2896, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\ui.py", line 295, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\core.py", line 2699, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\core.py", line 3091, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\core.py", line 541, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\screen.py", line 430, in visit_all
    callback(self)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\core.py", line 3091, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\screen.py", line 440, in per_interact
    self.update()
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\display\screen.py", line 625, in update
    self.screen.function(**self.scope)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\ast.py", line 158, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\ast.py", line 145, in apply
    raise Exception("Unknown keyword arguments: %s" % ( ", ".join(values.keys())))
Exception: Unknown keyword arguments: transition
谢谢大佬

发表于 2020-2-19 15:55:28 | 显示全部楼层
While running game code:
  File "game/Idea_Of_Backpack.rpy", line 62, in script
    call screen openbackpack
  File "renpy/common/000statements.rpy", line 531, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
Exception: Unknown keyword arguments: transition

如果我没理解错的话,错误应在Dissolve不能用于 Call Screen--
我也没实操过,看着报错来的,试试看吧,这站挺凉的。
回复 支持 抱歉

使用道具 举报

 楼主| 发表于 2020-4-16 11:35:55 | 显示全部楼层
匿名用户 发表于 2020-2-19 15:55
While running game code:
  File "game/Idea_Of_Backpack.rpy", line 62, in script
    call screen open ...

可以呀,dissolve为啥不能用于call screen
label time_machineIntro1():
    call screen time_machineIntro2 with Dissolve(3)
    with fade(3, 3, 3, color="#000")
这样就没报错
回复 支持 抱歉

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|RenPy中文空间 ( 苏ICP备17067825号|苏公网安备 32092302000068号 )

GMT+8, 2024-11-23 08:05 , Processed in 0.112773 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表