Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Thanks for the response and help, it looks like I’m still having trouble however. Now the game won’t build/run at all:

While running game code:
  File "game/11_shader_outline_v2.rpy", line 40, in script
    init python:
  File "game/11_shader_outline_v2.rpy", line 41, in <module>
    renpy.register_shader("remix.optimized_outline",
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        variables="""
        ^^^^^^^^^^^^^
    ...<60 lines>...
        }
        ^
        """)
        ^^^^
Exception: In shader remix.optimized_outline: Unknown shader variable line 'vec2 u_offset;'. Only the form '{uniform,attribute,vertex} {type} {name} is allowed.

I removed the old outline shader script and dropped in the new one without changing anything else.

Just as a sanity check I made a new Ren’Py project and dropped the new shader script in and got the same error. Then I replaced it with the old script and it works when running on my PC and… on web, huh. I went back to my main project and tried building for web again with the old script and the same error I first reported still appeared.

I’m now very confused, ahaha. It might be an issue with my project somehow? I’m really unsure how it’s possible but it seems to work otherwise.

EDIT: I think you can safely ignore my bug report. The same issue from before is now occuring even if I remove this shader from my game. At the very least, this shader isn’t at fault but safe to say I’ve quite the headache ahead.

EDIT 2: It appears to be an issue with a gradient shader from a different developer. I have no idea why the issue disappeared when I removed this shader from my game but mystery solved.