|
发表于 2023-3-10 12:15:23
|
显示全部楼层
点击物品界面后就报错了???
- I'm sorry, but an uncaught exception occurred.
- While running game code:
- File "game/script.rpy", line 59, in script
- pause
- File "renpy/common/000statements.rpy", line 455, in execute_pause
- renpy.pause()
- File "game/player_inventory.rpy", line 1, in execute
- screen player_inventory_screen:
- File "game/player_inventory.rpy", line 1, in execute
- screen player_inventory_screen:
- File "game/player_inventory.rpy", line 4, in execute
- default num_fill = GridHelper.get_num_fill(total=len(items))
- File "game/player_inventory.rpy", line 4, in <module>
- default num_fill = GridHelper.get_num_fill(total=len(items))
- NameError: name 'items' is not defined
- -- Full Traceback ------------------------------------------------------------
- Full traceback:
- File "game/script.rpy", line 59, in script
- pause
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\ast.py", line 2232, in execute
- self.call("execute")
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\ast.py", line 2220, in call
- return renpy.statements.call(method, parsed, *args, **kwargs)
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\statements.py", line 281, in call
- return method(parsed, *args, **kwargs)
- File "renpy/common/000statements.rpy", line 455, in execute_pause
- renpy.pause()
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\exports.py", line 1537, in pause
- rv = renpy.ui.interact(mouse='pause', type='pause', roll_forward=roll_forward, pause=delay, pause_modal=modal)
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\ui.py", line 299, in interact
- rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
- File "F:\renpy-8.0.3-sdk\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 "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\core.py", line 3810, in interact_core
- root_widget.visit_all(lambda i : i.per_interact())
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\core.py", line 582, in visit_all
- d.visit_all(callback, seen)
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\core.py", line 582, in visit_all
- d.visit_all(callback, seen)
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\core.py", line 582, in visit_all
- d.visit_all(callback, seen)
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\screen.py", line 451, in visit_all
- callback(self)
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\core.py", line 3810, in <lambda>
- root_widget.visit_all(lambda i : i.per_interact())
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\screen.py", line 462, in per_interact
- self.update()
- File "F:\renpy-8.0.3-sdk\renpy-8.0.3-sdk\renpy\display\screen.py", line 653, in update
- self.screen.function(**self.scope)
- File "game/player_inventory.rpy", line 1, in execute
- screen player_inventory_screen:
- File "game/player_inventory.rpy", line 1, in execute
- screen player_inventory_screen:
- File "game/player_inventory.rpy", line 4, in execute
- default num_fill = GridHelper.get_num_fill(total=len(items))
- File "game/player_inventory.rpy", line 4, in <module>
- default num_fill = GridHelper.get_num_fill(total=len(items))
- NameError: name 'items' is not defined
- Windows-10-10.0.19041 AMD64
- Ren'Py 8.0.3.22090809
- inventory 1.0
- Fri Mar 10 12:11:25 2023
复制代码
|
|