Welcome, Guest.
Username: Password: Remember me

TOPIC: [SOLVED] Fallout 4 Syntax error won't compile Reshade

Fallout 4 Syntax error won't compile Reshade 1 year 5 months ago #1

The message:
F:\Games\SteamApps\common\Fallout 4\/ReShade/GemFX/Bloom.h(540, 21): error X3000: syntax error: unexpected 'integral literal', expected ';'
F:\Games\SteamApps\common\Fallout 4\/ReShade/GemFX/Bloom.h(540, 21): error X3000: syntax error: unexpected 'integral literal', expected '{'

The line referenced is:
RFX_Start_Enabled; int toggle = Bloom_ToggleKey; >

I am not really sure what to make of this yet, I am new to Reshade. This shader is from the default 1.1.0 release and bloom works fine when I just turn it on, the error only occurs when i add a key to toggle bloom on and off. I mostly just want to be able to turn it off and on. The bloom itself isn't bad, but I want to have the option.

Any help would be appreciate since I know only a little on how it works so far,
The administrator has disabled public write access.

Fallout 4 Syntax error won't compile Reshade 1 year 5 months ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2749
  • Thank you received: 1570
How did you set the bloom toggle key?
Cheers, crosire =)
The administrator has disabled public write access.

Fallout 4 Syntax error won't compile Reshade 1 year 5 months ago #3

There is a setting in GemFX.cfg that includes Bloom. Here is the line (105):

#define Bloom_ToggleKey RFX_ToggleKey //[undef] //-Toggle key for Bloom and Bloom dependent shaders.

According to the Reshade\PersonalFiles\KeyCodes.h I added this bit:

#define Bloom_ToggleKey RFX_ToggleKey 107 //[undef] //-Toggle key for Bloom and Bloom dependent shaders.

The added part was the 107 which is the multiply (*) key. When it had the error, I tried several different keys and using hexadecimal as well.

Thanks
The administrator has disabled public write access.

Fallout 4 Syntax error won't compile Reshade 1 year 5 months ago #4

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2749
  • Thank you received: 1570
Should be:
#define Bloom_ToggleKey 107 //...
The key code replaces "RFX_ToggleKey".
Cheers, crosire =)
The administrator has disabled public write access.

Fallout 4 Syntax error won't compile Reshade 1 year 5 months ago #5

Ahh! Thanks!
The administrator has disabled public write access.