tamikip / AI-GAL

AL GAL是专门为Galgame场景设计的程序,旨在让得每一名用户都能享受到独一无二的剧情。程序基于renpy框架开发
117 stars 9 forks source link

想请教一下本地Stable Diffusion的api怎么配置,绘世的整合包已经部署完成,且用web-ui功能一切正常 #1

Open jiang068 opened 4 months ago

jiang068 commented 4 months ago

没有配置的时候日志是这样的 I'm sorry, but an uncaught exception occurred.

While running game code: File "game/script.rpy", line 1, in script init python: File "game/script.rpy", line 5, in import main NoSectionError: No section: 'AI绘画'

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

Full traceback: File "game/script.rpy", line 1, in script init python: File "D:\AIGAL-1.1-win\renpy\ast.py", line 823, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "D:\AIGAL-1.1-win\renpy\python.py", line 1178, in py_exec_bytecode exec(bytecode, globals, locals) File "game/script.rpy", line 5, in import main File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 664, in _load_unlocked File "", line 627, in _load_backward_compatible File "D:\AIGAL-1.1-win\renpy\loader.py", line 876, in load_module exec(code, mod.dict) # type: ignore File "main.py", line 72, in File "lib/python3.9/configparser.py", line 781, in get File "lib/python3.9/configparser.py", line 1152, in _unify_values NoSectionError: No section: 'AI绘画'

在config中,仅将云端模式的True改成了False,key我想应该不用填吧(?)

tamikip commented 4 months ago

一些调试的配置忘记改回来了,可以到复制我新的main.py的源码覆盖,这样应该就没问题了

jiang068 commented 4 months ago

感谢大佬,现在可以进入游戏了,但是还是没有声音和画面 o(TヘTo) 我感觉还是自己的Stable Diffusion的api没有接入导致的,您可以帮忙看一下是哪里出了问题吗?非常感谢! FFEBB5F17F68E7DCAF6107E5056101F5 演示 附上日志: I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ('new_page_background.jpg') at 0x0000000006be8a30>: File "renpy/common/00gamemenu.rpy", line 174, in script $ ui.interact() File "renpy/common/00gamemenu.rpy", line 174, in $ ui.interact() OSError: Couldn't find file 'new_page_background.jpg'.

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

Full traceback: File "renpy/common/00gamemenu.rpy", line 174, in script $ ui.interact() File "D:\AIGAL-1.1-win\renpy\ast.py", line 823, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "D:\AIGAL-1.1-win\renpy\python.py", line 1178, in py_exec_bytecode exec(bytecode, globals, locals) File "renpy/common/00gamemenu.rpy", line 174, in $ ui.interact() File "D:\AIGAL-1.1-win\renpy\ui.py", line 301, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, kwargs) File "D:\AIGAL-1.1-win\renpy\display\core.py", line 2165, 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:\AIGAL-1.1-win\renpy\display\core.py", line 2814, in interact_core self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn) File "D:\AIGAL-1.1-win\renpy\display\core.py", line 1352, in draw_screen surftree = renpy.display.render.render_screen( File "render.pyx", line 486, in renpy.display.render.render_screen File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\layout.py", line 900, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\transition.py", line 384, in render top = render(self.new_widget, width, height, st, at) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\layout.py", line 900, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\layout.py", line 900, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\screen.py", line 754, in render child = renpy.display.render.render(self.child, w, h, st, at) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\layout.py", line 900, in render surf = render(child, width, height, cst, cat) File "render.pyx", line 170, in renpy.display.render.render File "render.pyx", line 260, in renpy.display.render.render File "D:\AIGAL-1.1-win\renpy\display\im.py", line 626, in render return cache.get(self, render=True) File "D:\AIGAL-1.1-win\renpy\display\im.py", line 309, in get surf = image.load() File "D:\AIGAL-1.1-win\renpy\display\im.py", line 761, in load raise e File "D:\AIGAL-1.1-win\renpy\display\im.py", line 711, in load filelike = renpy.loader.load(self.filename, directory="images") File "D:\AIGAL-1.1-win\renpy\loader.py", line 672, in load raise IOError("Couldn't find file '%s'." % name) OSError: Couldn't find file 'new_page_background.jpg'.

tamikip commented 4 months ago

感谢提醒,我设置了重启剧情功能,如果story.txt有内容则不会启动,需要清空story.txt程序才会开始生成剧情。之前我的剧情忘记清空了。