|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
大佬们,这段代码哪里错了呢?
[RenPy] 纯文本查看 复制代码
label connections:
#show screen trills
#with fade
call screen speakings
screen speakings():
tag menu
fixed:
add "Background_back"
text "|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 1.0)
text "你" xalign 0.5 yalign 0.5style "speed_text"
text "你|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 0.5)
text "你," xalign 0.5 yalign 0.5 style "speed_text"
text "你,|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 0.5)
text "你,能" xalign 0.5 yalign 0.5 style "speed_text"
text "你,能|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 0.5)
text "你,能看得到" xalign 0.5 yalign 0.5 style "speed_text"
text "你,能看得到|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 0.5)
text "你,能看得到吗" xalign 0.5 yalign 0.5 style "speed_text"
text "你,能看得到吗|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 0.5)
text "你,能看得到吗?" xalign 0.5 yalign 0.5 style "speed_text"
text "你,能看得到吗?|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
$ renpy.pause(delay = 0.5)
timer 10 action Start()
hide screen speakings
下面是renpy 给出的错误提示:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script_connection.rpy", line 89, in script
call screen speakings
File "renpy/common/000statements.rpy", line 531, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/script_connection.rpy", line 91, in execute
screen speakings():
File "game/script_connection.rpy", line 91, in execute
screen speakings():
File "game/script_connection.rpy", line 93, in execute
tag menu
File "game/script_connection.rpy", line 96, in execute
text "|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
File "game/script_connection.rpy", line 96, in <module>
text "|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?
Stack was <Layer: 'transient'>
<Many: <Fixed at 627c790>>
<renpy.sl2.slast.SLContext object at 0x0627CCF0>
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script_connection.rpy", line 89, in script
call screen speakings
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 "game/script_connection.rpy", line 91, in execute
screen speakings():
File "game/script_connection.rpy", line 91, in execute
screen speakings():
File "game/script_connection.rpy", line 93, in execute
tag menu
File "game/script_connection.rpy", line 96, in execute
text "|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
File "game/script_connection.rpy", line 96, in <module>
text "|" xalign 0.5 yalign 0.5 at transform_blink3 style "speed_text"
File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\exports.py", line 1471, in pause
rv = renpy.ui.interact(mouse='pause', type='pause', roll_forward=roll_forward)
File "C:\Users\Air\Downloads\renpy-7.3.2-sdk\renpy\ui.py", line 289, in interact
raise Exception("ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?\nStack was "+('\n'.join([str(item) for item in stack])))
Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?
Stack was <Layer: 'transient'>
<Many: <Fixed at 627c790>>
<renpy.sl2.slast.SLContext object at 0x0627CCF0>
Windows-8-6.2.9200
Ren'Py 7.3.2.320
Dusk 1.0
Tue Oct 01 12:31:26 2019
|
|