ReShade 3.0 and Thief DS (Sneaky Upgraded) crash

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago - 3 years 9 months ago #1 by lowenz
Shader compilation related crash.
Lastest beta of Sneaky Upgrade: www.dropbox.com/s/axedbqqmr8bedv9/Setup_...e_1.1.7.502.exe?dl=1

+dgVoodoo2 2.53.

Putting only FXAA and LumaSharpen in Shader folder -> no crash.
Putting all the shaders (DISABLED) -> crash

27/09/2016 19:57:24:547 [05012] | INFO | Compiling 'C:\ReShade 3\Shaders\MXAO12b.fx' ...
27/09/2016 19:57:24:677 [05012] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\MXAO12b.fx':
E:\Thief - Deadly Shadows\System\Shader@0x16083BE0(37,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s16 failed
C:\ReShade 3\Shaders\MXAO12b.fx(185, 6): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x160868C0(37,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s16 failed
C:\ReShade 3\Shaders\MXAO12b.fx(192, 6): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x160868C0(37,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s16 failed
C:\ReShade 3\Shaders\MXAO12b.fx(260, 6): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x160868C0(37,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s16 failed
C:\ReShade 3\Shaders\MXAO12b.fx(295, 6): error: internal shader compilation failed

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

  • Posts: 3740
3 years 9 months ago #2 by crosire
Are you using any shaders outside those from GitHub? Because again I'm not able to reproduce this in the game + update. Tried on two systems.

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

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago #3 by lowenz

crosire wrote: Are you using any shaders outside those from GitHub? Because again I'm not able to reproduce this in the game + update. Tried on two systems.

Yes, that package

27/09/2016 21:53:55:552 [08104] | INFO | Compiling 'C:\ReShade 3\Shaders\Monochrome.fx' ...
27/09/2016 21:53:55:560 [08104] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\Monochrome.fx':
E:\Thief - Deadly Shadows\System\Shader@0x15A1A420(36,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s16 failed
C:\ReShade 3\Shaders\Monochrome.fx(18, 8): error: internal shader compilation failed

27/09/2016 21:53:55:572 [08104] | INFO | Compiling 'C:\ReShade 3\Shaders\MouseOverlay.fx' ...
27/09/2016 21:53:55:580 [08104] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\MouseOverlay.fx':
E:\Thief - Deadly Shadows\System\Shader@0x15A1A420(30,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s17 failed
C:\ReShade 3\Shaders\MouseOverlay.fx(23, 8): error: internal shader compilation failed

27/09/2016 21:53:55:593 [08104] | INFO | Compiling 'C:\ReShade 3\Shaders\MXAO12b.fx' ...
27/09/2016 21:53:55:724 [08104] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\MXAO12b.fx':
E:\Thief - Deadly Shadows\System\Shader@0x15B08560(29,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s18 failed
C:\ReShade 3\Shaders\MXAO12b.fx(185, 6): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x15B08560(29,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s18 failed
C:\ReShade 3\Shaders\MXAO12b.fx(192, 6): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x15B08560(29,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s18 failed
C:\ReShade 3\Shaders\MXAO12b.fx(260, 6): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x15B08560(29,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s18 failed
C:\ReShade 3\Shaders\MXAO12b.fx(295, 6): error: internal shader compilation failed

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

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago #4 by lowenz
And when I remove some shaders,, others give me the same error:

27/09/2016 21:58:21:381 [03508] | INFO | Compiling 'C:\ReShade 3\Shaders\Outline.fx' ...
27/09/2016 21:58:21:424 [03508] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\Outline.fx':
E:\Thief - Deadly Shadows\System\Shader@0x14BE1200(37,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s16 failed
C:\ReShade 3\Shaders\Outline.fx(75, 8): error: internal shader compilation failed

27/09/2016 21:58:21:425 [03508] | INFO | Compiling 'C:\ReShade 3\Shaders\Technicolor.fx' ...
27/09/2016 21:58:21:438 [03508] | INFO | > Successfully compiled.
27/09/2016 21:58:21:445 [03508] | INFO | Compiling 'C:\ReShade 3\Shaders\TiltShift.fx' ...
27/09/2016 21:58:21:478 [03508] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\TiltShift.fx':
E:\Thief - Deadly Shadows\System\Shader@0x14BDFC40(33,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s17 failed
C:\ReShade 3\Shaders\TiltShift.fx(31, 8): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x14BDFC40(33,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s17 failed
C:\ReShade 3\Shaders\TiltShift.fx(44, 8): error: internal shader compilation failed
E:\Thief - Deadly Shadows\System\Shader@0x14BDFC40(33,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s17 failed
C:\ReShade 3\Shaders\TiltShift.fx(72, 8): error: internal shader compilation failed

27/09/2016 21:58:21:479 [03508] | INFO | Compiling 'C:\ReShade 3\Shaders\Vignette.fx' ...
27/09/2016 21:58:21:488 [03508] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\Vignette.fx':
E:\Thief - Deadly Shadows\System\Shader@0x14BE09C0(33,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s17 failed
C:\ReShade 3\Shaders\Vignette.fx(41, 8): error: internal shader compilation failed

27/09/2016 21:58:21:499 [03508] | INFO | Compiling 'C:\ReShade 3\Shaders\YACA.fx' ...
27/09/2016 21:58:21:559 [03508] | ERROR | Failed to compile 'C:\ReShade 3\Shaders\YACA.fx':
E:\Thief - Deadly Shadows\System\Shader@0x14BE0BA0(39,14-29): error X4509: maximum sampler register index exceeded, target has 16 slots, manual bind to slot s18 failed
C:\ReShade 3\Shaders\YACA.fx(28, 8): error: internal shader compilation failed

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

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago - 3 years 9 months ago #5 by lowenz
Update: it seems this bug is not related to a specific shader but to the number of shaders in the Shaders folder.....20+reshade.fx is the limit.
After that limit I get the crash.

Is it even possible?

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

  • Posts: 404
3 years 9 months ago - 3 years 9 months ago #6 by JBeckman
Yes ReShade 3 compiles all shaders it detects so the "best" is to only have those shaders you want to use there and leave the others in say a sub folder or elsewhere so they do not get loaded.
(Also helps with performance and of course the compilation time is reduced with less active shaders.)

Can also copy them in while the game is running and use the in-game ReShade GUI to reload active shaders and then add in the newly added shaders then. :)

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

  • Posts: 3740
3 years 9 months ago - 3 years 9 months ago #7 by crosire

lowenz wrote: reshade.fx

Ouch. ReShade.fx from 1.1/2.0 should NOT be in there!!! ReShade 3.0 cannot handle so many effects in a single file. It isn't made for that. It expects effects to be in separate files in which case you can have much more than 20 shaders. There is NO limit.

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

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago - 3 years 9 months ago #8 by lowenz
Pardon: reshade.fxH
I got the shader codes and 3 FXH files (SMAA, FXAA, ReShade)

I really can't understand why Thief DS can't load more than 20 shaders and other games run (now) well.
Mind that if I load reshade without the path of shaders folder AND I add it then hit reload the game DOESN'T crash. The crash is only when the shaders are loaded automatically @start!

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

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago - 3 years 9 months ago #9 by lowenz
I can confim with an example:
If I load LumaSharpen (which I know having NO issues by itself ) as shader 22 Thief DS crashes @start.
If I load LumaSharpen as shader 21 Thief DS works with no problem

tested with new package (updated some minutes ago).

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

  • lowenz
  • lowenz's Avatar Topic Author
  • Away
  • Posts: 530
3 years 9 months ago - 3 years 9 months ago #10 by lowenz
Original game + dgVoodoo 2 is working

File Attachment:


Issue reported to author of Sneaky Upgrade ;)

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