Failed to comile shader in 1.0.0

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
booog
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Aug 16, 2020 9:10 pm
Contact:

Failed to comile shader in 1.0.0

Post 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'
Loewchen
Global Moderator
Global Moderator
Posts: 10279
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Failed to comile shader in 1.0.0

Post by Loewchen »

Post the log after a session with the issue, see my signature.
booog
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Aug 16, 2020 9:10 pm
Contact:

Re: Failed to comile shader in 1.0.0

Post by booog »

Log-file attached
Attachments
factorio-current.log
(1.67 KiB) Downloaded 108 times
Zavian
Smart Inserter
Smart Inserter
Posts: 1655
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Failed to comile shader in 1.0.0

Post 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).
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Failed to comile shader in 1.0.0

Post 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
booog
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Aug 16, 2020 9:10 pm
Contact:

Re: Failed to comile shader in 1.0.0

Post by booog »

Thank you, Posila and Zavian!
Running nicely on the GTX card.
Post Reply

Return to “Technical Help”