Debugging - dexxx-x/DemulShooter GitHub Wiki

Step 1:

Before anything, please make sure you run DemulShooter as an Administrator

Step 2:

For debugging purpose, make sure that you run DemulShooter and the targeted game/emulator directly (do not use any frontend or script, so that you can be sure that the problem does not come from there)

Step 3:

To help me investigate a bug, please create a DemulShooter log file and share it with me. To do so, please follow these steps :

  • Add a -v option in DemulShooter command line (for example : DemulShooter.exe -target=ttx -rom=hmuseum -v)
  • Run the targeted game/emulator
  • Check that DemulShooter is properly hooked (green icon in the Systray) and move Lightgun(s) on screen for a few seconds before closing everything (or if DemulShooter stays red because of hooking issue, just close DemulShooter)
  • The log file will be present in DemulShooter's folder, the filename will be something like Debug_2022-05-13_21-27-17.txt

Misc. Notes :

  • A new log file is created each time you run DemulShooter
  • Only use the -v option to debug issues, do not keep the option to play the game normally : a lot of things are written in the debug file, those disk access may slow down your computer / mess with lightgun data processing delay and cause weird behaviors (mostly input lags)