Welcome, Guest.
Username: Password: Remember me

TOPIC: [SOLVED] Stalker - Failed to preprocess effect

[SOLVED] Stalker - Failed to preprocess effect 2 years 8 months ago #1

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: 2 years 8 months ago by strelokgunslinger.
The administrator has disabled public write access.

Stalker SoC - Failed to preprocess effect -- ? log 2 years 8 months ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2781
  • Thank you received: 1582
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).
Cheers, crosire =)
Last Edit: 2 years 8 months ago by crosire.
The administrator has disabled public write access.
The following user(s) said Thank You: strelokgunslinger

Stalker SoC - Failed to preprocess effect -- ? log 2 years 8 months ago #3

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: 2 years 8 months ago by strelokgunslinger.
The administrator has disabled public write access.

Stalker SoC - Failed to preprocess effect -- ? log 2 years 8 months ago #4

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2781
  • Thank you received: 1582
Glad you got it solved =)
Cheers, crosire =)
The administrator has disabled public write access.