• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows Shaders are broken [SOLVED]

I've been having this problem for more than 6 months now and it's just really annoying,
the shaders don't work at all,not even the official demo (Yoyo Dungeon) with shaders isn't working and the only thing that gamemaker gives to me about this problem is this
(when i try to test the game)
___________________________________________
############################################################################################
FATAL ERROR in Vertex Shader compilation
ShaderName: sh_silhouette_shader

Invalid shader
at gml_Script_OT_Draw_Silhouettes (line 11) - shader_set(sh_silhouette_shader);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_OT_Draw_Silhouettes (line 11)
called from - gml_Object_oController_Silhouettes_Draw_0 (line 3) - if( global.effects ) OT_Draw_Silhouettes();
and the output log gives me nothing too
DirectX11: Using hardware device
Invalid shader (is it marked as incompatible type for this target?) "sh_light_shader":
Invalid shader (is it marked as incompatible type for this target?) "sh_silhouette_shader":
No matter what type of shader i use the error still occurs,please help
EDIT: Thank you for the help, The problem was solved after I formatted my computer
 
Last edited:

rIKmAN

Member
Does a standard GMS default shader give errors?
Are you creating these shaders yourself or getting them from elsewhere?

Are the shaders (a) actually GLSL_ES shaders and (b) set as GLSL_ES inside GMS2?
(Right click the shader in the Resource Tree and check the "Shader Type")

If you got them from elsewhere, is it possible they are using a later version of GLSL_ES than GMS2 supports? (GLSL ES v2 as per Russell)
 
n
Does a standard GMS default shader give errors?
Are you creating these shaders yourself or getting them from elsewhere?

Are the shaders (a) actually GLSL_ES shaders and (b) set as GLSL_ES inside GMS2?
(Right click the shader in the Resource Tree and check the "Shader Type")

If you got them from elsewhere, is it possible they are using a later version of GLSL_ES than GMS2 supports? (GLSL ES v2 as per Russell)
I'm using the default shader in the demo
 

rIKmAN

Member
I'm using the default shader in the demo
Those aren't "default shaders", judging by their names they are silhouette and lighting shaders.

What I mean is if you create a new shader yourself in an empty project and draw something using it - do you still get the same error?
This will help narrow it down to either being specific to the demo project / shaders, or happening to all shaders across all projects.

What target are you trying to compile the demo to?
 

rIKmAN

Member
And yes the shaders don't work even if the only things in them are the passthroughs
Is this in a fresh empty project, or editing the demo project?
What spec graphics card are you using?
What target are you trying to compile to?

If it's been happening for 6mths did you ever file a bug report to YYG?
If so, what did they say?

Check your UI.log file to see if there is any information in there that might give you a clue.
In the IDE go to Help > Open Log in Explorer.
I'd recommend moving / copying / deleting the existing UI.log file, closing and then relaunching GMS2 and running the project so you get the error.

Then check the newly generated UI.log - this way it will be a fresh log containing only information from that last launch of the IDE rather than a massive log of many previous launches.

Also - I'm assuming you're using 2.2.1 or 2.2.2 but if not, what version?
 
This is a fresh project
I'm using a Nvidia 1050 ti 6gb
Windows

Yes
They said it was the shader type that was wrong (but still doesn't work GLSL ES as they said me to set) and they had no issues while running the project

Here's The UI.log
[21:29:21:123(026a)] ResumeThread: Suspended = 0 for watcher 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test'
[21:29:22:412(026a)] Analytics :: sending profile _event=http://api.mixpanel.com/engage with args={"$token" : "73f678be4bbca5175b05134e8a9675f7","$distinct_id" : "1253464","$union" : {"Module Run" : [ "Windows" ]}}
[21:29:22:424(026a)] starting cmd /c subst Z: "C:\Users\Gustavo\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"
[21:29:22:583(026a)] elapsed time 00:00:00.1701138s for command "cmd" /c subst Z: "C:\Users\Gustavo\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 02/03/2019 21:29:22
[21:29:22:594(026a)] starting cmd /c subst Y: "C:\Users\Gustavo\AppData\Local\GameMakerStudio2\GMS2TEMP"
[21:29:22:732(026a)] elapsed time 00:00:00.1380924s for command "cmd" /c subst Y: "C:\Users\Gustavo\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 02/03/2019 21:29:22
[21:29:22:755(026a)] starting cmd /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.1.287"
[21:29:22:903(026a)] elapsed time 00:00:00.1480990s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.1.287" started at 02/03/2019 21:29:22
[21:29:22:914(026a)] IDE: SaveProjectIncremental()
[21:29:22:919(026a)] Setting FolderWatcher 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test' to False
[21:29:22:924(026a)] Saving project to: E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test\Test.yyp
[21:29:22:929(026a)] Saving project at 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test\Test.yyp'
[21:29:22:937(026a)] Saving 1 resources
[21:29:22:983(026a)] Save project took 00:00:00.0480315
[21:29:22:990(026a)] Setting FolderWatcher 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test' to True
[21:29:23:41(026a)] starting C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.1.287/bin/Igor.exe -options="C:\Users\Gustavo\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -- Windows Run
[21:29:26:313(026a)] Suspend: Suspended = 1 for watcher 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test'
[21:29:31:722(026a)] elapsed time 00:00:08.6808981s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.1.287/bin/Igor.exe" -options="C:\Users\Gustavo\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -- Windows Run started at 02/03/2019 21:29:23
[21:29:31:748(026a)] starting cmd /c subst Z: /d
[21:29:31:893(026a)] elapsed time 00:00:00.1455965s for command "cmd" /c subst Z: /d started at 02/03/2019 21:29:31
[21:29:31:900(026a)] starting cmd /c subst Y: /d
[21:29:32:54(026a)] elapsed time 00:00:00.1546034s for command "cmd" /c subst Y: /d started at 02/03/2019 21:29:31
[21:29:32:61(026a)] starting cmd /c subst X: /d
[21:29:32:214(026a)] elapsed time 00:00:00.1521018s for command "cmd" /c subst X: /d started at 02/03/2019 21:29:32
[21:29:32:230(026a)] ResumeThread: Suspended = 0 for watcher 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test'
[21:29:32:970(026a)] Suspend: Suspended = 1 for watcher 'E:\Users\GUSTAVO\Documents\GameMakerStudio2\Test'

If you're talking about GM2 I'm using the steam version
 

rIKmAN

Member
Yes
They said it was the shader type that was wrong (but still doesn't work GLSL ES as they said me to set) and they had no issues while running the project
Yeah that's the first thing I suggested back at the start due to the error message - pretty strange if YYG said that was the issue and it didn't fix it.

Not much info in that UI.log either, sadly.

Have you got another machine to try GMS2 on?
It's probably going to be a bit of trial and error on your part trying to narrow down the possibilities and find some differences between a working install and your broken install.

Other than some hero appearing in here with some wisdom, I would contact support again and see if there is anything they can do.
 
Top