Welcome, Guest.
Username: Password: Remember me

TOPIC: Won't compile with a custom toggle key for DOF?

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #1

This is the original line in McFX

#define DOF_ToggleKey RFX_ToggleKey //[undef] //-

Now I want to toggle DOF with the END key so now the line looks like this #define DOF_ToggleKey RFX_ToggleKey 0x23 //[undef] //-
But the effect doesn't compile, says something about how integral : should be ; or something like that. That's how the default reshade toggle line looks like though, so I just assumed that I only need to add the hex value in there. What am I missing?
The administrator has disabled public write access.

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2652
  • Thank you received: 1521
Should be:
#define DOF_ToggleKey 0x23
or, more readable (but means the same):
#define DOF_ToggleKey VK_END
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: ThirdNostril

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #3

Thanks crosire!
Last Edit: 1 year 6 months ago by ThirdNostril.
The administrator has disabled public write access.

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #4

Hmm that didn't work actually. Now I'm getting a different syntax error.

Q:\Games\steamapps\common\Fallout 4\/ReShade/McFX/SSAO.h(987,56): error x3000: syntax error: unexpected 'identifier', expected ';'
Q:\Games\steamapps\common\Fallout 4\/ReShade/McFX/SSAO.h(987,56): error x3000: syntax error: unexpected 'identifier', expected '{'
The administrator has disabled public write access.

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #5

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2652
  • Thank you received: 1521
Then you messed up the line somewhere. Better use the configuration tool, find the DOF_ToggleKey setting under McFX > DEPTHOFFIELD and edit the value to "VK_END".
Cheers, crosire =)
The administrator has disabled public write access.

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #6

It's the weirdest thing. Changing values in notepad would cause compiling errors. Changing values to the exact same thing in notepad++ doesn't produce errors.

Come to think of it I ran into something like this with k-putt's sweetfx presets a year or so ago. Changes wouldn't take effect if I edited the config with regular notepad instead of notepad++

I forget the exact name for this but it was the formatting or something?
The administrator has disabled public write access.

Won't compile with a custom toggle key for DOF? 1 year 6 months ago #7

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2652
  • Thank you received: 1521
Cheers, crosire =)
The administrator has disabled public write access.