ReShade 3.0 and Thief DS (Sneaky Upgraded) crash

More
6 years 1 month ago - 6 years 1 month ago #1 by lowenz ReShade 3.0 and Thief DS (Sneaky Upgraded) crash was created 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
Last edit: 6 years 1 month ago by lowenz.

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

More
6 years 1 month ago #2 by crosire Replied by crosire on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
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.

More
6 years 1 month ago #3 by lowenz Replied by lowenz on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash

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.

More
6 years 1 month ago #4 by lowenz Replied by lowenz on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
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.

More
6 years 1 month ago - 6 years 1 month ago #5 by lowenz Replied by lowenz on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
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?
Last edit: 6 years 1 month ago by lowenz.

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

More
6 years 1 month ago - 6 years 1 month ago #6 by JBeckman Replied by JBeckman on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
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. :)
Last edit: 6 years 1 month ago by JBeckman.

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

More
6 years 1 month ago - 6 years 1 month ago #7 by crosire Replied by crosire on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash

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.
Last edit: 6 years 1 month ago by crosire.

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

More
6 years 1 month ago - 6 years 1 month ago #8 by lowenz Replied by lowenz on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
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!
Last edit: 6 years 1 month ago by lowenz.

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

More
6 years 1 month ago - 6 years 1 month ago #9 by lowenz Replied by lowenz on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
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).
Last edit: 6 years 1 month ago by lowenz.

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

More
6 years 1 month ago - 6 years 1 month ago #10 by lowenz Replied by lowenz on topic ReShade 3.0 and Thief DS (Sneaky Upgraded) crash
Original game + dgVoodoo 2 is working

File Attachment:


Issue reported to author of Sneaky Upgrade ;)
Last edit: 6 years 1 month ago by lowenz.

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 site, while others help us to improve this site and the user experience (tracking cookies). 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.