Welcome, Guest.
Username: Password: Remember me

TOPIC: [SOLVED] Squad + DisplayDepth.h Depth_z_near problem

Squad + DisplayDepth.h Depth_z_near problem 8 months 2 weeks ago #1

Hi everyone,

I have the following problem when using reshade with the game 'SQUAD'.

Now I have downloaded 'ReShade 1.1.0 with SweetFX 2.0(1)' pointed it to 'F:\Steam\SteamApps\common\Squad\Squad\Binaries\Win64\Squad.exe'. Also I replaced the 'F:\Steam\SteamApps\common\Squad\Squad\Binaries\Win64\SweetFX\SweetFX_Settings.txt' with this one:
sfx.thelazy.net/games/preset/5172/

When I start the game (via the launcher), the game starts but I get the following error floating on the game screen:
F:\Steam\SteamApps\common\Squad\Squad\Binaries\Win64\/SweetFX/Shaders/DisplayDepth.h(9, 20): error X3004: undeclared identifier 'Depth_z_near'

So I guess the programm does not know what the identifier 'Depth_z_near' is. Does anybody know how to solve this problem?

Thanks and regards
The administrator has disabled public write access.

Squad + DisplayDepth.h Depth_z_near problem 8 months 2 weeks ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2453
  • Thank you received: 1393
The preset is missing some settings. You should be able to fix that by adding the following lines to the bottom of SweetFX_settings.txt:
#define Depth_z_near 1.000 //[0.00001 to 100000.0]
#define Depth_z_far 1000.00 //[0.00001 to 100000.0]
#define Depth_flip 0 //[0 or 1]
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: chrnit

Squad + DisplayDepth.h Depth_z_near problem 8 months 2 weeks ago #3

Works, thank you
The administrator has disabled public write access.