Flash Gaurd

From Sinden Lightgun
Jump to navigation Jump to search



Flash Gaurd

Third party tool
Core: Reshade Shader
Emulates: Any system Reshade works with
Download: lightgunman GDrive
License: Free with inclusion of Copyright notice
Developer: A.Nakada Ko-fi donation page
Note: Requires Reshade


This is a ReShade shader designed to prevent sudden screen flashing (photosensitive seizures prevention). It effectively suppresses or reduces intense flashes often found in 90s light gun shooters and other retro titles.


No cheat codes, patches, or texture replacements required.

Simply select the target color and sensitivity to suppress flashes.


Compatible with any hardware or software (NES, PS1, Saturn, PS2, PC, etc.). It can also be applied to old movies and anime footage.


Limitations

  • Requires Reshade


Downloads


Setup guide

Information taken from the included Flash Guard 1.0.3.1 Readme.txt

Install ReShade

Download and install ReShade from the official website. https://reshade.me

Using ReShade presets allows you to easily apply specific settings for each game.

Install Flash Guard

Copy FlashGuard.fx into the reshade-shaders/Shaders folder within your game's installation directory. Example: XXXX/reshade-shaders/Shaders/FlashGuard.fx

Enable in Game

Open the ReShade overlay (Home key), type "FlashGuard" in the search bar or find it in the list, and check the box to enable the shader.

Settings Descriptions

Detection Settings

Detection Mode:

  1. Target: Color A Only: Detects and suppresses only "Target Color A".
  2. Target: Color A & B: Detects and suppresses both A and B colors.
  3. Famicom/NES Mode: Specialized mode for NES light gun games.


Info Note
You may need to adjust the "Guard Duration" based on the number of targets (Ducks, Gunmen, etc.).




  • Target Color A / B: Specify the color of the flash you want to prevent.
  • Picking the exact flash color using the color palette is the easiest way.
  • If it doesn't respond well, try slightly adjusting the color (e.g., White to Light Gray) or lowering the sensitivity. Entering direct RGB values from a screen capture can improve accuracy.
  • Sensitivity (Color A / B): Lower values trigger the guard more aggressively (wider range).
  • Higher values require a more precise color match.
  • Sampling Precision: Sets how many pixels are sampled for color detection. "65535" is recommended for general use.


Gaurd Action Settings

Sets the behavior when a flash is detected.

  • Guard Method
    • Freeze Previous Frame (Recommended): Displays the still image from immediately before the flash.
    • Color Overlay Only: Covers the screen with a specific color.
Info Note
Perfectly canceling a flash with transparency/inverse colors is difficult



  • Guard Duration

Sets how many frames the guard is maintained after detection. If a flash lasts multiple frames, setting this to the same or higher value will completely remove it.

Info Note
Too high a value may cause noticeable stuttering.



  • Safety Guard Limit

A safety feature to prevent the screen from staying frozen indefinitely if a flash is constantly detected. The guard will force-release after this number of frames.

Color Overlay Settings (Advanced)

Configures the behavior when "Color Overlay Only" is selected as the Guard Method.

  • Blend Mode

Options include Fill, Add, Subtract, and Multiply. Since this doesn't skip frames, no stuttering occurs.

  • Animation Pattern

Allows the overlay color to "Fade Out" etc., during the guard.

  • Post-Guard Persistence

Sets the duration of the overlay effect after the flash detection ends.

Border & Exclusion Settings (Optional)

Allows setting the size and color of a border (useful for Sinden Lightgun users).


Info Crucial Tip
If you play 4:3 games without stretching to 16:9, set the border

width to match the black bars and enable "Exclude Border from Detection" to significantly improve detection accuracy.