I'm trying to integrate a Live2D model into a short game but have been met with this error.
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 41, in script
k "-YAWN-"
File "renpy/common/000window.rpy", line 114, in _window_auto_callback
_window_show(auto=True)
File "renpy/common/000window.rpy", line 69, in _window_show
renpy.with_statement(trans)
Exception: Shader ('live2d.flip_texture', 'live2d.inverted_mask', 'renpy.geometry', 'renpy.texture') has not been given uniform tex1.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 41, in script
k "-YAWN-"
File "D:\Downloads\renpy-8.0.3-sdk\renpy\ast.py", line 889, in execute
statement_name(stmt_name)
File "D:\Downloads\renpy-8.0.3-sdk\renpy\ast.py", line 47, in statement_name
i(name)
File "renpy/common/000window.rpy", line 114, in _window_auto_callback
_window_show(auto=True)
File "renpy/common/000window.rpy", line 69, in _window_show
renpy.with_statement(trans)
File "D:\Downloads\renpy-8.0.3-sdk\renpy\exports.py", line 1657, in with_statement
return renpy.game.interface.do_with(trans, paired, clear=clear)
File "D:\Downloads\renpy-8.0.3-sdk\renpy\display\core.py", line 2798, in do_with
return self.interact(trans_pause=True,
File "D:\Downloads\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 "D:\Downloads\renpy-8.0.3-sdk\renpy\display\core.py", line 3912, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "D:\Downloads\renpy-8.0.3-sdk\renpy\display\core.py", line 2609, in draw_screen
renpy.display.draw.draw_screen(surftree)
File "gl2draw.pyx", line 815, in renpy.gl2.gl2draw.GL2Draw.draw_screen
File "gl2draw.pyx", line 872, in renpy.gl2.gl2draw.GL2Draw.load_all_textures
File "gl2draw.pyx", line 872, in renpy.gl2.gl2draw.GL2Draw.load_all_textures
File "gl2draw.pyx", line 872, in renpy.gl2.gl2draw.GL2Draw.load_all_textures
[Previous line repeated 7 more times]
File "gl2draw.pyx", line 885, in renpy.gl2.gl2draw.GL2Draw.load_all_textures
File "gl2draw.pyx", line 918, in renpy.gl2.gl2draw.GL2Draw.render_to_texture
File "gl2texture.pyx", line 206, in renpy.gl2.gl2texture.TextureLoader.render_to_texture
File "gl2texture.pyx", line 360, in renpy.gl2.gl2texture.GLTexture.from_render
File "gl2draw.pyx", line 1341, in renpy.gl2.gl2draw.GL2DrawingContext.draw
File "gl2draw.pyx", line 1322, in renpy.gl2.gl2draw.GL2DrawingContext.draw_one
File "gl2draw.pyx", line 1322, in renpy.gl2.gl2draw.GL2DrawingContext.draw_one
File "gl2draw.pyx", line 1236, in renpy.gl2.gl2draw.GL2DrawingContext.draw_one
File "gl2draw.pyx", line 1203, in renpy.gl2.gl2draw.GL2DrawingContext.draw_model
File "gl2shader.pyx", line 313, in renpy.gl2.gl2shader.Program.draw
File "gl2shader.pyx", line 264, in renpy.gl2.gl2shader.Program.missing
Exception: Shader ('live2d.flip_texture', 'live2d.inverted_mask', 'renpy.geometry', 'renpy.texture') has not been given uniform tex1.
Windows-10-10.0.19045 AMD64
Ren'Py 8.0.3.22090809
Rounded GUI 1.1.0
Wed Apr 12 15:34:20 2023
For context, I am using the latest version of Ren'py and the latest version of the Live2D sdk. Config.gl2 has been set to true in options.rpy. All of the model's .json and texture files are present.
Any help would be appreciated, as I do hope to use Live2D more in the future and nipping this in the bud would be preferable.
Thank you.