[SOLVED] Stalker - Failed to preprocess effect

  • strelokgunslinger
  • Topic Author
More
9 years 3 months ago - 9 years 3 months ago #1 by strelokgunslinger [SOLVED] Stalker - Failed to preprocess effect was created by strelokgunslinger
Made sure to install reshade correctly, seems like it tries to hook then loads the effects and then fails to compile.. I have the log
I am using Mastereffect Reshade.fx
10/01/2015 20:47:34,759 | INFO  | Initializing Crosire's ReShade version '0.11.4.635' built on '2015-01-08 00:56:46' loaded from "C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\d3d9.dll" to "C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\XR_3DA.exe" ...
10/01/2015 20:47:34,770 | INFO  | Registering hooks for "C:\Windows\system32\d3d8.dll" ...
10/01/2015 20:47:34,770 | INFO  | > Delayed.
10/01/2015 20:47:34,770 | INFO  | Registering hooks for "C:\Windows\system32\d3d9.dll" ...
10/01/2015 20:47:34,770 | INFO  | > Delayed.
10/01/2015 20:47:34,770 | INFO  | Registering hooks for "C:\Windows\system32\d3d10.dll" ...
10/01/2015 20:47:34,771 | INFO  | > Delayed.
10/01/2015 20:47:34,771 | INFO  | Registering hooks for "C:\Windows\system32\d3d10_1.dll" ...
10/01/2015 20:47:34,771 | INFO  | > Delayed.
10/01/2015 20:47:34,771 | INFO  | Registering hooks for "C:\Windows\system32\d3d11.dll" ...
10/01/2015 20:47:34,771 | INFO  | > Delayed.
10/01/2015 20:47:34,771 | INFO  | Registering hooks for "C:\Windows\system32\dxgi.dll" ...
10/01/2015 20:47:34,771 | INFO  | > Delayed.
10/01/2015 20:47:34,771 | INFO  | Registering hooks for "C:\Windows\system32\opengl32.dll" ...
10/01/2015 20:47:34,771 | INFO  | > Delayed.
10/01/2015 20:47:34,771 | INFO  | Registering hooks for "C:\Windows\system32\ws2_32.dll" ...
10/01/2015 20:47:34,771 | INFO  | > Libraries loaded.
10/01/2015 20:47:34,773 | INFO  | > Found 8 match(es). Installing ...
10/01/2015 20:47:34,818 | INFO  | > Installed 8 hook(s).
10/01/2015 20:47:34,818 | INFO  | Initialized.
10/01/2015 20:47:34,818 | INFO  | Redirecting 'Direct3DCreate9(32)' ...
10/01/2015 20:47:34,818 | INFO  | Installing delayed hooks for "C:\Windows\system32\d3d9.dll" ...
10/01/2015 20:47:34,841 | INFO  | > Found 9 match(es). Installing ...
10/01/2015 20:47:34,842 | INFO  | > Installed 9 hook(s).
10/01/2015 20:47:34,862 | INFO  | Redirecting 'IDirect3D9::CreateDevice(0BB207E0, 0, 1, 000406F4, 84, 004EAEC0, 004EAE58)' ...
10/01/2015 20:47:35,407 | INFO  | Recreated effect environment on runtime 0CC74840.
10/01/2015 20:47:52,032 | INFO  | Loading effect from "C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx" ...
10/01/2015 20:47:52,052 | ERROR | Failed to preprocess effect on context 0CC74840:

C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(40): error: Redefining defined variable "USE_CURVES"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(171): error: Redefining defined variable "Explosion_Radius"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(183): error: Redefining defined variable "Levels_black_point"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(195): error: Redefining defined variable "TechniAmount"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(196): error: Redefining defined variable "TechniPower"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(214): error: Redefining defined variable "RGB_Gamma"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(226): error: Redefining defined variable "Vibrance"
C:\S.T.A.L.K.E.R. - Shadow of Chernobyl\bin\ReShade.fx(231): error: Redefining defined variable "Curves_contrast"


10/01/2015 20:48:08,495 | INFO  | Exiting ...
10/01/2015 20:48:08,496 | INFO  | Uninstalling 20 hook(s) ...
10/01/2015 20:48:08,587 | INFO  | Exited.
Last edit: 9 years 3 months ago by strelokgunslinger.

Please Log in or Create an account to join the conversation.

  • crosire
More
9 years 3 months ago - 9 years 3 months ago #2 by crosire Replied by crosire on topic Stalker SoC - Failed to preprocess effect -- ? log
That's no ReShade issue, but something is wrong with your shader there =) (I'll move the topic).
Did you try an combine SweetFX and MasterEffect? Because it certainly looks that way (the same defines are used multiple times, which doesn't work).
Last edit: 9 years 3 months ago by crosire.
The following user(s) said Thank You: strelokgunslinger

Please Log in or Create an account to join the conversation.

  • strelokgunslinger
  • Topic Author
More
9 years 3 months ago - 9 years 3 months ago #3 by strelokgunslinger Replied by strelokgunslinger on topic Stalker SoC - Failed to preprocess effect -- ? log
Will have another look at how I set it up.

edit. damn crosire I am an idiot..


//#include "Sweet.fx"
vs
#include "Sweet.fx"

It was included so I added the // and it now compiles..

Well I hope this doesn't get considered spam for my lack of double checking :/
Last edit: 9 years 3 months ago by strelokgunslinger.

Please Log in or Create an account to join the conversation.

  • crosire
More
9 years 3 months ago #4 by crosire Replied by crosire on topic Stalker SoC - Failed to preprocess effect -- ? log
Glad you got it solved =)

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.