Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I tried put this shader pack on my game but it doens't open and it gives me this error:

I'm sorry, but an uncaught exception occurred.

While running game code:

  File "game/scripts/shaders/MVNRSP1.rpy", line 1, in script

    init python:

  File "game/scripts/shaders/MVNRSP1.rpy", line 1, in script

    init python:

  File "game/scripts/shaders/MVNRSP1.rpy", line 365, in <module>

    renpy.register_shader("MakeVisualNovels.PerlinWarp",

Exception: MakeVisualNovels.PerlinWarp: Unknown shader variable line '//Commonly used variables in nearly all shaders.'. Only the form '{uniform,attribute,vertex} {type} {name} is allowed.

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

Full traceback:

  File "D:\Renpy\Renpy 8-1.5.22-sdk\renpy\bootstrap.py", line 277, in bootstrap

    renpy.main.main()

  File "D:\Renpy\Renpy 8-1.5.22-sdk\renpy\main.py", line 558, in main

    renpy.game.context().run(node)

  File "game/scripts/shaders/MVNRSP1.rpy", line 1, in script

    init python:

  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 441, in raise_

  File "game/scripts/shaders/MVNRSP1.rpy", line 1, in script

    init python:

  File "D:\Renpy\Renpy 8-1.5.22-sdk\renpy\ast.py", line 1131, in execute

    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)

  File "D:\Renpy\Renpy 8-1.5.22-sdk\renpy\python.py", line 1061, in py_exec_bytecode

    exec(bytecode, globals, locals)

  File "game/scripts/shaders/MVNRSP1.rpy", line 365, in <module>

    renpy.register_shader("MakeVisualNovels.PerlinWarp",

  File "D:\Renpy\Renpy 8-1.5.22-sdk\renpy\gl2\gl2shadercache.py", line 48, in register_shader

    ShaderPart(name, **kwargs)

  File "D:\Renpy\Renpy 8-1.5.22-sdk\renpy\gl2\gl2shadercache.py", line 117, in __init__

    raise Exception("{}: Unknown shader variable line {!r}. Only the form '{{uniform,attribute,vertex}} {{type}} {{name}} is allowed.".format(self.name, l))

Exception: MakeVisualNovels.PerlinWarp: Unknown shader variable line '//Commonly used variables in nearly all shaders.'. Only the form '{uniform,attribute,vertex} {type} {name} is allowed.

Windows-10-10.0.19041 AMD64

Ren'Py 8.0.3.22090809

The Raining Night

Sat Dec 14 00:14:10 2024

From the looks of it, your version of RenPy doesn't seem to like comments inside of the shader variable declaration, which is pretty odd.  I would recommend updating to the newest version of RenPy and seeing if the issue persists.