Page 1 of 1

Failed to comile shader in 1.0.0

Posted: Sun Aug 16, 2020 9:17 pm
by booog
Game crashes at start with the error:

"Failed to comile shader"
'__core__/graphics/shaders/final-postprocessing-custom.frag'.
ERROR: 0:48: 'Error' : Cannot offset into the vector
ERROR: 0:48: '=' : cannot convert from 'const 4-component vector of float' to '3-component vector of float'

Re: Failed to comile shader in 1.0.0

Posted: Sun Aug 16, 2020 9:22 pm
by Loewchen
Post the log after a session with the issue, see my signature.

Re: Failed to comile shader in 1.0.0

Posted: Mon Aug 17, 2020 1:03 am
by booog
Log-file attached

Re: Failed to comile shader in 1.0.0

Posted: Mon Aug 17, 2020 8:24 am
by Zavian
Factorio is attempting to start on your integrated graphic. (It is also attempting to use opengl rather than directX, but that shouldn't be a problem). Try to tell windows to run it your dedicated graphics. (You might also want to check for newer graphics drivers as well).

Re: Failed to comile shader in 1.0.0

Posted: Mon Aug 17, 2020 9:42 am
by posila
Your Intel graphics driver is quite dated, the latest version is here: https://downloadcenter.intel.com/downlo ... duct=97500

To make OpenGL use your Geforce GTX 780 Ti instead of Intel integrated GPU, you need to go to Windows' View display settings and set a screen that is connected to the Geforce as Primary.

To switch back to Direct3D instead of OpenGL, you need to edit force-opengl value in the config.ini. See: 9300

Re: Failed to comile shader in 1.0.0

Posted: Mon Aug 17, 2020 5:23 pm
by booog
Thank you, Posila and Zavian!
Running nicely on the GTX card.